UNPKG

@sciphergfx/json-to-table

Version:

UI-agnostic React components for JSON to Table and JSON to Form Fields conversion with support for Chakra UI, Tailwind CSS, and shadcn/ui

65 lines 597 kB
function tC(e,a){for(var i=0;i<a.length;i++){const o=a[i];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(o,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();function jy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xd={exports:{}},zo={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Av;function nC(){if(Av)return zo;Av=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(o,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var g in s)g!=="key"&&(u[g]=s[g])}else u=s;return s=u.ref,{$$typeof:e,type:o,key:f,ref:s!==void 0?s:null,props:u}}return zo.Fragment=a,zo.jsx=i,zo.jsxs=i,zo}var _v;function aC(){return _v||(_v=1,Xd.exports=nC()),Xd.exports}var H=aC(),Kd={exports:{}},xe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var zv;function iC(){if(zv)return xe;zv=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function y(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function k(T,q,ie){this.props=T,this.context=q,this.refs=E,this.updater=ie||x}k.prototype.isReactComponent={},k.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,q,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=k.prototype;function R(T,q,ie){this.props=T,this.context=q,this.refs=E,this.updater=ie||x}var A=R.prototype=new _;A.constructor=R,C(A,k.prototype),A.isPureReactComponent=!0;var M=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},Y=Object.prototype.hasOwnProperty;function U(T,q,ie,ae,ue,Ee){return ie=Ee.ref,{$$typeof:e,type:T,key:q,ref:ie!==void 0?ie:null,props:Ee}}function j(T,q){return U(T.type,q,void 0,void 0,void 0,T.props)}function W(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function Q(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ie){return q[ie]})}var G=/\/+/g;function P(T,q){return typeof T=="object"&&T!==null&&T.key!=null?Q(""+T.key):q.toString(36)}function ne(){}function re(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ne,ne):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function le(T,q,ie,ae,ue){var Ee=typeof T;(Ee==="undefined"||Ee==="boolean")&&(T=null);var pe=!1;if(T===null)pe=!0;else switch(Ee){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(T.$$typeof){case e:case a:pe=!0;break;case v:return pe=T._init,le(pe(T._payload),q,ie,ae,ue)}}if(pe)return ue=ue(T),pe=ae===""?"."+P(T,0):ae,M(ue)?(ie="",pe!=null&&(ie=pe.replace(G,"$&/")+"/"),le(ue,q,ie,"",function(te){return te})):ue!=null&&(W(ue)&&(ue=j(ue,ie+(ue.key==null||T&&T.key===ue.key?"":(""+ue.key).replace(G,"$&/")+"/")+pe)),q.push(ue)),1;pe=0;var kt=ae===""?".":ae+":";if(M(T))for(var Z=0;Z<T.length;Z++)ae=T[Z],Ee=kt+P(ae,Z),pe+=le(ae,q,ie,Ee,ue);else if(Z=y(T),typeof Z=="function")for(T=Z.call(T),Z=0;!(ae=T.next()).done;)ae=ae.value,Ee=kt+P(ae,Z++),pe+=le(ae,q,ie,Ee,ue);else if(Ee==="object"){if(typeof T.then=="function")return le(re(T),q,ie,ae,ue);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return pe}function D(T,q,ie){if(T==null)return T;var ae=[],ue=0;return le(T,ae,"","",function(Ee){return q.call(ie,Ee,ue++)}),ae}function J(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(ie){(T._status===0||T._status===-1)&&(T._status=1,T._result=ie)},function(ie){(T._status===0||T._status===-1)&&(T._status=2,T._result=ie)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var se=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function oe(){}return xe.Children={map:D,forEach:function(T,q,ie){D(T,function(){q.apply(this,arguments)},ie)},count:function(T){var q=0;return D(T,function(){q++}),q},toArray:function(T){return D(T,function(q){return q})||[]},only:function(T){if(!W(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},xe.Component=k,xe.Fragment=i,xe.Profiler=s,xe.PureComponent=R,xe.StrictMode=o,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,xe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return N.H.useMemoCache(T)}},xe.cache=function(T){return function(){return T.apply(null,arguments)}},xe.cloneElement=function(T,q,ie){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ae=C({},T.props),ue=T.key,Ee=void 0;if(q!=null)for(pe in q.ref!==void 0&&(Ee=void 0),q.key!==void 0&&(ue=""+q.key),q)!Y.call(q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&q.ref===void 0||(ae[pe]=q[pe]);var pe=arguments.length-2;if(pe===1)ae.children=ie;else if(1<pe){for(var kt=Array(pe),Z=0;Z<pe;Z++)kt[Z]=arguments[Z+2];ae.children=kt}return U(T.type,ue,void 0,void 0,Ee,ae)},xe.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},xe.createElement=function(T,q,ie){var ae,ue={},Ee=null;if(q!=null)for(ae in q.key!==void 0&&(Ee=""+q.key),q)Y.call(q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ue[ae]=q[ae]);var pe=arguments.length-2;if(pe===1)ue.children=ie;else if(1<pe){for(var kt=Array(pe),Z=0;Z<pe;Z++)kt[Z]=arguments[Z+2];ue.children=kt}if(T&&T.defaultProps)for(ae in pe=T.defaultProps,pe)ue[ae]===void 0&&(ue[ae]=pe[ae]);return U(T,Ee,void 0,void 0,null,ue)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(T){return{$$typeof:g,render:T}},xe.isValidElement=W,xe.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:J}},xe.memo=function(T,q){return{$$typeof:p,type:T,compare:q===void 0?null:q}},xe.startTransition=function(T){var q=N.T,ie={};N.T=ie;try{var ae=T(),ue=N.S;ue!==null&&ue(ie,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(oe,se)}catch(Ee){se(Ee)}finally{N.T=q}},xe.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},xe.use=function(T){return N.H.use(T)},xe.useActionState=function(T,q,ie){return N.H.useActionState(T,q,ie)},xe.useCallback=function(T,q){return N.H.useCallback(T,q)},xe.useContext=function(T){return N.H.useContext(T)},xe.useDebugValue=function(){},xe.useDeferredValue=function(T,q){return N.H.useDeferredValue(T,q)},xe.useEffect=function(T,q,ie){var ae=N.H;if(typeof ie=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(T,q)},xe.useId=function(){return N.H.useId()},xe.useImperativeHandle=function(T,q,ie){return N.H.useImperativeHandle(T,q,ie)},xe.useInsertionEffect=function(T,q){return N.H.useInsertionEffect(T,q)},xe.useLayoutEffect=function(T,q){return N.H.useLayoutEffect(T,q)},xe.useMemo=function(T,q){return N.H.useMemo(T,q)},xe.useOptimistic=function(T,q){return N.H.useOptimistic(T,q)},xe.useReducer=function(T,q,ie){return N.H.useReducer(T,q,ie)},xe.useRef=function(T){return N.H.useRef(T)},xe.useState=function(T){return N.H.useState(T)},xe.useSyncExternalStore=function(T,q,ie){return N.H.useSyncExternalStore(T,q,ie)},xe.useTransition=function(){return N.H.useTransition()},xe.version="19.1.1",xe}var Vv;function Yf(){return Vv||(Vv=1,Kd.exports=iC()),Kd.exports}var K=Yf();const Uy=jy(K),Iv=tC({__proto__:null,default:Uy},[K]);var Qd={exports:{}},Vo={},Zd={exports:{}},Jd={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Dv;function rC(){return Dv||(Dv=1,function(e){function a(D,J){var se=D.length;D.push(J);e:for(;0<se;){var oe=se-1>>>1,T=D[oe];if(0<s(T,J))D[oe]=J,D[se]=T,se=oe;else break e}}function i(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var J=D[0],se=D.pop();if(se!==J){D[0]=se;e:for(var oe=0,T=D.length,q=T>>>1;oe<q;){var ie=2*(oe+1)-1,ae=D[ie],ue=ie+1,Ee=D[ue];if(0>s(ae,se))ue<T&&0>s(Ee,ae)?(D[oe]=Ee,D[ue]=se,oe=ue):(D[oe]=ae,D[ie]=se,oe=ie);else if(ue<T&&0>s(Ee,se))D[oe]=Ee,D[ue]=se,oe=ue;else break e}}return J}function s(D,J){var se=D.sortIndex-J.sortIndex;return se!==0?se:D.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,g=f.now();e.unstable_now=function(){return f.now()-g}}var h=[],p=[],v=1,S=null,y=3,x=!1,C=!1,E=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var J=i(p);J!==null;){if(J.callback===null)o(p);else if(J.startTime<=D)o(p),J.sortIndex=J.expirationTime,a(h,J);else break;J=i(p)}}function N(D){if(E=!1,M(D),!C)if(i(h)!==null)C=!0,Y||(Y=!0,P());else{var J=i(p);J!==null&&le(N,J.startTime-D)}}var Y=!1,U=-1,j=5,W=-1;function Q(){return k?!0:!(e.unstable_now()-W<j)}function G(){if(k=!1,Y){var D=e.unstable_now();W=D;var J=!0;try{e:{C=!1,E&&(E=!1,R(U),U=-1),x=!0;var se=y;try{t:{for(M(D),S=i(h);S!==null&&!(S.expirationTime>D&&Q());){var oe=S.callback;if(typeof oe=="function"){S.callback=null,y=S.priorityLevel;var T=oe(S.expirationTime<=D);if(D=e.unstable_now(),typeof T=="function"){S.callback=T,M(D),J=!0;break t}S===i(h)&&o(h),M(D)}else o(h);S=i(h)}if(S!==null)J=!0;else{var q=i(p);q!==null&&le(N,q.startTime-D),J=!1}}break e}finally{S=null,y=se,x=!1}J=void 0}}finally{J?P():Y=!1}}}var P;if(typeof A=="function")P=function(){A(G)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=G,P=function(){re.postMessage(null)}}else P=function(){_(G,0)};function le(D,J){U=_(function(){D(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var J=3;break;default:J=y}var se=y;y=J;try{return D()}finally{y=se}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var se=y;y=D;try{return J()}finally{y=se}},e.unstable_scheduleCallback=function(D,J,se){var oe=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?oe+se:oe):se=oe,D){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=se+T,D={id:v++,callback:J,priorityLevel:D,startTime:se,expirationTime:T,sortIndex:-1},se>oe?(D.sortIndex=se,a(p,D),i(h)===null&&D===i(p)&&(E?(R(U),U=-1):E=!0,le(N,se-oe))):(D.sortIndex=T,a(h,D),C||x||(C=!0,Y||(Y=!0,P()))),D},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(D){var J=y;return function(){var se=y;y=J;try{return D.apply(this,arguments)}finally{y=se}}}}(Jd)),Jd}var Mv;function oC(){return Mv||(Mv=1,Zd.exports=rC()),Zd.exports}var ef={exports:{}},Ct={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pv;function lC(){if(Pv)return Ct;Pv=1;var e=Yf();function a(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:S==null?null:""+S,children:h,containerInfo:p,implementation:v}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ct.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(h,p,null,v)},Ct.flushSync=function(h){var p=f.T,v=o.p;try{if(f.T=null,o.p=2,h)return h()}finally{f.T=p,o.p=v,o.d.f()}},Ct.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(h,p))},Ct.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},Ct.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:y,fetchPriority:x}):v==="script"&&o.d.X(h,{crossOrigin:S,integrity:y,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ct.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);o.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(h)},Ct.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin);o.d.L(h,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ct.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=g(p.as,p.crossOrigin);o.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(h)},Ct.requestFormReset=function(h){o.d.r(h)},Ct.unstable_batchedUpdates=function(h,p){return h(p)},Ct.useFormState=function(h,p,v){return f.H.useFormState(h,p,v)},Ct.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ct.version="19.1.1",Ct}var Lv;function Fy(){if(Lv)return ef.exports;Lv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),ef.exports=lC(),ef.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bv;function sC(){if(Bv)return Vo;Bv=1;var e=oC(),a=Yf(),i=Fy();function o(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,r=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(r=n.return),t=n.return;while(t)}return n.tag===3?r:null}function f(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function g(t){if(u(t)!==t)throw Error(o(188))}function h(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(o(188));return n!==t?null:t}for(var r=t,l=n;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){r=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return g(c),t;if(d===l)return g(c),n;d=d.sibling}throw Error(o(188))}if(r.return!==l.return)r=c,l=d;else{for(var m=!1,b=c.child;b;){if(b===r){m=!0,r=c,l=d;break}if(b===l){m=!0,l=c,r=d;break}b=b.sibling}if(!m){for(b=d.child;b;){if(b===r){m=!0,r=d,l=c;break}if(b===l){m=!0,l=d,r=c;break}b=b.sibling}if(!m)throw Error(o(189))}}if(r.alternate!==l)throw Error(o(190))}if(r.tag!==3)throw Error(o(188));return r.stateNode.current===r?t:n}function p(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=p(t),n!==null)return n;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function P(t){return t===null||typeof t!="object"?null:(t=G&&t[G]||t["@@iterator"],typeof t=="function"?t:null)}var ne=Symbol.for("react.client.reference");function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ne?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case k:return"Profiler";case E:return"StrictMode";case N:return"Suspense";case Y:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case A:return(t.displayName||"Context")+".Provider";case R:return(t._context.displayName||"Context")+".Consumer";case M:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case U:return n=t.displayName||null,n!==null?n:re(t.type)||"Memo";case j:n=t._payload,t=t._init;try{return re(t(n))}catch{}}return null}var le=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},oe=[],T=-1;function q(t){return{current:t}}function ie(t){0>T||(t.current=oe[T],oe[T]=null,T--)}function ae(t,n){T++,oe[T]=t.current,t.current=n}var ue=q(null),Ee=q(null),pe=q(null),kt=q(null);function Z(t,n){switch(ae(pe,n),ae(Ee,t),ae(ue,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?iv(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=iv(n),t=rv(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ie(ue),ae(ue,t)}function te(){ie(ue),ie(Ee),ie(pe)}function Oe(t){t.memoizedState!==null&&ae(kt,t);var n=ue.current,r=rv(n,t.type);n!==r&&(ae(Ee,t),ae(ue,r))}function Ve(t){Ee.current===t&&(ie(ue),ie(Ee)),kt.current===t&&(ie(kt),wo._currentValue=se)}var $e=Object.prototype.hasOwnProperty,Ke=e.unstable_scheduleCallback,Pt=e.unstable_cancelCallback,yi=e.unstable_shouldYield,zr=e.unstable_requestPaint,Zt=e.unstable_now,Pc=e.unstable_getCurrentPriorityLevel,Vr=e.unstable_ImmediatePriority,ml=e.unstable_UserBlockingPriority,Pa=e.unstable_NormalPriority,pl=e.unstable_LowPriority,xi=e.unstable_IdlePriority,P1=e.log,L1=e.unstable_setDisableYieldValue,Ir=null,Lt=null;function ra(t){if(typeof P1=="function"&&L1(t),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Ir,t)}catch{}}var Bt=Math.clz32?Math.clz32:j1,B1=Math.log,H1=Math.LN2;function j1(t){return t>>>=0,t===0?32:31-(B1(t)/H1|0)|0}var vl=256,bl=4194304;function La(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function yl(t,n,r){var l=t.pendingLanes;if(l===0)return 0;var c=0,d=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~d,l!==0?c=La(l):(m&=b,m!==0?c=La(m):r||(r=b&~t,r!==0&&(c=La(r))))):(b=l&~d,b!==0?c=La(b):m!==0?c=La(m):r||(r=l&~t,r!==0&&(c=La(r)))),c===0?0:n!==0&&n!==c&&(n&d)===0&&(d=c&-c,r=n&-n,d>=r||d===32&&(r&4194048)!==0)?n:c}function Dr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function U1(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jg(){var t=vl;return vl<<=1,(vl&4194048)===0&&(vl=256),t}function Ug(){var t=bl;return bl<<=1,(bl&62914560)===0&&(bl=4194304),t}function Lc(t){for(var n=[],r=0;31>r;r++)n.push(t);return n}function Mr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function F1(t,n,r,l,c,d){var m=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var b=t.entanglements,O=t.expirationTimes,I=t.hiddenUpdates;for(r=m&~r;0<r;){var F=31-Bt(r),X=1<<F;b[F]=0,O[F]=-1;var L=I[F];if(L!==null)for(I[F]=null,F=0;F<L.length;F++){var B=L[F];B!==null&&(B.lane&=-536870913)}r&=~X}l!==0&&Fg(t,l,0),d!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=d&~(m&~n))}function Fg(t,n,r){t.pendingLanes|=n,t.suspendedLanes&=~n;var l=31-Bt(n);t.entangledLanes|=n,t.entanglements[l]=t.entanglements[l]|1073741824|r&4194090}function Gg(t,n){var r=t.entangledLanes|=n;for(t=t.entanglements;r;){var l=31-Bt(r),c=1<<l;c&n|t[l]&n&&(t[l]|=n),r&=~c}}function Bc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Hc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Wg(){var t=J.p;return t!==0?t:(t=window.event,t===void 0?32:Ov(t.type))}function G1(t,n){var r=J.p;try{return J.p=t,n()}finally{J.p=r}}var oa=Math.random().toString(36).slice(2),St="__reactFiber$"+oa,Rt="__reactProps$"+oa,Si="__reactContainer$"+oa,jc="__reactEvents$"+oa,W1="__reactListeners$"+oa,$1="__reactHandles$"+oa,$g="__reactResources$"+oa,Pr="__reactMarker$"+oa;function Uc(t){delete t[St],delete t[Rt],delete t[jc],delete t[W1],delete t[$1]}function Ei(t){var n=t[St];if(n)return n;for(var r=t.parentNode;r;){if(n=r[Si]||r[St]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(t=cv(t);t!==null;){if(r=t[St])return r;t=cv(t)}return n}t=r,r=t.parentNode}return null}function Ci(t){if(t=t[St]||t[Si]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function Lr(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(o(33))}function Oi(t){var n=t[$g];return n||(n=t[$g]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function lt(t){t[Pr]=!0}var qg=new Set,Yg={};function Ba(t,n){Ti(t,n),Ti(t+"Capture",n)}function Ti(t,n){for(Yg[t]=n,t=0;t<n.length;t++)qg.add(n[t])}var q1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xg={},Kg={};function Y1(t){return $e.call(Kg,t)?!0:$e.call(Xg,t)?!1:q1.test(t)?Kg[t]=!0:(Xg[t]=!0,!1)}function xl(t,n,r){if(Y1(n))if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+r)}}function Sl(t,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+r)}}function Ln(t,n,r,l){if(l===null)t.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttributeNS(n,r,""+l)}}var Fc,Qg;function ki(t){if(Fc===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Fc=n&&n[1]||"",Qg=-1<r.stack.indexOf(`
    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Fc+t+Qg}var Gc=!1;function Wc(t,n){if(!t||Gc)return"";Gc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(B){var L=B}Reflect.construct(t,[],X)}else{try{X.call()}catch(B){L=B}t.call(X.prototype)}}else{try{throw Error()}catch(B){L=B}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(B){if(B&&L&&typeof B.stack=="string")return[B.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),m=d[0],b=d[1];if(m&&b){var O=m.split(`
`),I=b.split(`
`);for(c=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;if(l===O.length||c===I.length)for(l=O.length-1,c=I.length-1;1<=l&&0<=c&&O[l]!==I[c];)c--;for(;1<=l&&0<=c;l--,c--)if(O[l]!==I[c]){if(l!==1||c!==1)do if(l--,c--,0>c||O[l]!==I[c]){var F=`
`+O[l].replace(" at new "," at ");return t.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",t.displayName)),F}while(1<=l&&0<=c);break}}}finally{Gc=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?ki(r):""}function X1(t){switch(t.tag){case 26:case 27:case 5:return ki(t.type);case 16:return ki("Lazy");case 13:return ki("Suspense");case 19:return ki("SuspenseList");case 0:case 15:return Wc(t.type,!1);case 11:return Wc(t.type.render,!1);case 1:return Wc(t.type,!0);case 31:return ki("Activity");default:return""}}function Zg(t){try{var n="";do n+=X1(t),t=t.return;while(t);return n}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}function Jt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jg(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function K1(t){var n=Jg(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),l=""+t[n];if(!t.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(m){l=""+m,d.call(this,m)}}),Object.defineProperty(t,n,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(m){l=""+m},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function El(t){t._valueTracker||(t._valueTracker=K1(t))}function eh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var r=n.getValue(),l="";return t&&(l=Jg(t)?t.checked?"true":"false":t.value),t=l,t!==r?(n.setValue(t),!0):!1}function Cl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Q1=/[\n"\\]/g;function en(t){return t.replace(Q1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function $c(t,n,r,l,c,d,m,b){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),n!=null?m==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Jt(n)):t.value!==""+Jt(n)&&(t.value=""+Jt(n)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),n!=null?qc(t,m,Jt(n)):r!=null?qc(t,m,Jt(r)):l!=null&&t.removeAttribute("value"),c==null&&d!=null&&(t.defaultChecked=!!d),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Jt(b):t.removeAttribute("name")}function th(t,n,r,l,c,d,m,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.type=d),n!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;r=r!=null?""+Jt(r):"",n=n!=null?""+Jt(n):r,b||n===t.value||(t.value=n),t.defaultValue=n}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m)}function qc(t,n,r){n==="number"&&Cl(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function wi(t,n,r,l){if(t=t.options,n){n={};for(var c=0;c<r.length;c++)n["$"+r[c]]=!0;for(r=0;r<t.length;r++)c=n.hasOwnProperty("$"+t[r].value),t[r].selected!==c&&(t[r].selected=c),c&&l&&(t[r].defaultSelected=!0)}else{for(r=""+Jt(r),n=null,c=0;c<t.length;c++){if(t[c].value===r){t[c].selected=!0,l&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function nh(t,n,r){if(n!=null&&(n=""+Jt(n),n!==t.value&&(t.value=n),r==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=r!=null?""+Jt(r):""}function ah(t,n,r,l){if(n==null){if(l!=null){if(r!=null)throw Error(o(92));if(le(l)){if(1<l.length)throw Error(o(93));l=l[0]}r=l}r==null&&(r=""),n=r}r=Jt(n),t.defaultValue=r,l=t.textContent,l===r&&l!==""&&l!==null&&(t.value=l)}function Ri(t,n){if(n){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=n;return}}t.textContent=n}var Z1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ih(t,n,r){var l=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":l?t.setProperty(n,r):typeof r!="number"||r===0||Z1.has(n)?n==="float"?t.cssFloat=r:t[n]=(""+r).trim():t[n]=r+"px"}function rh(t,n,r){if(n!=null&&typeof n!="object")throw Error(o(62));if(t=t.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var c in n)l=n[c],n.hasOwnProperty(c)&&r[c]!==l&&ih(t,c,l)}else for(var d in n)n.hasOwnProperty(d)&&ih(t,d,n[d])}function Yc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 J1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ol(t){return eS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Xc=null;function Kc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ni=null,Ai=null;function oh(t){var n=Ci(t);if(n&&(t=n.stateNode)){var r=t[Rt]||null;e:switch(t=n.stateNode,n.type){case"input":if($c(t,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+en(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var l=r[n];if(l!==t&&l.form===t.form){var c=l[Rt]||null;if(!c)throw Error(o(90));$c(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<r.length;n++)l=r[n],l.form===t.form&&eh(l)}break e;case"textarea":nh(t,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&wi(t,!!r.multiple,n,!1)}}}var Qc=!1;function lh(t,n,r){if(Qc)return t(n,r);Qc=!0;try{var l=t(n);return l}finally{if(Qc=!1,(Ni!==null||Ai!==null)&&(cs(),Ni&&(n=Ni,t=Ai,Ai=Ni=null,oh(n),t)))for(n=0;n<t.length;n++)oh(t[n])}}function Br(t,n){var r=t.stateNode;if(r===null)return null;var l=r[Rt]||null;if(l===null)return null;r=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(o(231,n,typeof r));return r}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zc=!1;if(Bn)try{var Hr={};Object.defineProperty(Hr,"passive",{get:function(){Zc=!0}}),window.addEventListener("test",Hr,Hr),window.removeEventListener("test",Hr,Hr)}catch{Zc=!1}var la=null,Jc=null,Tl=null;function sh(){if(Tl)return Tl;var t,n=Jc,r=n.length,l,c="value"in la?la.value:la.textContent,d=c.length;for(t=0;t<r&&n[t]===c[t];t++);var m=r-t;for(l=1;l<=m&&n[r-l]===c[d-l];l++);return Tl=c.slice(t,1<l?1-l:void 0)}function kl(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function wl(){return!0}function ch(){return!1}function Nt(t){function n(r,l,c,d,m){this._reactName=r,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(r=t[b],this[b]=r?r(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?wl:ch,this.isPropagationStopped=ch,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=wl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wl)},persist:function(){},isPersistent:wl}),n}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=Nt(Ha),jr=v({},Ha,{view:0,detail:0}),tS=Nt(jr),eu,tu,Ur,Nl=v({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:au,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ur&&(Ur&&t.type==="mousemove"?(eu=t.screenX-Ur.screenX,tu=t.screenY-Ur.screenY):tu=eu=0,Ur=t),eu)},movementY:function(t){return"movementY"in t?t.movementY:tu}}),uh=Nt(Nl),nS=v({},Nl,{dataTransfer:0}),aS=Nt(nS),iS=v({},jr,{relatedTarget:0}),nu=Nt(iS),rS=v({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),oS=Nt(rS),lS=v({},Ha,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),sS=Nt(lS),cS=v({},Ha,{data:0}),dh=Nt(cS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dS={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"},fS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=fS[t])?!!n[t]:!1}function au(){return gS}var hS=v({},jr,{key:function(t){if(t.key){var n=uS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=kl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?dS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:au,charCode:function(t){return t.type==="keypress"?kl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?kl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mS=Nt(hS),pS=v({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fh=Nt(pS),vS=v({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:au}),bS=Nt(vS),yS=v({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),xS=Nt(yS),SS=v({},Nl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ES=Nt(SS),CS=v({},Ha,{newState:0,oldState:0}),OS=Nt(CS),TS=[9,13,27,32],iu=Bn&&"CompositionEvent"in window,Fr=null;Bn&&"documentMode"in document&&(Fr=document.documentMode);var kS=Bn&&"TextEvent"in window&&!Fr,gh=Bn&&(!iu||Fr&&8<Fr&&11>=Fr),hh=" ",mh=!1;function ph(t,n){switch(t){case"keyup":return TS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _i=!1;function wS(t,n){switch(t){case"compositionend":return vh(n);case"keypress":return n.which!==32?null:(mh=!0,hh);case"textInput":return t=n.data,t===hh&&mh?null:t;default:return null}}function RS(t,n){if(_i)return t==="compositionend"||!iu&&ph(t,n)?(t=sh(),Tl=Jc=la=null,_i=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return gh&&n.locale!=="ko"?null:n.data;default:return null}}var NS={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 bh(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!NS[t.type]:n==="textarea"}function yh(t,n,r,l){Ni?Ai?Ai.push(l):Ai=[l]:Ni=l,n=ms(n,"onChange"),0<n.length&&(r=new Rl("onChange","change",null,r,l),t.push({event:r,listeners:n}))}var Gr=null,Wr=null;function AS(t){Jp(t,0)}function Al(t){var n=Lr(t);if(eh(n))return t}function xh(t,n){if(t==="change")return n}var Sh=!1;if(Bn){var ru;if(Bn){var ou="oninput"in document;if(!ou){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),ou=typeof Eh.oninput=="function"}ru=ou}else ru=!1;Sh=ru&&(!document.documentMode||9<document.documentMode)}function Ch(){Gr&&(Gr.detachEvent("onpropertychange",Oh),Wr=Gr=null)}function Oh(t){if(t.propertyName==="value"&&Al(Wr)){var n=[];yh(n,Wr,t,Kc(t)),lh(AS,n)}}function _S(t,n,r){t==="focusin"?(Ch(),Gr=n,Wr=r,Gr.attachEvent("onpropertychange",Oh)):t==="focusout"&&Ch()}function zS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Al(Wr)}function VS(t,n){if(t==="click")return Al(n)}function IS(t,n){if(t==="input"||t==="change")return Al(n)}function DS(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Ht=typeof Object.is=="function"?Object.is:DS;function $r(t,n){if(Ht(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var r=Object.keys(t),l=Object.keys(n);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var c=r[l];if(!$e.call(n,c)||!Ht(t[c],n[c]))return!1}return!0}function Th(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kh(t,n){var r=Th(t);t=0;for(var l;r;){if(r.nodeType===3){if(l=t+r.textContent.length,t<=n&&l>=n)return{node:r,offset:n-t};t=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Th(r)}}function wh(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?wh(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Rh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Cl(t.document);n instanceof t.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)t=n.contentWindow;else break;n=Cl(t.document)}return n}function lu(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var MS=Bn&&"documentMode"in document&&11>=document.documentMode,zi=null,su=null,qr=null,cu=!1;function Nh(t,n,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cu||zi==null||zi!==Cl(l)||(l=zi,"selectionStart"in l&&lu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),qr&&$r(qr,l)||(qr=l,l=ms(su,"onSelect"),0<l.length&&(n=new Rl("onSelect","select",null,n,r),t.push({event:n,listeners:l}),n.target=zi)))}function ja(t,n){var r={};return r[t.toLowerCase()]=n.toLowerCase(),r["Webkit"+t]="webkit"+n,r["Moz"+t]="moz"+n,r}var Vi={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},uu={},Ah={};Bn&&(Ah=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function Ua(t){if(uu[t])return uu[t];if(!Vi[t])return t;var n=Vi[t],r;for(r in n)if(n.hasOwnProperty(r)&&r in Ah)return uu[t]=n[r];return t}var _h=Ua("animationend"),zh=Ua("animationiteration"),Vh=Ua("animationstart"),PS=Ua("transitionrun"),LS=Ua("transitionstart"),BS=Ua("transitioncancel"),Ih=Ua("transitionend"),Dh=new Map,du="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");du.push("scrollEnd");function fn(t,n){Dh.set(t,n),Ba(n,[t])}var Mh=new WeakMap;function tn(t,n){if(typeof t=="object"&&t!==null){var r=Mh.get(t);return r!==void 0?r:(n={value:t,source:n,stack:Zg(n)},Mh.set(t,n),n)}return{value:t,source:n,stack:Zg(n)}}var nn=[],Ii=0,fu=0;function _l(){for(var t=Ii,n=fu=Ii=0;n<t;){var r=nn[n];nn[n++]=null;var l=nn[n];nn[n++]=null;var c=nn[n];nn[n++]=null;var d=nn[n];if(nn[n++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}d!==0&&Ph(r,c,d)}}function zl(t,n,r,l){nn[Ii++]=t,nn[Ii++]=n,nn[Ii++]=r,nn[Ii++]=l,fu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function gu(t,n,r,l){return zl(t,n,r,l),Vl(t)}function Di(t,n){return zl(t,null,null,n),Vl(t)}function Ph(t,n,r){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r);for(var c=!1,d=t.return;d!==null;)d.childLanes|=r,l=d.alternate,l!==null&&(l.childLanes|=r),d.tag===22&&(t=d.stateNode,t===null||t._visibility&1||(c=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,c&&n!==null&&(c=31-Bt(r),t=d.hiddenUpdates,l=t[c],l===null?t[c]=[n]:l.push(n),n.lane=r|536870912),d):null}function Vl(t){if(50<yo)throw yo=0,yd=null,Error(o(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Mi={};function HS(t,n,r,l){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(t,n,r,l){return new HS(t,n,r,l)}function hu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Hn(t,n){var r=t.alternate;return r===null?(r=jt(t.tag,n,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=n,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&65011712,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,n=t.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r.refCleanup=t.refCleanup,r}function Lh(t,n){t.flags&=65011714;var r=t.alternate;return r===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,t.type=r.type,n=r.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Il(t,n,r,l,c,d){var m=0;if(l=t,typeof t=="function")hu(t)&&(m=1);else if(typeof t=="string")m=UE(t,r,ue.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case W:return t=jt(31,r,n,c),t.elementType=W,t.lanes=d,t;case C:return Fa(r.children,c,d,n);case E:m=8,c|=24;break;case k:return t=jt(12,r,n,c|2),t.elementType=k,t.lanes=d,t;case N:return t=jt(13,r,n,c),t.elementType=N,t.lanes=d,t;case Y:return t=jt(19,r,n,c),t.elementType=Y,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:case A:m=10;break e;case R:m=9;break e;case M:m=11;break e;case U:m=14;break e;case j:m=16,l=null;break e}m=29,r=Error(o(130,t===null?"null":typeof t,"")),l=null}return n=jt(m,r,n,c),n.elementType=t,n.type=l,n.lanes=d,n}function Fa(t,n,r,l){return t=jt(7,t,l,n),t.lanes=r,t}function mu(t,n,r){return t=jt(6,t,null,n),t.lanes=r,t}function pu(t,n,r){return n=jt(4,t.children!==null?t.children:[],t.key,n),n.lanes=r,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Pi=[],Li=0,Dl=null,Ml=0,an=[],rn=0,Ga=null,jn=1,Un="";function Wa(t,n){Pi[Li++]=Ml,Pi[Li++]=Dl,Dl=t,Ml=n}function Bh(t,n,r){an[rn++]=jn,an[rn++]=Un,an[rn++]=Ga,Ga=t;var l=jn;t=Un;var c=32-Bt(l)-1;l&=~(1<<c),r+=1;var d=32-Bt(n)+c;if(30<d){var m=c-c%5;d=(l&(1<<m)-1).toString(32),l>>=m,c-=m,jn=1<<32-Bt(n)+c|r<<c|l,Un=d+t}else jn=1<<d|r<<c|l,Un=t}function vu(t){t.return!==null&&(Wa(t,1),Bh(t,1,0))}function bu(t){for(;t===Dl;)Dl=Pi[--Li],Pi[Li]=null,Ml=Pi[--Li],Pi[Li]=null;for(;t===Ga;)Ga=an[--rn],an[rn]=null,Un=an[--rn],an[rn]=null,jn=an[--rn],an[rn]=null}var wt=null,Ye=null,Ae=!1,$a=null,En=!1,yu=Error(o(519));function qa(t){var n=Error(o(418,""));throw Kr(tn(n,t)),yu}function Hh(t){var n=t.stateNode,r=t.type,l=t.memoizedProps;switch(n[St]=t,n[Rt]=l,r){case"dialog":we("cancel",n),we("close",n);break;case"iframe":case"object":case"embed":we("load",n);break;case"video":case"audio":for(r=0;r<So.length;r++)we(So[r],n);break;case"source":we("error",n);break;case"img":case"image":case"link":we("error",n),we("load",n);break;case"details":we("toggle",n);break;case"input":we("invalid",n),th(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),El(n);break;case"select":we("invalid",n);break;case"textarea":we("invalid",n),ah(n,l.value,l.defaultValue,l.children),El(n)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||l.suppressHydrationWarning===!0||av(n.textContent,r)?(l.popover!=null&&(we("beforetoggle",n),we("toggle",n)),l.onScroll!=null&&we("scroll",n),l.onScrollEnd!=null&&we("scrollend",n),l.onClick!=null&&(n.onclick=ps),n=!0):n=!1,n||qa(t)}function jh(t){for(wt=t.return;wt;)switch(wt.tag){case 5:case 13:En=!1;return;case 27:case 3:En=!0;return;default:wt=wt.return}}function Yr(t){if(t!==wt)return!1;if(!Ae)return jh(t),Ae=!0,!1;var n=t.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=t.type,r=!(r!=="form"&&r!=="button")||Dd(t.type,t.memoizedProps)),r=!r),r&&Ye&&qa(t),jh(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(r=t.data,r==="/$"){if(n===0){Ye=hn(t.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++;t=t.nextSibling}Ye=null}}else n===27?(n=Ye,Ca(t.type)?(t=Bd,Bd=null,Ye=t):Ye=n):Ye=wt?hn(t.stateNode.nextSibling):null;return!0}function Xr(){Ye=wt=null,Ae=!1}function Uh(){var t=$a;return t!==null&&(zt===null?zt=t:zt.push.apply(zt,t),$a=null),t}function Kr(t){$a===null?$a=[t]:$a.push(t)}var xu=q(null),Ya=null,Fn=null;function sa(t,n,r){ae(xu,n._currentValue),n._currentValue=r}function Gn(t){t._currentValue=xu.current,ie(xu)}function Su(t,n,r){for(;t!==null;){var l=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),t===r)break;t=t.return}}function Eu(t,n,r,l){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var d=c.dependencies;if(d!==null){var m=c.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=c;for(var O=0;O<n.length;O++)if(b.context===n[O]){d.lanes|=r,b=d.alternate,b!==null&&(b.lanes|=r),Su(d.return,r,t),l||(m=null);break e}d=b.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(o(341));m.lanes|=r,d=m.alternate,d!==null&&(d.lanes|=r),Su(m,r,t),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function Qr(t,n,r,l){t=null;for(var c=n,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var b=c.type;Ht(c.pendingProps.value,m.value)||(t!==null?t.push(b):t=[b])}}else if(c===kt.current){if(m=c.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(wo):t=[wo])}c=c.return}t!==null&&Eu(n,t,r,l),n.flags|=262144}function Pl(t){for(t=t.firstContext;t!==null;){if(!Ht(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Xa(t){Ya=t,Fn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Et(t){return Fh(Ya,t)}function Ll(t,n){return Ya===null&&Xa(t),Fh(t,n)}function Fh(t,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},Fn===null){if(t===null)throw Error(o(308));Fn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Fn=Fn.next=n;return r}var jS=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(r,l){t.push(l)}};this.abort=function(){n.aborted=!0,t.forEach(function(r){return r()})}},US=e.unstable_scheduleCallback,FS=e.unstable_NormalPriority,it={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new jS,data:new Map,refCount:0}}function Zr(t){t.refCount--,t.refCount===0&&US(FS,function(){t.controller.abort()})}var Jr=null,Ou=0,Bi=0,Hi=null;function GS(t,n){if(Jr===null){var r=Jr=[];Ou=0,Bi=kd(),Hi={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Ou++,n.then(Gh,Gh),n}function Gh(){if(--Ou===0&&Jr!==null){Hi!==null&&(Hi.status="fulfilled");var t=Jr;Jr=null,Bi=0,Hi=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function WS(t,n){var r=[],l={status:"pending",value:null,reason:null,then:function(c){r.push(c)}};return t.then(function(){l.status="fulfilled",l.value=n;for(var c=0;c<r.length;c++)(0,r[c])(n)},function(c){for(l.status="rejected",l.reason=c,c=0;c<r.length;c++)(0,r[c])(void 0)}),l}var Wh=D.S;D.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&GS(t,n),Wh!==null&&Wh(t,n)};var Ka=q(null);function Tu(){var t=Ka.current;return t!==null?t:Fe.pooledCache}function Bl(t,n){n===null?ae(Ka,Ka.current):ae(Ka,n.pool)}function $h(){var t=Tu();return t===null?null:{parent:it._currentValue,pool:t}}var eo=Error(o(460)),qh=Error(o(474)),Hl=Error(o(542)),ku={then:function(){}};function Yh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function jl(){}function Xh(t,n,r){switch(r=t[r],r===void 0?t.push(n):r!==n&&(n.then(jl,jl),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Qh(t),t;default:if(typeof n.status=="string")n.then(jl,jl);else{if(t=Fe,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=n,t.status="pending",t.then(function(l){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=l}},function(l){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Qh(t),t}throw to=n,eo}}var to=null;function Kh(){if(to===null)throw Error(o(459));var t=to;return to=null,t}function Qh(t){if(t===eo||t===Hl)throw Error(o(483))}var ca=!1;function wu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ru(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ua(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function da(t,n,r){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var c=l.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n,n=Vl(t),Ph(t,null,r),n}return zl(t,l,n,r),Vl(t)}function no(t,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var l=n.lanes;l&=t.pendingLanes,r|=l,n.lanes=r,Gg(t,r)}}function Nu(t,n){var r=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var m={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?c=d=m:d=d.next=m,r=r.next}while(r!==null);d===null?c=d=n:d=d.next=n}else c=d=n;r={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=n:t.next=n,r.lastBaseUpdate=n}var Au=!1;function ao(){if(Au){var t=Hi;if(t!==null)throw t}}function io(t,n,r,l){Au=!1;var c=t.updateQueue;ca=!1;var d=c.firstBaseUpdate,m=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var O=b,I=O.next;O.next=null,m===null?d=I:m.next=I,m=O;var F=t.alternate;F!==null&&(F=F.updateQueue,b=F.lastBaseUpdate,b!==m&&(b===null?F.firstBaseUpdate=I:b.next=I,F.lastBaseUpdate=O))}if(d!==null){var X=c.baseState;m=0,F=I=O=null,b=d;do{var L=b.lane&-536870913,B=L!==b.lane;if(B?(Re&L)===L:(l&L)===L){L!==0&&L===Bi&&(Au=!0),F!==null&&(F=F.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ve=t,fe=b;L=n;var Be=r;switch(fe.tag){case 1:if(ve=fe.payload,typeof ve=="function"){X=ve.call(Be,X,L);break e}X=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=fe.payload,L=typeof ve=="function"?ve.call(Be,X,L):ve,L==null)break e;X=v({},X,L);break e;case 2:ca=!0}}L=b.callback,L!==null&&(t.flags|=64,B&&(t.flags|=8192),B=c.callbacks,B===null?c.callbacks=[L]:B.push(L))}else B={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},F===null?(I=F=B,O=X):F=F.next=B,m|=L;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;B=b,b=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);F===null&&(O=X),c.baseState=O,c.firstBaseUpdate=I,c.lastBaseUpdate=F,d===null&&(c.shared.lanes=0),ya|=m,t.lanes=m,t.memoizedState=X}}function Zh(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function Jh(t,n){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)Zh(r[t],n)}var ji=q(null),Ul=q(0);function em(t,n){t=Qn,ae(Ul,t),ae(ji,n),Qn=t|n.baseLanes}function _u(){ae(Ul,Qn),ae(ji,ji.current)}function zu(){Qn=Ul.current,ie(ji),ie(Ul)}var fa=0,Ce=null,Pe=null,Je=null,Fl=!1,Ui=!1,Qa=!1,Gl=0,ro=0,Fi=null,$S=0;function Qe(){throw Error(o(321))}function Vu(t,n){if(n===null)return!1;for(var r=0;r<n.length&&r<t.length;r++)if(!Ht(t[r],n[r]))return!1;return!0}function Iu(t,n,r,l,c,d){return fa=d,Ce=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=t===null||t.memoizedState===null?Pm:Lm,Qa=!1,d=r(l,c),Qa=!1,Ui&&(d=nm(n,r,l,c)),tm(t),d}function tm(t){D.H=Kl;var n=Pe!==null&&Pe.next!==null;if(fa=0,Je=Pe=Ce=null,Fl=!1,ro=0,Fi=null,n)throw Error(o(300));t===null||st||(t=t.dependencies,t!==null&&Pl(t)&&(st=!0))}function nm(t,n,r,l){Ce=t;var c=0;do{if(Ui&&(Fi=null),ro=0,Ui=!1,25<=c)throw Error(o(301));if(c+=1,Je=Pe=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}D.H=JS,d=n(r,l)}while(Ui);return d}function qS(){var t=D.H,n=t.useState()[0];return n=typeof n.then=="function"?oo(n):n,t=t.useState()[0],(Pe!==null?Pe.memoizedState:null)!==t&&(Ce.flags|=1024),n}function Du(){var t=Gl!==0;return Gl=0,t}function Mu(t,n,r){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~r}function Pu(t){if(Fl){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Fl=!1}fa=0,Je=Pe=Ce=null,Ui=!1,ro=Gl=0,Fi=null}function At(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ce.memoizedState=Je=t:Je=Je.next=t,Je}function et(){if(Pe===null){var t=Ce.alternate;t=t!==null?t.memoizedState:null}else t=Pe.next;var n=Je===null?Ce.memoizedState:Je.next;if(n!==null)Je=n,Pe=t;else{if(t===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));Pe=t,t={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Je===null?Ce.memoizedState=Je=t:Je=Je.next=t}return Je}function Lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oo(t){var n=ro;return ro+=1,Fi===null&&(Fi=[]),t=Xh(Fi,t,n),n=Ce,(Je===null?n.memoizedState:Je.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?Pm:Lm),t}function Wl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return oo(t);if(t.$$typeof===A)return Et(t)}throw Error(o(438,String(t)))}function Bu(t){var n=null,r=Ce.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Lu(),Ce.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(t),l=0;l<t;l++)r[l]=Q;return n.index++,r}function Wn(t,n){return typeof n=="function"?n(t):n}function $l(t){var n=et();return Hu(n,Pe,t)}function Hu(t,n,r){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=r;var c=t.baseQueue,d=l.pending;if(d!==null){if(c!==null){var m=c.next;c.next=d.next,d.next=m}n.baseQueue=c=d,l.pending=null}if(d=t.baseState,c===null)t.memoizedState=d;else{n=c.next;var b=m=null,O=null,I=n,F=!1;do{var X=I.lane&-536870913;if(X!==I.lane?(Re&X)===X:(fa&X)===X){var L=I.revertLane;if(L===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),X===Bi&&(F=!0);else if((fa&L)===L){I=I.next,L===Bi&&(F=!0);continue}else X={lane:0,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(b=O=X,m=d):O=O.next=X,Ce.lanes|=L,ya|=L;X=I.action,Qa&&r(d,X),d=I.hasEagerState?I.eagerState:r(d,X)}else L={lane:X,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(b=O=L,m=d):O=O.next=L,Ce.lanes|=X,ya|=X;I=I.next}while(I!==null&&I!==n);if(O===null?m=d:O.next=b,!Ht(d,t.memoizedState)&&(st=!0,F&&(r=Hi,r!==null)))throw r;t.memoizedState=d,t.baseState=m,t.baseQueue=O,l.lastRenderedState=d}return c===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function ju(t){var n=et(),r=n.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=t;var l=r.dispatch,c=r.pending,d=n.memoizedState;if(c!==null){r.pending=null;var m=c=c.next;do d=t(d,m.action),m=m.next;while(m!==c);Ht(d,n.memoizedState)||(st=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),r.lastRenderedState=d}return[d,l]}function am(t,n,r){var l=Ce,c=et(),d=Ae;if(d){if(r===void 0)throw Error(o(407));r=r()}else r=n();var m=!Ht((Pe||c).memoizedState,r);m&&(c.memoizedState=r,st=!0),c=c.queue;var b=om.bind(null,l,c,t);if(lo(2048,8,b,[t]),c.getSnapshot!==n||m||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,Gi(9,ql(),rm.bind(null,l,c,r,n),null),Fe===null)throw Error(o(349));d||(fa&124)!==0||im(l,n,r)}return r}function im(t,n,r){t.flags|=16384,t={getSnapshot:n,value:r},n=Ce.updateQueue,n===null?(n=Lu(),Ce.updateQueue=n,n.stores=[t]):(r=n.stores,r===null?n.stores=[t]:r.push(t))}function rm(t,n,r,l){n.value=r,n.getSnapshot=l,lm(n)&&sm(t)}function om(t,n,r){return r(function(){lm(n)&&sm(t)})}function lm(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!Ht(t,r)}catch{return!0}}function sm(t){var n=Di(t,2);n!==null&&$t(n,t,2)}function Uu(t){var n=At();if(typeof t=="function"){var r=t;if(t=r(),Qa){ra(!0);try{r()}finally{ra(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:t},n}function cm(t,n,r,l){return t.baseState=r,Hu(t,Pe,typeof l=="function"?l:Wn)}function YS(t,n,r,l,c){if(Xl(t))throw Error(o(485));if(t=n.action,t!==null){var d={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){d.listeners.push(m)}};D.T!==null?r(!0):d.isTransition=!1,l(d),r=n.pending,r===null?(d.next=n.pending=d,um(n,d)):(d.next=r.next,n.pending=r.next=d)}}function um(t,n){var r=n.action,l=n.payload,c=t.state;if(n.isTransition){var d=D.T,m={};D.T=m;try{var b=r(c,l),O=D.S;O!==null&&O(m,b),dm(t,n,b)}catch(I){Fu(t,n,I)}finally{D.T=d}}else try{d=r(c,l),dm(t,n,d)}catch(I){Fu(t,n,I)}}function dm(t,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){fm(t,n,l)},function(l){return Fu(t,n,l)}):fm(t,n,r)}function fm(t,n,r){n.status="fulfilled",n.value=r,gm(n),t.state=r,n=t.pending,n!==null&&(r=n.next,r===n?t.pending=null:(r=r.next,n.next=r,um(t,r)))}function Fu(t,n,r){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=r,gm(n),n=n.next;while(n!==l)}t.action=null}function gm(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function hm(t,n){return n}function mm(t,n){if(Ae){var r=Fe.formState;if(r!==null){e:{var l=Ce;if(Ae){if(Ye){t:{for(var c=Ye,d=En;c.nodeType!==8;){if(!d){c=null;break t}if(c=hn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Ye=hn(c.nextSibling),l=c.data==="F!";break e}}qa(l)}l=!1}l&&(n=r[0])}}return r=At(),r.memoizedState=r.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hm,lastRenderedState:n},r.queue=l,r=Im.bind(null,Ce,l),l.dispatch=r,l=Uu(!1),d=Yu.bind(null,Ce,!1,l.queue),l=At(),c={state:n,dispatch:null,action:t,pending:null},l.queue=c,r=YS.bind(null,Ce,c,d,r),c.dispatch=r,l.memoizedState=t,[n,r,!1]}function pm(t){var n=et();return vm(n,Pe,t)}function vm(t,n,r){if(n=Hu(t,n,hm)[0],t=$l(Wn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=oo(n)}catch(m){throw m===eo?Hl:m}else l=n;n=et();var c=n.queue,d=c.dispatch;return r!==n.memoizedState&&(Ce.flags|=2048,Gi(9,ql(),XS.bind(null,c,r),null)),[l,d,t]}function XS(t,n){t.action=n}function bm(t){var n=et(),r=Pe;if(r!==null)return vm(n,r,t);et(),n=n.memoizedState,r=et();var l=r.queue.dispatch;return r.memoizedState=t,[n,l,!1]}function Gi(t,n,r,l){return t={tag:t,create:r,deps:l,inst:n,next:null},n=Ce.updateQueue,n===null&&(n=Lu(),Ce.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=t.next=t:(l=r.next,r.next=t,t.next=l,n.lastEffect=t),t}function ql(){return{destroy:void 0,resource:void 0}}function ym(){return et().memoizedState}function Yl(t,n,r,l){var c=At();l=l===void 0?null:l,Ce.flags|=t,c.memoizedState=Gi(1|n,ql(),r,l)}function lo(t,n,r,l){var c=et();l=l===void 0?null:l;var d=c.memoizedState.inst;Pe!==null&&l!==null&&Vu(l,Pe.memoizedState.deps)?c.memoizedState=Gi(n,d,r,l):(Ce.flags|=t,c.memoizedState=Gi(1|n,d,r,l))}function xm(t,n){Yl(8390656,8,t,n)}function Sm(t,n){lo(2048,8,t,n)}function Em(t,n){return lo(4,2,t,n)}function Cm(t,n){return lo(4,4,t,n)}function Om(t,n){if(typeof n=="function"){t=t();var r=n(t);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Tm(t,n,r){r=r!=null?r.concat([t]):null,lo(4,4,Om.bind(null,n,t),r)}function Gu(){}function km(t,n){var r=et();n=n===void 0?null:n;var l=r.memoizedState;return n!==null&&Vu(n,l[1])?l[0]:(r.memoizedState=[t,n],t)}function wm(t,n){var r=et();n=n===void 0?null:n;var l=r.memoizedState;if(n!==null&&Vu(n,l[1]))return l[0];if(l=t(),Qa){ra(!0);try{t()}finally{ra(!1)}}return r.memoizedState=[l,n],l}function Wu(t,n,r){return r===void 0||(fa&1073741824)!==0?t.memoizedState=n:(t.memoizedState=r,t=Ap(),Ce.lanes|=t,ya|=t,r)}function Rm(t,n,r,l){return Ht(r,n)?r:ji.current!==null?(t=Wu(t,r,l),Ht(t,n)||(st=!0),t):(fa&42)===0?(st=!0,t.memoizedState=r):(t=Ap(),Ce.lanes|=t,ya|=t,n)}function Nm(t,n,r,l,c){var d=J.p;J.p=d!==0&&8>d?d:8;var m=D.T,b={};D.T=b,Yu(t,!1,n,r);try{var O=c(),I=D.S;if(I!==null&&I(b,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var F=WS(O,l);so(t,n,F,Wt(t))}else so(t,n,l,Wt(t))}catch(X){so(t,n,{then:function(){},status:"rejected",reason:X},Wt())}finally{J.p=d,D.T=m}}function KS(){}function $u(t,n,r,l){if(t.tag!==5)throw Error(o(476));var c=Am(t).queue;Nm(t,c,n,se,r===null?KS:function(){return _m(t),r(l)})}function Am(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:se},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:r},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function _m(t){var n=Am(t).next.queue;so(t,n,{},Wt())}function qu(){return Et(wo)}function zm(){return et().memoizedState}function Vm(){return et().memoizedState}function QS(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var r=Wt();t=ua(r);var l=da(n,t,r);l!==null&&($t(l,n,r),no(l,n,r)),n={cache:Cu()},t.payload=n;return}n=n.return}}function ZS(t,n,r){var l=Wt();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Xl(t)?Dm(n,r):(r=gu(t,n,r,l),r!==null&&($t(r,t,l),Mm(r,n,l)))}function Im(t,n,r){var l=Wt();so(t,n,r,l)}function so(t,n,r,l){var c={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Xl(t))Dm(n,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var m=n.lastRenderedState,b=d(m,r);if(c.hasEagerState=!0,c.eagerState=b,Ht(b,m))return zl(t,n,c,0),Fe===null&&_l(),!1}catch{}finally{}if(r=gu(t,n,c,l),r!==null)return $t(r,t,l),Mm(r,n,l),!0}return!1}function Yu(t,n,r,l){if(l={lane:2,revertLane:kd(),action:l,hasEagerState:!1,eagerState:null,next:null},Xl(t)){if(n)throw Error(o(479))}else n=gu(t,r,l,2),n!==null&&$t(n,t,2)}function Xl(t){var n=t.alternate;return t===Ce||n!==null&&n===Ce}function Dm(t,n){Ui=Fl=!0;var r=t.pending;r===null?n.next=n:(n.next=r.next,r.next=n),t.pending=n}function Mm(t,n,r){if((r&4194048)!==0){var l=n.lanes;l&=t.pendingLanes,r|=l,n.lanes=r,Gg(t,r)}}var Kl={readContext:Et,use:Wl,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe},Pm={readContext:Et,use:Wl,useCallback:function(t,n){return At().memoizedState=[t,n===void 0?null:n],t},useContext:Et,useEffect:xm,useImperativeHandle:function(t,n,r){r=r!=null?r.concat([t]):null,Yl(4194308,4,Om.bind(null,n,t),r)},useLayoutEffect:function(t,n){return Yl(4194308,4,t,n)},useInsertionEffect:function(t,n){Yl(4,2,t,n)},useMemo:function(t,n){var r=At();n=n===void 0?null:n;var l=t();if(Qa){ra(!0);try{t()}finally{ra(!1)}}return r.memoizedState=[l,n],l},useReducer:function(t,n,r){var l=At();if(r!==void 0){var c=r(n);if(Qa){ra(!0);try{r(n)}finally{ra(!1)}}}else c=n;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=ZS.bind(null,Ce,t),[l.memoizedState,t]},useRef:function(t){var n=At();return t={current:t},n.memoizedState=t},useState:function(t){t=Uu(t);var n=t.queue,r=Im.bind(null,Ce,n);return n.dispatch=r,[t.memoizedState,r]},useDebugValue:Gu,useDeferredValue:function(t,n){var r=At();return Wu(r,t,n)},useTransition:function(){var t=Uu(!1);return t=Nm.bind(null,Ce,t.queue,!0,!1),At().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,r){var l=Ce,c=At();if(Ae){if(r===void 0)throw Error(o(407));r=r()}else{if(r=n(),Fe===null)throw Error(o(349));(Re&124)!==0||im(l,n,r)}c.memoizedState=r;var d={value:r,getSnapshot:n};return c.queue=d,xm(om.bind(null,l,d,t),[t]),l.flags|=2048,Gi(9,ql(),rm.bind(null,l,d,r,n),null),r},useId:function(){var t=At(),n=Fe.identifierPrefix;if(Ae){var r=Un,l=jn;r=(l&~(1<<32-Bt(l)-1)).toString(32)+r,n="«"+n+"R"+r,r=Gl++,0<r&&(n+="H"+r.toString(32)),n+="»"}else r=$S++,n="«"+n+"r"+r.toString(32)+"»";return t.memoizedState=n},useHostTransitionStatus:qu,useFormState:mm,useActionState:mm,useOptimistic:function(t){var n=At();n.memoizedState=n.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Yu.bind(null,Ce,!0,r),r.dispatch=n,[t,n]},useMemoCache:Bu,useCacheRefresh:function(){return At().memoizedState=QS.bind(null,Ce)}},Lm={readContext:Et,use:Wl,useCallback:km,useContext:Et,useEffect:Sm,useImperativeHandle:Tm,useInsertionEffect:Em,useLayoutEffect:Cm,useMemo:wm,useReducer:$l,useRef:ym,useState:function(){return $l(Wn)},useDebugValue:Gu,useDeferredValue:function(t,n){var r=et();return Rm(r,Pe.memoizedState,t,n)},useTransition:function(){var t=$l(Wn)[0],n=et().memoizedState;return[typeof t=="boolean"?t:oo(t),n]},useSyncExternalStore:am,useId:zm,useHostTransitionStatus:qu,useFormState:pm,useActionState:pm,useOptimistic:function(t,n){var r=et();return cm(r,Pe,t,n)},useMemoCache:Bu,useCacheRefresh:Vm},JS={readContext:Et,use:Wl,useCallback:km,useContext:Et,useEffect:Sm,useImperativeHandle:Tm,useInsertionEffect:Em,useLayoutEffect:Cm,useMemo:wm,useReducer:ju,useRef:ym,useState:function(){return ju(Wn)},useDebugValue:Gu,useDeferredValue:function(t,n){var r=et();return Pe===null?Wu(r,t,n):Rm(r,Pe.memoizedState,t,n)},useTransition:function(){var t=ju(Wn)[0],n=et().memoizedState;return[typeof t=="boolean"?t:oo(t),n]},useSyncExternalStore:am,useId:zm,useHostTransitionStatus:qu,useFormState:bm,useActionState:bm,useOptimistic:function(t,n){var r=et();return Pe!==null?cm(r,Pe,t,n):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:Bu,useCacheRefresh:Vm},Wi=null,co=0;function Ql(t){var n=co;return co+=1,Wi===null&&(Wi=[]),Xh(Wi,t,n)}function uo(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Zl(t,n){throw n.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Bm(t){var n=t._init;return n(t._payload)}function Hm(t){function n(z,w){if(t){var V=z.deletions;V===null?(z.deletions=[w],z.flags|=16):V.push(w)}}function r(z,w){if(!t)return null;for(;w!==null;)n(z,w),w=w.sibling;return null}function l(z){for(var w=new Map;z!==null;)z.key!==null?w.set(z.key,z):w.set(z.index,z),z=z.sibling;return w}function c(z,w){return z=Hn(z,w),z.index=0,z.sibling=null,z}function d(z,w,V){return z.index=V,t?(V=z.alternate,V!==null?(V=V.index,V<w?(z.flags|=67108866,w):V):(z.flags|=67108866,w)):(z.flags|=1048576,w)}function m(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function b(z,w,V,$){return w===null||w.tag!==6?(w=mu(V,z.mode,$),w.return=z,w):(w=c(w,V),w.return=z,w)}function O(z,w,V,$){var ce=V.type;return ce===C?F(z,w,V.props.children,$,V.key):w!==null&&(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===j&&Bm(ce)===w.type)?(w=c(w,V.props),uo(w,V),w.return=z,w):(w=Il(V.type,V.key,V.props,null,z.mode,$),uo(w,V),w.return=z,w)}function I(z,w,V,$){return w===null||w.tag!==4||w.stateNode.containerInfo!==V.containerInfo||w.stateNode.implementation!==V.implementation?(w=pu(V,z.mode,$),w.return=z,w):(w=c(w,V.children||[]),w.return=z,w)}function F(z,w,V,$,ce){return w===null||w.tag!==7?(w=Fa(V,z.mode,$,ce),w.return=z,w):(w=c(w,V),w.return=z,w)}function X(z,w,V){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=mu(""+w,z.mode,V),w.return=z,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case y:return V=Il(w.type,w.key,w.props,null,z.mode,V),uo(V,w),V.return=z,V;case x:return w=pu(w,z.mode,V),w.return=z,w;case j:var $=w._init;return w=$(w._payload),X(z,w,V)}if(le(w)||P(w))return w=Fa(w,z.mode,V,null),w.return=z,w;if(typeof w.then=="function")return X(z,Ql(w),V);if(w.$$typeof===A)return X(z,Ll(z,w),V);Zl(z,w)}return null}function L(z,w,V,$){var ce=w!==null?w.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ce!==null?null:b(z,w,""+V,$);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case y:return V.key===ce?O(z,w,V,$):null;case x:return V.key===ce?I(z,w,V,$):null;case j:return ce=V._init,V=ce(V._payload),L(z,w,V,$)}if(le(V)||P(V))return ce!==null?null:F(z,w,V,$,null);if(typeof V.then=="function")return L(z,w,Ql(V),$);if(V.$$typeof===A)return L(z,w,Ll(z,V),$);Zl(z,V)}return null}function B(z,w,V,$,ce){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(V)||null,b(w,z,""+$,ce);if(typeof $=="object"&&$!==null){switch($.$$typeof){case y:return z=z.get($.key===null?V:$.key)||null,O(w,z,$,ce);case x:return z=z.get($.key===null?V:$.key)||null,I(w,z,$,ce);case j:var Te=$._init;return $=Te($._payload),B(z,w,V,$,ce)}if(le($)||P($))return z=z.get(V)||null,F(w,z,$,ce,null);if(typeof $.then=="function")return B(z,w,V,Ql($),ce);if($.$$typeof===A)return B(z,w,V,Ll(w,$),ce);Zl(w,$)}return null}function ve(z,w,V,$){for(var ce=null,Te=null,de=w,ge=w=0,ut=null;de!==null&&ge<V.length;ge++){de.index>ge?(ut=de,de=null):ut=de.sibling;var Ne=L(z,de,V[ge],$);if(Ne===null){de===null&&(de=ut);break}t&&de&&Ne.alternate===null&&n(z,de),w=d(Ne,w,ge),Te===null?ce=Ne:Te.sibling=Ne,Te=Ne,de=ut}if(ge===V.length)return r(z,de),Ae&&Wa(z,ge),ce;if(de===null){for(;ge<V.length;ge++)de=X(z,V[ge],$),de!==null&&(w=d(de,w,ge),Te===null?ce=de:Te.sibling=de,Te=de);return Ae&&Wa(z,ge),ce}for(de=l(de);ge<V.length;ge++)ut=B(de,z,ge,V[ge],$),ut!==null&&(t&&ut.alternate!==null&&de.delete(ut.key===null?ge:ut.key),w=d(ut,w,ge),Te===null?ce=ut:Te.sibling=ut,Te=ut);return t&&de.forEach(function(Ra){return n(z,Ra)}),Ae&&Wa(z,ge),ce}function fe(z,w,V,$){if(V==null)throw Error(o(151));for(var ce=null,Te=null,de=w,ge=w=0,ut=null,Ne=V.next();de!==null&&!Ne.done;ge++,Ne=V.next()){de.index>ge?(ut=de,de=null):ut=de.sibling;var Ra=L(z,de,Ne.value,$);if(Ra===null){de===null&&(de=ut);break}t&&de&&Ra.alternate===null&&n(z,de),w=d(Ra,w,ge),Te===null?ce=Ra:Te.sibling=Ra,Te=Ra,de=ut}if(Ne.done)return r(z,de),Ae&&Wa(z,ge),ce;if(de===null){for(;!Ne.done;ge++,Ne=V.next())Ne=X(z,Ne.value,$),Ne!==null&&(w=d(Ne,w,ge),Te===null?ce=Ne:Te.sibling=Ne,Te=Ne);return Ae&&Wa(z,ge),ce}for(de=l(de);!Ne.done;ge++,Ne=V.next())Ne=B(de,z,ge,Ne.value,$),Ne!==null&&(t&&Ne.alternate!==null&&de.delete(Ne.key===null?ge:Ne.key),w=d(Ne,w,ge),Te===null?ce=Ne:Te.sibling=Ne,Te=Ne);return t&&de.forEach(function(eC){return n(z,eC)}),Ae&&Wa(z,ge),ce}function Be(z,w,V,$){if(typeof V=="object"&&V!==null&&V.type===C&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case y:e:{for(var ce=V.key;w!==null;){if(w.key===ce){if(ce=V.type,ce===C){if(w.tag===7){r(z,w.sibling),$=c(w,V.props.children),$.return=z,z=$;break e}}else if(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===j&&Bm(ce)===w.type){r(z,w.sibling),$=c(w,V.props),uo($,V),$.return=z,z=$;break e}r(z,w);break}else n(z,w);w=w.sibling}V.type===C?($=Fa(V.props.children,z.mode,$,V.key),$.return=z,z=$):($=Il(V.type,V.key,V.props,null,z.mode,$),uo($,V),$.return=z,z=$)}return m(z);case x:e:{for(ce=V.key;w!==null;){if(w.key===ce)if(w.tag===4&&w.stateNode.containerInfo===V.containerInfo&&w.stateNode.implementation===V.implementation){r(z,w.sibling),$=c(w,V.children||[]),$.return=z,z=$;break e}else{r(z,w);break}else n(z,w);w=w.sibling}$=pu(V,z.mode,$),$.return=z,z=$}return m(z);case j:return ce=V._init,V=ce(V._payload),Be(z,w,V,$)}if(le(V))return ve(z,w,V,$);if(P(V)){if(ce=P(V),typeof ce!="function")throw Error(o(150));return V=ce.call(V),fe(z,w,V,$)}if(typeof V.then=="function")return Be(z,w,Ql(V),$);if(V.$$typeof===A)return Be(z,w,Ll(z,V),$);Zl(z,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,w!==null&&w.tag===6?(r(z,w.sibling),$=c(w,V),$.return=z,z=$):(r(z,w),$=mu(V,z.mode,$),$.return=z,z=$),m(z)):r(z,w)}return function(z,w,V,$){try{co=0;var ce=Be(z,w,V,$);return Wi=null,ce}catch(de){if(de===eo||de===Hl)throw de;var Te=jt(29,de,null,z.mode);return Te.lanes=$,Te.return=z,Te}finally{}}}var $i=Hm(!0),jm=Hm(!1),on=q(null),Cn=null;function ga(t){var n=t.alternate;ae(rt,rt.current&1),ae(on,t),Cn===null&&(n===null||ji.current!==null||n.memoizedState!==null)&&(Cn=t)}function Um(t){if(t.tag===22){if(ae(rt,rt.current),ae(on,t),Cn===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(Cn=t)}}else ha()}function ha(){ae(rt,rt.current),ae(on,on.current)}function $n(t){ie(on),Cn===t&&(Cn=null),ie(rt)}var rt=q(0);function Jl(t){for(var n=t;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||Ld(r)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(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 null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Xu(t,n,r,l){n=t.memoizedState,r=r(l,n),r=r==null?n:v({},n,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Ku={enqueueSetState:function(t,n,r){t=t._reactInternals;var l=Wt(),c=ua(l);c.payload=n,r!=null&&(c.callback=r),n=da(t,c,l),n!==null&&($t(n,t,l),no(n,t,l))},enqueueReplaceState:function(t,n,r){t=t._reactInternals;var l=Wt(),c=ua(l);c.tag=1,c.payload=n,r!=null&&(c.callback=r),n=da(t,c,l),n!==null&&($t(n,t,l),no(n,t,l))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var r=Wt(),l=ua(r);l.tag=2,n!=null&&(l.callback=n),n=da(t,l,r),n!==null&&($t(n,t,r),no(n,t,r))}};function Fm(t,n,r,l,c,d,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,d,m):n.prototype&&n.prototype.isPureReactComponent?!$r(r,l)||!$r(c,d):!0}function Gm(t,n,r,l){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,l),n.state!==t&&Ku.enqueueReplaceState(n,n.state,null)}function Za(t,n){var r=n;if("ref"in n){r={};for(var l in n)l!=="ref"&&(r[l]=n[l])}if(t=t.defaultProps){r===n&&(r=v({},r));for(var c in t)r[c]===void 0&&(r[c]=t[c])}return r}var es=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Wm(t){es(t)}function $m(t){console.error(t)}function qm(t){es(t)}function ts(t,n){try{var r=t.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Ym(t,n,r){try{var l=t.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Qu(t,n,r){return r=ua(r),r.tag=3,r.payload={element:null},r.callback=function(){ts(t,n)},r}function Xm(t){return t=ua(t),t.tag=3,t}function Km(t,n,r,l){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;t.payload=function(){return c(d)},t.callback=function(){Ym(n,r,l)}}var m=r.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Ym(n,r,l),typeof c!="function"&&(xa===null?xa=new Set([this]):xa.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function eE(t,n,r,l,c){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=r.alternate,n!==null&&Qr(n,r,c,!0),r=on.current,r!==null){switch(r.tag){case 13:return Cn===null?Sd():r.alternate===null&&Xe===0&&(Xe=3),r.flags&=-257,r.flags|=65536,r.lanes=c,l===ku?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([l]):n.add(l),Cd(t,l,c)),!1;case 22:return r.flags|=65536,l===ku?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([l]):r.add(l)),Cd(t,l,c)),!1}throw Error(o(435,r.tag))}return Cd(t,l,c),Sd(),!1}if(Ae)return n=on.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,l!==yu&&(t=Error(o(422),{cause:l}),Kr(tn(t,r)))):(l!==yu&&(n=Error(o(423),{cause:l}),Kr(tn(n,r))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,l=tn(l,r),c=Qu(t.stateNode,l,c),Nu(t,c),Xe!==4&&(Xe=2)),!1;var d=Error(o(520),{cause:l});if(d=tn(d,r),bo===null?bo=[d]:bo.push(d),Xe!==4&&(Xe=2),n===null)return!0;l=tn(l,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,t=c&-c,r.lanes|=t,t=Qu(r.stateNode,l,t),Nu(r,t),!1;case 1:if(n=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(xa===null||!xa.has(d))))return r.flags|=65536,c&=-c,r.lanes|=c,c=Xm(c),Km(c,t,r,l),Nu(r,c),!1}r=r.return}while(r!==null);return!1}var Qm=Error(o(461)),st=!1;function ht(t,n,r,l){n.child=t===null?jm(n,null,r,l):$i(n,t.child,r,l)}function Zm(t,n,r,l,c){r=r.render;var d=n.ref;if("ref"in l){var m={};for(var b in l)b!=="ref"&&(m[b]=l[b])}else m=l;return Xa(n),l=Iu(t,n,r,m,d,c),b=Du(),t!==null&&!st?(Mu(t,n,c),qn(t,n,c)):(Ae&&b&&vu(n),n.flags|=1,ht(t,n,l,c),n.child)}function Jm(t,n,r,l,c){if(t===null){var d=r.type;return typeof d=="function"&&!hu(d)&&d.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=d,ep(t,n,d,l,c)):(t=Il(r.type,null,l,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!rd(t,c)){var m=d.memoizedProps;if(r=r.compare,r=r!==null?r:$r,r(m,l)&&t.ref===n.ref)return qn(t,n,c)}return n.flags|=1,t=Hn(d,l),t.ref=n.ref,t.return=n,n.child=t}function ep(t,n,r,l,c){if(t!==null){var d=t.memoizedProps;if($r(d,l)&&t.ref===n.ref)if(st=!1,n.pendingProps=l=d,rd(t,c))(t.flags&131072)!==0&&(st=!0);else return n.lanes=t.lanes,qn(t,n,c)}return Zu(t,n,r,l,c)}function tp(t,n,r){var l=n.pendingProps,c=l.children,d=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=d!==null?d.baseLanes|r:r,t!==null){for(c=n.child=t.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;n.childLanes=d&~l}else n.childLanes=0,n.child=null;return np(t,n,l,r)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Bl(n,d!==null?d.cachePool:null),d!==null?em(n,d):_u(),Um(n);else return n.lanes=n.childLanes=536870912,np(t,n,d!==null?d.baseLanes|r:r,r)}else d!==null?(Bl(n,d.cachePool),em(n,d),ha(),n.memoizedState=null):(t!==null&&Bl(n,null),_u(),ha());return ht(t,n,c,r),n.child}function np(t,n,r,l){var c=Tu();return c=c===null?null:{parent:it._currentValue,pool:c},n.memoizedState={baseLanes:r,cachePool:c},t!==null&&Bl(n,null),_u(),Um(n),t!==null&&Qr(t,n,l,!0),null}function ns(t,n){var r=n.ref;if(r===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(o(284));(t===null||t.ref!==r)&&(n.flags|=4194816)}}function Zu(t,n,r,l,c){return Xa(n),r=Iu(t,n,r,l,void 0,c),l=Du(),t!==null&&!st?(Mu(t,n,c),qn(t,n,c)):(Ae&&l&&vu(n),n.flags|=1,ht(t,n,r,c),n.child)}function ap(t,n,r,l,c,d){return Xa(n),n.updateQueue=null,r=nm(n,l,r,c),tm(t),l=Du(),t!==null&&!st?(Mu(t,n,d),qn(t,n,d)):(Ae&&l&&vu(n),n.flags|=1,ht(t,n,r,d),n.child)}function ip(t,n,r,l,c){if(Xa(n),n.stateNode===null){var d=Mi,m=r.contextType;typeof m=="object"&&m!==null&&(d=Et(m)),d=new r(l,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Ku,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=l,d.state=n.memoizedState,d.refs={},wu(n),m=r.contextType,d.context=typeof m=="object"&&m!==null?Et(m):Mi,d.state=n.memoizedState,m=r.getDerivedStateFromProps,typeof m=="function"&&(Xu(n,r,m,l),d.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(m=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),m!==d.state&&Ku.enqueueReplaceState(d,d.state,null),io(n,l,d,c),ao(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(t===null){d=n.stateNode;var b=n.memoizedProps,O=Za(r,b);d.props=O;var I=d.context,F=r.contextType;m=Mi,typeof F=="object"&&F!==null&&(m=Et(F));var X=r.getDerivedStateFromProps;F=typeof X=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,F||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||I!==m)&&Gm(n,d,l,m),ca=!1;var L=n.memoizedState;d.state=L,io(n,l,d,c),ao(),I=n.memoizedState,b||L!==I||ca?(typeof X=="function"&&(Xu(n,r,X,l),I=n.memoizedState),(O=ca||Fm(n,r,O,l,L,I,m))?(F||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),d.props=l,d.state=I,d.context=m,l=O):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{d=n.stateNode,Ru(t,n),m=n.memoizedProps,F=Za(r,m),d.props=F,X=n.pendingProps,L=d.context,I=r.contextType,O=Mi,typeof I=="object"&&I!==null&&(O=Et(I)),b=r.getDerivedStateFromProps,(I=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(m!==X||L!==O)&&Gm(n,d,l,O),ca=!1,L=n.memoizedState,d.state=L,io(n,l,d,c),ao();var B=n.memoizedState;m!==X||L!==B||ca||t!==null&&t.dependencies!==null&&Pl(t.dependencies)?(typeof b=="function"&&(Xu(n,r,b,l),B=n.memoizedState),(F=ca||Fm(n,r,F,l,L,B,O)||t!==null&&t.dependencies!==null&&Pl(t.dependencies))?(I||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,B,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,B,O)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||m===t.memoizedProps&&L===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&L===t.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=B),d.props=l,d.state=B,d.context=O,l=F):(typeof d.componentDidUpdate!="function"||m===t.memoizedProps&&L===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&L===t.memoizedState||(n.flags|=1024),l=!1)}return d=l,ns(t,n),l=(n.flags&128)!==0,d||l?(d=n.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,t!==null&&l?(n.child=$i(n,t.child,null,c),n.child=$i(n,null,r,c)):ht(t,n,r,c),n.memoizedState=d.state,t=n.child):t=qn(t,n,c),t}function rp(t,n,r,l){return Xr(),n.flags|=256,ht(t,n,r,l),n.child}var Ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ed(t){return{baseLanes:t,cachePool:$h()}}function td(t,n,r){return t=t!==null?t.childLanes&~r:0,n&&(t|=ln),t}function op(t,n,r){var l=n.pendingProps,c=!1,d=(n.flags&128)!==0,m;if((m=d)||(m=t!==null&&t.memoizedState===null?!1:(rt.current&2)!==0),m&&(c=!0,n.flags&=-129),m=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ae){if(c?ga(n):ha(),Ae){var b=Ye,O;if(O=b){e:{for(O=b,b=En;O.nodeType!==8;){if(!b){b=null;break e}if(O=hn(O.nextSibling),O===null){b=null;break e}}b=O}b!==null?(n.memoizedState={dehydrated:b,treeContext:Ga!==null?{id:jn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},O=jt(18,null,null,0),O.stateNode=b,O.return=n,n.child=O,wt=n,Ye=null,O=!0):O=!1}O||qa(n)}if(b=n.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Ld(b)?n.lanes=32:n.lanes=536870912,null;$n(n)}return b=l.children,l=l.fallback,c?(ha(),c=n.mode,b=as({mode:"hidden",children:b},c),l=Fa(l,c,r,null),b.return=n,l.return=n,b.sibling=l,n.child=b,c=n.child,c.memoizedState=ed(r),c.childLanes=td(t,m,r),n.memoizedState=Ju,l):(ga(n),nd(n,b))}if(O=t.memoizedState,O!==null&&(b=O.dehydrated,b!==null)){if(d)n.flags&256?(ga(n),n.flags&=-257,n=ad(t,n,r)):n.memoizedState!==null?(ha(),n.child=t.child,n.flags|=128,n=null):(ha(),c=l.fallback,b=n.mode,l=as({mode:"visible",children:l.children},b),c=Fa(c,b,r,null),c.flags|=2,l.return=n,c.return=n,l.sibling=c,n.child=l,$i(n,t.child,null,r),l=n.child,l.memoizedState=ed(r),l.childLanes=td(t,m,r),n.memoizedState=Ju,n=c);else if(ga(n),Ld(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var I=m.dgst;m=I,l=Error(o(419)),l.stack="",l.digest=m,Kr({value:l,source:null,stack:null}),n=ad(t,n,r)}else if(st||Qr(t,n,r,!1),m=(r&t.childLanes)!==0,st||m){if(m=Fe,m!==null&&(l=r&-r,l=(l&42)!==0?1:Bc(l),l=(l&(m.suspendedLanes|r))!==0?0:l,l!==0&&l!==O.retryLane))throw O.retryLane=l,Di(t,l),$t(m,t,l),Qm;b.data==="$?"||Sd(),n=ad(t,n,r)}else b.data==="$?"?(n.flags|=192,n.child=t.child,n=null):(t=O.treeContext,Ye=hn(b.nextSibling),wt=n,Ae=!0,$a=null,En=!1,t!==null&&(an[rn++]=jn,an[rn++]=Un,an[rn++]=Ga,jn=t.id,Un=t.overflow,Ga=n),n=nd(n,l.children),n.flags|=4096);return n}return c?(ha(),c=l.fallback,b=n.mode,O=t.child,I=O.sibling,l=Hn(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,I!==null?c=Hn(I,c):(c=Fa(c,b,r,null),c.flags|=2),c.return=n,l.return=n,l.sibling=c,n.child=l,l=c,c=n.child,b=t.child.memoizedState,b===null?b=ed(r):(O=b.cachePool,O!==null?(I=it._currentValue,O=O.parent!==I?{parent:I,pool:I}:O):O=$h(),b={baseLanes:b.baseLanes|r,cachePool:O}),c.memoizedState=b,c.childLanes=td(t,m,r),n.memoizedState=Ju,l):(ga(n),r=t.child,t=r.sibling,r=Hn(r,{mode:"visible",children:l.children}),r.return=n,r.sibling=null,t!==null&&(m=n.deletions,m===null?(n.deletions=[t],n.flags|=16):m.push(t)),n.child=r,n.memoizedState=null,r)}function nd(t,n){return n=as({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function as(t,n){return t=jt(22,t,null,n),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function ad(t,n,r){return $i(n,t.child,null,r),t=nd(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function lp(t,n,r){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n),Su(t.return,n,r)}function id(t,n,r,l,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=r,d.tailMode=c)}function sp(t,n,r){var l=n.pendingProps,c=l.revealOrder,d=l.tail;if(ht(t,n,l.children,r),l=rt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lp(t,r,n);else if(t.tag===19)lp(t,r,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(ae(rt,l),c){case"forwards":for(r=n.child,c=null;r!==null;)t=r.alternate,t!==null&&Jl(t)===null&&(c=r),r=r.sibling;r=c,r===null?(c=n.child,n.child=null):(c=r.sibling,r.sibling=null),id(n,!1,c,r,d);break;case"backwards":for(r=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&Jl(t)===null){n.child=c;break}t=c.sibling,c.sibling=r,r=c,c=t}id(n,!0,r,null,d);break;case"together":id(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function qn(t,n,r){if(t!==null&&(n.dependencies=t.dependencies),ya|=n.lanes,(r&n.childLanes)===0)if(t!==null){if(Qr(t,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(o(153));if(n.child!==null){for(t=n.child,r=Hn(t,t.pendingProps),n.child=r,r.return=n;t.sibling!==null;)t=t.sibling,r=r.sibling=Hn(t,t.pendingProps),r.return=n;r.sibling=null}return n.child}function rd(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Pl(t)))}function tE(t,n,r){switch(n.tag){case 3:Z(n,n.stateNode.containerInfo),sa(n,it,t.memoizedState.cache),Xr();break;case 27:case 5:Oe(n);break;case 4:Z(n,n.stateNode.containerInfo);break;case 10:sa(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(ga(n),n.flags|=128,null):(r&n.child.childLanes)!==0?op(t,n,r):(ga(n),t=qn(t,n,r),t!==null?t.sibling:null);ga(n);break;case 19:var c=(t.flags&128)!==0;if(l=(r&n.childLanes)!==0,l||(Qr(t,n,r,!1),l=(r&n.childLanes)!==0),c){if(l)return sp(t,n,r);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ae(rt,rt.current),l)break;return null;case 22:case 23:return n.lanes=0,tp(t,n,r);case 24:sa(n,it,t.memoizedState.cache)}return qn(t,n,r)}function cp(t,n,r){if(t!==null)if(t.memoizedProps!==n.pendingProps)st=!0;else{if(!rd(t,r)&&(n.flags&128)===0)return st=!1,tE(t,n,r);st=(t.flags&131072)!==0}else st=!1,Ae&&(n.flags&1048576)!==0&&Bh(n,Ml,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var l=n.elementType,c=l._init;if(l=c(l._payload),n.type=l,typeof l=="function")hu(l)?(t=Za(l,t),n.tag=1,n=ip(null,n,l,t,r)):(n.tag=0,n=Zu(null,n,l,t,r));else{if(l!=null){if(c=l.$$typeof,c===M){n.tag=11,n=Zm(null,n,l,t,r);break e}else if(c===U){n.tag=14,n=Jm(null,n,l,t,r);break e}}throw n=re(l)||l,Error(o(306,n,""))}}return n;case 0:return Zu(t,n,n.type,n.pendingProps,r);case 1:return l=n.type,c=Za(l,n.pendingProps),ip(t,n,l,c,r);case 3:e:{if(Z(n,n.stateNode.containerInfo),t===null)throw Error(o(387));l=n.pendingProps;var d=n.memoizedState;c=d.element,Ru(t,n),io(n,l,null,r);var m=n.memoizedState;if(l=m.cache,sa(n,it,l),l!==d.cache&&Eu(n,[it],r,!0),ao(),l=m.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:m.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=rp(t,n,l,r);break e}else if(l!==c){c=tn(Error(o(424)),n),Kr(c),n=rp(t,n,l,r);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ye=hn(t.firstChild),wt=n,Ae=!0,$a=null,En=!0,r=jm(n,null,l,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Xr(),l===c){n=qn(t,n,r);break e}ht(t,n,l,r)}n=n.child}return n;case 26:return ns(t,n),t===null?(r=gv(n.type,null,n.pendingProps,null))?n.memoizedState=r:Ae||(r=n.type,t=n.pendingProps,l=vs(pe.current).createElement(r),l[St]=n,l[Rt]=t,pt(l,r,t),lt(l),n.stateNode=l):n.memoizedState=gv(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Oe(n),t===null&&Ae&&(l=n.stateNode=uv(n.type,n.pendingProps,pe.current),wt=n,En=!0,c=Ye,Ca(n.type)?(Bd=c,Ye=hn(l.firstChild)):Ye=c),ht(t,n,n.pendingProps.children,r),ns(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ae&&((c=l=Ye)&&(l=NE(l,n.type,n.pendingProps,En),l!==null?(n.stateNode=l,wt=n,Ye=hn(l.firstChild),En=!1,c=!0):c=!1),c||qa(n)),Oe(n),c=n.type,d=n.pendingProps,m=t!==null?t.memoizedProps:null,l=d.children,Dd(c,d)?l=null:m!==null&&Dd(c,m)&&(n.flags|=32),n.memoizedState!==null&&(c=Iu(t,n,qS,null,null,r),wo._currentValue=c),ns(t,n),ht(t,n,l,r),n.child;case 6:return t===null&&Ae&&((t=r=Ye)&&(r=AE(r,n.pendingProps,En),r!==null?(n.stateNode=r,wt=n,Ye=null,t=!0):t=!1),t||qa(n)),null;case 13:return op(t,n,r);case 4:return Z(n,n.stateNode.containerInfo),l=n.pendingProps,t===null?n.child=$i(n,null,l,r):ht(t,n,l,r),n.child;case 11:return Zm(t,n,n.type,n.pendingProps,r);case 7:return ht(t,n,n.pendingProps,r),n.child;case 8:return ht(t,n,n.pendingProps.children,r),n.child;case 12:return ht(t,n,n.pendingProps.children,r),n.child;case 10:return l=n.pendingProps,sa(n,n.type,l.value),ht(t,n,l.children,r),n.child;case 9:return c=n.type._context,l=n.pendingProps.children,Xa(n),c=Et(c),l=l(c),n.flags|=1,ht(t,n,l,r),n.child;case 14:return Jm(t,n,n.type,n.pendingProps,r);case 15:return ep(t,n,n.type,n.pendingProps,r);case 19:return sp(t,n,r);case 31:return l=n.pendingProps,r=n.mode,l={mode:l.mode,children:l.children},t===null?(r=as(l,r),r.ref=n.ref,n.child=r,r.return=n,n=r):(r=Hn(t.child,l),r.ref=n.ref,n.child=r,r.return=n,n=r),n;case 22:return tp(t,n,r);case 24:return Xa(n),l=Et(it),t===null?(c=Tu(),c===null&&(c=Fe,d=Cu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=r),c=d),n.memoizedState={parent:l,cache:c},wu(n),sa(n,it,c)):((t.lanes&r)!==0&&(Ru(t,n),io(n,null,null,r),ao()),c=t.memoizedState,d=n.memoizedState,c.parent!==l?(c={parent:l,cache:l},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),sa(n,it,l)):(l=d.cache,sa(n,it,l),l!==c.cache&&Eu(n,[it],r,!0))),ht(t,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function Yn(t){t.flags|=4}function up(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!bv(n)){if(n=on.current,n!==null&&((Re&4194048)===Re?Cn!==null:(Re&62914560)!==Re&&(Re&536870912)===0||n!==Cn))throw to=ku,qh;t.flags|=8192}}function is(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Ug():536870912,t.lanes|=n,Ki|=n)}function fo(t,n){if(!Ae)switch(t.tailMode){case"hidden":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function qe(t){var n=t.alternate!==null&&t.alternate.child===t.child,r=0,l=0;if(n)for(var c=t.child;c!==null;)r|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)r|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=r,n}function nE(t,n,r){var l=n.pendingProps;switch(bu(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(n),null;case 1:return qe(n),null;case 3:return r=n.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Gn(it),te(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Yr(n)?Yn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uh())),qe(n),null;case 26:return r=n.memoizedState,t===null?(Yn(n),r!==null?(qe(n),up(n,r)):(qe(n),n.flags&=-16777217)):r?r!==t.memoizedState?(Yn(n),qe(n),up(n,r)):(qe(n),n.flags&=-16777217):(t.memoizedProps!==l&&Yn(n),qe(n),n.flags&=-16777217),null;case 27:Ve(n),r=pe.current;var c=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==l&&Yn(n);else{if(!l){if(n.stateNode===null)throw Error(o(166));return qe(n),null}t=ue.current,Yr(n)?Hh(n):(t=uv(c,l,r),n.stateNode=t,Yn(n))}return qe(n),null;case 5:if(Ve(n),r=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==l&&Yn(n);else{if(!l){if(n.stateNode===null)throw Error(o(166));return qe(n),null}if(t=ue.current,Yr(n))Hh(n);else{switch(c=vs(pe.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?c.createElement(r,{is:l.is}):c.createElement(r)}}t[St]=n,t[Rt]=l;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=t;e:switch(pt(t,r,l),r){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Yn(n)}}return qe(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==l&&Yn(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(t=pe.current,Yr(n)){if(t=n.stateNode,r=n.memoizedProps,l=null,c=wt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[St]=n,t=!!(t.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||av(t.nodeValue,r)),t||qa(n)}else t=vs(t).createTextNode(l),t[St]=n,n.stateNode=t}return qe(n),null;case 13:if(l=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Yr(n),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(o(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[St]=n}else Xr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;qe(n),c=!1}else c=Uh(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?($n(n),n):($n(n),null)}if($n(n),(n.flags&128)!==0)return n.lanes=r,n;if(r=l!==null,t=t!==null&&t.memoizedState!==null,r){l=n.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)}return r!==t&&r&&(n.child.flags|=8192),is(n,n.updateQueue),qe(n),null;case 4:return te(),t===null&&Ad(n.stateNode.containerInfo),qe(n),null;case 10:return Gn(n.type),qe(n),null;case 19:if(ie(rt),c=n.memoizedState,c===null)return qe(n),null;if(l=(n.flags&128)!==0,d=c.rendering,d===null)if(l)fo(c,!1);else{if(Xe!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(d=Jl(t),d!==null){for(n.flags|=128,fo(c,!1),t=d.updateQueue,n.updateQueue=t,is(n,t),n.subtreeFlags=0,t=r,r=n.child;r!==null;)Lh(r,t),r=r.sibling;return ae(rt,rt.current&1|2),n.child}t=t.sibling}c.tail!==null&&Zt()>ls&&(n.flags|=128,l=!0,fo(c,!1),n.lanes=4194304)}else{if(!l)if(t=Jl(d),t!==null){if(n.flags|=128,l=!0,t=t.updateQueue,n.updateQueue=t,is(n,t),fo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Ae)return qe(n),null}else 2*Zt()-c.renderingStartTime>ls&&r!==536870912&&(n.flags|=128,l=!0,fo(c,!1),n.lanes=4194304);c.isBackwards?(d.sibling=n.child,n.child=d):(t=c.last,t!==null?t.sibling=d:n.child=d,c.last=d)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Zt(),n.sibling=null,t=rt.current,ae(rt,l?t&1|2:t&1),n):(qe(n),null);case 22:case 23:return $n(n),zu(),l=n.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(r&536870912)!==0&&(n.flags&128)===0&&(qe(n),n.subtreeFlags&6&&(n.flags|=8192)):qe(n),r=n.updateQueue,r!==null&&is(n,r.retryQueue),r=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==r&&(n.flags|=2048),t!==null&&ie(Ka),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Gn(it),qe(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function aE(t,n){switch(bu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Gn(it),te(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Ve(n),null;case 13:if($n(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Xr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return ie(rt),null;case 4:return te(),null;case 10:return Gn(n.type),null;case 22:case 23:return $n(n),zu(),t!==null&&ie(Ka),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Gn(it),null;case 25:return null;default:return null}}function dp(t,n){switch(bu(n),n.tag){case 3:Gn(it),te();break;case 26:case 27:case 5:Ve(n);break;case 4:te();break;case 13:$n(n);break;case 19:ie(rt);break;case 10:Gn(n.type);break;case 22:case 23:$n(n),zu(),t!==null&&ie(Ka);break;case 24:Gn(it)}}function go(t,n){try{var r=n.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var c=l.next;r=c;do{if((r.tag&t)===t){l=void 0;var d=r.create,m=r.inst;l=d(),m.destroy=l}r=r.next}while(r!==c)}}catch(b){He(n,n.return,b)}}function ma(t,n,r){try{var l=n.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&t)===t){var m=l.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,c=n;var O=r,I=b;try{I()}catch(F){He(c,O,F)}}}l=l.next}while(l!==d)}}catch(F){He(n,n.return,F)}}function fp(t){var n=t.updateQueue;if(n!==null){var r=t.stateNode;try{Jh(n,r)}catch(l){He(t,t.return,l)}}}function gp(t,n,r){r.props=Za(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(l){He(t,n,l)}}function ho(t,n){try{var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof r=="function"?t.refCleanup=r(l):r.current=l}}catch(c){He(t,n,c)}}function On(t,n){var r=t.ref,l=t.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(c){He(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(c){He(t,n,c)}else r.current=null}function hp(t){var n=t.type,r=t.memoizedProps,l=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(c){He(t,t.return,c)}}function od(t,n,r){try{var l=t.stateNode;OE(l,t.type,r,n),l[Rt]=n}catch(c){He(t,t.return,c)}}function mp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ca(t.type)||t.tag===4}function ld(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||mp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ca(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sd(t,n,r){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(t,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(t),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=ps));else if(l!==4&&(l===27&&Ca(t.type)&&(r=t.stateNode,n=null),t=t.child,t!==null))for(sd(t,n,r),t=t.sibling;t!==null;)sd(t,n,r),t=t.sibling}function rs(t,n,r){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(l!==4&&(l===27&&Ca(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(rs(t,n,r),t=t.sibling;t!==null;)rs(t,n,r),t=t.sibling}function pp(t){var n=t.stateNode,r=t.memoizedProps;try{for(var l=t.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);pt(n,l,r),n[St]=t,n[Rt]=r}catch(d){He(t,t.return,d)}}var Xn=!1,Ze=!1,cd=!1,vp=typeof WeakSet=="function"?WeakSet:Set,ct=null;function iE(t,n){if(t=t.containerInfo,Vd=Cs,t=Rh(t),lu(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var m=0,b=-1,O=-1,I=0,F=0,X=t,L=null;t:for(;;){for(var B;X!==r||c!==0&&X.nodeType!==3||(b=m+c),X!==d||l!==0&&X.nodeType!==3||(O=m+l),X.nodeType===3&&(m+=X.nodeValue.length),(B=X.firstChild)!==null;)L=X,X=B;for(;;){if(X===t)break t;if(L===r&&++I===c&&(b=m),L===d&&++F===l&&(O=m),(B=X.nextSibling)!==null)break;X=L,L=X.parentNode}X=B}r=b===-1||O===-1?null:{start:b,end:O}}else r=null}r=r||{start:0,end:0}}else r=null;for(Id={focusedElem:t,selectionRange:r},Cs=!1,ct=n;ct!==null;)if(n=ct,t=n.child,(n.subtreeFlags&1024)!==0&&t!==null)t.return=n,ct=t;else for(;ct!==null;){switch(n=ct,d=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,r=n,c=d.memoizedProps,d=d.memoizedState,l=r.stateNode;try{var ve=Za(r.type,c,r.elementType===r.type);t=l.getSnapshotBeforeUpdate(ve,d),l.__reactInternalSnapshotBeforeUpdate=t}catch(fe){He(r,r.return,fe)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,r=t.nodeType,r===9)Pd(t);else if(r===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pd(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=n.sibling,t!==null){t.return=n.return,ct=t;break}ct=n.return}}function bp(t,n,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:pa(t,r),l&4&&go(5,r);break;case 1:if(pa(t,r),l&4)if(t=r.stateNode,n===null)try{t.componentDidMount()}catch(m){He(r,r.return,m)}else{var c=Za(r.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(m){He(r,r.return,m)}}l&64&&fp(r),l&512&&ho(r,r.return);break;case 3:if(pa(t,r),l&64&&(t=r.updateQueue,t!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{Jh(t,n)}catch(m){He(r,r.return,m)}}break;case 27:n===null&&l&4&&pp(r);case 26:case 5:pa(t,r),n===null&&l&4&&hp(r),l&512&&ho(r,r.return);break;case 12:pa(t,r);break;case 13:pa(t,r),l&4&&Sp(t,r),l&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=gE.bind(null,r),_E(t,r))));break;case 22:if(l=r.memoizedState!==null||Xn,!l){n=n!==null&&n.memoizedState!==null||Ze,c=Xn;var d=Ze;Xn=l,(Ze=n)&&!d?va(t,r,(r.subtreeFlags&8772)!==0):pa(t,r),Xn=c,Ze=d}break;case 30:break;default:pa(t,r)}}function yp(t){var n=t.alternate;n!==null&&(t.alternate=null,yp(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Uc(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var We=null,_t=!1;function Kn(t,n,r){for(r=r.child;r!==null;)xp(t,n,r),r=r.sibling}function xp(t,n,r){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Ir,r)}catch{}switch(r.tag){case 26:Ze||On(r,n),Kn(t,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Ze||On(r,n);var l=We,c=_t;Ca(r.type)&&(We=r.stateNode,_t=!1),Kn(t,n,r),Co(r.stateNode),We=l,_t=c;break;case 5:Ze||On(r,n);case 6:if(l=We,c=_t,We=null,Kn(t,n,r),We=l,_t=c,We!==null)if(_t)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(r.stateNode)}catch(d){He(r,n,d)}else try{We.removeChild(r.stateNode)}catch(d){He(r,n,d)}break;case 18:We!==null&&(_t?(t=We,sv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,r.stateNode),_o(t)):sv(We,r.stateNode));break;case 4:l=We,c=_t,We=r.stateNode.containerInfo,_t=!0,Kn(t,n,r),We=l,_t=c;break;case 0:case 11:case 14:case 15:Ze||ma(2,r,n),Ze||ma(4,r,n),Kn(t,n,r);break;case 1:Ze||(On(r,n),l=r.stateNode,typeof l.componentWillUnmount=="function"&&gp(r,n,l)),Kn(t,n,r);break;case 21:Kn(t,n,r);break;case 22:Ze=(l=Ze)||r.memoizedState!==null,Kn(t,n,r),Ze=l;break;default:Kn(t,n,r)}}function Sp(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_o(t)}catch(r){He(n,n.return,r)}}function rE(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new vp),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new vp),n;default:throw Error(o(435,t.tag))}}function ud(t,n){var r=rE(t);n.forEach(function(l){var c=hE.bind(null,t,l);r.has(l)||(r.add(l),l.then(c,c))})}function Ut(t,n){var r=n.deletions;if(r!==null)for(var l=0;l<r.length;l++){var c=r[l],d=t,m=n,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(Ca(b.type)){We=b.stateNode,_t=!1;break e}break;case 5:We=b.stateNode,_t=!1;break e;case 3:case 4:We=b.stateNode.containerInfo,_t=!0;break e}b=b.return}if(We===null)throw Error(o(160));xp(d,m,c),We=null,_t=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ep(n,t),n=n.sibling}var gn=null;function Ep(t,n){var r=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ut(n,t),Ft(t),l&4&&(ma(3,t,t.return),go(3,t),ma(5,t,t.return));break;case 1:Ut(n,t),Ft(t),l&512&&(Ze||r===null||On(r,r.return)),l&64&&Xn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(r=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var c=gn;if(Ut(n,t),Ft(t),l&512&&(Ze||r===null||On(r,r.return)),l&4){var d=r!==null?r.memoizedState:null;if(l=t.memoizedState,r===null)if(l===null)if(t.stateNode===null){e:{l=t.type,r=t.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Pr]||d[St]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),pt(d,l,r),d[St]=t,lt(d),l=d;break e;case"link":var m=pv("link","href",c).get(l+(r.href||""));if(m){for(var b=0;b<m.length;b++)if(d=m[b],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){m.splice(b,1);break t}}d=c.createElement(l),pt(d,l,r),c.head.appendChild(d);break;case"meta":if(m=pv("meta","content",c).get(l+(r.content||""))){for(b=0;b<m.length;b++)if(d=m[b],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){m.splice(b,1);break t}}d=c.createElement(l),pt(d,l,r),c.head.appendChild(d);break;default:throw Error(o(468,l))}d[St]=t,lt(d),l=d}t.stateNode=l}else vv(c,t.type,t.stateNode);else t.stateNode=mv(c,l,t.memoizedProps);else d!==l?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,l===null?vv(c,t.type,t.stateNode):mv(c,l,t.memoizedProps)):l===null&&t.stateNode!==null&&od(t,t.memoizedProps,r.memoizedProps)}break;case 27:Ut(n,t),Ft(t),l&512&&(Ze||r===null||On(r,r.return)),r!==null&&l&4&&od(t,t.memoizedProps,r.memoizedProps);break;case 5:if(Ut(n,t),Ft(t),l&512&&(Ze||r===null||On(r,r.return)),t.flags&32){c=t.stateNode;try{Ri(c,"")}catch(B){He(t,t.return,B)}}l&4&&t.stateNode!=null&&(c=t.memoizedProps,od(t,c,r!==null?r.memoizedProps:c)),l&1024&&(cd=!0);break;case 6:if(Ut(n,t),Ft(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,r=t.stateNode;try{r.nodeValue=l}catch(B){He(t,t.return,B)}}break;case 3:if(xs=null,c=gn,gn=bs(n.containerInfo),Ut(n,t),gn=c,Ft(t),l&4&&r!==null&&r.memoizedState.isDehydrated)try{_o(n.containerInfo)}catch(B){He(t,t.return,B)}cd&&(cd=!1,Cp(t));break;case 4:l=gn,gn=bs(t.stateNode.containerInfo),Ut(n,t),Ft(t),gn=l;break;case 12:Ut(n,t),Ft(t);break;case 13:Ut(n,t),Ft(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pd=Zt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ud(t,l)));break;case 22:c=t.memoizedState!==null;var O=r!==null&&r.memoizedState!==null,I=Xn,F=Ze;if(Xn=I||c,Ze=F||O,Ut(n,t),Ze=F,Xn=I,Ft(t),l&8192)e:for(n=t.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(r===null||O||Xn||Ze||Ja(t)),r=null,n=t;;){if(n.tag===5||n.tag===26){if(r===null){O=r=n;try{if(d=O.stateNode,c)m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=O.stateNode;var X=O.memoizedProps.style,L=X!=null&&X.hasOwnProperty("display")?X.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(B){He(O,O.return,B)}}}else if(n.tag===6){if(r===null){O=n;try{O.stateNode.nodeValue=c?"":O.memoizedProps}catch(B){He(O,O.return,B)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=t.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,ud(t,r))));break;case 19:Ut(n,t),Ft(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ud(t,l)));break;case 30:break;case 21:break;default:Ut(n,t),Ft(t)}}function Ft(t){var n=t.flags;if(n&2){try{for(var r,l=t.return;l!==null;){if(mp(l)){r=l;break}l=l.return}if(r==null)throw Error(o(160));switch(r.tag){case 27:var c=r.stateNode,d=ld(t);rs(t,d,c);break;case 5:var m=r.stateNode;r.flags&32&&(Ri(m,""),r.flags&=-33);var b=ld(t);rs(t,b,m);break;case 3:case 4:var O=r.stateNode.containerInfo,I=ld(t);sd(t,I,O);break;default:throw Error(o(161))}}catch(F){He(t,t.return,F)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Cp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Cp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function pa(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)bp(t,n.alternate,n),n=n.sibling}function Ja(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ma(4,n,n.return),Ja(n);break;case 1:On(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&gp(n,n.return,r),Ja(n);break;case 27:Co(n.stateNode);case 26:case 5:On(n,n.return),Ja(n);break;case 22:n.memoizedState===null&&Ja(n);break;case 30:Ja(n);break;default:Ja(n)}t=t.sibling}}function va(t,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,c=t,d=n,m=d.flags;switch(d.tag){case 0:case 11:case 15:va(c,d,r),go(4,d);break;case 1:if(va(c,d,r),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(I){He(l,l.return,I)}if(l=d,c=l.updateQueue,c!==null){var b=l.stateNode;try{var O=c.shared.hiddenCallbacks;if(O!==null)for(c.shared.hiddenCallbacks=null,c=0;c<O.length;c++)Zh(O[c],b)}catch(I){He(l,l.return,I)}}r&&m&64&&fp(d),ho(d,d.return);break;case 27:pp(d);case 26:case 5:va(c,d,r),r&&l===null&&m&4&&hp(d),ho(d,d.return);break;case 12:va(c,d,r);break;case 13:va(c,d,r),r&&m&4&&Sp(c,d);break;case 22:d.memoizedState===null&&va(c,d,r),ho(d,d.return);break;case 30:break;default:va(c,d,r)}n=n.sibling}}function dd(t,n){var r=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==r&&(t!=null&&t.refCount++,r!=null&&Zr(r))}function fd(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Zr(t))}function Tn(t,n,r,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Op(t,n,r,l),n=n.sibling}function Op(t,n,r,l){var c=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n,r,l),c&2048&&go(9,n);break;case 1:Tn(t,n,r,l);break;case 3:Tn(t,n,r,l),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Zr(t)));break;case 12:if(c&2048){Tn(t,n,r,l),t=n.stateNode;try{var d=n.memoizedProps,m=d.id,b=d.onPostCommit;typeof b=="function"&&b(m,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){He(n,n.return,O)}}else Tn(t,n,r,l);break;case 13:Tn(t,n,r,l);break;case 23:break;case 22:d=n.stateNode,m=n.alternate,n.memoizedState!==null?d._visibility&2?Tn(t,n,r,l):mo(t,n):d._visibility&2?Tn(t,n,r,l):(d._visibility|=2,qi(t,n,r,l,(n.subtreeFlags&10256)!==0)),c&2048&&dd(m,n);break;case 24:Tn(t,n,r,l),c&2048&&fd(n.alternate,n);break;default:Tn(t,n,r,l)}}function qi(t,n,r,l,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=t,m=n,b=r,O=l,I=m.flags;switch(m.tag){case 0:case 11:case 15:qi(d,m,b,O,c),go(8,m);break;case 23:break;case 22:var F=m.stateNode;m.memoizedState!==null?F._visibility&2?qi(d,m,b,O,c):mo(d,m):(F._visibility|=2,qi(d,m,b,O,c)),c&&I&2048&&dd(m.alternate,m);break;case 24:qi(d,m,b,O,c),c&&I&2048&&fd(m.alternate,m);break;default:qi(d,m,b,O,c)}n=n.sibling}}function mo(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=t,l=n,c=l.flags;switch(l.tag){case 22:mo(r,l),c&2048&&dd(l.alternate,l);break;case 24:mo(r,l),c&2048&&fd(l.alternate,l);break;default:mo(r,l)}n=n.sibling}}var po=8192;function Yi(t){if(t.subtreeFlags&po)for(t=t.child;t!==null;)Tp(t),t=t.sibling}function Tp(t){switch(t.tag){case 26:Yi(t),t.flags&po&&t.memoizedState!==null&&GE(gn,t.memoizedState,t.memoizedProps);break;case 5:Yi(t);break;case 3:case 4:var n=gn;gn=bs(t.stateNode.containerInfo),Yi(t),gn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=po,po=16777216,Yi(t),po=n):Yi(t));break;default:Yi(t)}}function kp(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function vo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];ct=l,Rp(l,t)}kp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wp(t),t=t.sibling}function wp(t){switch(t.tag){case 0:case 11:case 15:vo(t),t.flags&2048&&ma(9,t,t.return);break;case 3:vo(t);break;case 12:vo(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,os(t)):vo(t);break;default:vo(t)}}function os(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];ct=l,Rp(l,t)}kp(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ma(8,n,n.return),os(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,os(n));break;default:os(n)}t=t.sibling}}function Rp(t,n){for(;ct!==null;){var r=ct;switch(r.tag){case 0:case 11:case 15:ma(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zr(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,ct=l;else e:for(r=t;ct!==null;){l=ct;var c=l.sibling,d=l.return;if(yp(l),l===r){ct=null;break e}if(c!==null){c.return=d,ct=c;break e}ct=d}}}var oE={getCacheForType:function(t){var n=Et(it),r=n.data.get(t);return r===void 0&&(r=t(),n.data.set(t,r)),r}},lE=typeof WeakMap=="function"?WeakMap:Map,De=0,Fe=null,ke=null,Re=0,Me=0,Gt=null,ba=!1,Xi=!1,gd=!1,Qn=0,Xe=0,ya=0,ei=0,hd=0,ln=0,Ki=0,bo=null,zt=null,md=!1,pd=0,ls=1/0,ss=null,xa=null,mt=0,Sa=null,Qi=null,Zi=0,vd=0,bd=null,Np=null,yo=0,yd=null;function Wt(){if((De&2)!==0&&Re!==0)return Re&-Re;if(D.T!==null){var t=Bi;return t!==0?t:kd()}return Wg()}function Ap(){ln===0&&(ln=(Re&536870912)===0||Ae?jg():536870912);var t=on.current;return t!==null&&(t.flags|=32),ln}function $t(t,n,r){(t===Fe&&(Me===2||Me===9)||t.cancelPendingCommit!==null)&&(Ji(t,0),Ea(t,Re,ln,!1)),Mr(t,r),((De&2)===0||t!==Fe)&&(t===Fe&&((De&2)===0&&(ei|=r),Xe===4&&Ea(t,Re,ln,!1)),kn(t))}function _p(t,n,r){if((De&6)!==0)throw Error(o(327));var l=!r&&(n&124)===0&&(n&t.expiredLanes)===0||Dr(t,n),c=l?uE(t,n):Ed(t,n,!0),d=l;do{if(c===0){Xi&&!l&&Ea(t,n,0,!1);break}else{if(r=t.current.alternate,d&&!sE(r)){c=Ed(t,n,!1),d=!1;continue}if(c===2){if(d=n,t.errorRecoveryDisabledLanes&d)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){n=m;e:{var b=t;c=bo;var O=b.current.memoizedState.isDehydrated;if(O&&(Ji(b,m).flags|=256),m=Ed(b,m,!1),m!==2){if(gd&&!O){b.errorRecoveryDisabledLanes|=d,ei|=d,c=4;break e}d=zt,zt=c,d!==null&&(zt===null?zt=d:zt.push.apply(zt,d))}c=m}if(d=!1,c!==2)continue}}if(c===1){Ji(t,0),Ea(t,n,0,!0);break}e:{switch(l=t,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Ea(l,n,ln,!ba);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(c=pd+300-Zt(),10<c)){if(Ea(l,n,ln,!ba),yl(l,0,!0)!==0)break e;l.timeoutHandle=ov(zp.bind(null,l,r,zt,ss,md,n,ln,ei,Ki,ba,d,2,-0,0),c);break e}zp(l,r,zt,ss,md,n,ln,ei,Ki,ba,d,0,-0,0)}}break}while(!0);kn(t)}function zp(t,n,r,l,c,d,m,b,O,I,F,X,L,B){if(t.timeoutHandle=-1,X=n.subtreeFlags,(X&8192||(X&16785408)===16785408)&&(ko={stylesheets:null,count:0,unsuspend:FE},Tp(n),X=WE(),X!==null)){t.cancelPendingCommit=X(Bp.bind(null,t,n,d,r,l,c,m,b,O,F,1,L,B)),Ea(t,d,m,!I);return}Bp(t,n,d,r,l,c,m,b,O)}function sE(t){for(var n=t;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var c=r[l],d=c.getSnapshot;c=c.value;try{if(!Ht(d(),c))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ea(t,n,r,l){n&=~hd,n&=~ei,t.suspendedLanes|=n,t.pingedLanes&=~n,l&&(t.warmLanes|=n),l=t.expirationTimes;for(var c=n;0<c;){var d=31-Bt(c),m=1<<d;l[d]=-1,c&=~m}r!==0&&Fg(t,r,n)}function cs(){return(De&6)===0?(xo(0),!1):!0}function xd(){if(ke!==null){if(Me===0)var t=ke.return;else t=ke,Fn=Ya=null,Pu(t),Wi=null,co=0,t=ke;for(;t!==null;)dp(t.alternate,t),t=t.return;ke=null}}function Ji(t,n){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,kE(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),xd(),Fe=t,ke=r=Hn(t.current,null),Re=n,Me=0,Gt=null,ba=!1,Xi=Dr(t,n),gd=!1,Ki=ln=hd=ei=ya=Xe=0,zt=bo=null,md=!1,(n&8)!==0&&(n|=n&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=n;0<l;){var c=31-Bt(l),d=1<<c;n|=t[c],l&=~d}return Qn=n,_l(),r}function Vp(t,n){Ce=null,D.H=Kl,n===eo||n===Hl?(n=Kh(),Me=3):n===qh?(n=Kh(),Me=4):Me=n===Qm?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Gt=n,ke===null&&(Xe=1,ts(t,tn(n,t.current)))}function Ip(){var t=D.H;return D.H=Kl,t===null?Kl:t}function Dp(){var t=D.A;return D.A=oE,t}function Sd(){Xe=4,ba||(Re&4194048)!==Re&&on.current!==null||(Xi=!0),(ya&134217727)===0&&(ei&134217727)===0||Fe===null||Ea(Fe,Re,ln,!1)}function Ed(t,n,r){var l=De;De|=2;var c=Ip(),d=Dp();(Fe!==t||Re!==n)&&(ss=null,Ji(t,n)),n=!1;var m=Xe;e:do try{if(Me!==0&&ke!==null){var b=ke,O=Gt;switch(Me){case 8:xd(),m=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(n=!0);var I=Me;if(Me=0,Gt=null,er(t,b,O,I),r&&Xi){m=0;break e}break;default:I=Me,Me=0,Gt=null,er(t,b,O,I)}}cE(),m=Xe;break}catch(F){Vp(t,F)}while(!0);return n&&t.shellSuspendCounter++,Fn=Ya=null,De=l,D.H=c,D.A=d,ke===null&&(Fe=null,Re=0,_l()),m}function cE(){for(;ke!==null;)Mp(ke)}function uE(t,n){var r=De;De|=2;var l=Ip(),c=Dp();Fe!==t||Re!==n?(ss=null,ls=Zt()+500,Ji(t,n)):Xi=Dr(t,n);e:do try{if(Me!==0&&ke!==null){n=ke;var d=Gt;t:switch(Me){case 1:Me=0,Gt=null,er(t,n,d,1);break;case 2:case 9:if(Yh(d)){Me=0,Gt=null,Pp(n);break}n=function(){Me!==2&&Me!==9||Fe!==t||(Me=7),kn(t)},d.then(n,n);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Yh(d)?(Me=0,Gt=null,Pp(n)):(Me=0,Gt=null,er(t,n,d,7));break;case 5:var m=null;switch(ke.tag){case 26:m=ke.memoizedState;case 5:case 27:var b=ke;if(!m||bv(m)){Me=0,Gt=null;var O=b.sibling;if(O!==null)ke=O;else{var I=b.return;I!==null?(ke=I,us(I)):ke=null}break t}}Me=0,Gt=null,er(t,n,d,5);break;case 6:Me=0,Gt=null,er(t,n,d,6);break;case 8:xd(),Xe=6;break e;default:throw Error(o(462))}}dE();break}catch(F){Vp(t,F)}while(!0);return Fn=Ya=null,D.H=l,D.A=c,De=r,ke!==null?0:(Fe=null,Re=0,_l(),Xe)}function dE(){for(;ke!==null&&!yi();)Mp(ke)}function Mp(t){var n=cp(t.alternate,t,Qn);t.memoizedProps=t.pendingProps,n===null?us(t):ke=n}function Pp(t){var n=t,r=n.alternate;switch(n.tag){case 15:case 0:n=ap(r,n,n.pendingProps,n.type,void 0,Re);break;case 11:n=ap(r,n,n.pendingProps,n.type.render,n.ref,Re);break;case 5:Pu(n);default:dp(r,n),n=ke=Lh(n,Qn),n=cp(r,n,Qn)}t.memoizedProps=t.pendingProps,n===null?us(t):ke=n}function er(t,n,r,l){Fn=Ya=null,Pu(n),Wi=null,co=0;var c=n.return;try{if(eE(t,c,n,r,Re)){Xe=1,ts(t,tn(r,t.current)),ke=null;return}}catch(d){if(c!==null)throw ke=c,d;Xe=1,ts(t,tn(r,t.current)),ke=null;return}n.flags&32768?(Ae||l===1?t=!0:Xi||(Re&536870912)!==0?t=!1:(ba=t=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lp(n,t)):us(n)}function us(t){var n=t;do{if((n.flags&32768)!==0){Lp(n,ba);return}t=n.return;var r=nE(n.alternate,n,Qn);if(r!==null){ke=r;return}if(n=n.sibling,n!==null){ke=n;return}ke=n=t}while(n!==null);Xe===0&&(Xe=5)}function Lp(t,n){do{var r=aE(t.alternate,t);if(r!==null){r.flags&=32767,ke=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(t=t.sibling,t!==null)){ke=t;return}ke=t=r}while(t!==null);Xe=6,ke=null}function Bp(t,n,r,l,c,d,m,b,O){t.cancelPendingCommit=null;do ds();while(mt!==0);if((De&6)!==0)throw Error(o(327));if(n!==null){if(n===t.current)throw Error(o(177));if(d=n.lanes|n.childLanes,d|=fu,F1(t,r,d,m,b,O),t===Fe&&(ke=Fe=null,Re=0),Qi=n,Sa=t,Zi=r,vd=d,bd=c,Np=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mE(Pa,function(){return Gp(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,c=J.p,J.p=2,m=De,De|=4;try{iE(t,n,r)}finally{De=m,J.p=c,D.T=l}}mt=1,Hp(),jp(),Up()}}function Hp(){if(mt===1){mt=0;var t=Sa,n=Qi,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=D.T,D.T=null;var l=J.p;J.p=2;var c=De;De|=4;try{Ep(n,t);var d=Id,m=Rh(t.containerInfo),b=d.focusedElem,O=d.selectionRange;if(m!==b&&b&&b.ownerDocument&&wh(b.ownerDocument.documentElement,b)){if(O!==null&&lu(b)){var I=O.start,F=O.end;if(F===void 0&&(F=I),"selectionStart"in b)b.selectionStart=I,b.selectionEnd=Math.min(F,b.value.length);else{var X=b.ownerDocument||document,L=X&&X.defaultView||window;if(L.getSelection){var B=L.getSelection(),ve=b.textContent.length,fe=Math.min(O.start,ve),Be=O.end===void 0?fe:Math.min(O.end,ve);!B.extend&&fe>Be&&(m=Be,Be=fe,fe=m);var z=kh(b,fe),w=kh(b,Be);if(z&&w&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==w.node||B.focusOffset!==w.offset)){var V=X.createRange();V.setStart(z.node,z.offset),B.removeAllRanges(),fe>Be?(B.addRange(V),B.extend(w.node,w.offset)):(V.setEnd(w.node,w.offset),B.addRange(V))}}}}for(X=[],B=b;B=B.parentNode;)B.nodeType===1&&X.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<X.length;b++){var $=X[b];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Cs=!!Vd,Id=Vd=null}finally{De=c,J.p=l,D.T=r}}t.current=n,mt=2}}function jp(){if(mt===2){mt=0;var t=Sa,n=Qi,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=D.T,D.T=null;var l=J.p;J.p=2;var c=De;De|=4;try{bp(t,n.alternate,n)}finally{De=c,J.p=l,D.T=r}}mt=3}}function Up(){if(mt===4||mt===3){mt=0,zr();var t=Sa,n=Qi,r=Zi,l=Np;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,Qi=Sa=null,Fp(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(xa=null),Hc(r),n=n.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Ir,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=D.T,c=J.p,J.p=2,D.T=null;try{for(var d=t.onRecoverableError,m=0;m<l.length;m++){var b=l[m];d(b.value,{componentStack:b.stack})}}finally{D.T=n,J.p=c}}(Zi&3)!==0&&ds(),kn(t),c=t.pendingLanes,(r&4194090)!==0&&(c&42)!==0?t===yd?yo++:(yo=0,yd=t):yo=0,xo(0)}}function Fp(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Zr(n)))}function ds(t){return Hp(),jp(),Up(),Gp()}function Gp(){if(mt!==5)return!1;var t=Sa,n=vd;vd=0;var r=Hc(Zi),l=D.T,c=J.p;try{J.p=32>r?32:r,D.T=null,r=bd,bd=null;var d=Sa,m=Zi;if(mt=0,Qi=Sa=null,Zi=0,(De&6)!==0)throw Error(o(331));var b=De;if(De|=4,wp(d.current),Op(d,d.current,m,r),De=b,xo(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Ir,d)}catch{}return!0}finally{J.p=c,D.T=l,Fp(t,n)}}function Wp(t,n,r){n=tn(r,n),n=Qu(t.stateNode,n,2),t=da(t,n,2),t!==null&&(Mr(t,2),kn(t))}function He(t,n,r){if(t.tag===3)Wp(t,t,r);else for(;n!==null;){if(n.tag===3){Wp(n,t,r);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(xa===null||!xa.has(l))){t=tn(r,t),r=Xm(2),l=da(n,r,2),l!==null&&(Km(r,l,n,t),Mr(l,2),kn(l));break}}n=n.return}}function Cd(t,n,r){var l=t.pingCache;if(l===null){l=t.pingCache=new lE;var c=new Set;l.set(n,c)}else c=l.get(n),c===void 0&&(c=new Set,l.set(n,c));c.has(r)||(gd=!0,c.add(r),t=fE.bind(null,t,n,r),n.then(t,t))}function fE(t,n,r){var l=t.pingCache;l!==null&&l.delete(n),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,Fe===t&&(Re&r)===r&&(Xe===4||Xe===3&&(Re&62914560)===Re&&300>Zt()-pd?(De&2)===0&&Ji(t,0):hd|=r,Ki===Re&&(Ki=0)),kn(t)}function $p(t,n){n===0&&(n=Ug()),t=Di(t,n),t!==null&&(Mr(t,n),kn(t))}function gE(t){var n=t.memoizedState,r=0;n!==null&&(r=n.retryLane),$p(t,r)}function hE(t,n){var r=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(r=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(n),$p(t,r)}function mE(t,n){return Ke(t,n)}var fs=null,tr=null,Od=!1,gs=!1,Td=!1,ti=0;function kn(t){t!==tr&&t.next===null&&(tr===null?fs=tr=t:tr=tr.next=t),gs=!0,Od||(Od=!0,vE())}function xo(t,n){if(!Td&&gs){Td=!0;do for(var r=!1,l=fs;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var m=l.suspendedLanes,b=l.pingedLanes;d=(1<<31-Bt(42|t)+1)-1,d&=c&~(m&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,Kp(l,d))}else d=Re,d=yl(l,l===Fe?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Dr(l,d)||(r=!0,Kp(l,d));l=l.next}while(r);Td=!1}}function pE(){qp()}function qp(){gs=Od=!1;var t=0;ti!==0&&(TE()&&(t=ti),ti=0);for(var n=Zt(),r=null,l=fs;l!==null;){var c=l.next,d=Yp(l,n);d===0?(l.next=null,r===null?fs=c:r.next=c,c===null&&(tr=r)):(r=l,(t!==0||(d&3)!==0)&&(gs=!0)),l=c}xo(t)}function Yp(t,n){for(var r=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var m=31-Bt(d),b=1<<m,O=c[m];O===-1?((b&r)===0||(b&l)!==0)&&(c[m]=U1(b,n)):O<=n&&(t.expiredLanes|=b),d&=~b}if(n=Fe,r=Re,r=yl(t,t===n?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,r===0||t===n&&(Me===2||Me===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Pt(l),t.callbackNode=null,t.callbackPriority=0;if((r&3)===0||Dr(t,r)){if(n=r&-r,n===t.callbackPriority)return n;switch(l!==null&&Pt(l),Hc(r)){case 2:case 8:r=ml;break;case 32:r=Pa;break;case 268435456:r=xi;break;default:r=Pa}return l=Xp.bind(null,t),r=Ke(r,l),t.callbackPriority=n,t.callbackNode=r,n}return l!==null&&l!==null&&Pt(l),t.callbackPriority=2,t.callbackNode=null,2}function Xp(t,n){if(mt!==0&&mt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(ds()&&t.callbackNode!==r)return null;var l=Re;return l=yl(t,t===Fe?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(_p(t,l,n),Yp(t,Zt()),t.callbackNode!=null&&t.callbackNode===r?Xp.bind(null,t):null)}function Kp(t,n){if(ds())return null;_p(t,n,!0)}function vE(){wE(function(){(De&6)!==0?Ke(Vr,pE):qp()})}function kd(){return ti===0&&(ti=jg()),ti}function Qp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ol(""+t)}function Zp(t,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,t.id&&r.setAttribute("form",t.id),n.parentNode.insertBefore(r,n),t=new FormData(t),r.parentNode.removeChild(r),t}function bE(t,n,r,l,c){if(n==="submit"&&r&&r.stateNode===c){var d=Qp((c[Rt]||null).action),m=l.submitter;m&&(n=(n=m[Rt]||null)?Qp(n.formAction):m.getAttribute("formAction"),n!==null&&(d=n,m=null));var b=new Rl("action","action",null,l,c);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ti!==0){var O=m?Zp(c,m):new FormData(c);$u(r,{pending:!0,data:O,method:c.method,action:d},null,O)}}else typeof d=="function"&&(b.preventDefault(),O=m?Zp(c,m):new FormData(c),$u(r,{pending:!0,data:O,method:c.method,action:d},d,O))},currentTarget:c}]})}}for(var wd=0;wd<du.length;wd++){var Rd=du[wd],yE=Rd.toLowerCase(),xE=Rd[0].toUpperCase()+Rd.slice(1);fn(yE,"on"+xE)}fn(_h,"onAnimationEnd"),fn(zh,"onAnimationIteration"),fn(Vh,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(PS,"onTransitionRun"),fn(LS,"onTransitionStart"),fn(BS,"onTransitionCancel"),fn(Ih,"onTransitionEnd"),Ti("onMouseEnter",["mouseout","mouseover"]),Ti("onMouseLeave",["mouseout","mouseover"]),Ti("onPointerEnter",["pointerout","pointerover"]),Ti("onPointerLeave",["pointerout","pointerover"]),Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(So));function Jp(t,n){n=(n&4)!==0;for(var r=0;r<t.length;r++){var l=t[r],c=l.event;l=l.listeners;e:{var d=void 0;if(n)for(var m=l.length-1;0<=m;m--){var b=l[m],O=b.instance,I=b.currentTarget;if(b=b.listener,O!==d&&c.isPropagationStopped())break e;d=b,c.currentTarget=I;try{d(c)}catch(F){es(F)}c.currentTarget=null,d=O}else for(m=0;m<l.length;m++){if(b=l[m],O=b.instance,I=b.currentTarget,b=b.listener,O!==d&&c.isPropagationStopped())break e;d=b,c.currentTarget=I;try{d(c)}catch(F){es(F)}c.currentTarget=null,d=O}}}}function we(t,n){var r=n[jc];r===void 0&&(r=n[jc]=new Set);var l=t+"__bubble";r.has(l)||(ev(n,t,2,!1),r.add(l))}function Nd(t,n,r){var l=0;n&&(l|=4),ev(r,t,l,n)}var hs="_reactListening"+Math.random().toString(36).slice(2);function Ad(t){if(!t[hs]){t[hs]=!0,qg.forEach(function(r){r!=="selectionchange"&&(SE.has(r)||Nd(r,!1,t),Nd(r,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[hs]||(n[hs]=!0,Nd("selectionchange",!1,n))}}function ev(t,n,r,l){switch(Ov(n)){case 2:var c=YE;break;case 8:c=XE;break;default:c=Gd}r=c.bind(null,n,r,t),c=void 0,!Zc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),l?c!==void 0?t.addEventListener(n,r,{capture:!0,passive:c}):t.addEventListener(n,r,!0):c!==void 0?t.addEventListener(n,r,{passive:c}):t.addEventListener(n,r,!1)}function _d(t,n,r,l,c){var d=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var b=l.stateNode.containerInfo;if(b===c)break;if(m===4)for(m=l.return;m!==null;){var O=m.tag;if((O===3||O===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;b!==null;){if(m=Ei(b),m===null)return;if(O=m.tag,O===5||O===6||O===26||O===27){l=d=m;continue e}b=b.parentNode}}l=l.return}lh(function(){var I=d,F=Kc(r),X=[];e:{var L=Dh.get(t);if(L!==void 0){var B=Rl,ve=t;switch(t){case"keypress":if(kl(r)===0)break e;case"keydown":case"keyup":B=mS;break;case"focusin":ve="focus",B=nu;break;case"focusout":ve="blur",B=nu;break;case"beforeblur":case"afterblur":B=nu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=aS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=bS;break;case _h:case zh:case Vh:B=oS;break;case Ih:B=xS;break;case"scroll":case"scrollend":B=tS;break;case"wheel":B=ES;break;case"copy":case"cut":case"paste":B=sS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=fh;break;case"toggle":case"beforetoggle":B=OS}var fe=(n&4)!==0,Be=!fe&&(t==="scroll"||t==="scrollend"),z=fe?L!==null?L+"Capture":null:L;fe=[];for(var w=I,V;w!==null;){var $=w;if(V=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||V===null||z===null||($=Br(w,z),$!=null&&fe.push(Eo(w,$,V))),Be)break;w=w.return}0<fe.length&&(L=new B(L,ve,null,r,F),X.push({event:L,listeners:fe}))}}if((n&7)===0){e:{if(L=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",L&&r!==Xc&&(ve=r.relatedTarget||r.fromElement)&&(Ei(ve)||ve[Si]))break e;if((B||L)&&(L=F.window===F?F:(L=F.ownerDocument)?L.defaultView||L.parentWindow:window,B?(ve=r.relatedTarget||r.toElement,B=I,ve=ve?Ei(ve):null,ve!==null&&(Be=u(ve),fe=ve.tag,ve!==Be||fe!==5&&fe!==27&&fe!==6)&&(ve=null)):(B=null,ve=I),B!==ve)){if(fe=uh,$="onMouseLeave",z="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(fe=fh,$="onPointerLeave",z="onPointerEnter",w="pointer"),Be=B==null?L:Lr(B),V=ve==null?L:Lr(ve),L=new fe($,w+"leave",B,r,F),L.target=Be,L.relatedTarget=V,$=null,Ei(F)===I&&(fe=new fe(z,w+"enter",ve,r,F),fe.target=V,fe.relatedTarget=Be,$=fe),Be=$,B&&ve)t:{for(fe=B,z=ve,w=0,V=fe;V;V=nr(V))w++;for(V=0,$=z;$;$=nr($))V++;for(;0<w-V;)fe=nr(fe),w--;for(;0<V-w;)z=nr(z),V--;for(;w--;){if(fe===z||z!==null&&fe===z.alternate)break t;fe=nr(fe),z=nr(z)}fe=null}else fe=null;B!==null&&tv(X,L,B,fe,!1),ve!==null&&Be!==null&&tv(X,Be,ve,fe,!0)}}e:{if(L=I?Lr(I):window,B=L.nodeName&&L.nodeName.toLowerCase(),B==="select"||B==="input"&&L.type==="file")var ce=xh;else if(bh(L))if(Sh)ce=IS;else{ce=zS;var Te=_S}else B=L.nodeName,!B||B.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?I&&Yc(I.elementType)&&(ce=xh):ce=VS;if(ce&&(ce=ce(t,I))){yh(X,ce,r,F);break e}Te&&Te(t,L,I),t==="focusout"&&I&&L.type==="number"&&I.memoizedProps.value!=null&&qc(L,"number",L.value)}switch(Te=I?Lr(I):window,t){case"focusin":(bh(Te)||Te.contentEditable==="true")&&(zi=Te,su=I,qr=null);break;case"focusout":qr=su=zi=null;break;case"mousedown":cu=!0;break;case"contextmenu":case"mouseup":case"dragend":cu=!1,Nh(X,r,F);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":Nh(X,r,F)}var de;if(iu)e:{switch(t){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else _i?ph(t,r)&&(ge="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(ge="onCompositionStart");ge&&(gh&&r.locale!=="ko"&&(_i||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&_i&&(de=sh()):(la=F,Jc="value"in la?la.value:la.textContent,_i=!0)),Te=ms(I,ge),0<Te.length&&(ge=new dh(ge,t,null,r,F),X.push({event:ge,listeners:Te}),de?ge.data=de:(de=vh(r),de!==null&&(ge.data=de)))),(de=kS?wS(t,r):RS(t,r))&&(ge=ms(I,"onBeforeInput"),0<ge.length&&(Te=new dh("onBeforeInput","beforeinput",null,r,F),X.push({event:Te,listeners:ge}),Te.data=de)),bE(X,t,I,r,F)}Jp(X,n)})}function Eo(t,n,r){return{instance:t,listener:n,currentTarget:r}}function ms(t,n){for(var r=n+"Capture",l=[];t!==null;){var c=t,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Br(t,r),c!=null&&l.unshift(Eo(t,c,d)),c=Br(t,n),c!=null&&l.push(Eo(t,c,d))),t.tag===3)return l;t=t.return}return[]}function nr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function tv(t,n,r,l,c){for(var d=n._reactName,m=[];r!==null&&r!==l;){var b=r,O=b.alternate,I=b.stateNode;if(b=b.tag,O!==null&&O===l)break;b!==5&&b!==26&&b!==27||I===null||(O=I,c?(I=Br(r,d),I!=null&&m.unshift(Eo(r,I,O))):c||(I=Br(r,d),I!=null&&m.push(Eo(r,I,O)))),r=r.return}m.length!==0&&t.push({event:n,listeners:m})}var EE=/\r\n?/g,CE=/\u0000|\uFFFD/g;function nv(t){return(typeof t=="string"?t:""+t).replace(EE,`
`).replace(CE,"")}function av(t,n){return n=nv(n),nv(t)===n}function ps(){}function Le(t,n,r,l,c,d){switch(r){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Ri(t,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Ri(t,""+l);break;case"className":Sl(t,"class",l);break;case"tabIndex":Sl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(t,r,l);break;case"style":rh(t,l,d);break;case"data":if(n!=="object"){Sl(t,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||r!=="href")){t.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(r);break}l=Ol(""+l),t.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(r==="formAction"?(n!=="input"&&Le(t,n,"name",c.name,c,null),Le(t,n,"formEncType",c.formEncType,c,null),Le(t,n,"formMethod",c.formMethod,c,null),Le(t,n,"formTarget",c.formTarget,c,null)):(Le(t,n,"encType",c.encType,c,null),Le(t,n,"method",c.method,c,null),Le(t,n,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(r);break}l=Ol(""+l),t.setAttribute(r,l);break;case"onClick":l!=null&&(t.onclick=ps);break;case"onScroll":l!=null&&we("scroll",t);break;case"onScrollEnd":l!=null&&we("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(r=l.__html,r!=null){if(c.children!=null)throw Error(o(60));t.innerHTML=r}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}r=Ol(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(r,""+l):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":l===!0?t.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(r,l):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(r,l):t.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(r):t.setAttribute(r,l);break;case"popover":we("beforetoggle",t),we("toggle",t),xl(t,"popover",l);break;case"xlinkActuate":Ln(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ln(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ln(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ln(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ln(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ln(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ln(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ln(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ln(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=J1.get(r)||r,xl(t,r,l))}}function zd(t,n,r,l,c,d){switch(r){case"style":rh(t,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(r=l.__html,r!=null){if(c.children!=null)throw Error(o(60));t.innerHTML=r}}break;case"children":typeof l=="string"?Ri(t,l):(typeof l=="number"||typeof l=="bigint")&&Ri(t,""+l);break;case"onScroll":l!=null&&we("scroll",t);break;case"onScrollEnd":l!=null&&we("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ps);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yg.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(c=r.endsWith("Capture"),n=r.slice(2,c?r.length-7:void 0),d=t[Rt]||null,d=d!=null?d[r]:null,typeof d=="function"&&t.removeEventListener(n,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(r in t?t[r]=null:t.hasAttribute(r)&&t.removeAttribute(r)),t.addEventListener(n,l,c);break e}r in t?t[r]=l:l===!0?t.setAttribute(r,""):xl(t,r,l)}}}function pt(t,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",t),we("load",t);var l=!1,c=!1,d;for(d in r)if(r.hasOwnProperty(d)){var m=r[d];if(m!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Le(t,n,d,m,r,null)}}c&&Le(t,n,"srcSet",r.srcSet,r,null),l&&Le(t,n,"src",r.src,r,null);return;case"input":we("invalid",t);var b=d=m=c=null,O=null,I=null;for(l in r)if(r.hasOwnProperty(l)){var F=r[l];if(F!=null)switch(l){case"name":c=F;break;case"type":m=F;break;case"checked":O=F;break;case"defaultChecked":I=F;break;case"value":d=F;break;case"defaultValue":b=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,n));break;default:Le(t,n,l,F,r,null)}}th(t,d,b,O,I,m,c,!1),El(t);return;case"select":we("invalid",t),l=m=d=null;for(c in r)if(r.hasOwnProperty(c)&&(b=r[c],b!=null))switch(c){case"value":d=b;break;case"defaultValue":m=b;break;case"multiple":l=b;default:Le(t,n,c,b,r,null)}n=d,r=m,t.multiple=!!l,n!=null?wi(t,!!l,n,!1):r!=null&&wi(t,!!l,r,!0);return;case"textarea":we("invalid",t),d=c=l=null;for(m in r)if(r.hasOwnProperty(m)&&(b=r[m],b!=null))switch(m){case"value":l=b;break;case"defaultValue":c=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Le(t,n,m,b,r,null)}ah(t,l,c,d),El(t);return;case"option":for(O in r)if(r.hasOwnProperty(O)&&(l=r[O],l!=null))switch(O){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Le(t,n,O,l,r,null)}return;case"dialog":we("beforetoggle",t),we("toggle",t),we("cancel",t),we("close",t);break;case"iframe":case"object":we("load",t);break;case"video":case"audio":for(l=0;l<So.length;l++)we(So[l],t);break;case"image":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"embed":case"source":case"link":we("error",t),we("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in r)if(r.hasOwnProperty(I)&&(l=r[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Le(t,n,I,l,r,null)}return;default:if(Yc(n)){for(F in r)r.hasOwnProperty(F)&&(l=r[F],l!==void 0&&zd(t,n,F,l,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(l=r[b],l!=null&&Le(t,n,b,l,r,null))}function OE(t,n,r,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,m=null,b=null,O=null,I=null,F=null;for(B in r){var X=r[B];if(r.hasOwnProperty(B)&&X!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":O=X;default:l.hasOwnProperty(B)||Le(t,n,B,null,l,X)}}for(var L in l){var B=l[L];if(X=r[L],l.hasOwnProperty(L)&&(B!=null||X!=null))switch(L){case"type":d=B;break;case"name":c=B;break;case"checked":I=B;break;case"defaultChecked":F=B;break;case"value":m=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,n));break;default:B!==X&&Le(t,n,L,B,l,X)}}$c(t,m,b,O,I,F,d,c);return;case"select":B=m=b=L=null;for(d in r)if(O=r[d],r.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":B=O;default:l.hasOwnProperty(d)||Le(t,n,d,null,l,O)}for(c in l)if(d=l[c],O=r[c],l.hasOwnProperty(c)&&(d!=null||O!=null))switch(c){case"value":L=d;break;case"defaultValue":b=d;break;case"multiple":m=d;default:d!==O&&Le(t,n,c,d,l,O)}n=b,r=m,l=B,L!=null?wi(t,!!r,L,!1):!!l!=!!r&&(n!=null?wi(t,!!r,n,!0):wi(t,!!r,r?[]:"",!1));return;case"textarea":B=L=null;for(b in r)if(c=r[b],r.hasOwnProperty(b)&&c!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Le(t,n,b,null,l,c)}for(m in l)if(c=l[m],d=r[m],l.hasOwnProperty(m)&&(c!=null||d!=null))switch(m){case"value":L=c;break;case"defaultValue":B=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Le(t,n,m,c,l,d)}nh(t,L,B);return;case"option":for(var ve in r)if(L=r[ve],r.hasOwnProperty(ve)&&L!=null&&!l.hasOwnProperty(ve))switch(ve){case"selected":t.selected=!1;break;default:Le(t,n,ve,null,l,L)}for(O in l)if(L=l[O],B=r[O],l.hasOwnProperty(O)&&L!==B&&(L!=null||B!=null))switch(O){case"selected":t.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Le(t,n,O,L,l,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in r)L=r[fe],r.hasOwnProperty(fe)&&L!=null&&!l.hasOwnProperty(fe)&&Le(t,n,fe,null,l,L);for(I in l)if(L=l[I],B=r[I],l.hasOwnProperty(I)&&L!==B&&(L!=null||B!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,n));break;default:Le(t,n,I,L,l,B)}return;default:if(Yc(n)){for(var Be in r)L=r[Be],r.hasOwnProperty(Be)&&L!==void 0&&!l.hasOwnProperty(Be)&&zd(t,n,Be,void 0,l,L);for(F in l)L=l[F],B=r[F],!l.hasOwnProperty(F)||L===B||L===void 0&&B===void 0||zd(t,n,F,L,l,B);return}}for(var z in r)L=r[z],r.hasOwnProperty(z)&&L!=null&&!l.hasOwnProperty(z)&&Le(t,n,z,null,l,L);for(X in l)L=l[X],B=r[X],!l.hasOwnProperty(X)||L===B||L==null&&B==null||Le(t,n,X,L,l,B)}var Vd=null,Id=null;function vs(t){return t.nodeType===9?t:t.ownerDocument}function iv(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rv(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Dd(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Md=null;function TE(){var t=window.event;return t&&t.type==="popstate"?t===Md?!1:(Md=t,!0):(Md=null,!1)}var ov=typeof setTimeout=="function"?setTimeout:void 0,kE=typeof clearTimeout=="function"?clearTimeout:void 0,lv=typeof Promise=="function"?Promise:void 0,wE=typeof queueMicrotask=="function"?queueMicrotask:typeof lv<"u"?function(t){return lv.resolve(null).then(t).catch(RE)}:ov;function RE(t){setTimeout(function(){throw t})}function Ca(t){return t==="head"}function sv(t,n){var r=n,l=0,c=0;do{var d=r.nextSibling;if(t.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"){if(0<l&&8>l){r=l;var m=t.ownerDocument;if(r&1&&Co(m.documentElement),r&2&&Co(m.body),r&4)for(r=m.head,Co(r),m=r.firstChild;m;){var b=m.nextSibling,O=m.nodeName;m[Pr]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=b}}if(c===0){t.removeChild(d),_o(n);return}c--}else r==="$"||r==="$?"||r==="$!"?c++:l=r.charCodeAt(0)-48;else l=0;r=d}while(r);_o(n)}function Pd(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Pd(r),Uc(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}t.removeChild(r)}}function NE(t,n,r,l){for(;t.nodeType===1;){var c=r;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Pr])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=hn(t.nextSibling),t===null)break}return null}function AE(t,n,r){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=hn(t.nextSibling),t===null))return null;return t}function Ld(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function _E(t,n){var r=t.ownerDocument;if(t.data!=="$?"||r.readyState==="complete")n();else{var l=function(){n(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function hn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}var Bd=null;function cv(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(n===0)return t;n--}else r==="/$"&&n++}t=t.previousSibling}return null}function uv(t,n,r){switch(n=vs(r),t){case"html":if(t=n.documentElement,!t)throw Error(o(452));return t;case"head":if(t=n.head,!t)throw Error(o(453));return t;case"body":if(t=n.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Co(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Uc(t)}var sn=new Map,dv=new Set;function bs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Zn=J.d;J.d={f:zE,r:VE,D:IE,C:DE,L:ME,m:PE,X:BE,S:LE,M:HE};function zE(){var t=Zn.f(),n=cs();return t||n}function VE(t){var n=Ci(t);n!==null&&n.tag===5&&n.type==="form"?_m(n):Zn.r(t)}var ar=typeof document>"u"?null:document;function fv(t,n,r){var l=ar;if(l&&typeof n=="string"&&n){var c=en(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof r=="string"&&(c+='[crossorigin="'+r+'"]'),dv.has(c)||(dv.add(c),t={rel:t,crossOrigin:r,href:n},l.querySelector(c)===null&&(n=l.createElement("link"),pt(n,"link",t),lt(n),l.head.appendChild(n)))}}function IE(t){Zn.D(t),fv("dns-prefetch",t,null)}function DE(t,n){Zn.C(t,n),fv("preconnect",t,n)}function ME(t,n,r){Zn.L(t,n,r);var l=ar;if(l&&t&&n){var c='link[rel="preload"][as="'+en(n)+'"]';n==="image"&&r&&r.imageSrcSet?(c+='[imagesrcset="'+en(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(c+='[imagesizes="'+en(r.imageSizes)+'"]')):c+='[href="'+en(t)+'"]';var d=c;switch(n){case"style":d=ir(t);break;case"script":d=rr(t)}sn.has(d)||(t=v({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:t,as:n},r),sn.set(d,t),l.querySelector(c)!==null||n==="style"&&l.querySelector(Oo(d))||n==="script"&&l.querySelector(To(d))||(n=l.createElement("link"),pt(n,"link",t),lt(n),l.head.appendChild(n)))}}function PE(t,n){Zn.m(t,n);var r=ar;if(r&&t){var l=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+en(l)+'"][href="'+en(t)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=rr(t)}if(!sn.has(d)&&(t=v({rel:"modulepreload",href:t},n),sn.set(d,t),r.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(To(d)))return}l=r.createElement("link"),pt(l,"link",t),lt(l),r.head.appendChild(l)}}}function LE(t,n,r){Zn.S(t,n,r);var l=ar;if(l&&t){var c=Oi(l).hoistableStyles,d=ir(t);n=n||"default";var m=c.get(d);if(!m){var b={loading:0,preload:null};if(m=l.querySelector(Oo(d)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":n},r),(r=sn.get(d))&&Hd(t,r);var O=m=l.createElement("link");lt(O),pt(O,"link",t),O._p=new Promise(function(I,F){O.onload=I,O.onerror=F}),O.addEventListener("load",function(){b.loading|=1}),O.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ys(m,n,l)}m={type:"stylesheet",instance:m,count:1,state:b},c.set(d,m)}}}function BE(t,n){Zn.X(t,n);var r=ar;if(r&&t){var l=Oi(r).hoistableScripts,c=rr(t),d=l.get(c);d||(d=r.querySelector(To(c)),d||(t=v({src:t,async:!0},n),(n=sn.get(c))&&jd(t,n),d=r.createElement("script"),lt(d),pt(d,"link",t),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function HE(t,n){Zn.M(t,n);var r=ar;if(r&&t){var l=Oi(r).hoistableScripts,c=rr(t),d=l.get(c);d||(d=r.querySelector(To(c)),d||(t=v({src:t,async:!0,type:"module"},n),(n=sn.get(c))&&jd(t,n),d=r.createElement("script"),lt(d),pt(d,"link",t),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function gv(t,n,r,l){var c=(c=pe.current)?bs(c):null;if(!c)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=ir(r.href),r=Oi(c).hoistableStyles,l=r.get(n),l||(l={type:"style",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){t=ir(r.href);var d=Oi(c).hoistableStyles,m=d.get(t);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,m),(d=c.querySelector(Oo(t)))&&!d._p&&(m.instance=d,m.state.loading=5),sn.has(t)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},sn.set(t,r),d||jE(c,t,r,m.state))),n&&l===null)throw Error(o(528,""));return m}if(n&&l!==null)throw Error(o(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=rr(r),r=Oi(c).hoistableScripts,l=r.get(n),l||(l={type:"script",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ir(t){return'href="'+en(t)+'"'}function Oo(t){return'link[rel="stylesheet"]['+t+"]"}function hv(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function jE(t,n,r,l){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=t.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),pt(n,"link",r),lt(n),t.head.appendChild(n))}function rr(t){return'[src="'+en(t)+'"]'}function To(t){return"script[async]"+t}function mv(t,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var l=t.querySelector('style[data-href~="'+en(r.href)+'"]');if(l)return n.instance=l,lt(l),l;var c=v({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),lt(l),pt(l,"style",c),ys(l,r.precedence,t),n.instance=l;case"stylesheet":c=ir(r.href);var d=t.querySelector(Oo(c));if(d)return n.state.loading|=4,n.instance=d,lt(d),d;l=hv(r),(c=sn.get(c))&&Hd(l,c),d=(t.ownerDocument||t).createElement("link"),lt(d);var m=d;return m._p=new Promise(function(b,O){m.onload=b,m.onerror=O}),pt(d,"link",l),n.state.loading|=4,ys(d,r.precedence,t),n.instance=d;case"script":return d=rr(r.src),(c=t.querySelector(To(d)))?(n.instance=c,lt(c),c):(l=r,(c=sn.get(d))&&(l=v({},r),jd(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),lt(c),pt(c,"link",l),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,ys(l,r.precedence,t));return n.instance}function ys(t,n,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,m=0;m<l.length;m++){var b=l[m];if(b.dataset.precedence===n)d=b;else if(d!==c)break}d?d.parentNode.insertBefore(t,d.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(t,n.firstChild))}function Hd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function jd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var xs=null;function pv(t,n,r){if(xs===null){var l=new Map,c=xs=new Map;c.set(r,l)}else c=xs,l=c.get(r),l||(l=new Map,c.set(r,l));if(l.has(t))return l;for(l.set(t,null),r=r.getElementsByTagName(t),c=0;c<r.length;c++){var d=r[c];if(!(d[Pr]||d[St]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var m=d.getAttribute(n)||"";m=t+m;var b=l.get(m);b?b.push(d):l.set(m,[d])}}return l}function vv(t,n,r){t=t.ownerDocument||t,t.head.insertBefore(r,n==="title"?t.querySelector("head > title"):null)}function UE(t,n,r){if(r===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function bv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var ko=null;function FE(){}function GE(t,n,r){if(ko===null)throw Error(o(475));var l=ko;if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ir(r.href),d=t.querySelector(Oo(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Ss.bind(l),t.then(l,l)),n.state.loading|=4,n.instance=d,lt(d);return}d=t.ownerDocument||t,r=hv(r),(c=sn.get(c))&&Hd(r,c),d=d.createElement("link"),lt(d);var m=d;m._p=new Promise(function(b,O){m.onload=b,m.onerror=O}),pt(d,"link",r),n.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=Ss.bind(l),t.addEventListener("load",n),t.addEventListener("error",n))}}function WE(){if(ko===null)throw Error(o(475));var t=ko;return t.stylesheets&&t.count===0&&Ud(t,t.stylesheets),0<t.count?function(n){var r=setTimeout(function(){if(t.stylesheets&&Ud(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(r)}}:null}function Ss(){if(this.count--,this.count===0){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Es=null;function Ud(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Es=new Map,n.forEach($E,t),Es=null,Ss.call(t))}function $E(t,n){if(!(n.state.loading&4)){var r=Es.get(t);if(r)var l=r.get(null);else{r=new Map,Es.set(t,r);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var m=c[d];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(r.set(m.dataset.precedence,m),l=m)}l&&r.set(null,l)}c=n.instance,m=c.getAttribute("data-precedence"),d=r.get(m)||l,d===l&&r.set(null,c),r.set(m,c),this.count++,l=Ss.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var wo={$$typeof:A,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function qE(t,n,r,l,c,d,m,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lc(0),this.hiddenUpdates=Lc(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function yv(t,n,r,l,c,d,m,b,O,I,F,X){return t=new qE(t,n,r,m,b,O,I,X),n=1,d===!0&&(n|=24),d=jt(3,null,null,n),t.current=d,d.stateNode=t,n=Cu(),n.refCount++,t.pooledCache=n,n.refCount++,d.memoizedState={element:l,isDehydrated:r,cache:n},wu(d),t}function xv(t){return t?(t=Mi,t):Mi}function Sv(t,n,r,l,c,d){c=xv(c),l.context===null?l.context=c:l.pendingContext=c,l=ua(n),l.payload={element:r},d=d===void 0?null:d,d!==null&&(l.callback=d),r=da(t,l,n),r!==null&&($t(r,t,n),no(r,t,n))}function Ev(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<n?r:n}}function Fd(t,n){Ev(t,n),(t=t.alternate)&&Ev(t,n)}function Cv(t){if(t.tag===13){var n=Di(t,67108864);n!==null&&$t(n,t,67108864),Fd(t,67108864)}}var Cs=!0;function YE(t,n,r,l){var c=D.T;D.T=null;var d=J.p;try{J.p=2,Gd(t,n,r,l)}finally{J.p=d,D.T=c}}function XE(t,n,r,l){var c=D.T;D.T=null;var d=J.p;try{J.p=8,Gd(t,n,r,l)}finally{J.p=d,D.T=c}}function Gd(t,n,r,l){if(Cs){var c=Wd(l);if(c===null)_d(t,n,l,Os,r),Tv(t,l);else if(QE(c,t,n,r,l))l.stopPropagation();else if(Tv(t,l),n&4&&-1<KE.indexOf(t)){for(;c!==null;){var d=Ci(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var m=La(d.pendingLanes);if(m!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var O=1<<31-Bt(m);b.entanglements[1]|=O,m&=~O}kn(d),(De&6)===0&&(ls=Zt()+500,xo(0))}}break;case 13:b=Di(d,2),b!==null&&$t(b,d,2),cs(),Fd(d,2)}if(d=Wd(l),d===null&&_d(t,n,l,Os,r),d===c)break;c=d}c!==null&&l.stopPropagation()}else _d(t,n,l,null,r)}}function Wd(t){return t=Kc(t),$d(t)}var Os=null;function $d(t){if(Os=null,t=Ei(t),t!==null){var n=u(t);if(n===null)t=null;else{var r=n.tag;if(r===13){if(t=f(n),t!==null)return t;t=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Os=t,null}function Ov(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Pc()){case Vr:return 2;case ml:return 8;case Pa:case pl:return 32;case xi:return 268435456;default:return 32}default:return 32}}var qd=!1,Oa=null,Ta=null,ka=null,Ro=new Map,No=new Map,wa=[],KE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Tv(t,n){switch(t){case"focusin":case"focusout":Oa=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":Ro.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":No.delete(n.pointerId)}}function Ao(t,n,r,l,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:r,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},n!==null&&(n=Ci(n),n!==null&&Cv(n)),t):(t.eventSystemFlags|=l,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function QE(t,n,r,l,c){switch(n){case"focusin":return Oa=Ao(Oa,t,n,r,l,c),!0;case"dragenter":return Ta=Ao(Ta,t,n,r,l,c),!0;case"mouseover":return ka=Ao(ka,t,n,r,l,c),!0;case"pointerover":var d=c.pointerId;return Ro.set(d,Ao(Ro.get(d)||null,t,n,r,l,c)),!0;case"gotpointercapture":return d=c.pointerId,No.set(d,Ao(No.get(d)||null,t,n,r,l,c)),!0}return!1}function kv(t){var n=Ei(t.target);if(n!==null){var r=u(n);if(r!==null){if(n=r.tag,n===13){if(n=f(r),n!==null){t.blockedOn=n,G1(t.priority,function(){if(r.tag===13){var l=Wt();l=Bc(l);var c=Di(r,l);c!==null&&$t(c,r,l),Fd(r,l)}});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ts(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var r=Wd(t.nativeEvent);if(r===null){r=t.nativeEvent;var l=new r.constructor(r.type,r);Xc=l,r.target.dispatchEvent(l),Xc=null}else return n=Ci(r),n!==null&&Cv(n),t.blockedOn=r,!1;n.shift()}return!0}function wv(t,n,r){Ts(t)&&r.delete(n)}function ZE(){qd=!1,Oa!==null&&Ts(Oa)&&(Oa=null),Ta!==null&&Ts(Ta)&&(Ta=null),ka!==null&&Ts(ka)&&(ka=null),Ro.forEach(wv),No.forEach(wv)}function ks(t,n){t.blockedOn===n&&(t.blockedOn=null,qd||(qd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ZE)))}var ws=null;function Rv(t){ws!==t&&(ws=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ws===t&&(ws=null);for(var n=0;n<t.length;n+=3){var r=t[n],l=t[n+1],c=t[n+2];if(typeof l!="function"){if($d(l||r)===null)continue;break}var d=Ci(r);d!==null&&(t.splice(n,3),n-=3,$u(d,{pending:!0,data:c,method:r.method,action:l},l,c))}}))}function _o(t){function n(O){return ks(O,t)}Oa!==null&&ks(Oa,t),Ta!==null&&ks(Ta,t),ka!==null&&ks(ka,t),Ro.forEach(n),No.forEach(n);for(var r=0;r<wa.length;r++){var l=wa[r];l.blockedOn===t&&(l.blockedOn=null)}for(;0<wa.length&&(r=wa[0],r.blockedOn===null);)kv(r),r.blockedOn===null&&wa.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var c=r[l],d=r[l+1],m=c[Rt]||null;if(typeof d=="function")m||Rv(r);else if(m){var b=null;if(d&&d.hasAttribute("formAction")){if(c=d,m=d[Rt]||null)b=m.formAction;else if($d(c)!==null)continue}else b=m.action;typeof b=="function"?r[l+1]=b:(r.splice(l,3),l-=3),Rv(r)}}}function Yd(t){this._internalRoot=t}Rs.prototype.render=Yd.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));var r=n.current,l=Wt();Sv(r,l,t,n,null,null)},Rs.prototype.unmount=Yd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Sv(t.current,2,null,t,null,null),cs(),n[Si]=null}};function Rs(t){this._internalRoot=t}Rs.prototype.unstable_scheduleHydration=function(t){if(t){var n=Wg();t={blockedOn:null,target:t,priority:n};for(var r=0;r<wa.length&&n!==0&&n<wa[r].priority;r++);wa.splice(r,0,t),r===0&&kv(t)}};var Nv=a.version;if(Nv!=="19.1.1")throw Error(o(527,Nv,"19.1.1"));J.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=h(n),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var JE={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{Ir=Ns.inject(JE),Lt=Ns}catch{}}return Vo.createRoot=function(t,n){if(!s(t))throw Error(o(299));var r=!1,l="",c=Wm,d=$m,m=qm,b=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks)),n=yv(t,1,!1,null,null,r,l,c,d,m,b,null),t[Si]=n.current,Ad(t),new Yd(n)},Vo.hydrateRoot=function(t,n,r){if(!s(t))throw Error(o(299));var l=!1,c="",d=Wm,m=$m,b=qm,O=null,I=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(O=r.unstable_transitionCallbacks),r.formState!==void 0&&(I=r.formState)),n=yv(t,1,!0,n,r??null,l,c,d,m,b,O,I),n.context=xv(null),r=n.current,l=Wt(),l=Bc(l),c=ua(l),c.callback=null,da(r,c,l),r=l,n.current.lanes=r,Mr(n,r),kn(n),t[Si]=n.current,Ad(t),new Rs(n)},Vo.version="19.1.1",Vo}var Hv;function cC(){if(Hv)return Qd.exports;Hv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),Qd.exports=sC(),Qd.exports}var uC=cC();function Gy(e){var a=Object.create(null);return function(i){return a[i]===void 0&&(a[i]=e(i)),a[i]}}var dC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fC=Gy(function(e){return dC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function gC(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}function hC(e){var a=document.createElement("style");return a.setAttribute("data-emotion",e.key),e.nonce!==void 0&&a.setAttribute("nonce",e.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}var mC=function(){function e(i){var o=this;this._insertTag=function(s){var u;o.tags.length===0?o.insertionPoint?u=o.insertionPoint.nextSibling:o.prepend?u=o.container.firstChild:u=o.before:u=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(s,u),o.tags.push(s)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var a=e.prototype;return a.hydrate=function(o){o.forEach(this._insertTag)},a.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hC(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var u=gC(s);try{u.insertRule(o,u.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(o));this.ctr++},a.flush=function(){this.tags.forEach(function(o){var s;return(s=o.parentNode)==null?void 0:s.removeChild(o)}),this.tags=[],this.ctr=0},e}(),Ot="-ms-",ic="-moz-",_e="-webkit-",Wy="comm",Xf="rule",Kf="decl",pC="@import",$y="@keyframes",vC="@layer",bC=Math.abs,vc=String.fromCharCode,yC=Object.assign;function xC(e,a){return yt(e,0)^45?(((a<<2^yt(e,0))<<2^yt(e,1))<<2^yt(e,2))<<2^yt(e,3):0}function qy(e){return e.trim()}function SC(e,a){return(e=a.exec(e))?e[0]:e}function ze(e,a,i){return e.replace(a,i)}function kf(e,a){return e.indexOf(a)}function yt(e,a){return e.charCodeAt(a)|0}function qo(e,a,i){return e.slice(a,i)}function Rn(e){return e.length}function Qf(e){return e.length}function As(e,a){return a.push(e),e}function EC(e,a){return e.map(a).join("")}var bc=1,Cr=1,Yy=0,Mt=0,nt=0,kr="";function yc(e,a,i,o,s,u,f){return{value:e,root:a,parent:i,type:o,props:s,children:u,line:bc,column:Cr,length:f,return:""}}function Io(e,a){return yC(yc("",null,null,"",null,null,0),e,{length:-e.length},a)}function CC(){return nt}function OC(){return nt=Mt>0?yt(kr,--Mt):0,Cr--,nt===10&&(Cr=1,bc--),nt}function Kt(){return nt=Mt<Yy?yt(kr,Mt++):0,Cr++,nt===10&&(Cr=1,bc++),nt}function _n(){return yt(kr,Mt)}function Fs(){return Mt}function al(e,a){return qo(kr,e,a)}function Yo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xy(e){return bc=Cr=1,Yy=Rn(kr=e),Mt=0,[]}function Ky(e){return kr="",e}function Gs(e){return qy(al(Mt-1,wf(e===91?e+2:e===40?e+1:e)))}function TC(e){for(;(nt=_n())&&nt<33;)Kt();return Yo(e)>2||Yo(nt)>3?"":" "}function kC(e,a){for(;--a&&Kt()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return al(e,Fs()+(a<6&&_n()==32&&Kt()==32))}function wf(e){for(;Kt();)switch(nt){case e:return Mt;case 34:case 39:e!==34&&e!==39&&wf(nt);break;case 40:e===41&&wf(e);break;case 92:Kt();break}return Mt}function wC(e,a){for(;Kt()&&e+nt!==57;)if(e+nt===84&&_n()===47)break;return"/*"+al(a,Mt-1)+"*"+vc(e===47?e:Kt())}function RC(e){for(;!Yo(_n());)Kt();return al(e,Mt)}function NC(e){return Ky(Ws("",null,null,null,[""],e=Xy(e),0,[0],e))}function Ws(e,a,i,o,s,u,f,g,h){for(var p=0,v=0,S=f,y=0,x=0,C=0,E=1,k=1,_=1,R=0,A="",M=s,N=u,Y=o,U=A;k;)switch(C=R,R=Kt()){case 40:if(C!=108&&yt(U,S-1)==58){kf(U+=ze(Gs(R),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:U+=Gs(R);break;case 9:case 10:case 13:case 32:U+=TC(C);break;case 92:U+=kC(Fs()-1,7);continue;case 47:switch(_n()){case 42:case 47:As(AC(wC(Kt(),Fs()),a,i),h);break;default:U+="/"}break;case 123*E:g[p++]=Rn(U)*_;case 125*E:case 59:case 0:switch(R){case 0:case 125:k=0;case 59+v:_==-1&&(U=ze(U,/\f/g,"")),x>0&&Rn(U)-S&&As(x>32?Uv(U+";",o,i,S-1):Uv(ze(U," ","")+";",o,i,S-2),h);break;case 59:U+=";";default:if(As(Y=jv(U,a,i,p,v,s,g,A,M=[],N=[],S),u),R===123)if(v===0)Ws(U,a,Y,Y,M,u,S,g,N);else switch(y===99&&yt(U,3)===110?100:y){case 100:case 108:case 109:case 115:Ws(e,Y,Y,o&&As(jv(e,Y,Y,0,0,s,g,A,s,M=[],S),N),s,N,S,g,o?M:N);break;default:Ws(U,Y,Y,Y,[""],N,0,g,N)}}p=v=x=0,E=_=1,A=U="",S=f;break;case 58:S=1+Rn(U),x=C;default:if(E<1){if(R==123)--E;else if(R==125&&E++==0&&OC()==125)continue}switch(U+=vc(R),R*E){case 38:_=v>0?1:(U+="\f",-1);break;case 44:g[p++]=(Rn(U)-1)*_,_=1;break;case 64:_n()===45&&(U+=Gs(Kt())),y=_n(),v=S=Rn(A=U+=RC(Fs())),R++;break;case 45:C===45&&Rn(U)==2&&(E=0)}}return u}function jv(e,a,i,o,s,u,f,g,h,p,v){for(var S=s-1,y=s===0?u:[""],x=Qf(y),C=0,E=0,k=0;C<o;++C)for(var _=0,R=qo(e,S+1,S=bC(E=f[C])),A=e;_<x;++_)(A=qy(E>0?y[_]+" "+R:ze(R,/&\f/g,y[_])))&&(h[k++]=A);return yc(e,a,i,s===0?Xf:g,h,p,v)}function AC(e,a,i){return yc(e,a,i,Wy,vc(CC()),qo(e,2,-2),0)}function Uv(e,a,i,o){return yc(e,a,i,Kf,qo(e,0,o),qo(e,o+1,-1),o)}function br(e,a){for(var i="",o=Qf(e),s=0;s<o;s++)i+=a(e[s],s,e,a)||"";return i}function _C(e,a,i,o){switch(e.type){case vC:if(e.children.length)break;case pC:case Kf:return e.return=e.return||e.value;case Wy:return"";case $y:return e.return=e.value+"{"+br(e.children,o)+"}";case Xf:e.value=e.props.join(",")}return Rn(i=br(e.children,o))?e.return=e.value+"{"+i+"}":""}function zC(e){var a=Qf(e);return function(i,o,s,u){for(var f="",g=0;g<a;g++)f+=e[g](i,o,s,u)||"";return f}}function VC(e){return function(a){a.root||(a=a.return)&&e(a)}}var IC=function(a,i,o){for(var s=0,u=0;s=u,u=_n(),s===38&&u===12&&(i[o]=1),!Yo(u);)Kt();return al(a,Mt)},DC=function(a,i){var o=-1,s=44;do switch(Yo(s)){case 0:s===38&&_n()===12&&(i[o]=1),a[o]+=IC(Mt-1,i,o);break;case 2:a[o]+=Gs(s);break;case 4:if(s===44){a[++o]=_n()===58?"&\f":"",i[o]=a[o].length;break}default:a[o]+=vc(s)}while(s=Kt());return a},MC=function(a,i){return Ky(DC(Xy(a),i))},Fv=new WeakMap,PC=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var i=a.value,o=a.parent,s=a.column===o.column&&a.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(a.props.length===1&&i.charCodeAt(0)!==58&&!Fv.get(o))&&!s){Fv.set(a,!0);for(var u=[],f=MC(i,u),g=o.props,h=0,p=0;h<f.length;h++)for(var v=0;v<g.length;v++,p++)a.props[p]=u[h]?f[h].replace(/&\f/g,g[v]):g[v]+" "+f[h]}}},LC=function(a){if(a.type==="decl"){var i=a.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(a.return="",a.value="")}};function Qy(e,a){switch(xC(e,a)){case 5103:return _e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+ic+e+Ot+e+e;case 6828:case 4268:return _e+e+Ot+e+e;case 6165:return _e+e+Ot+"flex-"+e+e;case 5187:return _e+e+ze(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+Ot+"flex-$1$2")+e;case 5443:return _e+e+Ot+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return _e+e+Ot+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+Ot+ze(e,"shrink","negative")+e;case 5292:return _e+e+Ot+ze(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+ze(e,"-grow","")+_e+e+Ot+ze(e,"grow","positive")+e;case 4554:return _e+ze(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+Ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rn(e)-1-a>6)switch(yt(e,a+1)){case 109:if(yt(e,a+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+ic+(yt(e,a+3)==108?"$3":"$2-$3"))+e;case 115:return~kf(e,"stretch")?Qy(ze(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(yt(e,a+1)!==115)break;case 6444:switch(yt(e,Rn(e)-3-(~kf(e,"!important")&&10))){case 107:return ze(e,":",":"+_e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(yt(e,14)===45?"inline-":"")+"box$3$1"+_e+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(yt(e,a+11)){case 114:return _e+e+Ot+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+Ot+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+Ot+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+Ot+e+e}return e}var BC=function(a,i,o,s){if(a.length>-1&&!a.return)switch(a.type){case Kf:a.return=Qy(a.value,a.length);break;case $y:return br([Io(a,{value:ze(a.value,"@","@"+_e)})],s);case Xf:if(a.length)return EC(a.props,function(u){switch(SC(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return br([Io(a,{props:[ze(u,/:(read-\w+)/,":"+ic+"$1")]})],s);case"::placeholder":return br([Io(a,{props:[ze(u,/:(plac\w+)/,":"+_e+"input-$1")]}),Io(a,{props:[ze(u,/:(plac\w+)/,":"+ic+"$1")]}),Io(a,{props:[ze(u,/:(plac\w+)/,Ot+"input-$1")]})],s)}return""})}},HC=[BC],jC=function(a){var i=a.key;if(i==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(E){var k=E.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=a.stylisPlugins||HC,u={},f,g=[];f=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(E){for(var k=E.getAttribute("data-emotion").split(" "),_=1;_<k.length;_++)u[k[_]]=!0;g.push(E)});var h,p=[PC,LC];{var v,S=[_C,VC(function(E){v.insert(E)})],y=zC(p.concat(s,S)),x=function(k){return br(NC(k),y)};h=function(k,_,R,A){v=R,x(k?k+"{"+_.styles+"}":_.styles),A&&(C.inserted[_.name]=!0)}}var C={key:i,sheet:new mC({key:i,container:f,nonce:a.nonce,speedy:a.speedy,prepend:a.prepend,insertionPoint:a.insertionPoint}),nonce:a.nonce,inserted:u,registered:{},insert:h};return C.sheet.hydrate(g),C},tf={exports:{}},Ie={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gv;function UC(){if(Gv)return Ie;Gv=1;var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,g=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A(N){if(typeof N=="object"&&N!==null){var Y=N.$$typeof;switch(Y){case a:switch(N=N.type,N){case h:case p:case o:case u:case s:case S:return N;default:switch(N=N&&N.$$typeof,N){case g:case v:case C:case x:case f:return N;default:return Y}}case i:return Y}}}function M(N){return A(N)===p}return Ie.AsyncMode=h,Ie.ConcurrentMode=p,Ie.ContextConsumer=g,Ie.ContextProvider=f,Ie.Element=a,Ie.ForwardRef=v,Ie.Fragment=o,Ie.Lazy=C,Ie.Memo=x,Ie.Portal=i,Ie.Profiler=u,Ie.StrictMode=s,Ie.Suspense=S,Ie.isAsyncMode=function(N){return M(N)||A(N)===h},Ie.isConcurrentMode=M,Ie.isContextConsumer=function(N){return A(N)===g},Ie.isContextProvider=function(N){return A(N)===f},Ie.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===a},Ie.isForwardRef=function(N){return A(N)===v},Ie.isFragment=function(N){return A(N)===o},Ie.isLazy=function(N){return A(N)===C},Ie.isMemo=function(N){return A(N)===x},Ie.isPortal=function(N){return A(N)===i},Ie.isProfiler=function(N){return A(N)===u},Ie.isStrictMode=function(N){return A(N)===s},Ie.isSuspense=function(N){return A(N)===S},Ie.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===o||N===p||N===u||N===s||N===S||N===y||typeof N=="object"&&N!==null&&(N.$$typeof===C||N.$$typeof===x||N.$$typeof===f||N.$$typeof===g||N.$$typeof===v||N.$$typeof===k||N.$$typeof===_||N.$$typeof===R||N.$$typeof===E)},Ie.typeOf=A,Ie}var Wv;function FC(){return Wv||(Wv=1,tf.exports=UC()),tf.exports}var nf,$v;function GC(){if($v)return nf;$v=1;var e=FC(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=o,u[e.Memo]=s;function f(C){return e.isMemo(C)?s:u[C.$$typeof]||a}var g=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,y=Object.prototype;function x(C,E,k){if(typeof E!="string"){if(y){var _=S(E);_&&_!==y&&x(C,_,k)}var R=h(E);p&&(R=R.concat(p(E)));for(var A=f(C),M=f(E),N=0;N<R.length;++N){var Y=R[N];if(!i[Y]&&!(k&&k[Y])&&!(M&&M[Y])&&!(A&&A[Y])){var U=v(E,Y);try{g(C,Y,U)}catch{}}}}return C}return nf=x,nf}GC();var WC=!0;function Zy(e,a,i){var o="";return i.split(" ").forEach(function(s){e[s]!==void 0?a.push(e[s]+";"):s&&(o+=s+" ")}),o}var Zf=function(a,i,o){var s=a.key+"-"+i.name;(o===!1||WC===!1)&&a.registered[s]===void 0&&(a.registered[s]=i.styles)},Jf=function(a,i,o){Zf(a,i,o);var s=a.key+"-"+i.name;if(a.inserted[i.name]===void 0){var u=i;do a.insert(i===u?"."+s:"",u,a.sheet,!0),u=u.next;while(u!==void 0)}};function $C(e){for(var a=0,i,o=0,s=e.length;s>=4;++o,s-=4)i=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,a=(i&65535)*1540483477+((i>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(s){case 3:a^=(e.charCodeAt(o+2)&255)<<16;case 2:a^=(e.charCodeAt(o+1)&255)<<8;case 1:a^=e.charCodeAt(o)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var qC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},YC=/[A-Z]|^ms/g,XC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jy=function(a){return a.charCodeAt(1)===45},qv=function(a){return a!=null&&typeof a!="boolean"},af=Gy(function(e){return Jy(e)?e:e.replace(YC,"-$&").toLowerCase()}),Yv=function(a,i){switch(a){case"animation":case"animationName":if(typeof i=="string")return i.replace(XC,function(o,s,u){return Nn={name:s,styles:u,next:Nn},s})}return qC[a]!==1&&!Jy(a)&&typeof i=="number"&&i!==0?i+"px":i};function Xo(e,a,i){if(i==null)return"";var o=i;if(o.__emotion_styles!==void 0)return o;switch(typeof i){case"boolean":return"";case"object":{var s=i;if(s.anim===1)return Nn={name:s.name,styles:s.styles,next:Nn},s.name;var u=i;if(u.styles!==void 0){var f=u.next;if(f!==void 0)for(;f!==void 0;)Nn={name:f.name,styles:f.styles,next:Nn},f=f.next;var g=u.styles+";";return g}return KC(e,a,i)}case"function":{if(e!==void 0){var h=Nn,p=i(e);return Nn=h,Xo(e,a,p)}break}}var v=i;if(a==null)return v;var S=a[v];return S!==void 0?S:v}function KC(e,a,i){var o="";if(Array.isArray(i))for(var s=0;s<i.length;s++)o+=Xo(e,a,i[s])+";";else for(var u in i){var f=i[u];if(typeof f!="object"){var g=f;a!=null&&a[g]!==void 0?o+=u+"{"+a[g]+"}":qv(g)&&(o+=af(u)+":"+Yv(u,g)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(a==null||a[f[0]]===void 0))for(var h=0;h<f.length;h++)qv(f[h])&&(o+=af(u)+":"+Yv(u,f[h])+";");else{var p=Xo(e,a,f);switch(u){case"animation":case"animationName":{o+=af(u)+":"+p+";";break}default:o+=u+"{"+p+"}"}}}return o}var Xv=/label:\s*([^\s;{]+)\s*(;|$)/g,Nn;function eg(e,a,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Nn=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,s+=Xo(i,a,u);else{var f=u;s+=f[0]}for(var g=1;g<e.length;g++)if(s+=Xo(i,a,e[g]),o){var h=u;s+=h[g]}Xv.lastIndex=0;for(var p="",v;(v=Xv.exec(s))!==null;)p+="-"+v[1];var S=$C(s)+p;return{name:S,styles:s,next:Nn}}var QC=function(a){return a()},e0=Iv.useInsertionEffect?Iv.useInsertionEffect:!1,t0=e0||QC,Kv=e0||K.useLayoutEffect,n0=K.createContext(typeof HTMLElement<"u"?jC({key:"css"}):null);n0.Provider;var tg=function(a){return K.forwardRef(function(i,o){var s=K.useContext(n0);return a(i,s,o)})},ng=K.createContext({}),ag={}.hasOwnProperty,Rf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZC=function(a,i){var o={};for(var s in i)ag.call(i,s)&&(o[s]=i[s]);return o[Rf]=a,o},JC=function(a){var i=a.cache,o=a.serialized,s=a.isStringTag;return Zf(i,o,s),t0(function(){return Jf(i,o,s)}),null},eO=tg(function(e,a,i){var o=e.css;typeof o=="string"&&a.registered[o]!==void 0&&(o=a.registered[o]);var s=e[Rf],u=[o],f="";typeof e.className=="string"?f=Zy(a.registered,u,e.className):e.className!=null&&(f=e.className+" ");var g=eg(u,void 0,K.useContext(ng));f+=a.key+"-"+g.name;var h={};for(var p in e)ag.call(e,p)&&p!=="css"&&p!==Rf&&(h[p]=e[p]);return h.className=f,i&&(h.ref=i),K.createElement(K.Fragment,null,K.createElement(JC,{cache:a,serialized:g,isStringTag:typeof s=="string"}),K.createElement(s,h))}),tO=eO,Qv=function(a,i){var o=arguments;if(i==null||!ag.call(i,"css"))return K.createElement.apply(void 0,o);var s=o.length,u=new Array(s);u[0]=tO,u[1]=ZC(a,i);for(var f=2;f<s;f++)u[f]=o[f];return K.createElement.apply(null,u)};(function(e){var a;a||(a=e.JSX||(e.JSX={}))})(Qv||(Qv={}));var Zv=tg(function(e,a){var i=e.styles,o=eg([i],void 0,K.useContext(ng)),s=K.useRef();return Kv(function(){var u=a.key+"-global",f=new a.sheet.constructor({key:u,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),g=!1,h=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return a.sheet.tags.length&&(f.before=a.sheet.tags[0]),h!==null&&(g=!0,h.setAttribute("data-emotion",u),f.hydrate([h])),s.current=[f,g],function(){f.flush()}},[a]),Kv(function(){var u=s.current,f=u[0],g=u[1];if(g){u[1]=!1;return}if(o.next!==void 0&&Jf(a,o.next,!0),f.tags.length){var h=f.tags[f.tags.length-1].nextElementSibling;f.before=h,f.flush()}a.insert("",o,f,!1)},[a,o.name]),null});function nO(...e){return function(...i){e.forEach(o=>o?.(...i))}}const aO=(...e)=>e.map(a=>a?.trim?.()).filter(Boolean).join(" "),iO=/^on[A-Z]/;function Ko(...e){let a={};for(let i of e){for(let o in a){if(iO.test(o)&&typeof a[o]=="function"&&typeof i[o]=="function"){a[o]=nO(a[o],i[o]);continue}if(o==="className"||o==="class"){a[o]=aO(a[o],i[o]);continue}if(o==="style"){a[o]=Object.assign({},a[o]??{},i[o]??{});continue}a[o]=i[o]!==void 0?i[o]:a[o]}for(let o in i)a[o]===void 0&&(a[o]=i[o])}return a}function rO(e,a){if(e!=null){if(typeof e=="function"){e(a);return}try{e.current=a}catch{throw new Error(`Cannot assign value '${a}' to ref '${e}'`)}}}function oO(...e){return a=>{e.forEach(i=>{rO(i,a)})}}function il(e){const a=Object.assign({},e);for(let i in a)a[i]===void 0&&delete a[i];return a}const vn=(...e)=>e.filter(Boolean).map(a=>a.trim()).join(" ");function lO(e){return e.default||e}const It=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Vn=e=>typeof e=="string",ig=e=>typeof e=="function";function sO(e){const a=K.version;return!Vn(a)||a.startsWith("18.")?e?.ref:e?.props?.ref}const a0=(...e)=>{const a=e.reduce((i,o)=>(o?.forEach(s=>i.add(s)),i),new Set([]));return Array.from(a)};function cO(e,a){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${a}`}function yr(e={}){const{name:a,strict:i=!0,hookName:o="useContext",providerName:s="Provider",errorMessage:u,defaultValue:f}=e,g=K.createContext(f);g.displayName=a;function h(){const p=K.useContext(g);if(!p&&i){const v=new Error(u??cO(o,s));throw v.name="ContextError",Error.captureStackTrace?.(v,h),v}return p}return[g.Provider,h,g]}const[uO,xc]=yr({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function dO(e){const{value:a,children:i}=e;return H.jsxs(uO,{value:a,children:[!a._config.disableLayers&&H.jsx(Zv,{styles:a.layers.atRule}),H.jsx(Zv,{styles:a._global}),i]})}const fO=(e,a)=>{const i={},o={},s=Object.keys(e);for(const u of s)a(u)?o[u]=e[u]:i[u]=e[u];return[o,i]},xr=(e,a)=>{const i=ig(a)?a:o=>a.includes(o);return fO(e,i)},gO=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function hO(e){return typeof e=="string"&&gO.has(e)}function mO(e,a,i){const{css:o,isValidProperty:s}=xc(),{children:u,...f}=e,g=K.useMemo(()=>{const[y,x]=xr(f,R=>i(R,a.variantKeys)),[C,E]=xr(x,a.variantKeys),[k,_]=xr(E,s);return{forwardedProps:y,variantProps:C,styleProps:k,elementProps:_}},[a.variantKeys,i,f,s]),{css:h,...p}=g.styleProps,v=K.useMemo(()=>{const y={...g.variantProps};return a.variantKeys.includes("colorPalette")||(y.colorPalette=f.colorPalette),a.variantKeys.includes("orientation")||(y.orientation=f.orientation),a(y)},[a,g.variantProps,f.colorPalette,f.orientation]);return{styles:K.useMemo(()=>o(v,...pO(h),p),[o,v,h,p]),props:{...g.forwardedProps,...g.elementProps,children:u}}}const pO=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),vO=lO(fC),bO=vO,yO=e=>e!=="theme",xO=(e,a,i)=>{let o;if(a){const s=a.shouldForwardProp;o=e.__emotion_forwardProp&&s?u=>e.__emotion_forwardProp(u)&&s(u):s}return typeof o!="function"&&i&&(o=e.__emotion_forwardProp),o};let SO=typeof document<"u";const Jv=({cache:e,serialized:a,isStringTag:i})=>{Zf(e,a,i);const o=t0(()=>Jf(e,a,i));if(!SO&&o!==void 0){let s=a.name,u=a.next;for(;u!==void 0;)s=vn(s,u.name),u=u.next;return H.jsx("style",{"data-emotion":vn(e.key,s),dangerouslySetInnerHTML:{__html:o},nonce:e.sheet.nonce})}return null},eb={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},EO=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),CO=(e,a={},i={})=>{if(EO(eb,e)){i.forwardProps||(i.forwardProps=[]);const p=eb[e];i.forwardProps=a0([...i.forwardProps,...p])}const o=e.__emotion_real===e,s=o&&e.__emotion_base||e;let u,f;i!==void 0&&(u=i.label,f=i.target);let g=[];const h=tg((p,v,S)=>{const{cva:y,isValidProperty:x}=xc(),C=a.__cva__?a:y(a),E=TO(e.__emotion_cva,C),k=le=>(D,J)=>le.includes(D)?!0:!J?.includes(D)&&!x(D);!i.shouldForwardProp&&i.forwardProps&&(i.shouldForwardProp=k(i.forwardProps));const _=(le,D)=>{const J=typeof e=="string"&&e.charCodeAt(0)>96?bO:yO,se=!D?.includes(le)&&!x(le);return J(le)&&se},R=xO(e,i,o)||_,A=K.useMemo(()=>Object.assign({},i.defaultProps,il(p)),[p]),{props:M,styles:N}=mO(A,E,R);let Y="",U=[N],j=M;if(M.theme==null){j={};for(let le in M)j[le]=M[le];j.theme=K.useContext(ng)}typeof M.className=="string"?Y=Zy(v.registered,U,M.className):M.className!=null&&(Y=vn(Y,M.className));const W=eg(g.concat(U),v.registered,j);W.styles&&(Y=vn(Y,`${v.key}-${W.name}`)),f!==void 0&&(Y=vn(Y,f));const Q=!R("as");let G=Q&&M.as||s,P={};for(let le in M)if(!(Q&&le==="as")){if(hO(le)){const D=le.replace("html","").toLowerCase();P[D]=M[le];continue}R(le)&&(P[le]=M[le])}let ne=Y.trim();ne?P.className=ne:Reflect.deleteProperty(P,"className"),P.ref=S;const re=i.forwardAsChild||i.forwardProps?.includes("asChild");if(M.asChild&&!re){const le=K.isValidElement(M.children)?K.Children.only(M.children):K.Children.toArray(M.children).find(K.isValidElement);if(!le)throw new Error("[chakra-ui > factory] No valid child found");G=le.type,P.children=null,Reflect.deleteProperty(P,"asChild"),P=Ko(P,le.props),P.ref=oO(S,sO(le))}return P.as&&re?(P.as=void 0,H.jsxs(K.Fragment,{children:[H.jsx(Jv,{cache:v,serialized:W,isStringTag:typeof G=="string"}),H.jsx(G,{asChild:!0,...P,children:H.jsx(M.as,{children:P.children})})]})):H.jsxs(K.Fragment,{children:[H.jsx(Jv,{cache:v,serialized:W,isStringTag:typeof G=="string"}),H.jsx(G,{...P})]})});return h.displayName=u!==void 0?u:`chakra(${typeof s=="string"?s:s.displayName||s.name||"Component"})`,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_forwardProp=i.shouldForwardProp,h.__emotion_cva=a,Object.defineProperty(h,"toString",{value(){return`.${f}`}}),h},rf=CO.bind(),of=new Map,OO=new Proxy(rf,{apply(e,a,i){return rf(...i)},get(e,a){return of.has(a)||of.set(a,rf(a)),of.get(a)}}),dn=OO,TO=(e,a)=>e&&!a?e:!e&&a?a:e.merge(a),rg=dn("div");rg.displayName="Box";const kO=Object.freeze({}),wO=Object.freeze({});function RO(e){const{key:a,recipe:i}=e,o=xc();return K.useMemo(()=>{const s=i||(a!=null?o.getRecipe(a):{});return o.cva(structuredClone(s))},[a,i,o])}const NO=e=>e.charAt(0).toUpperCase()+e.slice(1);function rl(e){const{key:a,recipe:i}=e,o=NO(a||i.className||"Component"),[s,u]=yr({strict:!1,name:`${o}PropsContext`,providerName:`${o}PropsContext`});function f(p){const{unstyled:v,...S}=p,y=RO({key:a,recipe:S.recipe||i}),[x,C]=K.useMemo(()=>y.splitVariantProps(S),[y,S]);return{styles:v?kO:y(x),className:y.className,props:C}}const g=(p,v)=>{const S=dn(p,{},v),y=K.forwardRef((x,C)=>{const E=u(),k=K.useMemo(()=>Ko(E,x),[x,E]),{styles:_,className:R,props:A}=f(k);return H.jsx(S,{...A,ref:C,css:[_,k.css],className:vn(R,k.className)})});return y.displayName=p.displayName||p.name,y};function h(){return s}return{withContext:g,PropsProvider:s,withPropsProvider:h,usePropsContext:u,useRecipeResult:f}}function $s(e){return e==null?[]:Array.isArray(e)?e:[e]}var Sr=e=>e[0],Sc=e=>e[e.length-1],AO=(e,a)=>e.indexOf(a)!==-1,ui=(e,...a)=>e.concat(a),gi=(e,...a)=>e.filter(i=>!a.includes(i)),hr=e=>Array.from(new Set(e)),lf=(e,a)=>{const i=new Set(a);return e.filter(o=>!i.has(o))},Or=(e,a)=>AO(e,a)?gi(e,a):ui(e,a);function i0(e,a,i={}){const{step:o=1,loop:s=!0}=i,u=a+o,f=e.length,g=f-1;return a===-1?o>0?0:g:u<0?s?g:0:u>=f?s?0:a>f?f:a:u}function _O(e,a,i={}){return e[i0(e,a,i)]}function zO(e,a,i={}){const{step:o=1,loop:s=!0}=i;return i0(e,a,{step:-o,loop:s})}function VO(e,a,i={}){return e[zO(e,a,i)]}function tb(e,a){return e.reduce(([i,o],s)=>(a(s)?i.push(s):o.push(s),[i,o]),[[],[]])}var nb=e=>e?.constructor.name==="Array",IO=(e,a)=>{if(e.length!==a.length)return!1;for(let i=0;i<e.length;i++)if(!bn(e[i],a[i]))return!1;return!0},bn=(e,a)=>{if(Object.is(e,a))return!0;if(e==null&&a!=null||e!=null&&a==null)return!1;if(typeof e?.isEqual=="function"&&typeof a?.isEqual=="function")return e.isEqual(a);if(typeof e=="function"&&typeof a=="function")return e.toString()===a.toString();if(nb(e)&&nb(a))return IO(Array.from(e),Array.from(a));if(typeof e!="object"||typeof a!="object")return!1;const i=Object.keys(a??Object.create(null)),o=i.length;for(let s=0;s<o;s++)if(!Reflect.has(e,i[s]))return!1;for(let s=0;s<o;s++){const u=i[s];if(!bn(e[u],a[u]))return!1}return!0},Ho=e=>Array.isArray(e),DO=e=>e===!0||e===!1,r0=e=>e!=null&&typeof e=="object",di=e=>r0(e)&&!Ho(e),qs=e=>typeof e=="string",fi=e=>typeof e=="function",MO=e=>e==null,za=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),PO=e=>Object.prototype.toString.call(e),o0=Function.prototype.toString,LO=o0.call(Object),BO=e=>{if(!r0(e)||PO(e)!="[object Object]"||UO(e))return!1;const a=Object.getPrototypeOf(e);if(a===null)return!0;const i=za(a,"constructor")&&a.constructor;return typeof i=="function"&&i instanceof i&&o0.call(i)==LO},HO=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,jO=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,UO=e=>HO(e)||jO(e),FO=(e,...a)=>(typeof e=="function"?e(...a):e)??void 0,GO=e=>e(),WO=()=>{},rc=(...e)=>(...a)=>{e.forEach(function(i){i?.(...a)})};function ea(e,a,...i){if(e in a){const s=a[e];return fi(s)?s(...i):s}const o=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(a))}`);throw Error.captureStackTrace?.(o,ea),o}var l0=(e,a)=>{try{return e()}catch(i){return i instanceof Error&&Error.captureStackTrace?.(i,l0),a?.()}},{floor:s0,abs:ab,round:Ec,min:$O,max:qO,pow:YO,sign:XO}=Math,Nf=e=>Number.isNaN(e),ta=e=>Nf(e)?0:e,c0=(e,a)=>(e%a+a)%a,KO=(e,a)=>(e%a+a)%a,QO=(e,a)=>ta(e)>=a,ZO=(e,a)=>ta(e)<=a,JO=(e,a,i)=>ta(e)>=a&&ta(e)<=i,e2=(e,a,i)=>Ec((ta(e)-a)/i)*i+a,Dt=(e,a,i)=>$O(qO(ta(e),a),i),t2=(e,a,i)=>(ta(e)-a)/(i-a),n2=(e,a,i,o)=>Dt(e2(e*(i-a)+a,a,o),a,i),ib=(e,a)=>{let i=e,o=a.toString(),s=o.indexOf("."),u=s>=0?o.length-s:0;if(u>0){let f=YO(10,u);i=Ec(i*f)/f}return i},sf=(e,a)=>typeof a=="number"?s0(e*a+.5)/a:Ec(e),rb=(e,a,i,o)=>{const s=a!=null?Number(a):0,u=Number(i),f=(e-s)%o;let g=ab(f)*2>=o?e+XO(f)*(o-ab(f)):e-f;if(g=ib(g,o),!Nf(s)&&g<s)g=s;else if(!Nf(u)&&g>u){const h=s0((u-s)/o),p=s+h*o;g=h<=0||p<s?u:p}return ib(g,o)},Ge=(e,a=0,i=10)=>{const o=Math.pow(i,a);return Ec(e*o)/o},ob=e=>{if(!Number.isFinite(e))return 0;let a=1,i=0;for(;Math.round(e*a)/a!==e;)a*=10,i+=1;return i},u0=(e,a,i)=>{let o=a==="+"?e+i:e-i;if(e%1!==0||i%1!==0){const s=10**Math.max(ob(e),ob(i));e=Math.round(e*s),i=Math.round(i*s),o=a==="+"?e+i:e-i,o/=s}return o},a2=(e,a)=>u0(ta(e),"+",a),i2=(e,a)=>u0(ta(e),"-",a);function og(e){if(!BO(e)||e===void 0)return e;const a=Reflect.ownKeys(e).filter(o=>typeof o=="string"),i={};for(const o of a){const s=e[o];s!==void 0&&(i[o]=og(s))}return i}function oc(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function d0(e,a){if(e==null)throw new Error(a())}function r2(e,a){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${a}`}function ol(e={}){const{name:a,strict:i=!0,hookName:o="useContext",providerName:s="Provider",errorMessage:u,defaultValue:f}=e,g=K.createContext(f);g.displayName=a;function h(){const p=K.useContext(g);if(!p&&i){const v=new Error(u??r2(o,s));throw v.name="ContextError",Error.captureStackTrace?.(v,h),v}return p}return[g.Provider,h,g]}const[hI,o2]=ol({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function l2(e){if(!e)return;const a=e.selectionStart??0,i=e.selectionEnd??0;Math.abs(i-a)===0&&a===0&&e.setSelectionRange(e.value.length,e.value.length)}var lb=e=>Math.max(0,Math.min(1,e)),s2=(e,a)=>e.map((i,o)=>e[(Math.max(a,0)+o)%e.length]),c2=()=>{},Cc=e=>typeof e=="object"&&e!==null,u2=2147483647,ni=e=>e?"":void 0,d2=1,f2=9,g2=11,Tt=e=>Cc(e)&&e.nodeType===d2&&typeof e.nodeName=="string",f0=e=>Cc(e)&&e.nodeType===f2,h2=e=>Cc(e)&&e===e.window,g0=e=>Tt(e)?e.localName||"":"#document";function m2(e){return["html","body","#document"].includes(g0(e))}var p2=e=>Cc(e)&&e.nodeType!==void 0,Qo=e=>p2(e)&&e.nodeType===g2&&"host"in e,v2=e=>Tt(e)&&e.localName==="input",b2=e=>!!e?.matches("a[href]"),y2=e=>Tt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,x2=/(textarea|select)/;function S2(e){if(e==null||!Tt(e))return!1;try{return v2(e)&&e.selectionStart!=null||x2.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Va(e,a){if(!e||!a||!Tt(e)||!Tt(a))return!1;const i=a.getRootNode?.();if(e===a||e.contains(a))return!0;if(i&&Qo(i)){let o=a;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Mn(e){return f0(e)?e:h2(e)?e.document:e?.ownerDocument??document}function E2(e){return Mn(e).documentElement}function gt(e){return Qo(e)?gt(e.host):f0(e)?e.defaultView??window:Tt(e)?e.ownerDocument?.defaultView??window:window}function C2(e){let a=e.activeElement;for(;a?.shadowRoot;){const i=a.shadowRoot.activeElement;if(i===a)break;a=i}return a}function O2(e){if(g0(e)==="html")return e;const a=e.assignedSlot||e.parentNode||Qo(e)&&e.host||E2(e);return Qo(a)?a.host:a}var cf=new WeakMap;function h0(e){return cf.has(e)||cf.set(e,gt(e).getComputedStyle(e)),cf.get(e)}var Oc=()=>typeof document<"u";function T2(){return navigator.userAgentData?.platform??navigator.platform}function k2(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:a,version:i})=>`${a}/${i}`).join(" "):navigator.userAgent}var lg=e=>Oc()&&e.test(T2()),m0=e=>Oc()&&e.test(k2()),w2=e=>Oc()&&e.test(navigator.vendor),sb=()=>Oc()&&!!navigator.maxTouchPoints,R2=()=>lg(/^iPhone/i),N2=()=>lg(/^iPad/i)||ll()&&navigator.maxTouchPoints>1,sg=()=>R2()||N2(),A2=()=>ll()||sg(),ll=()=>lg(/^Mac/i),cg=()=>A2()&&w2(/apple/i),_2=()=>m0(/Firefox/i),z2=()=>m0(/Android/i);function V2(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function In(e){return V2(e)?.[0]??e.target}var I2=e=>Va(e.currentTarget,In(e));function D2(e){const a=e.currentTarget;if(!a||!a.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const o=e.button===1,s=M2(e);return o||s}function p0(e){return U2(e).isComposing||e.keyCode===229}function M2(e){return ll()?e.metaKey:e.ctrlKey}function P2(e){return e.mozInputSource===0&&e.isTrusted?!0:z2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var L2=e=>e.button===2||ll()&&e.ctrlKey&&e.button===0,B2=e=>"touches"in e&&e.touches.length>0,H2={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},cb={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function j2(e,a={}){const{dir:i="ltr",orientation:o="horizontal"}=a;let s=e.key;return s=H2[s]??s,i==="rtl"&&o==="horizontal"&&s in cb&&(s=cb[s]),s}function U2(e){return e.nativeEvent??e}function F2(e,a="client"){const i=B2(e)?e.touches[0]||e.changedTouches[0]:e;return{x:i[`${a}X`],y:i[`${a}Y`]}}var xt=(e,a,i,o)=>{const s=typeof e=="function"?e():e;return s?.addEventListener(a,i,o),()=>{s?.removeEventListener(a,i,o)}};function G2(e,a){const{type:i="HTMLInputElement",property:o="value"}=a,s=gt(e)[i].prototype;return Object.getOwnPropertyDescriptor(s,o)??{}}function W2(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Tc(e,a,i="value"){if(!e)return;const o=W2(e);o&&G2(e,{type:o,property:i}).set?.call(e,a),e.setAttribute(i,a)}function $2(e,a){const{value:i,bubbles:o=!0}=a;if(!e)return;const s=gt(e);e instanceof s.HTMLInputElement&&(Tc(e,`${i}`),e.dispatchEvent(new s.Event("input",{bubbles:o})))}function q2(e){return Y2(e)?e.form:e.closest("form")}function Y2(e){return e.matches("textarea, input, select, button")}function X2(e,a){if(!e)return;const i=q2(e),o=s=>{s.defaultPrevented||a()};return i?.addEventListener("reset",o,{passive:!0}),()=>i?.removeEventListener("reset",o)}function K2(e,a){const i=e?.closest("fieldset");if(!i)return;a(i.disabled);const o=gt(i),s=new o.MutationObserver(()=>a(i.disabled));return s.observe(i,{attributes:!0,attributeFilter:["disabled"]}),()=>s.disconnect()}function ug(e,a){if(!e)return;const{onFieldsetDisabledChange:i,onFormReset:o}=a,s=[X2(e,o),K2(e,i)];return()=>s.forEach(u=>u?.())}var v0=e=>Tt(e)&&e.tagName==="IFRAME",Q2=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,dg="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",b0=(e,a=!1)=>{if(!e)return[];const i=Array.from(e.querySelectorAll(dg));(a==!0||a=="if-empty"&&i.length===0)&&Tt(e)&&Zo(e)&&i.unshift(e);const s=i.filter(Zo);return s.forEach((u,f)=>{if(v0(u)&&u.contentDocument){const g=u.contentDocument.body;s.splice(f,1,...b0(g))}}),s};function Zo(e){return!e||e.closest("[inert]")?!1:e.matches(dg)&&y2(e)}function y0(e,a){if(!e)return[];const o=Array.from(e.querySelectorAll(dg)).filter(Z2);return o.forEach((s,u)=>{if(v0(s)&&s.contentDocument){const f=s.contentDocument.body,g=y0(f);o.splice(u,1,...g)}}),o.length,o}function Z2(e){return e!=null&&e.tabIndex>0?!0:Zo(e)&&!Q2(e)}function fg(e){const{root:a,getInitialEl:i,filter:o,enabled:s=!0}=e;if(!s)return;let u=null;if(u||(u=typeof i=="function"?i():i),u||(u=a?.querySelector("[data-autofocus],[autofocus]")),!u){const f=y0(a);u=o?f.filter(o)[0]:f[0]}return u||a||void 0}function kc(e){const a=new Set;function i(o){const s=globalThis.requestAnimationFrame(o);a.add(()=>globalThis.cancelAnimationFrame(s))}return i(()=>i(e)),function(){a.forEach(s=>s())}}function Se(e){let a;const i=globalThis.requestAnimationFrame(()=>{a=e()});return()=>{globalThis.cancelAnimationFrame(i),a?.()}}function J2(e,a,i){const o=Se(()=>{e.removeEventListener(a,s,!0),i()}),s=()=>{o(),i()};return e.addEventListener(a,s,{once:!0,capture:!0}),o}function eT(e,a){if(!e)return;const{attributes:i,callback:o}=a,s=e.ownerDocument.defaultView||window,u=new s.MutationObserver(f=>{for(const g of f)g.type==="attributes"&&g.attributeName&&i.includes(g.attributeName)&&o(g)});return u.observe(e,{attributes:!0,attributeFilter:i}),()=>u.disconnect()}function wc(e,a){const{defer:i}=a,o=i?Se:u=>u(),s=[];return s.push(o(()=>{const u=typeof e=="function"?e():e;s.push(eT(u,a))})),()=>{s.forEach(u=>u?.())}}function gg(e){const a=()=>{const i=gt(e);e.dispatchEvent(new i.MouseEvent("click"))};_2()?J2(e,"keyup",a):queueMicrotask(a)}function lc(e){const a=O2(e);return m2(a)?Mn(a).body:Tt(a)&&hg(a)?a:lc(a)}function x0(e,a=[]){const i=lc(e),o=i===e.ownerDocument.body,s=gt(i);return o?a.concat(s,s.visualViewport||[],hg(i)?i:[]):a.concat(i,x0(i,[]))}var tT=/auto|scroll|overlay|hidden|clip/,nT=new Set(["inline","contents"]);function hg(e){const a=gt(e),{overflow:i,overflowX:o,overflowY:s,display:u}=a.getComputedStyle(e);return tT.test(i+s+o)&&!nT.has(u)}function aT(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function sc(e,a){const{rootEl:i,...o}=a||{};!e||!i||!hg(i)||!aT(i)||e.scrollIntoView(o)}function S0(e,a){const{left:i,top:o,width:s,height:u}=a.getBoundingClientRect(),f={x:e.x-i,y:e.y-o},g={x:lb(f.x/s),y:lb(f.y/u)};function h(p={}){const{dir:v="ltr",orientation:S="horizontal",inverted:y}=p,x=typeof y=="object"?y.x:y,C=typeof y=="object"?y.y:y;return S==="horizontal"?v==="rtl"||x?1-g.x:g.x:C?1-g.y:g.y}return{offset:f,percent:g,getPercentValue:h}}function iT(e,a){const i=e.body,o="pointerLockElement"in e||"mozPointerLockElement"in e,s=()=>!!e.pointerLockElement;function u(){}function f(h){s(),console.error("PointerLock error occurred:",h),e.exitPointerLock()}if(!o)return;try{i.requestPointerLock()}catch{}const g=[xt(e,"pointerlockchange",u,!1),xt(e,"pointerlockerror",f,!1)];return()=>{g.forEach(h=>h()),e.exitPointerLock()}}var mr="default",Af="",Ys=new WeakMap;function rT(e={}){const{target:a,doc:i}=e,o=i??document,s=o.documentElement;return sg()?(mr==="default"&&(Af=s.style.webkitUserSelect,s.style.webkitUserSelect="none"),mr="disabled"):a&&(Ys.set(a,a.style.userSelect),a.style.userSelect="none"),()=>oT({target:a,doc:o})}function oT(e={}){const{target:a,doc:i}=e,s=(i??document).documentElement;if(sg()){if(mr!=="disabled")return;mr="restoring",setTimeout(()=>{kc(()=>{mr==="restoring"&&(s.style.webkitUserSelect==="none"&&(s.style.webkitUserSelect=Af||""),Af="",mr="default")})},300)}else if(a&&Ys.has(a)){const u=Ys.get(a);a.style.userSelect==="none"&&(a.style.userSelect=u??""),a.getAttribute("style")===""&&a.removeAttribute("style"),Ys.delete(a)}}function E0(e={}){const{defer:a,target:i,...o}=e,s=a?Se:f=>f(),u=[];return u.push(s(()=>{const f=typeof i=="function"?i():i;u.push(rT({...o,target:f}))})),()=>{u.forEach(f=>f?.())}}function lT(e,a){const{onPointerMove:i,onPointerUp:o}=a,u=[xt(e,"pointermove",f=>{const g=F2(f),h=Math.sqrt(g.x**2+g.y**2),p=f.pointerType==="touch"?10:5;if(!(h<p)){if(f.pointerType==="mouse"&&f.button===0){o();return}i({point:g,event:f})}},!1),xt(e,"pointerup",o,!1),xt(e,"pointercancel",o,!1),xt(e,"contextmenu",o,!1),E0({doc:e})];return()=>{u.forEach(f=>f())}}function Jo(e,a){return Array.from(e?.querySelectorAll(a)??[])}function sT(e,a){return e?.querySelector(a)??null}var mg=e=>e.id;function C0(e,a,i=mg){return e.find(o=>i(o)===a)}function pg(e,a,i=mg){const o=C0(e,a,i);return o?e.indexOf(o):-1}function O0(e,a,i=!0){let o=pg(e,a);return o=i?(o+1)%e.length:Math.min(o+1,e.length-1),e[o]}function T0(e,a,i=!0){let o=pg(e,a);return o===-1?i?e[e.length-1]:null:(o=i?(o-1+e.length)%e.length:Math.max(0,o-1),e[o])}function cT(e,a){const{onEntry:i,measure:o,box:s="border-box"}=a,u=(Array.isArray(e)?e:[e]).filter(Tt),f=gt(u[0]),g=p=>{const v=u.map(S=>o(S));i({rects:v,entries:p})};g([]);const h=new f.ResizeObserver(g);return u.forEach(p=>h.observe(p,{box:s})),()=>h.disconnect()}var uT=e=>e.split("").map(a=>{const i=a.charCodeAt(0);return i>0&&i<128?a:i>=128&&i<=255?`/x${i.toString(16)}`.replace("/","\\"):""}).join("").trim(),dT=e=>uT(e.dataset?.valuetext??e.textContent??""),fT=(e,a)=>e.trim().toLowerCase().startsWith(a.toLowerCase());function gT(e,a,i,o=mg){const s=i?pg(e,i,o):-1;let u=i?s2(e,s):e;return a.length===1&&(u=u.filter(g=>o(g)!==i)),u.find(g=>fT(dT(g),a))}function k0(e,a){if(!e)return c2;const i=Object.keys(a).reduce((o,s)=>(o[s]=e.style.getPropertyValue(s),o),{});return Object.assign(e.style,a),()=>{Object.assign(e.style,i),e.style.length===0&&e.removeAttribute("style")}}function hT(e,a){const{state:i,activeId:o,key:s,timeout:u=350,itemToId:f}=a,g=i.keysSoFar+s,p=g.length>1&&Array.from(g).every(C=>C===g[0])?g[0]:g;let v=e.slice();const S=gT(v,p,o,f);function y(){clearTimeout(i.timer),i.timer=-1}function x(C){i.keysSoFar=C,y(),C!==""&&(i.timer=+setTimeout(()=>{x(""),y()},u))}return x(g),S}var el=Object.assign(hT,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:mT});function mT(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function pT(e,a,i){const{signal:o}=a;return[new Promise((f,g)=>{const h=setTimeout(()=>{g(new Error(`Timeout of ${i}ms exceeded`))},i);o.addEventListener("abort",()=>{clearTimeout(h),g(new Error("Promise aborted"))}),e.then(p=>{o.aborted||(clearTimeout(h),f(p))}).catch(p=>{o.aborted||(clearTimeout(h),g(p))})}),()=>a.abort()]}function vT(e,a){const{timeout:i,rootNode:o}=a,s=gt(o),u=Mn(o),f=new s.AbortController;return pT(new Promise(g=>{const h=e();if(h){g(h);return}const p=new s.MutationObserver(()=>{const v=e();v&&v.isConnected&&(p.disconnect(),g(v))});p.observe(u.body,{childList:!0,subtree:!0})}),f,i)}var bT=(...e)=>e.map(a=>a?.trim?.()).filter(Boolean).join(" "),yT=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,ub=e=>{const a={};let i;for(;i=yT.exec(e);)a[i[1]]=i[2];return a},xT=(e,a)=>{if(qs(e)){if(qs(a))return`${e};${a}`;e=ub(e)}else qs(a)&&(a=ub(a));return Object.assign({},e??{},a??{})};function vi(...e){let a={};for(let i of e){for(let o in a){if(o.startsWith("on")&&typeof a[o]=="function"&&typeof i[o]=="function"){a[o]=rc(i[o],a[o]);continue}if(o==="className"||o==="class"){a[o]=bT(a[o],i[o]);continue}if(o==="style"){a[o]=xT(a[o],i[o]);continue}a[o]=i[o]!==void 0?i[o]:a[o]}for(let o in i)a[o]===void 0&&(a[o]=i[o])}return a}function db(e,a,i){let o=[],s;return u=>{const f=e(u);return(f.length!==o.length||f.some((h,p)=>!bn(o[p],h)))&&(o=f,s=a(...f)),s}}function Ma(){return{and:(...e)=>function(i){return e.every(o=>i.guard(o))},or:(...e)=>function(i){return e.some(o=>i.guard(o))},not:e=>function(i){return!i.guard(e)}}}function vg(){return{guards:Ma(),createMachine:e=>e,choose:e=>function({choose:i}){return i(e)?.actions}}}var ur=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(ur||{}),uf="__init__";function ST(e){const a=()=>e.getRootNode?.()??document,i=()=>Mn(a()),o=()=>i().defaultView??window,s=()=>C2(a());return{...e,getRootNode:a,getDoc:i,getWin:o,getActiveElement:s,isActiveElement:g=>g===s(),getById:g=>a().getElementById(g)}}function w0(...e){return a=>{const i=[];for(const o of e)if(typeof o=="function"){const s=o(a);typeof s=="function"&&i.push(s)}else o&&(o.current=a);if(i.length)return()=>{for(const o of i)o()}}}function ET(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}const df=e=>{const a=K.memo(K.forwardRef((i,o)=>{const{asChild:s,children:u,...f}=i;if(!s)return K.createElement(e,{...f,ref:o},u);const g=K.Children.only(u);if(!K.isValidElement(g))return null;const h=ET(g);return K.cloneElement(g,{...vi(f,g.props),ref:o?w0(o,h):h})}));return a.displayName=e.displayName||e.name,a},CT=()=>{const e=new Map;return new Proxy(df,{apply(a,i,o){return df(o[0])},get(a,i){const o=i;return e.has(o)||e.set(o,df(o)),e.get(o)}})},wr=CT(),[mI,OT]=ol({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:TT}=rl({key:"heading"}),kT=TT("h2"),sl=()=>(e,a)=>a.reduce((i,o)=>{const[s,u]=i,f=o;return u[f]!==void 0&&(s[f]=u[f]),delete u[f],[s,u]},[{},{...e}]);function wT(e){return new Proxy({},{get(a,i){return i==="style"?o=>e({style:o}).style:e}})}var me=()=>e=>Array.from(new Set(e));function RT(e,a){const{state:i,send:o,context:s}=e,u=i.matches("mounted","unmountSuspended");return{skip:!s.get("initial"),present:u,setNode(f){f&&o({type:"NODE.SET",node:f})},unmount(){o({type:"UNMOUNT"})}}}var NT={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:a,prop:i}){e([()=>i("present")],()=>{a(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:a})=>{e.set("node",a.node)},setStyles:({refs:e,event:a})=>{e.set("styles",h0(a.node))},syncPresence:({context:e,refs:a,send:i,prop:o})=>{const s=o("present");if(s)return i({type:"MOUNT",src:"presence.changed"});const u=a.get("node");if(!s&&u?.ownerDocument.visibilityState==="hidden")return i({type:"UNMOUNT",src:"visibilitychange"});Se(()=>{const f=_s(a.get("styles"));e.set("unmountAnimationName",f),f==="none"||f===e.get("prevAnimationName")||a.get("styles")?.display==="none"||a.get("styles")?.animationDuration==="0s"?i({type:"UNMOUNT",src:"presence.changed"}):i({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:a})=>{Se(()=>{e.set("prevAnimationName",_s(a.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:a,send:i})=>{const o=a.get("node");if(!o)return;const s=g=>{(g.composedPath?.()?.[0]??g.target)===o&&e.set("prevAnimationName",_s(a.get("styles")))},u=g=>{const h=_s(a.get("styles"));In(g)===o&&h===e.get("unmountAnimationName")&&i({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",s),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u);const f=k0(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",s),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u),kc(()=>f())}}}}};function _s(e){return e?.animationName||"none"}me()(["onExitComplete","present","immediate"]);var bg=Fy(),R0=typeof globalThis.document<"u"?K.useLayoutEffect:K.useEffect;function cc(e){const a=e().value??e().defaultValue,i=e().isEqual??Object.is,[o]=K.useState(a),[s,u]=K.useState(o),f=e().value!==void 0,g=K.useRef(s);g.current=f?e().value:s;const h=K.useRef(g.current);R0(()=>{h.current=g.current},[s,e().value]);const p=S=>{const y=h.current,x=fi(S)?S(y):S;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:x,prev:y}),f||u(x),i(x,y)||e().onChange?.(x,y)};function v(){return f?e().value:s}return{initial:o,ref:g,get:v,set(S){(e().sync?bg.flushSync:GO)(()=>p(S))},invoke(S,y){e().onChange?.(S,y)},hash(S){return e().hash?.(S)??String(S)}}}cc.cleanup=e=>{K.useEffect(()=>e,[])};cc.ref=e=>{const a=K.useRef(e);return{get:()=>a.current,set:i=>{a.current=i}}};function AT(e){const a=K.useRef(e);return{get(i){return a.current[i]},set(i,o){a.current[i]=o}}}var _T=(e,a)=>{const i=K.useRef(!1),o=K.useRef(!1);K.useEffect(()=>{if(i.current&&o.current)return a();o.current=!0},[...(e??[]).map(s=>typeof s=="function"?s():s)]),K.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[])};function N0(e,a={}){const i=K.useMemo(()=>{const{id:G,ids:P,getRootNode:ne}=a;return ST({id:G,ids:P,getRootNode:ne})},[a]),o=(...G)=>{e.debug&&console.log(...G)},s=e.props?.({props:og(a),scope:i})??a,u=zT(s),f=e.context?.({prop:u,bindable:cc,scope:i,flush:fb,getContext(){return h},getComputed(){return N},getRefs(){return E},getEvent(){return x()}}),g=A0(f),h={get(G){return g.current?.[G].ref.current},set(G,P){g.current?.[G].set(P)},initial(G){return g.current?.[G].initial},hash(G){const P=g.current?.[G].get();return g.current?.[G].hash(P)}},p=K.useRef(new Map),v=K.useRef(null),S=K.useRef(null),y=K.useRef({type:""}),x=()=>({...y.current,current(){return y.current},previous(){return S.current}}),C=()=>({...Y,matches(...G){return G.includes(Y.ref.current)},hasTag(G){return!!e.states[Y.ref.current]?.tags?.includes(G)}}),E=AT(e.refs?.({prop:u,context:h})??{}),k=()=>({state:C(),context:h,event:x(),prop:u,send:Q,action:_,guard:R,track:_T,refs:E,computed:N,flush:fb,scope:i,choose:M}),_=G=>{const P=fi(G)?G(k()):G;if(!P)return;const ne=P.map(re=>{const le=e.implementations?.actions?.[re];return le||oc(`[zag-js] No implementation found for action "${JSON.stringify(re)}"`),le});for(const re of ne)re?.(k())},R=G=>fi(G)?G(k()):e.implementations?.guards?.[G](k()),A=G=>{const P=fi(G)?G(k()):G;if(!P)return;const ne=P.map(le=>{const D=e.implementations?.effects?.[le];return D||oc(`[zag-js] No implementation found for effect "${JSON.stringify(le)}"`),D}),re=[];for(const le of ne){const D=le?.(k());D&&re.push(D)}return()=>re.forEach(le=>le?.())},M=G=>$s(G).find(P=>{let ne=!P.guard;return qs(P.guard)?ne=!!R(P.guard):fi(P.guard)&&(ne=P.guard(k())),ne}),N=G=>{d0(e.computed,()=>"[zag-js] No computed object found on machine");const P=e.computed[G];return P({context:h,event:x(),prop:u,refs:E,scope:i,computed:N})},Y=cc(()=>({defaultValue:e.initialState({prop:u}),onChange(G,P){P&&(p.current.get(P)?.(),p.current.delete(P)),P&&_(e.states[P]?.exit),_(v.current?.actions);const ne=A(e.states[G]?.effects);if(ne&&p.current.set(G,ne),P===uf){_(e.entry);const re=A(e.effects);re&&p.current.set(uf,re)}_(e.states[G]?.entry)}})),U=K.useRef(void 0),j=K.useRef(ur.NotStarted);R0(()=>{queueMicrotask(()=>{const ne=j.current===ur.Started;j.current=ur.Started,o(ne?"rehydrating...":"initializing...");const re=U.current??Y.initial;Y.invoke(re,ne?Y.get():uf)});const G=p.current,P=Y.ref.current;return()=>{o("unmounting..."),U.current=P,j.current=ur.Stopped,G.forEach(ne=>ne?.()),p.current=new Map,v.current=null,queueMicrotask(()=>{_(e.exit)})}},[]);const W=()=>"ref"in Y?Y.ref.current:Y.get(),Q=G=>{queueMicrotask(()=>{if(j.current!==ur.Started)return;S.current=y.current,y.current=G,o("send",G);let P=W();const ne=e.states[P].on?.[G.type]??e.on?.[G.type],re=M(ne);if(!re)return;v.current=re;const le=re.target??P;o("transition",re);const D=le!==P;D?bg.flushSync(()=>Y.set(le)):re.reenter&&!D?Y.invoke(P,P):_(re.actions??[])})};return e.watch?.(k()),{state:C(),send:Q,context:h,prop:u,scope:i,refs:E,computed:N,event:x(),getStatus:()=>j.current}}function A0(e){const a=K.useRef(e);return a.current=e,a}function zT(e){const a=A0(e);return function(o){return a.current[o]}}function fb(e){queueMicrotask(()=>{bg.flushSync(()=>e())})}var VT=wT(e=>e);function IT(e,a={}){const{sync:i=!1}=a,o=DT(e);return K.useCallback((...s)=>i?queueMicrotask(()=>o.current?.(...s)):o.current?.(...s),[i,o])}function DT(e){const a=K.useRef(e);return a.current=e,a}const MT=(e={})=>{const{lazyMount:a,unmountOnExit:i,present:o,skipAnimationOnMount:s=!1,...u}=e,f=K.useRef(!1),g={...u,present:o,onExitComplete:IT(e.onExitComplete)},h=N0(NT,g),p=RT(h);p.present&&(f.current=!0);const v=!p.present&&!f.current&&a||i&&!p.present&&f.current,S=()=>({"data-state":p.skip&&s?void 0:o?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:S,present:p.present,unmounted:v}},[PT,pI]=ol({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),zs=dn("span"),{withContext:LT}=rl({key:"text"}),pr=LT("p");var he=(e,a=[])=>({parts:(...i)=>{if(BT(a))return he(e,i);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...i)=>he(e,[...a,...i]),omit:(...i)=>he(e,a.filter(o=>!i.includes(o))),rename:i=>he(i,a),keys:()=>a,build:()=>[...new Set(a)].reduce((i,o)=>Object.assign(i,{[o]:{selector:[`&[data-scope="${or(e)}"][data-part="${or(o)}"]`,`& [data-scope="${or(e)}"][data-part="${or(o)}"]`].join(", "),attrs:{"data-scope":or(e),"data-part":or(o)}}}),{})}),or=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),BT=e=>e.length===0,_0=he("collapsible").parts("root","trigger","content","indicator");_0.build();me()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var HT=Object.defineProperty,jT=(e,a,i)=>a in e?HT(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,yg=(e,a,i)=>jT(e,a+"",i),UT=(e,a)=>{if(Object.keys(e).length!==Object.keys(a).length)return!1;for(let i in e)if(e[i]!==a[i])return!1;return!0},xg=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,a){const i=a??this.getChannelValue(e),{minValue:o,maxValue:s}=this.getChannelRange(e);return t2(i,o,s)}getChannelPercentValue(e,a){const{minValue:i,maxValue:o,step:s}=this.getChannelRange(e),u=n2(a,i,o,s);return rb(u,i,o,s)}withChannelValue(e,a){const{minValue:i,maxValue:o}=this.getChannelRange(e);if(e in this){let s=this.clone();return s[e]=Dt(a,i,o),s}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:a,yChannel:i}=e,o=a||this.getChannels().find(f=>f!==i),s=i||this.getChannels().find(f=>f!==o),u=this.getChannels().find(f=>f!==o&&f!==s);return{xChannel:o,yChannel:s,zChannel:u}}incrementChannel(e,a){const{minValue:i,maxValue:o,step:s}=this.getChannelRange(e),u=rb(Dt(this.getChannelValue(e)+a,i,o),i,o,s);return this.withChannelValue(e,u)}decrementChannel(e,a){return this.incrementChannel(e,-a)}isEqual(e){return UT(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},FT=/^#[\da-f]+$/i,GT=/^rgba?\((.*)\)$/,WT=/[^#]/gi,z0=class Xs extends xg{constructor(a,i,o,s){super(),this.red=a,this.green=i,this.blue=o,this.alpha=s}static parse(a){let i=[];if(FT.test(a)&&[4,5,7,9].includes(a.length)){const s=(a.length<6?a.replace(WT,"$&$&"):a).slice(1).split("");for(;s.length>0;)i.push(parseInt(s.splice(0,2).join(""),16));i[3]=i[3]!==void 0?i[3]/255:void 0}const o=a.match(GT);return o?.[1]&&(i=o[1].split(",").map(s=>Number(s.trim())).map((s,u)=>Dt(s,0,u<3?255:1))),i.length<3?void 0:new Xs(i[0],i[1],i[2],i[3]??1)}toString(a){switch(a){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(a).toString(a)}}toFormat(a){switch(a){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+a)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const a=this.red/255,i=this.green/255,o=this.blue/255,s=Math.min(a,i,o),u=Math.max(a,i,o),f=u-s,g=u===0?0:f/u;let h=0;if(f!==0){switch(u){case a:h=(i-o)/f+(i<o?6:0);break;case i:h=(o-a)/f+2;break;case o:h=(a-i)/f+4;break}h/=6}return new Cg(Ge(h*360,2),Ge(g*100,2),Ge(u*100,2),Ge(this.alpha,2))}toHSL(){const a=this.red/255,i=this.green/255,o=this.blue/255,s=Math.min(a,i,o),u=Math.max(a,i,o),f=(u+s)/2,g=u-s;let h=-1,p=-1;if(g===0)h=p=0;else{switch(p=g/(f<.5?u+s:2-u-s),u){case a:h=(i-o)/g+(i<o?6:0);break;case i:h=(o-a)/g+2;break;case o:h=(a-i)/g+4;break}h/=6}return new Eg(Ge(h*360,2),Ge(p*100,2),Ge(f*100,2),Ge(this.alpha,2))}clone(){return new Xs(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(a){switch(a){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+a)}}formatChannelValue(a,i){let o=this.getChannelFormatOptions(a),s=this.getChannelValue(a);return new Intl.NumberFormat(i,o).format(s)}getChannelRange(a){switch(a){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+a)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return Xs.colorChannels}};yg(z0,"colorChannels",["red","green","blue"]);var Sg=z0,$T=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,V0=class Ks extends xg{constructor(a,i,o,s){super(),this.hue=a,this.saturation=i,this.lightness=o,this.alpha=s}static parse(a){let i;if(i=a.match($T)){const[o,s,u,f]=(i[1]??i[2]).split(",").map(g=>Number(g.trim().replace("%","")));return new Ks(c0(o,360),Dt(s,0,100),Dt(u,0,100),Dt(f??1,0,1))}}toString(a){switch(a){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Ge(this.saturation,2)}%, ${Ge(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Ge(this.saturation,2)}%, ${Ge(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(a).toString(a)}}toFormat(a){switch(a){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+a)}}toHSB(){let a=this.saturation/100,i=this.lightness/100,o=i+a*Math.min(i,1-i);return a=o===0?0:2*(1-i/o),new Cg(Ge(this.hue,2),Ge(a*100,2),Ge(o*100,2),Ge(this.alpha,2))}toRGB(){let a=this.hue,i=this.saturation/100,o=this.lightness/100,s=i*Math.min(o,1-o),u=(f,g=(f+a/30)%12)=>o-s*Math.max(Math.min(g-3,9-g,1),-1);return new Sg(Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255),Ge(this.alpha,2))}clone(){return new Ks(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(a){switch(a){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+a)}}formatChannelValue(a,i){let o=this.getChannelFormatOptions(a),s=this.getChannelValue(a);return(a==="saturation"||a==="lightness")&&(s/=100),new Intl.NumberFormat(i,o).format(s)}getChannelRange(a){switch(a){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+a)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ks.colorChannels}};yg(V0,"colorChannels",["hue","saturation","lightness"]);var Eg=V0,qT=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,I0=class Qs extends xg{constructor(a,i,o,s){super(),this.hue=a,this.saturation=i,this.brightness=o,this.alpha=s}static parse(a){let i;if(i=a.match(qT)){const[o,s,u,f]=(i[1]??i[2]).split(",").map(g=>Number(g.trim().replace("%","")));return new Qs(c0(o,360),Dt(s,0,100),Dt(u,0,100),Dt(f??1,0,1))}}toString(a){switch(a){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Ge(this.saturation,2)}%, ${Ge(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Ge(this.saturation,2)}%, ${Ge(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(a).toString(a)}}toFormat(a){switch(a){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+a)}}toHSL(){let a=this.saturation/100,i=this.brightness/100,o=i*(1-a/2);return a=o===0||o===1?0:(i-o)/Math.min(o,1-o),new Eg(Ge(this.hue,2),Ge(a*100,2),Ge(o*100,2),Ge(this.alpha,2))}toRGB(){let a=this.hue,i=this.saturation/100,o=this.brightness/100,s=(u,f=(u+a/60)%6)=>o-i*o*Math.max(Math.min(f,4-f,1),0);return new Sg(Math.round(s(5)*255),Math.round(s(3)*255),Math.round(s(1)*255),Ge(this.alpha,2))}clone(){return new Qs(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(a){switch(a){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+a)}}formatChannelValue(a,i){let o=this.getChannelFormatOptions(a),s=this.getChannelValue(a);return(a==="saturation"||a==="brightness")&&(s/=100),new Intl.NumberFormat(i,o).format(s)}getChannelRange(a){switch(a){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+a)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Qs.colorChannels}};yg(I0,"colorChannels",["hue","saturation","brightness"]);var Cg=I0,YT="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",XT=e=>{const a=new Map,i=e.split(",");for(let o=0;o<i.length;o++){const[s,u]=i[o].split(":");a.set(s,`#${u}`),s.includes("gray")&&a.set(s.replace("gray","grey"),`#${u}`)}return a},gb=XT(YT),uc=e=>{if(gb.has(e))return uc(gb.get(e));const a=Sg.parse(e)||Cg.parse(e)||Eg.parse(e);if(!a){const i=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(i,uc),i}return a};const KT=["top","right","bottom","left"],Ia=Math.min,Xt=Math.max,dc=Math.round,Vs=Math.floor,zn=e=>({x:e,y:e}),QT={left:"right",right:"left",bottom:"top",top:"bottom"},ZT={start:"end",end:"start"};function _f(e,a,i){return Xt(e,Ia(a,i))}function na(e,a){return typeof e=="function"?e(a):e}function aa(e){return e.split("-")[0]}function Rr(e){return e.split("-")[1]}function Og(e){return e==="x"?"y":"x"}function Tg(e){return e==="y"?"height":"width"}const JT=new Set(["top","bottom"]);function An(e){return JT.has(aa(e))?"y":"x"}function kg(e){return Og(An(e))}function ek(e,a,i){i===void 0&&(i=!1);const o=Rr(e),s=kg(e),u=Tg(s);let f=s==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=fc(f)),[f,fc(f)]}function tk(e){const a=fc(e);return[zf(e),a,zf(a)]}function zf(e){return e.replace(/start|end/g,a=>ZT[a])}const hb=["left","right"],mb=["right","left"],nk=["top","bottom"],ak=["bottom","top"];function ik(e,a,i){switch(e){case"top":case"bottom":return i?a?mb:hb:a?hb:mb;case"left":case"right":return a?nk:ak;default:return[]}}function rk(e,a,i,o){const s=Rr(e);let u=ik(aa(e),i==="start",o);return s&&(u=u.map(f=>f+"-"+s),a&&(u=u.concat(u.map(zf)))),u}function fc(e){return e.replace(/left|right|bottom|top/g,a=>QT[a])}function ok(e){return{top:0,right:0,bottom:0,left:0,...e}}function D0(e){return typeof e!="number"?ok(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:a,y:i,width:o,height:s}=e;return{width:o,height:s,top:i,left:a,right:a+o,bottom:i+s,x:a,y:i}}function pb(e,a,i){let{reference:o,floating:s}=e;const u=An(a),f=kg(a),g=Tg(f),h=aa(a),p=u==="y",v=o.x+o.width/2-s.width/2,S=o.y+o.height/2-s.height/2,y=o[g]/2-s[g]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:S};break;case"left":x={x:o.x-s.width,y:S};break;default:x={x:o.x,y:o.y}}switch(Rr(a)){case"start":x[f]-=y*(i&&p?-1:1);break;case"end":x[f]+=y*(i&&p?-1:1);break}return x}const lk=async(e,a,i)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=i,g=u.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(a));let p=await f.getElementRects({reference:e,floating:a,strategy:s}),{x:v,y:S}=pb(p,o,h),y=o,x={},C=0;for(let E=0;E<g.length;E++){const{name:k,fn:_}=g[E],{x:R,y:A,data:M,reset:N}=await _({x:v,y:S,initialPlacement:o,placement:y,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:a}});v=R??v,S=A??S,x={...x,[k]:{...x[k],...M}},N&&C<=50&&(C++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(p=N.rects===!0?await f.getElementRects({reference:e,floating:a,strategy:s}):N.rects),{x:v,y:S}=pb(p,y,h)),E=-1)}return{x:v,y:S,placement:y,strategy:s,middlewareData:x}};async function tl(e,a){var i;a===void 0&&(a={});const{x:o,y:s,platform:u,rects:f,elements:g,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:S="floating",altBoundary:y=!1,padding:x=0}=na(a,e),C=D0(x),k=g[y?S==="floating"?"reference":"floating":S],_=gc(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(k)))==null||i?k:k.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(g.floating)),boundary:p,rootBoundary:v,strategy:h})),R=S==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g.floating)),M=await(u.isElement==null?void 0:u.isElement(A))?await(u.getScale==null?void 0:u.getScale(A))||{x:1,y:1}:{x:1,y:1},N=gc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:R,offsetParent:A,strategy:h}):R);return{top:(_.top-N.top+C.top)/M.y,bottom:(N.bottom-_.bottom+C.bottom)/M.y,left:(_.left-N.left+C.left)/M.x,right:(N.right-_.right+C.right)/M.x}}const sk=e=>({name:"arrow",options:e,async fn(a){const{x:i,y:o,placement:s,rects:u,platform:f,elements:g,middlewareData:h}=a,{element:p,padding:v=0}=na(e,a)||{};if(p==null)return{};const S=D0(v),y={x:i,y:o},x=kg(s),C=Tg(x),E=await f.getDimensions(p),k=x==="y",_=k?"top":"left",R=k?"bottom":"right",A=k?"clientHeight":"clientWidth",M=u.reference[C]+u.reference[x]-y[x]-u.floating[C],N=y[x]-u.reference[x],Y=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=Y?Y[A]:0;(!U||!await(f.isElement==null?void 0:f.isElement(Y)))&&(U=g.floating[A]||u.floating[C]);const j=M/2-N/2,W=U/2-E[C]/2-1,Q=Ia(S[_],W),G=Ia(S[R],W),P=Q,ne=U-E[C]-G,re=U/2-E[C]/2+j,le=_f(P,re,ne),D=!h.arrow&&Rr(s)!=null&&re!==le&&u.reference[C]/2-(re<P?Q:G)-E[C]/2<0,J=D?re<P?re-P:re-ne:0;return{[x]:y[x]+J,data:{[x]:le,centerOffset:re-le-J,...D&&{alignmentOffset:J}},reset:D}}}),ck=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(a){var i,o;const{placement:s,middlewareData:u,rects:f,initialPlacement:g,platform:h,elements:p}=a,{mainAxis:v=!0,crossAxis:S=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...k}=na(e,a);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const _=aa(s),R=An(g),A=aa(g)===g,M=await(h.isRTL==null?void 0:h.isRTL(p.floating)),N=y||(A||!E?[fc(g)]:tk(g)),Y=C!=="none";!y&&Y&&N.push(...rk(g,E,C,M));const U=[g,...N],j=await tl(a,k),W=[];let Q=((o=u.flip)==null?void 0:o.overflows)||[];if(v&&W.push(j[_]),S){const re=ek(s,f,M);W.push(j[re[0]],j[re[1]])}if(Q=[...Q,{placement:s,overflows:W}],!W.every(re=>re<=0)){var G,P;const re=(((G=u.flip)==null?void 0:G.index)||0)+1,le=U[re];if(le&&(!(S==="alignment"?R!==An(le):!1)||Q.every(se=>An(se.placement)===R?se.overflows[0]>0:!0)))return{data:{index:re,overflows:Q},reset:{placement:le}};let D=(P=Q.filter(J=>J.overflows[0]<=0).sort((J,se)=>J.overflows[1]-se.overflows[1])[0])==null?void 0:P.placement;if(!D)switch(x){case"bestFit":{var ne;const J=(ne=Q.filter(se=>{if(Y){const oe=An(se.placement);return oe===R||oe==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(oe=>oe>0).reduce((oe,T)=>oe+T,0)]).sort((se,oe)=>se[1]-oe[1])[0])==null?void 0:ne[0];J&&(D=J);break}case"initialPlacement":D=g;break}if(s!==D)return{reset:{placement:D}}}return{}}}};function vb(e,a){return{top:e.top-a.height,right:e.right-a.width,bottom:e.bottom-a.height,left:e.left-a.width}}function bb(e){return KT.some(a=>e[a]>=0)}const uk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(a){const{rects:i}=a,{strategy:o="referenceHidden",...s}=na(e,a);switch(o){case"referenceHidden":{const u=await tl(a,{...s,elementContext:"reference"}),f=vb(u,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:bb(f)}}}case"escaped":{const u=await tl(a,{...s,altBoundary:!0}),f=vb(u,i.floating);return{data:{escapedOffsets:f,escaped:bb(f)}}}default:return{}}}}},M0=new Set(["left","top"]);async function dk(e,a){const{placement:i,platform:o,elements:s}=e,u=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=aa(i),g=Rr(i),h=An(i)==="y",p=M0.has(f)?-1:1,v=u&&h?-1:1,S=na(a,e);let{mainAxis:y,crossAxis:x,alignmentAxis:C}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return g&&typeof C=="number"&&(x=g==="end"?C*-1:C),h?{x:x*v,y:y*p}:{x:y*p,y:x*v}}const fk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(a){var i,o;const{x:s,y:u,placement:f,middlewareData:g}=a,h=await dk(a,e);return f===((i=g.offset)==null?void 0:i.placement)&&(o=g.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:u+h.y,data:{...h,placement:f}}}}},gk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(a){const{x:i,y:o,placement:s}=a,{mainAxis:u=!0,crossAxis:f=!1,limiter:g={fn:k=>{let{x:_,y:R}=k;return{x:_,y:R}}},...h}=na(e,a),p={x:i,y:o},v=await tl(a,h),S=An(aa(s)),y=Og(S);let x=p[y],C=p[S];if(u){const k=y==="y"?"top":"left",_=y==="y"?"bottom":"right",R=x+v[k],A=x-v[_];x=_f(R,x,A)}if(f){const k=S==="y"?"top":"left",_=S==="y"?"bottom":"right",R=C+v[k],A=C-v[_];C=_f(R,C,A)}const E=g.fn({...a,[y]:x,[S]:C});return{...E,data:{x:E.x-i,y:E.y-o,enabled:{[y]:u,[S]:f}}}}}},hk=function(e){return e===void 0&&(e={}),{options:e,fn(a){const{x:i,y:o,placement:s,rects:u,middlewareData:f}=a,{offset:g=0,mainAxis:h=!0,crossAxis:p=!0}=na(e,a),v={x:i,y:o},S=An(s),y=Og(S);let x=v[y],C=v[S];const E=na(g,a),k=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(h){const A=y==="y"?"height":"width",M=u.reference[y]-u.floating[A]+k.mainAxis,N=u.reference[y]+u.reference[A]-k.mainAxis;x<M?x=M:x>N&&(x=N)}if(p){var _,R;const A=y==="y"?"width":"height",M=M0.has(aa(s)),N=u.reference[S]-u.floating[A]+(M&&((_=f.offset)==null?void 0:_[S])||0)+(M?0:k.crossAxis),Y=u.reference[S]+u.reference[A]+(M?0:((R=f.offset)==null?void 0:R[S])||0)-(M?k.crossAxis:0);C<N?C=N:C>Y&&(C=Y)}return{[y]:x,[S]:C}}}},mk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(a){var i,o;const{placement:s,rects:u,platform:f,elements:g}=a,{apply:h=()=>{},...p}=na(e,a),v=await tl(a,p),S=aa(s),y=Rr(s),x=An(s)==="y",{width:C,height:E}=u.floating;let k,_;S==="top"||S==="bottom"?(k=S,_=y===(await(f.isRTL==null?void 0:f.isRTL(g.floating))?"start":"end")?"left":"right"):(_=S,k=y==="end"?"top":"bottom");const R=E-v.top-v.bottom,A=C-v.left-v.right,M=Ia(E-v[k],R),N=Ia(C-v[_],A),Y=!a.middlewareData.shift;let U=M,j=N;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(j=A),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(U=R),Y&&!y){const Q=Xt(v.left,0),G=Xt(v.right,0),P=Xt(v.top,0),ne=Xt(v.bottom,0);x?j=C-2*(Q!==0||G!==0?Q+G:Xt(v.left,v.right)):U=E-2*(P!==0||ne!==0?P+ne:Xt(v.top,v.bottom))}await h({...a,availableWidth:j,availableHeight:U});const W=await f.getDimensions(g.floating);return C!==W.width||E!==W.height?{reset:{rects:!0}}:{}}}};function Rc(){return typeof window<"u"}function Nr(e){return P0(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var a;return(e==null||(a=e.ownerDocument)==null?void 0:a.defaultView)||window}function Pn(e){var a;return(a=(P0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:a.documentElement}function P0(e){return Rc()?e instanceof Node||e instanceof Qt(e).Node:!1}function yn(e){return Rc()?e instanceof Element||e instanceof Qt(e).Element:!1}function Dn(e){return Rc()?e instanceof HTMLElement||e instanceof Qt(e).HTMLElement:!1}function yb(e){return!Rc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot}const pk=new Set(["inline","contents"]);function cl(e){const{overflow:a,overflowX:i,overflowY:o,display:s}=xn(e);return/auto|scroll|overlay|hidden|clip/.test(a+o+i)&&!pk.has(s)}const vk=new Set(["table","td","th"]);function bk(e){return vk.has(Nr(e))}const yk=[":popover-open",":modal"];function Nc(e){return yk.some(a=>{try{return e.matches(a)}catch{return!1}})}const xk=["transform","translate","scale","rotate","perspective"],Sk=["transform","translate","scale","rotate","perspective","filter"],Ek=["paint","layout","strict","content"];function wg(e){const a=Rg(),i=yn(e)?xn(e):e;return xk.some(o=>i[o]?i[o]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!a&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!a&&(i.filter?i.filter!=="none":!1)||Sk.some(o=>(i.willChange||"").includes(o))||Ek.some(o=>(i.contain||"").includes(o))}function Ck(e){let a=Da(e);for(;Dn(a)&&!Tr(a);){if(wg(a))return a;if(Nc(a))return null;a=Da(a)}return null}function Rg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ok=new Set(["html","body","#document"]);function Tr(e){return Ok.has(Nr(e))}function xn(e){return Qt(e).getComputedStyle(e)}function Ac(e){return yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Da(e){if(Nr(e)==="html")return e;const a=e.assignedSlot||e.parentNode||yb(e)&&e.host||Pn(e);return yb(a)?a.host:a}function L0(e){const a=Da(e);return Tr(a)?e.ownerDocument?e.ownerDocument.body:e.body:Dn(a)&&cl(a)?a:L0(a)}function nl(e,a,i){var o;a===void 0&&(a=[]),i===void 0&&(i=!0);const s=L0(e),u=s===((o=e.ownerDocument)==null?void 0:o.body),f=Qt(s);if(u){const g=Vf(f);return a.concat(f,f.visualViewport||[],cl(s)?s:[],g&&i?nl(g):[])}return a.concat(s,nl(s,[],i))}function Vf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B0(e){const a=xn(e);let i=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const s=Dn(e),u=s?e.offsetWidth:i,f=s?e.offsetHeight:o,g=dc(i)!==u||dc(o)!==f;return g&&(i=u,o=f),{width:i,height:o,$:g}}function Ng(e){return yn(e)?e:e.contextElement}function Er(e){const a=Ng(e);if(!Dn(a))return zn(1);const i=a.getBoundingClientRect(),{width:o,height:s,$:u}=B0(a);let f=(u?dc(i.width):i.width)/o,g=(u?dc(i.height):i.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!g||!Number.isFinite(g))&&(g=1),{x:f,y:g}}const Tk=zn(0);function H0(e){const a=Qt(e);return!Rg()||!a.visualViewport?Tk:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function kk(e,a,i){return a===void 0&&(a=!1),!i||a&&i!==Qt(e)?!1:a}function mi(e,a,i,o){a===void 0&&(a=!1),i===void 0&&(i=!1);const s=e.getBoundingClientRect(),u=Ng(e);let f=zn(1);a&&(o?yn(o)&&(f=Er(o)):f=Er(e));const g=kk(u,i,o)?H0(u):zn(0);let h=(s.left+g.x)/f.x,p=(s.top+g.y)/f.y,v=s.width/f.x,S=s.height/f.y;if(u){const y=Qt(u),x=o&&yn(o)?Qt(o):o;let C=y,E=Vf(C);for(;E&&o&&x!==C;){const k=Er(E),_=E.getBoundingClientRect(),R=xn(E),A=_.left+(E.clientLeft+parseFloat(R.paddingLeft))*k.x,M=_.top+(E.clientTop+parseFloat(R.paddingTop))*k.y;h*=k.x,p*=k.y,v*=k.x,S*=k.y,h+=A,p+=M,C=Qt(E),E=Vf(C)}}return gc({width:v,height:S,x:h,y:p})}function Ag(e,a){const i=Ac(e).scrollLeft;return a?a.left+i:mi(Pn(e)).left+i}function j0(e,a,i){i===void 0&&(i=!1);const o=e.getBoundingClientRect(),s=o.left+a.scrollLeft-(i?0:Ag(e,o)),u=o.top+a.scrollTop;return{x:s,y:u}}function wk(e){let{elements:a,rect:i,offsetParent:o,strategy:s}=e;const u=s==="fixed",f=Pn(o),g=a?Nc(a.floating):!1;if(o===f||g&&u)return i;let h={scrollLeft:0,scrollTop:0},p=zn(1);const v=zn(0),S=Dn(o);if((S||!S&&!u)&&((Nr(o)!=="body"||cl(f))&&(h=Ac(o)),Dn(o))){const x=mi(o);p=Er(o),v.x=x.x+o.clientLeft,v.y=x.y+o.clientTop}const y=f&&!S&&!u?j0(f,h,!0):zn(0);return{width:i.width*p.x,height:i.height*p.y,x:i.x*p.x-h.scrollLeft*p.x+v.x+y.x,y:i.y*p.y-h.scrollTop*p.y+v.y+y.y}}function Rk(e){return Array.from(e.getClientRects())}function Nk(e){const a=Pn(e),i=Ac(e),o=e.ownerDocument.body,s=Xt(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),u=Xt(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let f=-i.scrollLeft+Ag(e);const g=-i.scrollTop;return xn(o).direction==="rtl"&&(f+=Xt(a.clientWidth,o.clientWidth)-s),{width:s,height:u,x:f,y:g}}function Ak(e,a){const i=Qt(e),o=Pn(e),s=i.visualViewport;let u=o.clientWidth,f=o.clientHeight,g=0,h=0;if(s){u=s.width,f=s.height;const p=Rg();(!p||p&&a==="fixed")&&(g=s.offsetLeft,h=s.offsetTop)}return{width:u,height:f,x:g,y:h}}const _k=new Set(["absolute","fixed"]);function zk(e,a){const i=mi(e,!0,a==="fixed"),o=i.top+e.clientTop,s=i.left+e.clientLeft,u=Dn(e)?Er(e):zn(1),f=e.clientWidth*u.x,g=e.clientHeight*u.y,h=s*u.x,p=o*u.y;return{width:f,height:g,x:h,y:p}}function xb(e,a,i){let o;if(a==="viewport")o=Ak(e,i);else if(a==="document")o=Nk(Pn(e));else if(yn(a))o=zk(a,i);else{const s=H0(e);o={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return gc(o)}function U0(e,a){const i=Da(e);return i===a||!yn(i)||Tr(i)?!1:xn(i).position==="fixed"||U0(i,a)}function Vk(e,a){const i=a.get(e);if(i)return i;let o=nl(e,[],!1).filter(g=>yn(g)&&Nr(g)!=="body"),s=null;const u=xn(e).position==="fixed";let f=u?Da(e):e;for(;yn(f)&&!Tr(f);){const g=xn(f),h=wg(f);!h&&g.position==="fixed"&&(s=null),(u?!h&&!s:!h&&g.position==="static"&&!!s&&_k.has(s.position)||cl(f)&&!h&&U0(e,f))?o=o.filter(v=>v!==f):s=g,f=Da(f)}return a.set(e,o),o}function Ik(e){let{element:a,boundary:i,rootBoundary:o,strategy:s}=e;const f=[...i==="clippingAncestors"?Nc(a)?[]:Vk(a,this._c):[].concat(i),o],g=f[0],h=f.reduce((p,v)=>{const S=xb(a,v,s);return p.top=Xt(S.top,p.top),p.right=Ia(S.right,p.right),p.bottom=Ia(S.bottom,p.bottom),p.left=Xt(S.left,p.left),p},xb(a,g,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Dk(e){const{width:a,height:i}=B0(e);return{width:a,height:i}}function Mk(e,a,i){const o=Dn(a),s=Pn(a),u=i==="fixed",f=mi(e,!0,u,a);let g={scrollLeft:0,scrollTop:0};const h=zn(0);function p(){h.x=Ag(s)}if(o||!o&&!u)if((Nr(a)!=="body"||cl(s))&&(g=Ac(a)),o){const x=mi(a,!0,u,a);h.x=x.x+a.clientLeft,h.y=x.y+a.clientTop}else s&&p();u&&!o&&s&&p();const v=s&&!o&&!u?j0(s,g):zn(0),S=f.left+g.scrollLeft-h.x-v.x,y=f.top+g.scrollTop-h.y-v.y;return{x:S,y,width:f.width,height:f.height}}function ff(e){return xn(e).position==="static"}function Sb(e,a){if(!Dn(e)||xn(e).position==="fixed")return null;if(a)return a(e);let i=e.offsetParent;return Pn(e)===i&&(i=i.ownerDocument.body),i}function F0(e,a){const i=Qt(e);if(Nc(e))return i;if(!Dn(e)){let s=Da(e);for(;s&&!Tr(s);){if(yn(s)&&!ff(s))return s;s=Da(s)}return i}let o=Sb(e,a);for(;o&&bk(o)&&ff(o);)o=Sb(o,a);return o&&Tr(o)&&ff(o)&&!wg(o)?i:o||Ck(e)||i}const Pk=async function(e){const a=this.getOffsetParent||F0,i=this.getDimensions,o=await i(e.floating);return{reference:Mk(e.reference,await a(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Lk(e){return xn(e).direction==="rtl"}const Bk={convertOffsetParentRelativeRectToViewportRelativeRect:wk,getDocumentElement:Pn,getClippingRect:Ik,getOffsetParent:F0,getElementRects:Pk,getClientRects:Rk,getDimensions:Dk,getScale:Er,isElement:yn,isRTL:Lk};function G0(e,a){return e.x===a.x&&e.y===a.y&&e.width===a.width&&e.height===a.height}function Hk(e,a){let i=null,o;const s=Pn(e);function u(){var g;clearTimeout(o),(g=i)==null||g.disconnect(),i=null}function f(g,h){g===void 0&&(g=!1),h===void 0&&(h=1),u();const p=e.getBoundingClientRect(),{left:v,top:S,width:y,height:x}=p;if(g||a(),!y||!x)return;const C=Vs(S),E=Vs(s.clientWidth-(v+y)),k=Vs(s.clientHeight-(S+x)),_=Vs(v),A={rootMargin:-C+"px "+-E+"px "+-k+"px "+-_+"px",threshold:Xt(0,Ia(1,h))||1};let M=!0;function N(Y){const U=Y[0].intersectionRatio;if(U!==h){if(!M)return f();U?f(!1,U):o=setTimeout(()=>{f(!1,1e-7)},1e3)}U===1&&!G0(p,e.getBoundingClientRect())&&f(),M=!1}try{i=new IntersectionObserver(N,{...A,root:s.ownerDocument})}catch{i=new IntersectionObserver(N,A)}i.observe(e)}return f(!0),u}function jk(e,a,i,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:h=!1}=o,p=Ng(e),v=s||u?[...p?nl(p):[],...nl(a)]:[];v.forEach(_=>{s&&_.addEventListener("scroll",i,{passive:!0}),u&&_.addEventListener("resize",i)});const S=p&&g?Hk(p,i):null;let y=-1,x=null;f&&(x=new ResizeObserver(_=>{let[R]=_;R&&R.target===p&&x&&(x.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(a)})),i()}),p&&!h&&x.observe(p),x.observe(a));let C,E=h?mi(e):null;h&&k();function k(){const _=mi(e);E&&!G0(E,_)&&i(),E=_,C=requestAnimationFrame(k)}return i(),()=>{var _;v.forEach(R=>{s&&R.removeEventListener("scroll",i),u&&R.removeEventListener("resize",i)}),S?.(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame(C)}}const Uk=fk,Fk=gk,Gk=ck,Wk=mk,$k=uk,qk=sk,Yk=hk,Xk=(e,a,i)=>{const o=new Map,s={platform:Bk,...i},u={...s.platform,_c:o};return lk(e,a,{...s,platform:u})};function Eb(e=0,a=0,i=0,o=0){if(typeof DOMRect=="function")return new DOMRect(e,a,i,o);const s={x:e,y:a,width:i,height:o,top:a,right:e+i,bottom:a+o,left:e};return{...s,toJSON:()=>s}}function Kk(e){if(!e)return Eb();const{x:a,y:i,width:o,height:s}=e;return Eb(a,i,o,s)}function Qk(e,a){return{contextElement:Tt(e)?e:void 0,getBoundingClientRect:()=>{const i=e,o=a?.(i);return o||!i?Kk(o):i.getBoundingClientRect()}}}var Cb=e=>({variable:e,reference:`var(${e})`}),W0={transformOrigin:Cb("--transform-origin"),arrowOffset:Cb("--arrow-offset")},Zk=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),Jk={name:"transformOrigin",fn({placement:e,elements:a,middlewareData:i}){const{arrow:o}=i,s=Zk(o)[e],{floating:u}=a;return u.style.setProperty(W0.transformOrigin.variable,s),{data:{transformOrigin:s}}}},ew={name:"rects",fn({rects:e}){return{data:e}}},tw=e=>{if(e)return{name:"shiftArrow",fn({placement:a,middlewareData:i}){if(!i.arrow)return{};const{x:o,y:s}=i.arrow,u=a.split("-")[0];return Object.assign(e.style,{left:o!=null?`${o}px`:"",top:s!=null?`${s}px`:"",[u]:`calc(100% + ${W0.arrowOffset.reference})`}),{}}}};function nw(e){const[a,i]=e.split("-");return{side:a,align:i,hasAlign:i!=null}}function aw(e){return e.split("-")[0]}var iw={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ob(e,a){const i=e.devicePixelRatio||1;return Math.round(a*i)/i}function $0(e){return FO(e.boundary)}function rw(e,a){if(e)return qk({element:e,padding:a.arrowPadding})}function ow(e,a){if(!MO(a.offset??a.gutter))return Uk(({placement:i})=>{const o=(e?.clientHeight||0)/2,s=a.offset?.mainAxis??a.gutter,u=typeof s=="number"?s+o:s??o,{hasAlign:f}=nw(i),g=f?void 0:a.shift,h=a.offset?.crossAxis??g;return og({crossAxis:h,mainAxis:u,alignmentAxis:a.shift})})}function lw(e){if(e.flip)return Gk({boundary:$0(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function sw(e){if(!(!e.slide&&!e.overlap))return Fk({boundary:$0(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Yk()})}function cw(e){return Wk({padding:e.overflowPadding,apply({elements:a,rects:i,availableHeight:o,availableWidth:s}){const u=a.floating,f=Math.round(i.reference.width);s=Math.floor(s),o=Math.floor(o),u.style.setProperty("--reference-width",`${f}px`),u.style.setProperty("--available-width",`${s}px`),u.style.setProperty("--available-height",`${o}px`)}})}function uw(e){if(e.hideWhenDetached)return $k({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function dw(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function fw(e,a,i={}){const o=Qk(e,i.getAnchorRect);if(!a||!o)return;const s=Object.assign({},iw,i),u=a.querySelector("[data-part=arrow]"),f=[ow(u,s),lw(s),sw(s),rw(u,s),tw(u),Jk,cw(s),uw(s),ew],{placement:g,strategy:h,onComplete:p,onPositioned:v}=s,S=async()=>{if(!o||!a)return;const E=await Xk(o,a,{placement:g,middleware:f,strategy:h});p?.(E),v?.({placed:!0});const k=gt(a),_=Ob(k,E.x),R=Ob(k,E.y);a.style.setProperty("--x",`${_}px`),a.style.setProperty("--y",`${R}px`),s.hideWhenDetached&&(E.middlewareData.hide?.referenceHidden?(a.style.setProperty("visibility","hidden"),a.style.setProperty("pointer-events","none")):(a.style.removeProperty("visibility"),a.style.removeProperty("pointer-events")));const A=a.firstElementChild;if(A){const M=h0(A);a.style.setProperty("--z-index",M.zIndex)}},y=async()=>{i.updatePosition?(await i.updatePosition({updatePosition:S,floatingElement:a}),v?.({placed:!0})):await S()},x=dw(s.listeners),C=s.listeners?jk(o,a,y,x):WO;return y(),()=>{C?.(),v?.({placed:!1})}}function Sn(e,a,i={}){const{defer:o,...s}=i,u=o?Se:g=>g(),f=[];return f.push(u(()=>{const g=typeof e=="function"?e():e,h=typeof a=="function"?a():a;f.push(fw(g,h,s))})),()=>{f.forEach(g=>g?.())}}function gw(e){const a={each(i){for(let o=0;o<e.frames?.length;o+=1){const s=e.frames[o];s&&i(s)}},addEventListener(i,o,s){return a.each(u=>{try{u.document.addEventListener(i,o,s)}catch{}}),()=>{try{a.removeEventListener(i,o,s)}catch{}}},removeEventListener(i,o,s){a.each(u=>{try{u.document.removeEventListener(i,o,s)}catch{}})}};return a}function hw(e){const a=e.frameElement!=null?e.parent:null;return{addEventListener:(i,o,s)=>{try{a?.addEventListener(i,o,s)}catch{}return()=>{try{a?.removeEventListener(i,o,s)}catch{}}},removeEventListener:(i,o,s)=>{try{a?.removeEventListener(i,o,s)}catch{}}}}var Tb="pointerdown.outside",kb="focus.outside";function mw(e){for(const a of e)if(Tt(a)&&Zo(a))return!0;return!1}var q0=e=>"clientY"in e;function pw(e,a){if(!q0(a)||!e)return!1;const i=e.getBoundingClientRect();return i.width===0||i.height===0?!1:i.top<=a.clientY&&a.clientY<=i.top+i.height&&i.left<=a.clientX&&a.clientX<=i.left+i.width}function vw(e,a){return e.y<=a.y&&a.y<=e.y+e.height&&e.x<=a.x&&a.x<=e.x+e.width}function wb(e,a){if(!a||!q0(e))return!1;const i=a.scrollHeight>a.clientHeight,o=i&&e.clientX>a.offsetLeft+a.clientWidth,s=a.scrollWidth>a.clientWidth,u=s&&e.clientY>a.offsetTop+a.clientHeight,f={x:a.offsetLeft,y:a.offsetTop,width:a.clientWidth+(i?16:0),height:a.clientHeight+(s?16:0)},g={x:e.clientX,y:e.clientY};return vw(f,g)?o||u:!1}function bw(e,a){const{exclude:i,onFocusOutside:o,onPointerDownOutside:s,onInteractOutside:u,defer:f}=a;if(!e)return;const g=Mn(e),h=gt(e),p=gw(h),v=hw(h);function S(R,A){if(!Tt(A)||!A.isConnected||Va(e,A)||pw(e,R))return!1;const M=g.querySelector(`[aria-controls="${e.id}"]`);if(M){const Y=lc(M);if(wb(R,Y))return!1}const N=lc(e);return wb(R,N)?!1:!i?.(A)}const y=new Set,x=Qo(e?.getRootNode());function C(R){function A(M){const N=f&&!sb()?Se:j=>j(),Y=M??R,U=Y?.composedPath?.()??[Y?.target];N(()=>{const j=x?U[0]:In(R);if(!(!e||!S(R,j))){if(s||u){const W=rc(s,u);e.addEventListener(Tb,W,{once:!0})}Rb(e,Tb,{bubbles:!1,cancelable:!0,detail:{originalEvent:Y,contextmenu:L2(Y),focusable:mw(U),target:j}})}})}R.pointerType==="touch"?(y.forEach(M=>M()),y.add(xt(g,"click",A,{once:!0})),y.add(v.addEventListener("click",A,{once:!0})),y.add(p.addEventListener("click",A,{once:!0}))):A()}const E=new Set,k=setTimeout(()=>{E.add(xt(g,"pointerdown",C,!0)),E.add(v.addEventListener("pointerdown",C,!0)),E.add(p.addEventListener("pointerdown",C,!0))},0);function _(R){(f?Se:M=>M())(()=>{const M=In(R);if(!(!e||!S(R,M))){if(o||u){const N=rc(o,u);e.addEventListener(kb,N,{once:!0})}Rb(e,kb,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:!1,focusable:Zo(M),target:M}})}})}return sb()||(E.add(xt(g,"focusin",_,!0)),E.add(v.addEventListener("focusin",_,!0)),E.add(p.addEventListener("focusin",_,!0))),()=>{clearTimeout(k),y.forEach(R=>R()),E.forEach(R=>R())}}function yw(e,a){const{defer:i}=a,o=i?Se:u=>u(),s=[];return s.push(o(()=>{const u=typeof e=="function"?e():e;s.push(bw(u,a))})),()=>{s.forEach(u=>u?.())}}function Rb(e,a,i){const o=e.ownerDocument.defaultView||window,s=new o.CustomEvent(a,i);return e.dispatchEvent(s)}function xw(e,a){const i=o=>{o.key==="Escape"&&(o.isComposing||a?.(o))};return xt(Mn(e),"keydown",i,{capture:!0})}var mn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const a=this.indexOf(e),i=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return a<i},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,a){return this.getNestedLayers(e).some(i=>Va(i.node,a))},isInBranch(e){return Array.from(this.branches).some(a=>Va(a,e))},add(e){const a=this.layers.push(e);e.node.style.setProperty("--layer-index",`${a}`)},addBranch(e){this.branches.push(e)},remove(e){const a=this.indexOf(e);a<0||(a<this.count()-1&&this.getNestedLayers(e).forEach(o=>o.dismiss()),this.layers.splice(a,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const a=this.branches.indexOf(e);a>=0&&this.branches.splice(a,1)},indexOf(e){return this.layers.findIndex(a=>a.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},Nb;function Ab(){mn.layers.forEach(({node:e})=>{e.style.pointerEvents=mn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Sw(e){e.style.pointerEvents=""}function Ew(e,a){const i=Mn(e),o=[];return mn.hasPointerBlockingLayer()&&!i.body.hasAttribute("data-inert")&&(Nb=document.body.style.pointerEvents,queueMicrotask(()=>{i.body.style.pointerEvents="none",i.body.setAttribute("data-inert","")})),a?.forEach(s=>{const[u,f]=vT(()=>{const g=s();return Tt(g)?g:null},{timeout:1e3});u.then(g=>o.push(k0(g,{pointerEvents:"auto"}))),o.push(f)}),()=>{mn.hasPointerBlockingLayer()||(queueMicrotask(()=>{i.body.style.pointerEvents=Nb,i.body.removeAttribute("data-inert"),i.body.style.length===0&&i.body.removeAttribute("style")}),o.forEach(s=>s()))}}function Cw(e,a){const{warnOnMissingNode:i=!0}=a;if(i&&!e){oc("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:o,pointerBlocking:s,exclude:u,debug:f}=a,g={dismiss:o,node:e,pointerBlocking:s};mn.add(g),Ab();function h(x){const C=In(x.detail.originalEvent);mn.isBelowPointerBlockingLayer(e)||mn.isInBranch(C)||(a.onPointerDownOutside?.(x),a.onInteractOutside?.(x),!x.defaultPrevented&&(f&&console.log("onPointerDownOutside:",x.detail.originalEvent),o?.()))}function p(x){const C=In(x.detail.originalEvent);mn.isInBranch(C)||(a.onFocusOutside?.(x),a.onInteractOutside?.(x),!x.defaultPrevented&&(f&&console.log("onFocusOutside:",x.detail.originalEvent),o?.()))}function v(x){mn.isTopMost(e)&&(a.onEscapeKeyDown?.(x),!x.defaultPrevented&&o&&(x.preventDefault(),o()))}function S(x){if(!e)return!1;const C=typeof u=="function"?u():u,E=Array.isArray(C)?C:[C],k=a.persistentElements?.map(_=>_()).filter(Tt);return k&&E.push(...k),E.some(_=>Va(_,x))||mn.isInNestedLayer(e,x)}const y=[s?Ew(e,a.persistentElements):void 0,xw(e,v),yw(e,{exclude:S,onFocusOutside:p,onPointerDownOutside:h,defer:a.defer})];return()=>{mn.remove(e),Ab(),Sw(e),y.forEach(x=>x?.())}}function ul(e,a){const{defer:i}=a,o=i?Se:u=>u(),s=[];return s.push(o(()=>{const u=fi(e)?e():e;s.push(Cw(u,a))})),()=>{s.forEach(u=>u?.())}}var Y0=he("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Y0.build();var Ow=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,Tw=e=>e.ids?.control??`color-picker:${e.id}:control`,kw=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,ww=e=>e.ids?.content??`color-picker:${e.id}:content`,Rw=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Nw=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,Aw=e=>e.ids?.area??`color-picker:${e.id}:area`,_w=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,zw=(e,a)=>e.ids?.channelSliderTrack?.(a)??`color-picker:${e.id}:slider-track:${a}`,Vw=(e,a)=>e.ids?.channelSliderThumb?.(a)??`color-picker:${e.id}:slider-thumb:${a}`,Zs=e=>e.getById(ww(e)),Iw=e=>e.getById(_w(e)),Dw=(e,a)=>e.getById(Vw(e,a)),Mw=e=>e.getById(Nw(e)),_b=e=>e.getById(Ow(e)),Pw=e=>e.getById(Aw(e)),Lw=(e,a)=>{const i=Pw(e);if(!i)return;const{percent:o}=S0(a,i);return o},Bw=e=>e.getById(Tw(e)),gf=e=>e.getById(kw(e)),Hw=e=>e.getById(Rw(e)),jw=(e,a)=>e.getById(zw(e,a)),Uw=(e,a,i)=>{const o=jw(e,i);if(!o)return;const{percent:s}=S0(a,o);return s},Fw=e=>[...Jo(Zs(e),"input[data-channel]"),...Jo(Bw(e),"input[data-channel]")];function Gw(e,a){if(a==null)return"";if(a==="hex")return e.toString("hex");if(a==="css")return e.toString("css");if(a in e)return e.getChannelValue(a).toString();const i=e.getFormat()==="hsla";switch(a){case"hue":return i?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return i?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(a).toString();default:return e.getChannelValue(a).toString()}}var zb=e=>uc(e),Ww=/^[0-9a-fA-F]{3,8}$/;function $w(e){return Ww.test(e)}function qw(e){return e.startsWith("#")?e:$w(e)?`#${e}`:e}var{and:Yw}=Ma();Yw("isOpenControlled","closeOnSelect");function Vb(e,a,i){const o=Fw(e);Se(()=>{o.forEach(s=>{const u=s.dataset.channel;Tc(s,Gw(i||a,u))})})}function Xw(e,a){const i=Mw(e);i&&Se(()=>Tc(i,a))}me()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);me()(["xChannel","yChannel"]);me()(["channel","orientation"]);me()(["value","disabled"]);me()(["value","respectAlpha"]);me()(["size"]);const[X0,Kw]=ol({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),K0=e=>sl()(e,["lazyMount","unmountOnExit"]);var Q0=he("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Q0.build();var Z0=e=>e.ids?.root??`accordion:${e.id}`,J0=(e,a)=>e.ids?.itemTrigger?.(a)??`accordion:${e.id}:trigger:${a}`,Qw=e=>e.getById(Z0(e)),_c=e=>{const i=`[aria-controls][data-ownedby='${CSS.escape(Z0(e))}']:not([disabled])`;return Jo(Qw(e),i)},Zw=e=>Sr(_c(e)),Jw=e=>Sc(_c(e)),eR=(e,a)=>O0(_c(e),J0(e,a)),tR=(e,a)=>T0(_c(e),J0(e,a)),{and:nR,not:aR}=Ma();nR("isExpanded","canToggle"),aR("isExpanded");me()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);me()(["value","disabled"]);var jo=(e,a)=>({x:e,y:a});function iR(e){const{x:a,y:i,width:o,height:s}=e,u=a+o/2,f=i+s/2;return{x:a,y:i,width:o,height:s,minX:a,minY:i,maxX:a+o,maxY:i+s,midX:u,midY:f,center:jo(u,f)}}function rR(e){const a=jo(e.minX,e.minY),i=jo(e.maxX,e.minY),o=jo(e.maxX,e.maxY),s=jo(e.minX,e.maxY);return{top:a,right:i,bottom:o,left:s}}function oR(e,a){const i=iR(e),{top:o,right:s,left:u,bottom:f}=rR(i),[g]=a.split("-");return{top:[u,o,s,f],right:[o,s,f,u],bottom:[o,u,f,s],left:[s,o,u,f]}[g]}function lR(e,a){const{x:i,y:o}=a;let s=!1;for(let u=0,f=e.length-1;u<e.length;f=u++){const g=e[u].x,h=e[u].y,p=e[f].x,v=e[f].y;h>o!=v>o&&i<(p-g)*(o-h)/(v-h)+g&&(s=!s)}return s}var ex=he("avatar").parts("root","image","fallback");ex.build();me()(["dir","id","ids","onStatusChange","getRootNode"]);function sR(e){return!(e.metaKey||!ll()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var cR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uR(e,a,i){const o=i?In(i):null,s=gt(o);return e=e||o instanceof s.HTMLInputElement&&!cR.has(o?.type)||o instanceof s.HTMLTextAreaElement||o instanceof s.HTMLElement&&o.isContentEditable,!(e&&a==="keyboard"&&i instanceof s.KeyboardEvent&&!Reflect.has(dR,i.key))}var bi=null,If=new Set,Go=new Map,pi=!1,Df=!1,dR={Tab:!0,Escape:!0};function zc(e,a){for(let i of If)i(e,a)}function hc(e){pi=!0,sR(e)&&(bi="keyboard",zc("keyboard",e))}function un(e){bi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pi=!0,zc("pointer",e))}function tx(e){P2(e)&&(pi=!0,bi="virtual")}function nx(e){const a=In(e);a===gt(a)||a===Mn(a)||(!pi&&!Df&&(bi="virtual",zc("virtual",e)),pi=!1,Df=!1)}function ax(){pi=!1,Df=!0}function fR(e){if(typeof window>"u"||Go.get(gt(e)))return;const a=gt(e),i=Mn(e);let o=a.HTMLElement.prototype.focus;function s(){bi="virtual",zc("virtual",null),pi=!0,o.apply(this,arguments)}Object.defineProperty(a.HTMLElement.prototype,"focus",{configurable:!0,value:s}),i.addEventListener("keydown",hc,!0),i.addEventListener("keyup",hc,!0),i.addEventListener("click",tx,!0),a.addEventListener("focus",nx,!0),a.addEventListener("blur",ax,!1),typeof a.PointerEvent<"u"?(i.addEventListener("pointerdown",un,!0),i.addEventListener("pointermove",un,!0),i.addEventListener("pointerup",un,!0)):(i.addEventListener("mousedown",un,!0),i.addEventListener("mousemove",un,!0),i.addEventListener("mouseup",un,!0)),a.addEventListener("beforeunload",()=>{gR(e)},{once:!0}),Go.set(a,{focus:o})}var gR=(e,a)=>{const i=gt(e),o=Mn(e);Go.has(i)&&(i.HTMLElement.prototype.focus=Go.get(i).focus,o.removeEventListener("keydown",hc,!0),o.removeEventListener("keyup",hc,!0),o.removeEventListener("click",tx,!0),i.removeEventListener("focus",nx,!0),i.removeEventListener("blur",ax,!1),typeof i.PointerEvent<"u"?(o.removeEventListener("pointerdown",un,!0),o.removeEventListener("pointermove",un,!0),o.removeEventListener("pointerup",un,!0)):(o.removeEventListener("mousedown",un,!0),o.removeEventListener("mousemove",un,!0),o.removeEventListener("mouseup",un,!0)),Go.delete(i))};function Ib(){return bi==="keyboard"}function hR(e={}){const{isTextInput:a,autoFocus:i,onChange:o,root:s}=e;fR(s),o?.({isFocusVisible:i||Ib(),modality:bi});const u=(f,g)=>{uR(!!a,f,g)&&o?.({isFocusVisible:Ib(),modality:f})};return If.add(u),()=>{If.delete(u)}}var ix=he("checkbox").parts("root","label","control","indicator");ix.build();me()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const mR=ix.extendWith("group");var rx=he("clipboard").parts("root","control","trigger","indicator","input","label");rx.build();me()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);me()(["copied"]);const pR=Y0.extendWith("view");var vR=Object.defineProperty,bR=(e,a,i)=>a in e?vR(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,ee=(e,a,i)=>bR(e,typeof a!="symbol"?a+"":a,i),Js={itemToValue(e){return typeof e=="string"?e:di(e)&&za(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:di(e)&&za(e,"label")?e.label:Js.itemToValue(e)},isItemDisabled(e){return di(e)&&za(e,"disabled")?!!e.disabled:!1}},Vc=class ox{constructor(a){this.options=a,ee(this,"items"),ee(this,"copy",i=>new ox({...this.options,items:i??[...this.items]})),ee(this,"isEqual",i=>bn(this.items,i.items)),ee(this,"setItems",i=>this.copy(i)),ee(this,"getValues",(i=this.items)=>Array.from(i).map(o=>this.getItemValue(o)).filter(Boolean)),ee(this,"find",i=>{if(i==null)return null;const o=this.indexOf(i);return o!=null?this.at(o):null}),ee(this,"findMany",i=>Array.from(i).map(o=>this.find(o)).filter(o=>o!=null)),ee(this,"at",i=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[i]??null;let o=0;const s=this.group();for(const[,u]of s)for(const f of u){if(o===i)return f;o++}return null}),ee(this,"sortFn",(i,o)=>{const s=this.indexOf(i),u=this.indexOf(o);return(s??0)-(u??0)}),ee(this,"sort",i=>[...i].sort(this.sortFn.bind(this))),ee(this,"getItemValue",i=>i==null?null:this.options.itemToValue?.(i)??Js.itemToValue(i)),ee(this,"getItemDisabled",i=>i==null?!1:this.options.isItemDisabled?.(i)??Js.isItemDisabled(i)),ee(this,"stringifyItem",i=>i==null?null:this.options.itemToString?.(i)??Js.itemToString(i)),ee(this,"stringify",i=>i==null?null:this.stringifyItem(this.find(i))),ee(this,"stringifyItems",(i,o=", ")=>Array.from(i).map(s=>this.stringifyItem(s)).filter(Boolean).join(o)),ee(this,"stringifyMany",(i,o)=>this.stringifyItems(this.findMany(i),o)),ee(this,"has",i=>this.indexOf(i)!==-1),ee(this,"hasItem",i=>i==null?!1:this.has(this.getItemValue(i))),ee(this,"group",()=>{const{groupBy:i,groupSort:o}=this.options;if(!i)return[["",[...this.items]]];const s=new Map;this.items.forEach((f,g)=>{const h=i(f,g);s.has(h)||s.set(h,[]),s.get(h).push(f)});let u=Array.from(s.entries());return o&&u.sort(([f],[g])=>{if(typeof o=="function")return o(f,g);if(Array.isArray(o)){const h=o.indexOf(f),p=o.indexOf(g);return h===-1?1:p===-1?-1:h-p}return o==="asc"?f.localeCompare(g):o==="desc"?g.localeCompare(f):0}),u}),ee(this,"getNextValue",(i,o=1,s=!1)=>{let u=this.indexOf(i);if(u===-1)return null;for(u=s?Math.min(u+o,this.size-1):u+o;u<=this.size&&this.getItemDisabled(this.at(u));)u++;return this.getItemValue(this.at(u))}),ee(this,"getPreviousValue",(i,o=1,s=!1)=>{let u=this.indexOf(i);if(u===-1)return null;for(u=s?Math.max(u-o,0):u-o;u>=0&&this.getItemDisabled(this.at(u));)u--;return this.getItemValue(this.at(u))}),ee(this,"indexOf",i=>{if(i==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(u=>this.getItemValue(u)===i);let o=0;const s=this.group();for(const[,u]of s)for(const f of u){if(this.getItemValue(f)===i)return o;o++}return-1}),ee(this,"getByText",(i,o)=>{let s=o!=null?xR(this.items,this.indexOf(o)):this.items;return i.length===1&&(s=s.filter(f=>this.getItemValue(f)!==o)),s.find(f=>yR(this.stringifyItem(f),i))}),ee(this,"search",(i,o)=>{const{state:s,currentValue:u,timeout:f=350}=o,g=s.keysSoFar+i,p=g.length>1&&Array.from(g).every(C=>C===g[0])?g[0]:g,v=this.getByText(p,u),S=this.getItemValue(v);function y(){clearTimeout(s.timer),s.timer=-1}function x(C){s.keysSoFar=C,y(),C!==""&&(s.timer=+setTimeout(()=>{x(""),y()},f))}return x(g),S}),ee(this,"update",(i,o)=>{let s=this.indexOf(i);return s===-1?this:this.copy([...this.items.slice(0,s),o,...this.items.slice(s+1)])}),ee(this,"upsert",(i,o,s="append")=>{let u=this.indexOf(i);return u===-1?(s==="append"?this.append:this.prepend)(o):this.copy([...this.items.slice(0,u),o,...this.items.slice(u+1)])}),ee(this,"insert",(i,...o)=>this.copy(Do(this.items,i,...o))),ee(this,"insertBefore",(i,...o)=>{let s=this.indexOf(i);if(s===-1)if(this.items.length===0)s=0;else return this;return this.copy(Do(this.items,s,...o))}),ee(this,"insertAfter",(i,...o)=>{let s=this.indexOf(i);if(s===-1)if(this.items.length===0)s=0;else return this;return this.copy(Do(this.items,s+1,...o))}),ee(this,"prepend",(...i)=>this.copy(Do(this.items,0,...i))),ee(this,"append",(...i)=>this.copy(Do(this.items,this.items.length,...i))),ee(this,"filter",i=>{const o=this.items.filter((s,u)=>i(this.stringifyItem(s),u,s));return this.copy(o)}),ee(this,"remove",(...i)=>{const o=i.map(s=>typeof s=="string"?s:this.getItemValue(s));return this.copy(this.items.filter(s=>{const u=this.getItemValue(s);return u==null?!1:!o.includes(u)}))}),ee(this,"move",(i,o)=>{const s=this.indexOf(i);return s===-1?this:this.copy(Is(this.items,[s],o))}),ee(this,"moveBefore",(i,...o)=>{let s=this.items.findIndex(f=>this.getItemValue(f)===i);if(s===-1)return this;let u=o.map(f=>this.items.findIndex(g=>this.getItemValue(g)===f)).sort((f,g)=>f-g);return this.copy(Is(this.items,u,s))}),ee(this,"moveAfter",(i,...o)=>{let s=this.items.findIndex(f=>this.getItemValue(f)===i);if(s===-1)return this;let u=o.map(f=>this.items.findIndex(g=>this.getItemValue(g)===f)).sort((f,g)=>f-g);return this.copy(Is(this.items,u,s+1))}),ee(this,"reorder",(i,o)=>this.copy(Is(this.items,[i],o))),ee(this,"compareValue",(i,o)=>{const s=this.indexOf(i),u=this.indexOf(o);return s<u?-1:s>u?1:0}),ee(this,"range",(i,o)=>{let s=[],u=i;for(;u!=null;){if(this.find(u)&&s.push(u),u===o)return s;u=this.getNextValue(u)}return[]}),ee(this,"getValueRange",(i,o)=>i&&o?this.compareValue(i,o)<=0?this.range(i,o):this.range(o,i):[]),ee(this,"toString",()=>{let i="";for(const o of this.items){const s=this.getItemValue(o),u=this.stringifyItem(o),f=this.getItemDisabled(o),g=[s,u,f].filter(Boolean).join(":");i+=g+","}return i}),ee(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...a.items]}get size(){return this.items.length}get firstValue(){let a=0;for(;this.getItemDisabled(this.at(a));)a++;return this.getItemValue(this.at(a))}get lastValue(){let a=this.size-1;for(;this.getItemDisabled(this.at(a));)a--;return this.getItemValue(this.at(a))}*[Symbol.iterator](){yield*this.items}},yR=(e,a)=>!!e?.toLowerCase().startsWith(a.toLowerCase()),xR=(e,a)=>e.map((i,o)=>e[(Math.max(a,0)+o)%e.length]);function Do(e,a,...i){return[...e.slice(0,a),...i,...e.slice(a)]}function Is(e,a,i){a=[...a].sort((s,u)=>s-u);const o=a.map(s=>e[s]);for(let s=a.length-1;s>=0;s--)e=[...e.slice(0,a[s]),...e.slice(a[s]+1)];return i=Math.max(0,i-a.filter(s=>s<i).length),[...e.slice(0,i),...o,...e.slice(i)]}function lx(e,a,i){for(let o=0;o<a.length;o++)e=i.getChildren(e,a.slice(o+1))[a[o]];return e}function SR(e){const a=ER(e),i=[],o=new Set;for(const s of a){const u=s.join();o.has(u)||(o.add(u),i.push(s))}return i}function sx(e,a){for(let i=0;i<Math.min(e.length,a.length);i++){if(e[i]<a[i])return-1;if(e[i]>a[i])return 1}return e.length-a.length}function ER(e){return e.sort(sx)}function CR(e,a){let i;return Yt(e,{...a,onEnter:(o,s)=>{if(a.predicate(o,s))return i=o,"stop"}}),i}function OR(e,a){const i=[];return Yt(e,{onEnter:(o,s)=>{a.predicate(o,s)&&i.push(o)},getChildren:a.getChildren}),i}function Db(e,a){let i;return Yt(e,{onEnter:(o,s)=>{if(a.predicate(o,s))return i=[...s],"stop"},getChildren:a.getChildren}),i}function TR(e,a){let i=a.initialResult;return Yt(e,{...a,onEnter:(o,s)=>{i=a.nextResult(i,o,s)}}),i}function kR(e,a){return TR(e,{...a,initialResult:[],nextResult:(i,o,s)=>(i.push(...a.transform(o,s)),i)})}function wR(e,a){const{predicate:i,create:o,getChildren:s}=a,u=(f,g)=>{const h=s(f,g),p=[];h.forEach((x,C)=>{const E=[...g,C],k=u(x,E);k&&p.push(k)});const v=g.length===0,S=i(f,g),y=p.length>0;return v||S||y?o(f,p,g):null};return u(e,[])||o(e,[],[])}function RR(e,a){const i=[];let o=0;const s=new Map,u=new Map;return Yt(e,{getChildren:a.getChildren,onEnter:(f,g)=>{s.has(f)||s.set(f,o++);const h=a.getChildren(f,g);h.forEach(x=>{u.has(x)||u.set(x,f),s.has(x)||s.set(x,o++)});const p=h.length>0?h.map(x=>s.get(x)):void 0,v=u.get(f),S=v?s.get(v):void 0,y=s.get(f);i.push({...f,_children:p,_parent:S,_index:y})}}),i}function NR(e,a){return{type:"insert",index:e,nodes:a}}function AR(e){return{type:"remove",indexes:e}}function _g(){return{type:"replace"}}function cx(e){return[e.slice(0,-1),e[e.length-1]]}function ux(e,a,i=new Map){const[o,s]=cx(e);for(let f=o.length-1;f>=0;f--){const g=o.slice(0,f).join();switch(i.get(g)?.type){case"remove":continue}i.set(g,_g())}const u=i.get(o.join());switch(u?.type){case"remove":i.set(o.join(),{type:"removeThenInsert",removeIndexes:u.indexes,insertIndex:s,insertNodes:a});break;default:i.set(o.join(),NR(s,a))}return i}function dx(e){const a=new Map,i=new Map;for(const o of e){const s=o.slice(0,-1).join(),u=i.get(s)??[];u.push(o[o.length-1]),i.set(s,u.sort((f,g)=>f-g))}for(const o of e)for(let s=o.length-2;s>=0;s--){const u=o.slice(0,s).join();a.has(u)||a.set(u,_g())}for(const[o,s]of i)a.set(o,AR(s));return a}function _R(e,a){const i=new Map,[o,s]=cx(e);for(let u=o.length-1;u>=0;u--){const f=o.slice(0,u).join();i.set(f,_g())}return i.set(o.join(),{type:"removeThenInsert",removeIndexes:[s],insertIndex:s,insertNodes:[a]}),i}function Ic(e,a,i){return zR(e,{...i,getChildren:(o,s)=>{const u=s.join();switch(a.get(u)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return i.getChildren(o,s);default:return[]}},transform:(o,s,u)=>{const f=u.join(),g=a.get(f);switch(g?.type){case"remove":return i.create(o,s.filter((v,S)=>!g.indexes.includes(S)),u);case"removeThenInsert":const h=s.filter((v,S)=>!g.removeIndexes.includes(S)),p=g.removeIndexes.reduce((v,S)=>S<v?v-1:v,g.insertIndex);return i.create(o,Mb(h,p,0,...g.insertNodes),u);case"insert":return i.create(o,Mb(s,g.index,0,...g.nodes),u);case"replace":return i.create(o,s,u);default:return o}}})}function Mb(e,a,i,...o){return[...e.slice(0,a),...o,...e.slice(a+i)]}function zR(e,a){const i={};return Yt(e,{...a,onLeave:(o,s)=>{const u=[0,...s],f=u.join(),g=a.transform(o,i[f]??[],s),h=u.slice(0,-1).join(),p=i[h]??[];p.push(g),i[h]=p}}),i[""][0]}function VR(e,a){const{nodes:i,at:o}=a;if(o.length===0)throw new Error("Can't insert nodes at the root");const s=ux(o,i);return Ic(e,s,a)}function IR(e,a){if(a.at.length===0)return a.node;const i=_R(a.at,a.node);return Ic(e,i,a)}function DR(e,a){if(a.indexPaths.length===0)return e;for(const o of a.indexPaths)if(o.length===0)throw new Error("Can't remove the root node");const i=dx(a.indexPaths);return Ic(e,i,a)}function MR(e,a){if(a.indexPaths.length===0)return e;for(const u of a.indexPaths)if(u.length===0)throw new Error("Can't move the root node");if(a.to.length===0)throw new Error("Can't move nodes to the root");const i=SR(a.indexPaths),o=i.map(u=>lx(e,u,a)),s=ux(a.to,o,dx(i));return Ic(e,s,a)}function Yt(e,a){const{onEnter:i,onLeave:o,getChildren:s}=a;let u=[],f=[{node:e}];const g=a.reuseIndexPath?()=>u:()=>u.slice();for(;f.length>0;){let h=f[f.length-1];if(h.state===void 0){const v=i?.(h.node,g());if(v==="stop")return;h.state=v==="skip"?-1:0}const p=h.children||s(h.node,g());if(h.children||(h.children=p),h.state!==-1){if(h.state<p.length){let S=h.state;u.push(S),f.push({node:p[S]}),h.state=S+1;continue}if(o?.(h.node,g())==="stop")return}u.pop(),f.pop()}}var fx=class gx{constructor(a){this.options=a,ee(this,"rootNode"),ee(this,"isEqual",i=>bn(this.rootNode,i.rootNode)),ee(this,"getNodeChildren",i=>this.options.nodeToChildren?.(i)??dr.nodeToChildren(i)??[]),ee(this,"resolveIndexPath",i=>typeof i=="string"?this.getIndexPath(i):i),ee(this,"resolveNode",i=>{const o=this.resolveIndexPath(i);return o?this.at(o):void 0}),ee(this,"getNodeChildrenCount",i=>this.options.nodeToChildrenCount?.(i)??dr.nodeToChildrenCount(i)),ee(this,"getNodeValue",i=>this.options.nodeToValue?.(i)??dr.nodeToValue(i)),ee(this,"getNodeDisabled",i=>this.options.isNodeDisabled?.(i)??dr.isNodeDisabled(i)),ee(this,"stringify",i=>{const o=this.findNode(i);return o?this.stringifyNode(o):null}),ee(this,"stringifyNode",i=>this.options.nodeToString?.(i)??dr.nodeToString(i)),ee(this,"getFirstNode",(i=this.rootNode)=>{let o;return Yt(i,{getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(!o&&u.length>0&&!this.getNodeDisabled(s))return o=s,"stop"}}),o}),ee(this,"getLastNode",(i=this.rootNode,o={})=>{let s;return Yt(i,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(!this.isSameNode(u,i)){if(o.skip?.({value:this.getNodeValue(u),node:u,indexPath:f}))return"skip";f.length>0&&!this.getNodeDisabled(u)&&(s=u)}}}),s}),ee(this,"at",i=>lx(this.rootNode,i,{getChildren:this.getNodeChildren})),ee(this,"findNode",(i,o=this.rootNode)=>CR(o,{getChildren:this.getNodeChildren,predicate:s=>this.getNodeValue(s)===i})),ee(this,"findNodes",(i,o=this.rootNode)=>{const s=new Set(i.filter(u=>u!=null));return OR(o,{getChildren:this.getNodeChildren,predicate:u=>s.has(this.getNodeValue(u))})}),ee(this,"sort",i=>i.reduce((o,s)=>{const u=this.getIndexPath(s);return u&&o.push({value:s,indexPath:u}),o},[]).sort((o,s)=>sx(o.indexPath,s.indexPath)).map(({value:o})=>o)),ee(this,"getIndexPath",i=>Db(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===i})),ee(this,"getValue",i=>{const o=this.at(i);return o?this.getNodeValue(o):void 0}),ee(this,"getValuePath",i=>{if(!i)return[];const o=[];let s=[...i];for(;s.length>0;){const u=this.at(s);u&&o.unshift(this.getNodeValue(u)),s.pop()}return o}),ee(this,"getDepth",i=>Db(this.rootNode,{getChildren:this.getNodeChildren,predicate:s=>this.getNodeValue(s)===i})?.length??0),ee(this,"isSameNode",(i,o)=>this.getNodeValue(i)===this.getNodeValue(o)),ee(this,"isRootNode",i=>this.isSameNode(i,this.rootNode)),ee(this,"contains",(i,o)=>!i||!o?!1:o.slice(0,i.length).every((s,u)=>i[u]===o[u])),ee(this,"getNextNode",(i,o={})=>{let s=!1,u;return Yt(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(f,g)=>{if(this.isRootNode(f))return;const h=this.getNodeValue(f);if(o.skip?.({value:h,node:f,indexPath:g}))return h===i&&(s=!0),"skip";if(s&&!this.getNodeDisabled(f))return u=f,"stop";h===i&&(s=!0)}}),u}),ee(this,"getPreviousNode",(i,o={})=>{let s,u=!1;return Yt(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(f,g)=>{if(this.isRootNode(f))return;const h=this.getNodeValue(f);if(o.skip?.({value:h,node:f,indexPath:g}))return"skip";if(h===i)return u=!0,"stop";this.getNodeDisabled(f)||(s=f)}}),u?s:void 0}),ee(this,"getParentNodes",i=>{const o=this.resolveIndexPath(i)?.slice();if(!o)return[];const s=[];for(;o.length>0;){o.pop();const u=this.at(o);u&&!this.isRootNode(u)&&s.unshift(u)}return s}),ee(this,"getDescendantNodes",(i,o)=>{const s=this.resolveNode(i);if(!s)return[];const u=[];return Yt(s,{getChildren:this.getNodeChildren,onEnter:(f,g)=>{g.length!==0&&(!o?.withBranch&&this.isBranchNode(f)||u.push(f))}}),u}),ee(this,"getDescendantValues",(i,o)=>this.getDescendantNodes(i,o).map(u=>this.getNodeValue(u))),ee(this,"getParentIndexPath",i=>i.slice(0,-1)),ee(this,"getParentNode",i=>{const o=this.resolveIndexPath(i);return o?this.at(this.getParentIndexPath(o)):void 0}),ee(this,"visit",i=>{const{skip:o,...s}=i;Yt(this.rootNode,{...s,getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(!this.isRootNode(u))return o?.({value:this.getNodeValue(u),node:u,indexPath:f})?"skip":s.onEnter?.(u,f)}})}),ee(this,"getPreviousSibling",i=>{const o=this.getParentNode(i);if(!o)return;const s=this.getNodeChildren(o);let u=i[i.length-1];for(;--u>=0;){const f=s[u];if(!this.getNodeDisabled(f))return f}}),ee(this,"getNextSibling",i=>{const o=this.getParentNode(i);if(!o)return;const s=this.getNodeChildren(o);let u=i[i.length-1];for(;++u<s.length;){const f=s[u];if(!this.getNodeDisabled(f))return f}}),ee(this,"getSiblingNodes",i=>{const o=this.getParentNode(i);return o?this.getNodeChildren(o):[]}),ee(this,"getValues",(i=this.rootNode)=>kR(i,{getChildren:this.getNodeChildren,transform:s=>[this.getNodeValue(s)]}).slice(1)),ee(this,"isValidDepth",(i,o)=>o==null?!0:typeof o=="function"?o(i.length):i.length===o),ee(this,"isBranchNode",i=>this.getNodeChildren(i).length>0||this.getNodeChildrenCount(i)!=null),ee(this,"getBranchValues",(i=this.rootNode,o={})=>{let s=[];return Yt(i,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(f.length===0)return;const g=this.getNodeValue(u);if(o.skip?.({value:g,node:u,indexPath:f}))return"skip";this.isBranchNode(u)&&this.isValidDepth(f,o.depth)&&s.push(this.getNodeValue(u))}}),s}),ee(this,"flatten",(i=this.rootNode)=>RR(i,{getChildren:this.getNodeChildren})),ee(this,"_create",(i,o)=>this.getNodeChildren(i).length>0||o.length>0?{...i,children:o}:{...i}),ee(this,"_insert",(i,o,s)=>this.copy(VR(i,{at:o,nodes:s,getChildren:this.getNodeChildren,create:this._create}))),ee(this,"copy",i=>new gx({...this.options,rootNode:i})),ee(this,"_replace",(i,o,s)=>this.copy(IR(i,{at:o,node:s,getChildren:this.getNodeChildren,create:this._create}))),ee(this,"_move",(i,o,s)=>this.copy(MR(i,{indexPaths:o,to:s,getChildren:this.getNodeChildren,create:this._create}))),ee(this,"_remove",(i,o)=>this.copy(DR(i,{indexPaths:o,getChildren:this.getNodeChildren,create:this._create}))),ee(this,"replace",(i,o)=>this._replace(this.rootNode,i,o)),ee(this,"remove",i=>this._remove(this.rootNode,i)),ee(this,"insertBefore",(i,o)=>this.getParentNode(i)?this._insert(this.rootNode,i,o):void 0),ee(this,"insertAfter",(i,o)=>{if(!this.getParentNode(i))return;const u=[...i.slice(0,-1),i[i.length-1]+1];return this._insert(this.rootNode,u,o)}),ee(this,"move",(i,o)=>this._move(this.rootNode,i,o)),ee(this,"filter",i=>{const o=wR(this.rootNode,{predicate:i,getChildren:this.getNodeChildren,create:this._create});return this.copy(o)}),ee(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=a.rootNode}},dr={nodeToValue(e){return typeof e=="string"?e:di(e)&&za(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:di(e)&&za(e,"label")?e.label:dr.nodeToValue(e)},isNodeDisabled(e){return di(e)&&za(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(di(e)&&za(e,"childrenCount"))return e.childrenCount}},lr=new WeakMap,Ds=new WeakMap,Ms={},hf=0,hx=e=>e&&(e.host||hx(e.parentNode)),PR=(e,a)=>a.map(i=>{if(e.contains(i))return i;const o=hx(i);return o&&e.contains(o)?o:(console.error("[zag-js > ariaHidden] target",i,"in not contained inside",e,". Doing nothing"),null)}).filter(i=>!!i),LR=new Set(["script","output","status","next-route-announcer"]),BR=e=>LR.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),HR=(e,a)=>{const{parentNode:i,markerName:o,controlAttribute:s}=a,u=PR(i,Array.isArray(e)?e:[e]);Ms[o]||(Ms[o]=new WeakMap);const f=Ms[o],g=[],h=new Set,p=new Set(u),v=y=>{!y||h.has(y)||(h.add(y),v(y.parentNode))};u.forEach(v);const S=y=>{!y||p.has(y)||Array.prototype.forEach.call(y.children,x=>{if(h.has(x))S(x);else try{if(BR(x))return;const E=x.getAttribute(s)==="true",k=(lr.get(x)||0)+1,_=(f.get(x)||0)+1;lr.set(x,k),f.set(x,_),g.push(x),k===1&&E&&Ds.set(x,!0),_===1&&x.setAttribute(o,""),E||x.setAttribute(s,"true")}catch(C){console.error("[zag-js > ariaHidden] cannot operate on ",x,C)}})};return S(i),h.clear(),hf++,()=>{g.forEach(y=>{const x=lr.get(y)-1,C=f.get(y)-1;lr.set(y,x),f.set(y,C),x||(Ds.has(y)||y.removeAttribute(s),Ds.delete(y)),C||y.removeAttribute(o)}),hf--,hf||(lr=new WeakMap,lr=new WeakMap,Ds=new WeakMap,Ms={})}},jR=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,UR=(e,a=jR(e),i="data-aria-hidden")=>{if(a)return HR(e,{parentNode:a,markerName:i,controlAttribute:"aria-hidden"})},FR=e=>{const a=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(a)};function GR(e,a={}){const{defer:i=!0}=a,o=i?FR:u=>u(),s=[];return s.push(o(()=>{const f=(typeof e=="function"?e():e).filter(Boolean);f.length!==0&&s.push(UR(f))})),()=>{s.forEach(u=>u?.())}}var mx=he("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");mx.build();var px=e=>new Vc(e);px.empty=()=>new Vc({items:[]});var WR=e=>e.ids?.control??`combobox:${e.id}:control`,$R=e=>e.ids?.input??`combobox:${e.id}:input`,qR=e=>e.ids?.content??`combobox:${e.id}:content`,YR=e=>e.ids?.positioner??`combobox:${e.id}:popper`,XR=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,KR=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Aa=e=>e.getById(qR(e)),fr=e=>e.getById($R(e)),Pb=e=>e.getById(YR(e)),Lb=e=>e.getById(WR(e)),Uo=e=>e.getById(XR(e)),Bb=e=>e.getById(KR(e)),Hb=(e,a)=>{if(a==null)return;const i=`[role=option][data-value="${CSS.escape(a)}"]`;return sT(Aa(e),i)},jb=e=>{const a=fr(e);e.isActiveElement(a)||a?.focus({preventScroll:!0})},QR=e=>{const a=Uo(e);e.isActiveElement(a)||a?.focus({preventScroll:!0})},{guards:ZR,createMachine:JR,choose:eN}=vg(),{and:dt,not:qt}=ZR;JR({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:a}){gg(a)},collection:px.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:a,getContext:i,getEvent:o}){return{currentPlacement:a(()=>({defaultValue:void 0})),value:a(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:bn,hash(s){return s.join(",")},onChange(s){const u=i(),f=u.get("selectedItems"),g=e("collection"),h=s.map(p=>f.find(S=>g.getItemValue(S)===p)||g.find(p));u.set("selectedItems",h),e("onValueChange")?.({value:s,items:h})}})),highlightedValue:a(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(s){const u=e("collection").find(s);e("onHighlightChange")?.({highlightedValue:s,highlightedItem:u})}})),inputValue:a(()=>{let s=e("inputValue")||e("defaultInputValue")||"";const u=e("defaultValue")||e("value")||[];if(!s.trim()&&!e("multiple")){const f=e("collection").stringifyMany(u);s=ea(e("selectionBehavior"),{preserve:s||f,replace:f,clear:""})}return{defaultValue:s,value:e("inputValue"),onChange(f){const g=o(),h=(g.previousEvent||g).src;e("onInputValueChange")?.({inputValue:f,reason:h})}}}),highlightedItem:a(()=>{const s=e("highlightedValue");return{defaultValue:e("collection").find(s)}}),selectedItems:a(()=>{const s=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(s)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:a})=>a("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:a})=>e.get("inputValue")!==a("valueAsString")},watch({context:e,prop:a,track:i,action:o,send:s}){i([()=>e.hash("value")],()=>{o(["syncSelectedItems"])}),i([()=>e.get("inputValue")],()=>{o(["syncInputValue"])}),i([()=>e.get("highlightedValue")],()=>{o(["syncHighlightedItem","autofillInputValue"])}),i([()=>a("open")],()=>{o(["toggleVisibility"])}),i([()=>a("collection").toString()],()=>{s({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:eN([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:dt("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:dt("isCustomValue",qt("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:dt("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:dt("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:dt("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:dt("isOpenControlled","isCustomValue",qt("hasHighlightedItem"),qt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:dt("isCustomValue",qt("hasHighlightedItem"),qt("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:dt("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:dt("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:dt("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:dt("isOpenControlled","isCustomValue",qt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:dt("isCustomValue",qt("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:dt("isOpenControlled","isCustomValue",qt("hasHighlightedItem"),qt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:dt("isCustomValue",qt("hasHighlightedItem"),qt("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:dt("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:dt("isOpenControlled","isCustomValue",qt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:dt("isCustomValue",qt("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:dt("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:a})=>e("autoComplete")&&!a("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:a})=>e("collection").firstValue===a.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:a})=>e("collection").lastValue===a.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:a})=>{const i=e("openOnChange");return DO(i)?i:!!i?.({inputValue:a.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:a})=>!e("collection").has(a.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:a,scope:i}){return a("disableLayer")?void 0:ul(()=>Aa(i),{defer:!0,exclude:()=>[fr(i),Uo(i),Bb(i)],onFocusOutside:a("onFocusOutside"),onPointerDownOutside:a("onPointerDownOutside"),onInteractOutside:a("onInteractOutside"),onEscapeKeyDown(s){s.preventDefault(),s.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return GR([fr(e),Aa(e),Uo(e),Bb(e)])},trackPlacement({context:e,prop:a,scope:i}){const o=()=>Lb(i)||Uo(i),s=()=>Pb(i);return e.set("currentPlacement",a("positioning").placement),Sn(o,s,{...a("positioning"),defer:!0,onComplete(u){e.set("currentPlacement",u.placement)}})},scrollToHighlightedItem({context:e,prop:a,scope:i,event:o}){const s=fr(i);let u=[];const f=p=>{const v=o.current().type.includes("POINTER"),S=e.get("highlightedValue");if(v||!S)return;const y=Hb(i,S),x=Aa(i),C=a("scrollToIndexFn");if(C){const k=a("collection").indexOf(S);C({index:k,immediate:p});return}const E=Se(()=>{sc(y,{rootEl:x,block:"nearest"})});u.push(E)},g=Se(()=>f(!0));u.push(g);const h=wc(s,{attributes:["aria-activedescendant"],callback:()=>f(!1)});return u.push(h),()=>{u.forEach(p=>p())}}},actions:{reposition({context:e,prop:a,scope:i,event:o}){Sn(()=>Lb(i),()=>Pb(i),{...a("positioning"),...o.options,defer:!0,listeners:!1,onComplete(f){e.set("currentPlacement",f.placement)}})},setHighlightedValue({context:e,event:a}){a.value!=null&&e.set("highlightedValue",a.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:a,prop:i}=e,o=i("collection"),s=a.get("highlightedValue");if(!s||!o.has(s))return;const u=i("multiple")?Or(a.get("value"),s):[s];i("onSelect")?.({value:u,itemValue:s}),a.set("value",u);const f=ea(i("selectionBehavior"),{preserve:a.get("inputValue"),replace:o.stringifyMany(u),clear:""});a.set("inputValue",f)},scrollToHighlightedItem({context:e,prop:a,scope:i}){kc(()=>{const o=e.get("highlightedValue");if(o==null)return;const s=Hb(i,o),u=Aa(i),f=a("scrollToIndexFn");if(f){const g=a("collection").indexOf(o);f({index:g,immediate:!0});return}sc(s,{rootEl:u,block:"nearest"})})},selectItem(e){const{context:a,event:i,flush:o,prop:s}=e;i.value!=null&&o(()=>{const u=s("multiple")?Or(a.get("value"),i.value):[i.value];s("onSelect")?.({value:u,itemValue:i.value}),a.set("value",u);const f=ea(s("selectionBehavior"),{preserve:a.get("inputValue"),replace:s("collection").stringifyMany(u),clear:""});a.set("inputValue",f)})},clearItem(e){const{context:a,event:i,flush:o,prop:s}=e;i.value!=null&&o(()=>{const u=gi(a.get("value"),i.value);a.set("value",u);const f=ea(s("selectionBehavior"),{preserve:a.get("inputValue"),replace:s("collection").stringifyMany(u),clear:""});a.set("inputValue",f)})},setInitialFocus({scope:e}){Se(()=>{jb(e)})},setFinalFocus({scope:e}){Se(()=>{Uo(e)?.dataset.focusable==null?jb(e):QR(e)})},syncInputValue({context:e,scope:a,event:i}){const o=fr(a);o&&(o.value=e.get("inputValue"),queueMicrotask(()=>{i.current().type!=="INPUT.CHANGE"&&l2(o)}))},setInputValue({context:e,event:a}){e.set("inputValue",a.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:a,computed:i}){const o=a("selectionBehavior"),s=ea(o,{replace:i("hasSelectedItems")?i("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",s)},setValue(e){const{context:a,flush:i,event:o,prop:s}=e;i(()=>{a.set("value",o.value);const u=ea(s("selectionBehavior"),{preserve:a.get("inputValue"),replace:s("collection").stringifyMany(o.value),clear:""});a.set("inputValue",u)})},clearSelectedItems(e){const{context:a,flush:i,prop:o}=e;i(()=>{a.set("value",[]);const s=ea(o("selectionBehavior"),{preserve:a.get("inputValue"),replace:o("collection").stringifyMany([]),clear:""});a.set("inputValue",s)})},scrollContentToTop({prop:e,scope:a}){const i=e("scrollToIndexFn");if(i)i({index:0,immediate:!0});else{const o=Aa(a);if(!o)return;o.scrollTop=0}},invokeOnOpen({prop:e,event:a}){const i=Ub(a);e("onOpenChange")?.({open:!0,reason:i})},invokeOnClose({prop:e,event:a}){const i=Ub(a);e("onOpenChange")?.({open:!1,reason:i})},highlightFirstItem({context:e,prop:a,scope:i}){(Aa(i)?queueMicrotask:Se)(()=>{const s=a("collection").firstValue;s&&e.set("highlightedValue",s)})},highlightFirstItemIfNeeded({computed:e,action:a}){e("autoHighlight")&&a(["highlightFirstItem"])},highlightLastItem({context:e,prop:a,scope:i}){(Aa(i)?queueMicrotask:Se)(()=>{const s=a("collection").lastValue;s&&e.set("highlightedValue",s)})},highlightNextItem({context:e,prop:a}){let i=null;const o=e.get("highlightedValue"),s=a("collection");o?(i=s.getNextValue(o),!i&&a("loopFocus")&&(i=s.firstValue)):i=s.firstValue,i&&e.set("highlightedValue",i)},highlightPrevItem({context:e,prop:a}){let i=null;const o=e.get("highlightedValue"),s=a("collection");o?(i=s.getPreviousValue(o),!i&&a("loopFocus")&&(i=s.lastValue)):i=s.lastValue,i&&e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:a}){Se(()=>{const[i]=a("collection").sort(e.get("value"));i&&e.set("highlightedValue",i)})},highlightFirstOrSelectedItem({context:e,prop:a,computed:i}){Se(()=>{let o=null;i("hasSelectedItems")?o=a("collection").sort(e.get("value"))[0]:o=a("collection").firstValue,o&&e.set("highlightedValue",o)})},highlightLastOrSelectedItem({context:e,prop:a,computed:i}){Se(()=>{const o=a("collection");let s=null;i("hasSelectedItems")?s=o.sort(e.get("value"))[0]:s=o.lastValue,s&&e.set("highlightedValue",s)})},autofillInputValue({context:e,computed:a,prop:i,event:o,scope:s}){const u=fr(s),f=i("collection");if(!a("autoComplete")||!u||!o.keypress)return;const g=f.stringify(e.get("highlightedValue"));Se(()=>{u.value=g||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:a,prop:i}=e,o=i("collection"),s=a.get("value"),u=s.map(g=>a.get("selectedItems").find(p=>o.getItemValue(p)===g)||o.find(g));a.set("selectedItems",u);const f=ea(i("selectionBehavior"),{preserve:a.get("inputValue"),replace:o.stringifyMany(s),clear:""});a.set("inputValue",f)})},syncHighlightedItem({context:e,prop:a}){const i=a("collection").find(e.get("highlightedValue"));e.set("highlightedItem",i)},toggleVisibility({event:e,send:a,prop:i}){a({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Ub(e){return(e.previousEvent||e).src}me()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);me()(["htmlFor"]);me()(["id"]);me()(["item","persistFocus"]);var zg=he("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");zg.build();me()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var vx=he("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");vx.build();me()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const bx=he("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");bx.build();const yx=he("fieldset").parts("root","errorText","helperText","legend");yx.build();var xx=he("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");xx.build();me()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);me()(["file"]);const tN=Symbol(),Fb=Object.getPrototypeOf,Mf=new WeakMap,nN=e=>e&&(Mf.has(e)?Mf.get(e):Fb(e)===Object.prototype||Fb(e)===Array.prototype),aN=e=>nN(e)&&e[tN]||null,Gb=(e,a=!0)=>{Mf.set(e,a)};function iN(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Sx(e,a){const i=iN();return i?(i[e]||(i[e]=a()),i[e]):a()}var ec=Sx("__zag__refSet",()=>new WeakSet),rN=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,oN=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,lN=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",sN=e=>rN(e)||oN(e)||lN(e),Pf=e=>e!==null&&typeof e=="object",Wb=e=>Pf(e)&&!ec.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!sN(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),ci=Sx("__zag__proxyStateMap",()=>new WeakMap),cN=(e=Object.is,a=(g,h)=>new Proxy(g,h),i=new WeakMap,o=(g,h)=>{const p=i.get(g);if(p?.[0]===h)return p[1];const v=Array.isArray(g)?[]:Object.create(Object.getPrototypeOf(g));return Gb(v,!0),i.set(g,[h,v]),Reflect.ownKeys(g).forEach(S=>{const y=Reflect.get(g,S);ec.has(y)?(Gb(y,!1),v[S]=y):ci.has(y)?v[S]=fN(y):v[S]=y}),Object.freeze(v)},s=new WeakMap,u=[1,1],f=g=>{if(!Pf(g))throw new Error("object required");const h=s.get(g);if(h)return h;let p=u[0];const v=new Set,S=(U,j=++u[0])=>{p!==j&&(p=j,v.forEach(W=>W(U,j)))};let y=u[1];const x=(U=++u[1])=>(y!==U&&!v.size&&(y=U,E.forEach(([j])=>{const W=j[1](U);W>p&&(p=W)})),p),C=U=>(j,W)=>{const Q=[...j];Q[1]=[U,...Q[1]],S(Q,W)},E=new Map,k=(U,j)=>{if(v.size){const W=j[3](C(U));E.set(U,[j,W])}else E.set(U,[j])},_=U=>{const j=E.get(U);j&&(E.delete(U),j[1]?.())},R=U=>(v.add(U),v.size===1&&E.forEach(([W,Q],G)=>{const P=W[3](C(G));E.set(G,[W,P])}),()=>{v.delete(U),v.size===0&&E.forEach(([W,Q],G)=>{Q&&(Q(),E.set(G,[W]))})}),A=Array.isArray(g)?[]:Object.create(Object.getPrototypeOf(g)),N=a(A,{deleteProperty(U,j){const W=Reflect.get(U,j);_(j);const Q=Reflect.deleteProperty(U,j);return Q&&S(["delete",[j],W]),Q},set(U,j,W,Q){const G=Reflect.has(U,j),P=Reflect.get(U,j,Q);if(G&&(e(P,W)||s.has(W)&&e(P,s.get(W))))return!0;_(j),Pf(W)&&(W=aN(W)||W);let ne=W;if(!Object.getOwnPropertyDescriptor(U,j)?.set){!ci.has(W)&&Wb(W)&&(ne=Ex(W));const re=!ec.has(ne)&&ci.get(ne);re&&k(j,re)}return Reflect.set(U,j,ne,Q),S(["set",[j],W,P]),!0}});s.set(g,N);const Y=[A,x,o,R];return ci.set(N,Y),Reflect.ownKeys(g).forEach(U=>{const j=Object.getOwnPropertyDescriptor(g,U);j.get||j.set?Object.defineProperty(A,U,j):N[U]=g[U]}),N})=>[f,ci,ec,e,a,Wb,i,o,s,u],[uN]=cN();function Ex(e={}){return uN(e)}function dN(e,a,i){const o=ci.get(e);let s;const u=[],f=o[3];let g=!1;const p=f(v=>{u.push(v),s||(s=Promise.resolve().then(()=>{s=void 0,g&&a(u.splice(0))}))});return g=!0,()=>{g=!1,p()}}function fN(e){const a=ci.get(e),[i,o,s]=a;return s(i,o())}var Cx=he("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Cx.build();var gN=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,hN=e=>e.ids?.content??`hover-card:${e.id}:content`,mN=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,mf=e=>e.getById(gN(e)),pN=e=>e.getById(hN(e)),$b=e=>e.getById(mN(e)),{not:Ps,and:qb}=Ma();qb("isOpenControlled",Ps("isPointer")),Ps("isPointer"),qb("isOpenControlled",Ps("isPointer")),Ps("isPointer");me()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Ox=he("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Ox.build();var Tx=e=>e.ids?.trigger??`menu:${e.id}:trigger`,vN=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,kx=e=>e.ids?.content??`menu:${e.id}:content`,bN=e=>e.ids?.positioner??`menu:${e.id}:popper`,Lf=(e,a)=>`${e.id}/${a}`,ai=e=>e?.dataset.value??null,_a=e=>e.getById(kx(e)),Yb=e=>e.getById(bN(e)),Ls=e=>e.getById(Tx(e)),yN=(e,a)=>a?e.getById(Lf(e,a)):null,pf=e=>e.getById(vN(e)),dl=e=>{const i=`[role^="menuitem"][data-ownedby=${CSS.escape(kx(e))}]:not([data-disabled])`;return Jo(_a(e),i)},xN=e=>Sr(dl(e)),SN=e=>Sc(dl(e)),Vg=(e,a)=>a?e.id===a||e.dataset.value===a:!1,EN=(e,a)=>{const i=dl(e),o=i.findIndex(s=>Vg(s,a.value));return _O(i,o,{loop:a.loop??a.loopFocus})},CN=(e,a)=>{const i=dl(e),o=i.findIndex(s=>Vg(s,a.value));return VO(i,o,{loop:a.loop??a.loopFocus})},ON=(e,a)=>{const i=dl(e),o=i.find(s=>Vg(s,a.value));return el(i,{state:a.typeaheadState,key:a.key,activeId:o?.id??null})},TN=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),kN="menu:select";function wN(e,a){if(!e)return;const i=gt(e),o=new i.CustomEvent(kN,{detail:{value:a}});e.dispatchEvent(o)}var{not:cn,and:sr,or:RN}=Ma();cn("isSubmenu"),RN("isOpenAutoFocusEvent","isArrowDownEvent"),sr(cn("isTriggerItem"),"isOpenControlled"),cn("isTriggerItem"),sr("isSubmenu","isOpenControlled"),cn("isPointerSuspended"),sr(cn("isPointerSuspended"),cn("isTriggerItem")),sr(cn("isTriggerItemHighlighted"),cn("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),sr(cn("isTriggerItemHighlighted"),cn("isHighlightedItemEditable"),"closeOnSelect"),sr(cn("isTriggerItemHighlighted"),cn("isHighlightedItemEditable"));function Xb(e){let a=e.parent;for(;a&&a.computed("isSubmenu");)a=a.refs.get("parent");a?.send({type:"CLOSE"})}function NN(e,a){return e?lR(e,a):!1}function AN(e,a,i){const o=Object.keys(e).length>0;if(!a)return null;if(!o)return Lf(i,a);for(const s in e){const u=e[s],f=Tx(u.scope);if(f===a)return f}return Lf(i,a)}me()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);me()(["closeOnSelect","disabled","value","valueText"]);me()(["htmlFor"]);me()(["id"]);me()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var wx=he("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");wx.build();var Rx=e=>new fx(e);Rx.empty=()=>new fx({rootNode:{children:[]}});var _N=(e,a)=>e.ids?.node?.(a)??`tree:${e.id}:node:${a}`,ii=(e,a)=>{a!=null&&e.getById(_N(e,a))?.focus()};function zN(e,a,i){const o=e.getDescendantValues(a),s=o.every(u=>i.includes(u));return hr(s?gi(i,...o):ui(i,...o))}function Bs(e,a){const{context:i,prop:o,refs:s}=e;if(!o("loadChildren")){i.set("expandedValue",E=>hr(ui(E,...a)));return}const u=i.get("loadingStatus"),[f,g]=tb(a,E=>u[E]==="loaded");if(f.length>0&&i.set("expandedValue",E=>hr(ui(E,...f))),g.length===0)return;const h=o("collection"),[p,v]=tb(g,E=>{const k=h.findNode(E);return h.getNodeChildren(k).length>0});if(p.length>0&&i.set("expandedValue",E=>hr(ui(E,...p))),v.length===0)return;i.set("loadingStatus",E=>({...E,...v.reduce((k,_)=>({...k,[_]:"loading"}),{})}));const S=v.map(E=>{const k=h.getIndexPath(E),_=h.getValuePath(k),R=h.findNode(E);return{id:E,indexPath:k,valuePath:_,node:R}}),y=s.get("pendingAborts"),x=o("loadChildren");d0(x,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const C=S.map(({id:E,indexPath:k,valuePath:_,node:R})=>{const A=y.get(E);A&&(A.abort(),y.delete(E));const M=new AbortController;return y.set(E,M),x({valuePath:_,indexPath:k,node:R,signal:M.signal})});Promise.allSettled(C).then(E=>{const k=[],_=[],R=i.get("loadingStatus");let A=o("collection");E.forEach((M,N)=>{const{id:Y,indexPath:U,node:j,valuePath:W}=S[N];M.status==="fulfilled"?(R[Y]="loaded",k.push(Y),A=A.replace(U,{...j,children:M.value})):(y.delete(Y),Reflect.deleteProperty(R,Y),_.push({node:j,error:M.reason,indexPath:U,valuePath:W}))}),i.set("loadingStatus",R),k.length&&(i.set("expandedValue",M=>hr(ui(M,...k))),o("onLoadChildrenComplete")?.({collection:A})),_.length&&o("onLoadChildrenError")?.({nodes:_})})}function Na(e){const{prop:a,context:i}=e;return function({indexPath:s}){return a("collection").getValuePath(s).slice(0,-1).some(f=>!i.get("expandedValue").includes(f))}}var{and:wn}=Ma();wn("isMultipleSelection","moveFocus"),wn("isShiftKey","isMultipleSelection"),wn("isShiftKey","isMultipleSelection"),wn("isBranchFocused","isBranchExpanded"),wn("isShiftKey","isMultipleSelection"),wn("isShiftKey","isMultipleSelection"),wn("isCtrlKey","isMultipleSelection"),wn("isShiftKey","isMultipleSelection"),wn("isCtrlKey","isMultipleSelection"),wn("isShiftKey","isMultipleSelection");me()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]);me()(["node","indexPath"]);let vf=new Map,Bf=!1;try{Bf=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let mc=!1;try{mc=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Nx={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class VN{format(a){let i="";if(!Bf&&this.options.signDisplay!=null?i=DN(this.numberFormatter,this.options.signDisplay,a):i=this.numberFormatter.format(a),this.options.style==="unit"&&!mc){var o;let{unit:s,unitDisplay:u="short",locale:f}=this.resolvedOptions();if(!s)return i;let g=(o=Nx[s])===null||o===void 0?void 0:o[u];i+=g[f]||g.default}return i}formatToParts(a){return this.numberFormatter.formatToParts(a)}formatRange(a,i){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(a,i);if(i<a)throw new RangeError("End date must be >= start date");return`${this.format(a)} – ${this.format(i)}`}formatRangeToParts(a,i){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(a,i);if(i<a)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(a),s=this.numberFormatter.formatToParts(i);return[...o.map(u=>({...u,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(u=>({...u,source:"endRange"}))]}resolvedOptions(){let a=this.numberFormatter.resolvedOptions();return!Bf&&this.options.signDisplay!=null&&(a={...a,signDisplay:this.options.signDisplay}),!mc&&this.options.style==="unit"&&(a={...a,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),a}constructor(a,i={}){this.numberFormatter=IN(a,i),this.options=i}}function IN(e,a={}){let{numberingSystem:i}=a;if(i&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${i}`),a.style==="unit"&&!mc){var o;let{unit:f,unitDisplay:g="short"}=a;if(!f)throw new Error('unit option must be provided with style: "unit"');if(!(!((o=Nx[f])===null||o===void 0)&&o[g]))throw new Error(`Unsupported unit ${f} with unitDisplay = ${g}`);a={...a,style:"decimal"}}let s=e+(a?Object.entries(a).sort((f,g)=>f[0]<g[0]?-1:1).join():"");if(vf.has(s))return vf.get(s);let u=new Intl.NumberFormat(e,a);return vf.set(s,u),u}function DN(e,a,i){if(a==="auto")return e.format(i);if(a==="never")return e.format(Math.abs(i));{let o=!1;if(a==="always"?o=i>0||Object.is(i,0):a==="exceptZero"&&(Object.is(i,-0)||Object.is(i,0)?i=Math.abs(i):o=i>0),o){let s=e.format(-i),u=e.format(i),f=s.replace(u,"").replace(/\u200e|\u061C/,"");return[...f].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(u,"!!!").replace(f,"+").replace("!!!",u)}else return e.format(i)}}const MN=new RegExp("^.*\\(.*\\).*$"),PN=["latn","arab","hanidec","deva","beng"];class Ax{parse(a){return bf(this.locale,this.options,a).parse(a)}isValidPartialNumber(a,i,o){return bf(this.locale,this.options,a).isValidPartialNumber(a,i,o)}getNumberingSystem(a){return bf(this.locale,this.options,a).options.numberingSystem}constructor(a,i={}){this.locale=a,this.options=i}}const Kb=new Map;function bf(e,a,i){let o=Qb(e,a);if(!e.includes("-nu-")&&!o.isValidPartialNumber(i)){for(let s of PN)if(s!==o.options.numberingSystem){let u=Qb(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,a);if(u.isValidPartialNumber(i))return u}}return o}function Qb(e,a){let i=e+(a?Object.entries(a).sort((s,u)=>s[0]<u[0]?-1:1).join():""),o=Kb.get(i);return o||(o=new LN(e,a),Kb.set(i,o)),o}class LN{parse(a){let i=this.sanitize(a);if(this.symbols.group&&(i=Mo(i,this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let f=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let g=i.indexOf(".");g===-1&&(g=i.length),i=i.replace(".",""),g-2===0?i=`0.${i}`:g-2===-1?i=`0.0${i}`:g-2===-2?i="0.00":i=`${i.slice(0,g-2)}.${i.slice(g-2)}`,f>-1&&(i=`-${i}`)}let o=i?+i:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){var s,u;let f={...this.options,style:"decimal",minimumFractionDigits:Math.min(((s=this.options.minimumFractionDigits)!==null&&s!==void 0?s:0)+2,20),maximumFractionDigits:Math.min(((u=this.options.maximumFractionDigits)!==null&&u!==void 0?u:0)+2,20)};return new Ax(this.locale,f).parse(new VN(this.locale,f).format(o))}return this.options.currencySign==="accounting"&&MN.test(a)&&(o=-1*o),o}sanitize(a){return a=a.replace(this.symbols.literals,""),this.symbols.minusSign&&(a=a.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(a=a.replace(",",this.symbols.decimal),a=a.replace("،",this.symbols.decimal)),this.symbols.group&&(a=Mo(a,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(a=Mo(a," ",this.symbols.group),a=Mo(a,/\u00A0/g,this.symbols.group)),a}isValidPartialNumber(a,i=-1/0,o=1/0){return a=this.sanitize(a),this.symbols.minusSign&&a.startsWith(this.symbols.minusSign)&&i<0?a=a.slice(this.symbols.minusSign.length):this.symbols.plusSign&&a.startsWith(this.symbols.plusSign)&&o>0&&(a=a.slice(this.symbols.plusSign.length)),this.symbols.group&&a.startsWith(this.symbols.group)||this.symbols.decimal&&a.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(a=Mo(a,this.symbols.group,"")),a=a.replace(this.symbols.numeral,""),this.symbols.decimal&&(a=a.replace(this.symbols.decimal,"")),a.length===0)}constructor(a,i={}){this.locale=a,i.roundingIncrement!==1&&i.roundingIncrement!=null&&(i.maximumFractionDigits==null&&i.minimumFractionDigits==null?(i.maximumFractionDigits=0,i.minimumFractionDigits=0):i.maximumFractionDigits==null?i.maximumFractionDigits=i.minimumFractionDigits:i.minimumFractionDigits==null&&(i.minimumFractionDigits=i.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(a,i),this.options=this.formatter.resolvedOptions(),this.symbols=HN(a,this.formatter,this.options,i);var o,s;this.options.style==="percent"&&(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)>18||((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Zb=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),BN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function HN(e,a,i,o){var s,u,f,g;let h=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=h.formatToParts(-10000.111),v=h.formatToParts(10000.111),S=BN.map(Q=>h.formatToParts(Q));var y;let x=(y=(s=p.find(Q=>Q.type==="minusSign"))===null||s===void 0?void 0:s.value)!==null&&y!==void 0?y:"-",C=(u=v.find(Q=>Q.type==="plusSign"))===null||u===void 0?void 0:u.value;!C&&(o?.signDisplay==="exceptZero"||o?.signDisplay==="always")&&(C="+");let k=(f=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(Q=>Q.type==="decimal"))===null||f===void 0?void 0:f.value,_=(g=p.find(Q=>Q.type==="group"))===null||g===void 0?void 0:g.value,R=p.filter(Q=>!Zb.has(Q.type)).map(Q=>Jb(Q.value)),A=S.flatMap(Q=>Q.filter(G=>!Zb.has(G.type)).map(G=>Jb(G.value))),M=[...new Set([...R,...A])].sort((Q,G)=>G.length-Q.length),N=M.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${M.join("|")}|[\\p{White_Space}]`,"gu"),Y=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),U=new Map(Y.map((Q,G)=>[Q,G])),j=new RegExp(`[${Y.join("")}]`,"g");return{minusSign:x,plusSign:C,decimal:k,group:_,literals:N,numeral:j,index:Q=>String(U.get(Q))}}function Mo(e,a,i){return e.replaceAll?e.replaceAll(a,i):e.split(a).join(i)}function Jb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var _x=he("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");_x.build();var jN=e=>e.ids?.input??`number-input:${e.id}:input`,UN=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,FN=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,zx=e=>`number-input:${e.id}:cursor`,Hs=e=>e.getById(jN(e)),GN=e=>e.getById(UN(e)),WN=e=>e.getById(FN(e)),Vx=e=>e.getDoc().getElementById(zx(e)),$N=(e,a)=>{let i=null;return a==="increment"&&(i=GN(e)),a==="decrement"&&(i=WN(e)),i},qN=(e,a)=>{if(!cg())return KN(e,a),()=>{Vx(e)?.remove()}},YN=e=>{const a=e.getDoc(),i=a.documentElement,o=a.body;return o.style.pointerEvents="none",i.style.userSelect="none",i.style.cursor="ew-resize",()=>{o.style.pointerEvents="",i.style.userSelect="",i.style.cursor="",i.style.length||i.removeAttribute("style"),o.style.length||o.removeAttribute("style")}},XN=(e,a)=>{const{point:i,isRtl:o,event:s}=a,u=e.getWin(),f=sf(s.movementX,u.devicePixelRatio),g=sf(s.movementY,u.devicePixelRatio);let h=f>0?"increment":f<0?"decrement":null;o&&h==="increment"&&(h="decrement"),o&&h==="decrement"&&(h="increment");const p={x:i.x+f,y:i.y+g},v=u.innerWidth,S=sf(7.5,u.devicePixelRatio);return p.x=KO(p.x+S,v)-S,{hint:h,point:p}},KN=(e,a)=>{const i=e.getDoc(),o=i.createElement("div");o.className="scrubber--cursor",o.id=zx(e),Object.assign(o.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:u2,transform:a?`translate3d(${a.x}px, ${a.y}px, 0px)`:void 0,willChange:"transform"}),o.innerHTML=`
      <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
        <g transform="translate(2 3)">
          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
        </g>
      </svg>`,i.body.appendChild(o)};function QN(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:a,selectionEnd:i,value:o}=e,s=o.substring(0,a),u=o.substring(i);return{start:a,end:i,value:o,beforeTxt:s,afterTxt:u}}catch{}}function ZN(e,a){if(!(!e||e.ownerDocument.activeElement!==e)){if(!a){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:i}=e,{beforeTxt:o="",afterTxt:s="",start:u}=a;let f=i.length;if(i.endsWith(s))f=i.length-s.length;else if(i.startsWith(o))f=o.length;else if(u!=null){const g=o[u-1],h=i.indexOf(g,u-1);h!==-1&&(f=h+1)}e.setSelectionRange(f,f)}catch{}}}var JN=(e,a={})=>new Intl.NumberFormat(e,a),eA=(e,a={})=>new Ax(e,a),yf=(e,a)=>{const{prop:i,computed:o}=a;return i("formatOptions")?o("parser").parse(String(e)):parseFloat(e)},ri=(e,a)=>{const{prop:i,computed:o}=a;return Number.isNaN(e)?"":i("formatOptions")?o("formatter").format(e):e.toString()},tA=(e,a)=>{let i=e!==void 0&&!Number.isNaN(e)?e:1;return a?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(i=.01),i},{choose:nA,guards:aA,createMachine:iA}=vg(),{not:ey,and:ty}=aA;iA({props({props:e}){const a=tA(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:a,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:a,getComputed:i}){return{value:a(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(o){const s=i(),u=yf(o,{computed:s,prop:e});e("onValueChange")?.({value:o,valueAsNumber:u})}})),hint:a(()=>({defaultValue:null})),scrubberCursorPoint:a(()=>({defaultValue:null,hash(o){return o?`x:${o.x}, y:${o.y}`:""}})),fieldsetDisabled:a(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:a,prop:i})=>yf(e.get("value"),{computed:a,prop:i}),formattedValue:({computed:e,prop:a})=>ri(e("valueAsNumber"),{computed:e,prop:a}),isAtMin:({computed:e,prop:a})=>ZO(e("valueAsNumber"),a("min")),isAtMax:({computed:e,prop:a})=>QO(e("valueAsNumber"),a("max")),isOutOfRange:({computed:e,prop:a})=>!JO(e("valueAsNumber"),a("min"),a("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:a})=>!!e("disabled")||a.get("fieldsetDisabled"),canIncrement:({prop:e,computed:a})=>e("allowOverflow")||!a("isAtMax"),canDecrement:({prop:e,computed:a})=>e("allowOverflow")||!a("isAtMin"),valueText:({prop:e,context:a})=>e("translations").valueText?.(a.get("value")),formatter:db(({prop:e})=>[e("locale"),e("formatOptions")],(e,a)=>JN(e,a)),parser:db(({prop:e})=>[e("locale"),e("formatOptions")],(e,a)=>eA(e,a))},watch({track:e,action:a,context:i,computed:o,prop:s}){e([()=>i.get("value"),()=>s("locale")],()=>{a(["syncInputElement"])}),e([()=>o("isOutOfRange")],()=>{a(["invokeOnInvalid"])}),e([()=>i.hash("scrubberCursorPoint")],()=>{a(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:ty("clampValueOnBlur",ey("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:ey("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:nA([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:ty("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:a})=>(a.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:a})=>(a.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const a=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(a)},spinValue({send:e}){const a=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(a)},trackFormControl({context:e,scope:a}){const i=Hs(a);return ug(i,{onFieldsetDisabledChange(o){e.set("fieldsetDisabled",o)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:a}){const i=e.get("scrubberCursorPoint");return qN(a,i)},preventTextSelection({scope:e}){return YN(e)},trackButtonDisabled({context:e,scope:a,send:i}){const o=e.get("hint"),s=$N(a,o);return wc(s,{attributes:["disabled"],callback(){i({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:a,prop:i}){const o=Hs(e);if(!o||!e.isActiveElement(o)||!i("allowMouseWheel"))return;function s(u){u.preventDefault();const f=Math.sign(u.deltaY)*-1;f===1?a({type:"VALUE.INCREMENT"}):f===-1&&a({type:"VALUE.DECREMENT"})}return xt(o,"wheel",s,{passive:!1})},activatePointerLock({scope:e}){if(!cg())return iT(e.getDoc())},trackMousemove({scope:e,send:a,context:i,computed:o}){const s=e.getDoc();function u(g){const h=i.get("scrubberCursorPoint"),p=o("isRtl"),v=XN(e,{point:h,isRtl:p,event:g});v.hint&&a({type:"SCRUBBER.POINTER_MOVE",hint:v.hint,point:v.point})}function f(){a({type:"SCRUBBER.POINTER_UP"})}return rc(xt(s,"mousemove",u,!1),xt(s,"mouseup",f,!1))}},actions:{focusInput({scope:e,prop:a}){if(!a("focusInputOnChange"))return;const i=Hs(e);e.isActiveElement(i)||Se(()=>i?.focus({preventScroll:!0}))},increment({context:e,event:a,prop:i,computed:o}){let s=a2(o("valueAsNumber"),a.step??i("step"));i("allowOverflow")||(s=Dt(s,i("min"),i("max"))),e.set("value",ri(s,{computed:o,prop:i}))},decrement({context:e,event:a,prop:i,computed:o}){let s=i2(o("valueAsNumber"),a.step??i("step"));i("allowOverflow")||(s=Dt(s,i("min"),i("max"))),e.set("value",ri(s,{computed:o,prop:i}))},setClampedValue({context:e,prop:a,computed:i}){const o=Dt(i("valueAsNumber"),a("min"),a("max"));e.set("value",ri(o,{computed:i,prop:a}))},setRawValue({context:e,event:a,prop:i,computed:o}){let s=yf(a.value,{computed:o,prop:i});i("allowOverflow")||(s=Dt(s,i("min"),i("max"))),e.set("value",ri(s,{computed:o,prop:i}))},setValue({context:e,event:a}){const i=a.target?.value??a.value;e.set("value",i)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:a,computed:i}){const o=ri(a("max"),{computed:i,prop:a});e.set("value",o)},decrementToMin({context:e,prop:a,computed:i}){const o=ri(a("min"),{computed:i,prop:a});e.set("value",o)},setHint({context:e,event:a}){e.set("hint",a.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:a}){a("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:a}){a("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:a,event:i}){if(i.type==="INPUT.CHANGE")return;const o=e("valueAsNumber")>a("max")?"rangeOverflow":"rangeUnderflow";a("onValueInvalid")?.({reason:o,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:a,computed:i,scope:o}){const s=a.type.endsWith("CHANGE")?e.get("value"):i("formattedValue"),u=Hs(o),f=QN(u);Se(()=>{Tc(u,s),ZN(u,f)})},setFormattedValue({context:e,computed:a}){e.set("value",a("formattedValue"))},setCursorPoint({context:e,event:a}){e.set("scrubberCursorPoint",a.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:a}){const i=Vx(a),o=e.get("scrubberCursorPoint");!i||!o||(i.style.transform=`translate3d(${o.x}px, ${o.y}px, 0px)`)}}}});me()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Ix=he("pinInput").parts("root","label","input","control");Ix.build();me()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Dx=he("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Dx.build();me()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);var Ig=he("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Ig.build();me()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Mx=he("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Mx.build();me()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Dg=he("radio-group").parts("root","label","item","itemText","itemControl","indicator");Dg.build();me()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);me()(["value","disabled","invalid"]);var Px=he("rating-group").parts("root","label","item","control");Px.build();me()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);me()(["index"]);const Lx=Dg.rename("segment-group");Lx.build();var Bx=he("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Bx.build();var Hx=e=>new Vc(e);Hx.empty=()=>new Vc({items:[]});var rA=e=>e.ids?.content??`select:${e.id}:content`,oA=e=>e.ids?.trigger??`select:${e.id}:trigger`,lA=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,sA=(e,a)=>e.ids?.item?.(a)??`select:${e.id}:option:${a}`,cA=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,uA=e=>e.ids?.positioner??`select:${e.id}:positioner`,xf=e=>e.getById(cA(e)),Po=e=>e.getById(rA(e)),js=e=>e.getById(oA(e)),dA=e=>e.getById(lA(e)),ny=e=>e.getById(uA(e)),fA=(e,a)=>e.getById(sA(e,a)),{and:Lo,not:oi,or:gA}=Ma();gA("isTriggerArrowDownEvent","isTriggerEnterEvent"),Lo(oi("multiple"),"hasSelectedItems"),oi("multiple"),Lo(oi("multiple"),"hasSelectedItems"),oi("multiple"),oi("multiple"),oi("multiple"),oi("multiple"),Lo("closeOnSelect","isOpenControlled"),Lo("hasHighlightedItem","loop","isLastItemHighlighted"),Lo("hasHighlightedItem","loop","isFirstItemHighlighted");function ay(e){const a=e.restoreFocus??e.previousEvent?.restoreFocus;return a==null||!!a}me()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);me()(["item","persistFocus"]);me()(["id"]);me()(["htmlFor"]);var jx=he("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");jx.build();me()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);me()(["index","name"]);var Ux=he("switch").parts("root","label","control","thumb");Ux.build();me()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);function hA(e,a){const[i,o]=K.useState(e);return K.useEffect(()=>{const s=setTimeout(()=>{o(e)},a);return()=>{clearTimeout(s)}},[e,a]),i}const[Fx,Dc]=ol({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Gx=K.forwardRef((e,a)=>{const[i,o]=sl()(e,["value"]),s=Dc(),u=Kw(),f=MT({...u,present:hA(s.value===e.value,0),immediate:!0}),g=vi(s.getContentProps(i),f.getPresenceProps(),o);return H.jsx(PT,{value:f,children:f.unmounted?null:H.jsx(wr.div,{...g,ref:w0(f.ref,a)})})});Gx.displayName="TabContent";const Wx=K.forwardRef((e,a)=>{const i=Dc(),o=vi(i.getIndicatorProps(),e);return H.jsx(wr.div,{...o,ref:a})});Wx.displayName="TabIndicator";const $x=K.forwardRef((e,a)=>{const i=Dc(),o=vi(i.getListProps(),e);return H.jsx(wr.div,{...o,ref:a})});$x.displayName="TabList";const qx=K.forwardRef((e,a)=>{const[i,o]=sl()(e,["disabled","value"]),s=Dc(),u=vi(s.getTriggerProps(i),o);return H.jsx(wr.button,{...u,ref:a})});qx.displayName="TabTrigger";var mA=he("tabs").parts("root","list","trigger","content","indicator"),Bo=mA.build(),pA=e=>e.ids?.root??`tabs:${e.id}`,Wo=e=>e.ids?.list??`tabs:${e.id}:list`,Hf=(e,a)=>e.ids?.content??`tabs:${e.id}:content-${a}`,hi=(e,a)=>e.ids?.trigger??`tabs:${e.id}:trigger-${a}`,Yx=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,vA=e=>e.getById(Wo(e)),bA=(e,a)=>e.getById(Hf(e,a)),tc=(e,a)=>e.getById(hi(e,a)),iy=e=>e.getById(Yx(e)),fl=e=>{const i=`[role=tab][data-ownedby='${CSS.escape(Wo(e))}']:not([disabled])`;return Jo(vA(e),i)},yA=e=>Sr(fl(e)),xA=e=>Sc(fl(e)),SA=(e,a)=>O0(fl(e),hi(e,a.value),a.loopFocus),EA=(e,a)=>T0(fl(e),hi(e,a.value),a.loopFocus),Xx=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),CA=(e,a)=>{const i=C0(fl(e),hi(e,a));return Kx(Xx(i))},Kx=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function OA(e,a){const{state:i,send:o,context:s,prop:u,scope:f}=e,g=u("translations"),h=i.matches("focused"),p=u("orientation")==="vertical",v=u("orientation")==="horizontal",S=u("composite");function y(x){return{selected:s.get("value")===x.value,focused:s.get("focusedValue")===x.value,disabled:!!x.disabled}}return{value:s.get("value"),focusedValue:s.get("focusedValue"),setValue(x){o({type:"SET_VALUE",value:x})},clearValue(){o({type:"CLEAR_VALUE"})},setIndicatorRect(x){const C=hi(f,x);o({type:"SET_INDICATOR_RECT",id:C})},syncTabIndex(){o({type:"SYNC_TAB_INDEX"})},selectNext(x){o({type:"TAB_FOCUS",value:x,src:"selectNext"}),o({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(x){o({type:"TAB_FOCUS",value:x,src:"selectPrev"}),o({type:"ARROW_PREV",src:"selectPrev"})},focus(){const x=s.get("value");x&&tc(f,x)?.focus()},getRootProps(){return a.element({...Bo.root.attrs,id:pA(f),"data-orientation":u("orientation"),"data-focus":ni(h),dir:u("dir")})},getListProps(){return a.element({...Bo.list.attrs,id:Wo(f),role:"tablist",dir:u("dir"),"data-focus":ni(h),"aria-orientation":u("orientation"),"data-orientation":u("orientation"),"aria-label":g?.listLabel,onKeyDown(x){if(x.defaultPrevented||!I2(x)||p0(x))return;const C={ArrowDown(){v||o({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){v||o({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){p||o({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){p||o({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){o({type:"HOME"})},End(){o({type:"END"})}};let E=j2(x,{dir:u("dir"),orientation:u("orientation")});const k=C[E];if(k){x.preventDefault(),k(x);return}}})},getTriggerState:y,getTriggerProps(x){const{value:C,disabled:E}=x,k=y(x);return a.button({...Bo.trigger.attrs,role:"tab",type:"button",disabled:E,dir:u("dir"),"data-orientation":u("orientation"),"data-disabled":ni(E),"aria-disabled":E,"data-value":C,"aria-selected":k.selected,"data-selected":ni(k.selected),"data-focus":ni(k.focused),"aria-controls":k.selected?Hf(f,C):void 0,"data-ownedby":Wo(f),"data-ssr":ni(s.get("ssr")),id:hi(f,C),tabIndex:k.selected&&S?0:-1,onFocus(){o({type:"TAB_FOCUS",value:C})},onBlur(_){_.relatedTarget?.getAttribute("role")!=="tab"&&o({type:"TAB_BLUR"})},onClick(_){_.defaultPrevented||D2(_)||E||(cg()&&_.currentTarget.focus(),o({type:"TAB_CLICK",value:C}))}})},getContentProps(x){const{value:C}=x,E=s.get("value")===C;return a.element({...Bo.content.attrs,dir:u("dir"),id:Hf(f,C),tabIndex:S?0:-1,"aria-labelledby":hi(f,C),role:"tabpanel","data-ownedby":Wo(f),"data-selected":ni(E),"data-orientation":u("orientation"),hidden:!E})},getIndicatorProps(){const x=s.get("indicatorRect"),C=s.get("indicatorTransition");return a.element({id:Yx(f),...Bo.indicator.attrs,dir:u("dir"),"data-orientation":u("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":x.left,"--top":x.top,"--width":x.width,"--height":x.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:C?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[v?"left":"top"]:v?"var(--left)":"var(--top)"}})}}}var{createMachine:TA}=vg(),kA=TA({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(a){gg(a.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:a}){return{value:a(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(i){e("onValueChange")?.({value:i})}})),focusedValue:a(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(i){e("onFocusChange")?.({focusedValue:i})}})),ssr:a(()=>({defaultValue:!0})),indicatorTransition:a(()=>({defaultValue:!1})),indicatorRect:a(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}},watch({context:e,prop:a,track:i,action:o}){i([()=>e.get("value")],()=>{o(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),i([()=>a("dir"),()=>a("orientation")],()=>{o(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:a}){Se(()=>{const i=e.get("focusedValue");if(!i)return;const s=a("deselectable")&&e.get("value")===i?null:i;e.set("value",s)})},setFocusedValue({context:e,event:a,flush:i}){a.value!=null&&i(()=>{e.set("focusedValue",a.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:a,prop:i}){const o=i("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",o?null:a.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){Se(()=>{yA(e)?.focus()})},focusLastTab({scope:e}){Se(()=>{xA(e)?.focus()})},focusNextTab({context:e,prop:a,scope:i,event:o}){const s=o.value??e.get("focusedValue");if(!s)return;const u=SA(i,{value:s,loopFocus:a("loopFocus")});Se(()=>{a("composite")?u?.focus():u?.dataset.value!=null&&e.set("focusedValue",u.dataset.value)})},focusPrevTab({context:e,prop:a,scope:i,event:o}){const s=o.value??e.get("focusedValue");if(!s)return;const u=EA(i,{value:s,loopFocus:a("loopFocus")});Se(()=>{a("composite")?u?.focus():u?.dataset.value!=null&&e.set("focusedValue",u.dataset.value)})},syncTabIndex({context:e,scope:a}){Se(()=>{const i=e.get("value");if(!i)return;const o=bA(a,i);if(!o)return;b0(o).length>0?o.removeAttribute("tabindex"):o.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const a=e.get("indicatorCleanup");a&&a()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:a,scope:i}){const o=a.id??e.get("value");if(!iy(i))return;if(!o){e.set("indicatorTransition",!1);return}tc(i,o)&&(e.set("indicatorRect",CA(i,o)),kc(()=>{e.set("indicatorTransition",!1)}))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:a,scope:i}){const o=a.get("indicatorCleanup");o&&o();const s=e.get("value");if(!s){e.set("indicatorTransition",!1);return}const u=tc(i,s),f=iy(i);if(!u||!f)return;const g=cT([u],{measure(h){return Xx(h)},onEntry({rects:h}){const[p]=h;e.set("indicatorRect",Kx(p))}});a.set("indicatorCleanup",g)},navigateIfNeeded({context:e,prop:a,scope:i}){const o=e.get("value");if(!o)return;const s=tc(i,o);b2(s)&&a("navigate")?.({value:o,node:s,href:s.href})}}}});me()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);me()(["disabled","value"]);me()(["value"]);const wA=e=>{const a=K.useId(),{getRootNode:i}=o2(),{dir:o}=OT(),s={id:a,dir:o,getRootNode:i,...e},u=N0(kA,s);return OA(u,VT)},Qx=K.forwardRef((e,a)=>{const[i,o]=K0(e),[s,u]=sl()(o,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),f=wA(s),g=vi(f.getRootProps(),u);return H.jsx(Fx,{value:f,children:H.jsx(X0,{value:i,children:H.jsx(wr.div,{...g,ref:a})})})});Qx.displayName="TabsRoot";const Zx=K.forwardRef((e,a)=>{const[i,o]=K0(e),[{value:s},u]=sl()(o,["value"]),f=vi(s.getRootProps(),u);return H.jsx(Fx,{value:s,children:H.jsx(X0,{value:i,children:H.jsx(wr.div,{...f,ref:a})})})});Zx.displayName="TabsRootProvider";var Jx=he("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Jx.build();var RA=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,NA=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Sf=e=>e.getById(RA(e)),ry=e=>e.getById(NA(e)),li=Ex({id:null}),{and:AA,not:oy}=Ma();AA("noVisibleTooltip",oy("hasPointerMoveOpened")),oy("hasPointerMoveOpened");me()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function e1(e,a=[]){const i=Object.assign({},e);for(const o of a)o in i&&delete i[o];return i}const _A=(e,a)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[i,o]=e.split("/");if(!i||!o||i==="currentBg")return{invalid:!0,value:i};const s=a(`colors.${i}`),u=a.raw(`opacity.${o}`)?.value;if(!u&&isNaN(Number(o)))return{invalid:!0,value:i};const f=u?Number(u)*100+"%":`${o}%`,g=s??i;return{invalid:!1,color:g,value:`color-mix(in srgb, ${g} ${f}, transparent)`}},Ue=e=>(a,i)=>{const o=i.utils.colorMix(a);if(o.invalid)return{[e]:a};const s="--mix-"+e;return{[s]:o.value,[e]:`var(${s}, ${o.color})`}};function jf(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>jf(i));const a=Object.create(Object.getPrototypeOf(e));for(const i of Object.keys(e))a[i]=jf(e[i]);return a}function Uf(e,a){if(a==null)return e;for(const i of Object.keys(a))if(!(a[i]===void 0||i==="__proto__"))if(!It(e[i])&&It(a[i]))Object.assign(e,{[i]:a[i]});else if(e[i]&&It(a[i]))Uf(e[i],a[i]);else if(Array.isArray(a[i])&&Array.isArray(e[i])){let o=0;for(;o<a[i].length;o++)It(e[i][o])&&It(a[i][o])?Uf(e[i][o],a[i][o]):e[i][o]=a[i][o]}else Object.assign(e,{[i]:a[i]});return e}function Ar(e,...a){for(const i of a)Uf(e,i);return e}const zA=e=>e,ot=e=>e,be=e=>e,VA=e=>e,IA=e=>e,_r=e=>e,DA=e=>e,MA=e=>e,PA=e=>e;function t1(){const e=a=>a;return new Proxy(e,{get(){return e}})}const at=t1(),Mg=t1(),n1=e=>e,a1=(...e)=>Ar({},...e.map(jf)),LA=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function BA(e){return`${e}`.replace(LA,a=>`\\${a}`)}const HA=/[A-Z]/g;function jA(e){return e.replace(HA,a=>`-${a.toLowerCase()}`)}function i1(e,a={}){const{fallback:i="",prefix:o=""}=a,s=jA(["-",o,BA(e)].filter(Boolean).join("-"));return{var:s,ref:`var(${s}${i?`, ${i}`:""})`}}const UA=e=>/^var\(--.+\)$/.test(e),ft=(e,a)=>a!=null?`${e}(${a})`:a,si=e=>{if(UA(e)||e==null)return e;const a=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||a?`${e}deg`:e},ly=e=>({values:["outside","inside","mixed","none"],transform(a,{token:i}){const o=i("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":o,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":o,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":o,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":o,[e]:{outline:"none"}}}[a]??{}}}),FA=Ue("borderColor"),Jn=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),GA=zA({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),vr=i1("bg-currentcolor"),sy=e=>e===vr.ref||e==="currentBg",je=e=>({...e("colors"),currentBg:vr}),WA=n1({conditions:GA,utilities:{background:{values:je,shorthand:["bg"],transform(e,a){if(sy(a.raw))return{background:vr.ref};const i=Ue("background")(e,a);return{...i,[vr.var]:i?.background}}},backgroundColor:{values:je,shorthand:["bgColor"],transform(e,a){if(sy(a.raw))return{backgroundColor:vr.ref};const i=Ue("backgroundColor")(e,a);return{...i,[vr.var]:i?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:je,transform:Ue("--gradient-from")},gradientTo:{values:je,transform:Ue("--gradient-to")},gradientVia:{values:je,transform(e,a){return{...Ue("--gradient-via")(e,a),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:je,transform:Ue("borderColor")},borderTopColor:{values:je,transform:Ue("borderTopColor")},borderBlockStartColor:{values:je,transform:Ue("borderBlockStartColor")},borderBottomColor:{values:je,transform:Ue("borderBottomColor")},borderBlockEndColor:{values:je,transform:Ue("borderBlockEndColor")},borderLeftColor:{values:je,transform:Ue("borderLeftColor")},borderInlineStartColor:{values:je,shorthand:["borderStartColor"],transform:Ue("borderInlineStartColor")},borderRightColor:{values:je,transform:Ue("borderRightColor")},borderInlineEndColor:{values:je,shorthand:["borderEndColor"],transform:Ue("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:je,transform:Ue("color")},fill:{values:je,transform:Ue("fill")},stroke:{values:je,transform:Ue("stroke")},accentColor:{values:je,transform:Ue("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:je,transform(e,a){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":FA(e,a)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:je,transform:Ue("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":ft("blur",e)})},brightness:{transform:e=>({"--brightness":ft("brightness",e)})},contrast:{transform:e=>({"--contrast":ft("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ft("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ft("hue-rotate",si(e))})},invert:{transform:e=>({"--invert":ft("invert",e)})},saturate:{transform:e=>({"--saturate":ft("saturate",e)})},sepia:{transform:e=>({"--sepia":ft("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ft("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":ft("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ft("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ft("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ft("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ft("hue-rotate",si(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ft("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ft("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ft("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ft("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:je,transform:Ue("outlineColor")},focusRing:ly("&:is(:focus, [data-focus])"),focusVisibleRing:ly("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:je,transform:Ue("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:a,token:i})=>({[i.raw(`breakpoints.${a}`)?`@breakpoint ${a}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:a,token:i}){return{[i.raw(`breakpoints.${a}`)?`@breakpoint ${a}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:je,transform:Ue("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:je,transform:Ue("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:je,transform:Ue("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:je,transform:Ue("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let a=e;return e==="auto"&&(a="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(a="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:a}}},skewX:{transform:e=>({"--skew-x":si(e)})},skewY:{transform:e=>({"--skew-y":si(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:si(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":si(e)}}},rotateY:{transform(e){return{"--rotate-y":si(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Jn("all");case"position":return Jn("left, right, top, bottom, inset-inline, inset-block");case"colors":return Jn("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Jn("opacity");case"shadow":return Jn("box-shadow");case"transform":return Jn("transform");case"size":return Jn("width, height");case"backgrounds":return Jn("background, background-color, background-image, background-position");case"common":return Jn("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},srOnly:{values:{type:"boolean"},transform(e){return $A[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:je,transform:Ue("caretColor")},cursor:{values:"cursor"}}}),$A={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var qA="",YA=qA.split(","),XA="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",KA=XA.split(",").concat(YA),QA=new Map(KA.map(e=>[e,!0]));function ZA(e){const a=Object.create(null);return i=>(a[i]===void 0&&(a[i]=e(i)),a[i])}var JA=/&|@/,e5=ZA(e=>QA.has(e)||e.startsWith("--")||JA.test(e));const Ff=e=>e!=null;function ia(e,a,i={}){const{stop:o,getKey:s}=i;function u(f,g=[]){if(It(f)||Array.isArray(f)){const h={};for(const[p,v]of Object.entries(f)){const S=s?.(p,v)??p,y=[...g,S];if(o?.(f,y))return a(f,g);const x=u(v,y);Ff(x)&&(h[S]=x)}return h}return a(f,g)}return u(e)}function r1(e,a){return Array.isArray(e)?e.map(i=>Ff(i)?a(i):i):It(e)?ia(e,i=>a(i)):Ff(e)?a(e):e}function o1(e,a){const i={};return ia(e,(o,s)=>{o&&(i[s.join(".")]=o.value)},{stop:a}),i}var Ef,cy;function t5(){if(cy)return Ef;cy=1,Ef=u,u.default=u,u.stable=p,u.stableStringify=p;var e="[...]",a="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(y,x,C,E){typeof E>"u"&&(E=s()),g(y,"",0,[],void 0,0,E);var k;try{o.length===0?k=JSON.stringify(y,x,C):k=JSON.stringify(y,S(x),C)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;i.length!==0;){var _=i.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return k}function f(y,x,C,E){var k=Object.getOwnPropertyDescriptor(E,C);k.get!==void 0?k.configurable?(Object.defineProperty(E,C,{value:y}),i.push([E,C,x,k])):o.push([x,C,y]):(E[C]=y,i.push([E,C,x]))}function g(y,x,C,E,k,_,R){_+=1;var A;if(typeof y=="object"&&y!==null){for(A=0;A<E.length;A++)if(E[A]===y){f(a,y,x,k);return}if(typeof R.depthLimit<"u"&&_>R.depthLimit){f(e,y,x,k);return}if(typeof R.edgesLimit<"u"&&C+1>R.edgesLimit){f(e,y,x,k);return}if(E.push(y),Array.isArray(y))for(A=0;A<y.length;A++)g(y[A],A,A,E,y,_,R);else{var M=Object.keys(y);for(A=0;A<M.length;A++){var N=M[A];g(y[N],N,A,E,y,_,R)}}E.pop()}}function h(y,x){return y<x?-1:y>x?1:0}function p(y,x,C,E){typeof E>"u"&&(E=s());var k=v(y,"",0,[],void 0,0,E)||y,_;try{o.length===0?_=JSON.stringify(k,x,C):_=JSON.stringify(k,S(x),C)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;i.length!==0;){var R=i.pop();R.length===4?Object.defineProperty(R[0],R[1],R[3]):R[0][R[1]]=R[2]}}return _}function v(y,x,C,E,k,_,R){_+=1;var A;if(typeof y=="object"&&y!==null){for(A=0;A<E.length;A++)if(E[A]===y){f(a,y,x,k);return}try{if(typeof y.toJSON=="function")return}catch{return}if(typeof R.depthLimit<"u"&&_>R.depthLimit){f(e,y,x,k);return}if(typeof R.edgesLimit<"u"&&C+1>R.edgesLimit){f(e,y,x,k);return}if(E.push(y),Array.isArray(y))for(A=0;A<y.length;A++)v(y[A],A,A,E,y,_,R);else{var M={},N=Object.keys(y).sort(h);for(A=0;A<N.length;A++){var Y=N[A];v(y[Y],Y,A,E,y,_,R),M[Y]=y[Y]}if(typeof k<"u")i.push([k,x,y]),k[x]=M;else return M}E.pop()}}function S(y){return y=typeof y<"u"?y:function(x,C){return C},function(x,C){if(o.length>0)for(var E=0;E<o.length;E++){var k=o[E];if(k[1]===x&&k[0]===C){C=k[2],o.splice(E,1);break}}return y.call(this,x,C)}}return Ef}var n5=t5();const a5=jy(n5),pn=e=>{const a=Object.create(null);function i(...o){const s=o.map(u=>a5(u)).join("|");return a[s]===void 0&&(a[s]=e(...o)),a[s]}return i},l1=16,pc="px",Pg="em",$o="rem";function s1(e=""){const a=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),i=new RegExp(`${pc}|${Pg}|${$o}`);return e.match(new RegExp(`${a.source}(${i.source})`))?.[1]}function c1(e=""){if(typeof e=="number")return`${e}px`;const a=s1(e);if(!a||a===pc)return e;if(a===Pg||a===$o)return`${parseFloat(e)*l1}${pc}`}function u1(e=""){const a=s1(e);if(!a||a===$o)return e;if(a===Pg)return`${parseFloat(e)}${$o}`;if(a===pc)return`${parseFloat(e)/l1}${$o}`}const i5=e=>e.charAt(0).toUpperCase()+e.slice(1);function r5(e){const a=o5(e),i=Object.fromEntries(a);function o(y){return i[y]}function s(y){return cr(o(y))}function u(){const y=Object.keys(i),x=l5(y),C=y.flatMap(E=>{const k=o(E),_=[`${E}Down`,cr({max:nc(k.min)})],R=[E,cr({min:k.min})],A=[`${E}Only`,s(E)];return[R,A,_]}).filter(([,E])=>E!=="").concat(x.map(([E,k])=>{const _=o(E),R=o(k);return[`${E}To${i5(k)}`,cr({min:_.min,max:nc(R.min)})]}));return Object.fromEntries(C)}function f(){const y=u();return Object.fromEntries(Object.entries(y))}const g=f(),h=y=>g[y];function p(){return["base",...Object.keys(i)]}function v(y){return cr({min:o(y).min})}function S(y){return cr({max:nc(o(y).min)})}return{values:Object.values(i),only:s,keys:p,conditions:g,getCondition:h,up:v,down:S}}function nc(e){const a=parseFloat(c1(e)??"")-.04;return u1(`${a}px`)}function o5(e){return Object.entries(e).sort(([,i],[,o])=>parseInt(i,10)<parseInt(o,10)?-1:1).map(([i,o],s,u)=>{let f=null;return s<=u.length-1&&(f=u[s+1]?.[1]),f!=null&&(f=nc(f)),[i,{name:i,min:u1(o),max:f}]})}function l5(e){const a=[];return e.forEach((i,o)=>{let s=o;s++;let u=e[s];for(;u;)a.push([i,u]),s++,u=e[s]}),a}function cr({min:e,max:a}){return e==null&&a==null?"":["@media screen",e&&`(min-width: ${e})`,a&&`(max-width: ${a})`].filter(Boolean).join(" and ")}const s5=(e,a)=>Object.fromEntries(Object.entries(e).map(([i,o])=>a(i,o))),c5=e=>{const{breakpoints:a,conditions:i={}}=e,o=s5(i,(v,S)=>[`_${v}`,S]),s=Object.assign({},o,a.conditions);function u(){return Object.keys(s)}function f(v){return u().includes(v)||/^@|&|&$/.test(v)||v.startsWith("_")}function g(v){return v.filter(S=>S!=="base").sort((S,y)=>{const x=f(S),C=f(y);return x&&!C?1:!x&&C?-1:0})}function h(v){return v.startsWith("@breakpoint")?a.getCondition(v.replace("@breakpoint ","")):v}function p(v){return Reflect.get(s,v)||v}return{keys:u,sort:g,has:f,resolve:p,breakpoints:a.keys(),expandAtRule:h}},d1=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),u5=d1("width"),d5=d1("height"),f1=e=>({isMin:my(e.minMax,e.maxMin,e.min),isMax:my(e.maxMin,e.minMax,e.max)}),{isMin:Gf,isMax:uy}=f1(u5),{isMin:Wf,isMax:dy}=f1(d5),fy=/print/i,gy=/^print$/i,f5=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,g5=/(\d)/,Fo=Number.MAX_VALUE,h5={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function hy(e){const a=f5.exec(e)||(Gf(e)||Wf(e)?g5.exec(e):null);if(!a)return Fo;if(a[0]==="0")return 0;const i=parseFloat(a[1]),o=a[2];return i*(h5[o]||1)}function my(e,a,i){return o=>e.test(o)||!a.test(o)&&i.test(o)}function m5(e,a){const i=fy.test(e),o=gy.test(e),s=fy.test(a),u=gy.test(a);return i&&s?!o&&u?1:o&&!u?-1:e.localeCompare(a):i?1:s?-1:null}const p5=pn((e,a)=>{const i=m5(e,a);if(i!==null)return i;const o=Gf(e)||Wf(e),s=uy(e)||dy(e),u=Gf(a)||Wf(a),f=uy(a)||dy(a);if(o&&f)return-1;if(s&&u)return 1;const g=hy(e),h=hy(a);return g===Fo&&h===Fo?e.localeCompare(a):g===Fo?1:h===Fo?-1:g!==h?g>h?s?-1:1:s?1:-1:e.localeCompare(a)});function py(e){return e.sort(([a],[i])=>p5(a,i))}function g1(e){const a=[],i=[],o={};for(const[f,g]of Object.entries(e))f.startsWith("@media")?a.push([f,g]):f.startsWith("@container")?i.push([f,g]):It(g)?o[f]=g1(g):o[f]=g;const s=py(a),u=py(i);return{...o,...Object.fromEntries(s),...Object.fromEntries(u)}}const h1=/\s*!(important)?/i,v5=e=>Vn(e)?h1.test(e):!1,b5=e=>Vn(e)?e.replace(h1,"").trim():e;function m1(e){const{transform:a,conditions:i,normalize:o}=e,s=S5(e);return pn(function(...f){const g=s(...f),h=o(g),p=Object.create(null);return ia(h,(v,S)=>{const y=v5(v);if(v==null)return;const[x,...C]=i.sort(S).map(i.resolve);y&&(v=b5(v));let E=a(x,v)??Object.create(null);E=ia(E,k=>Vn(k)&&y?`${k} !important`:k,{getKey:k=>i.expandAtRule(k)}),y5(p,C.flat(),E)}),g1(p)})}function y5(e,a,i){let o=e;for(const s of a)s&&(o[s]||(o[s]=Object.create(null)),o=o[s]);Ar(o,i)}function x5(...e){return e.filter(a=>It(a)&&Object.keys(il(a)).length>0)}function S5(e){function a(i){const o=x5(...i);return o.length===1?o:o.map(s=>e.normalize(s))}return pn(function(...o){return Ar({},...a(o))})}const p1=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function E5(e){const{css:a,conditions:i,normalize:o,layers:s}=e;function u(g={}){const{base:h,variants:p,defaultVariants:v,compoundVariants:S}=p1(g),y=m1({conditions:i,normalize:o,transform(R,A){return p[R]?.[A]}}),x=(R={})=>{const A=o({...v,...il(R)});let M={...h};Ar(M,y(A));const N=f(S,A);return s.wrap("recipes",a(M,N))},C=Object.keys(p),E=R=>{const A=e1(R,["recipe"]),[M,N]=xr(A,C);return C.includes("colorPalette")||(M.colorPalette=R.colorPalette||v.colorPalette),C.includes("orientation")&&(N.orientation=R.orientation),[M,N]},k=Object.fromEntries(Object.entries(p).map(([R,A])=>[R,Object.keys(A)]));return Object.assign(R=>a(x(R)),{className:g.className,__cva__:!0,variantMap:k,variantKeys:C,raw:x,config:g,splitVariantProps:E,merge(R){return u(C5(e)(this,R))}})}function f(g,h){let p={};return g.forEach(v=>{Object.entries(v).every(([y,x])=>y==="css"?!0:(Array.isArray(x)?x:[x]).some(E=>h[y]===E))&&(p=a(p,v.css))}),p}return u}function C5(e){const{css:a}=e;return function(o,s){const u=p1(s.config),f=a0(o.variantKeys,Object.keys(s.variants)),g=a(o.base,u.base),h=Object.fromEntries(f.map(y=>[y,a(o.config.variants[y],u.variants[y])])),p=Ar(o.config.defaultVariants,u.defaultVariants),v=[...o.compoundVariants,...u.compoundVariants];return{className:vn(o.className,s.className),base:g,variants:h,defaultVariants:p,compoundVariants:v}}}const O5={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},vy={reset:0,base:1,tokens:2,recipes:3};function T5(e){const a=e.layers??O5,o=Object.values(a).sort((s,u)=>vy[s]-vy[u]);return{names:o,atRule:`@layer ${o.join(", ")};`,wrap(s,u){return e.disableLayers?u:{[`@layer ${a[s]}`]:u}}}}function k5(e){const{utility:a,normalize:i}=e,{hasShorthand:o,resolveShorthand:s}=a;return function(u){return ia(u,i,{stop:f=>Array.isArray(f),getKey:o?s:void 0})}}function w5(e){const{preflight:a}=e;if(!a)return{};const{scope:i="",level:o="parent"}=It(a)?a:{};let s="";i&&o==="parent"?s=`${i} `:i&&o==="element"&&(s=`&${i}`);const u={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},f={[i||"html"]:{lineHeight:1.5,"--font-fallback":"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'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(o==="element"){const g=Object.entries(u).reduce((h,[p,v])=>(h[p]={[s]:v},h),{});Object.assign(f,g)}else s?f[s]=u:Object.assign(f,u);return f}function R5(e){const{conditions:a,isValidProperty:i}=e;return function(s){return ia(s,u=>u,{getKey:(u,f)=>It(f)&&!a.has(u)&&!i(u)?N5(u).map(g=>"&"+g).join(", "):u})}}function N5(e){const a=[];let i=0,o="",s=!1;for(let u=0;u<e.length;u++){const f=e[u];if(f==="\\"&&!s){s=!0,o+=f;continue}if(s){s=!1,o+=f;continue}f==="("?i++:f===")"&&i--,f===","&&i===0?(a.push(o.trim()),o=""):o+=f}return o&&a.push(o.trim()),a}const A5=(e={})=>{const a=s=>({base:e.base?.[s]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?_5(e.compoundVariants,s):[]}),o=(e.slots??[]).map(s=>[s,a(s)]);for(const[s,u]of Object.entries(e.variants??{}))for(const[f,g]of Object.entries(u))o.forEach(([h,p])=>{var v;(v=p.variants)[s]??(v[s]={}),p.variants[s][f]=g[h]??{}});return Object.fromEntries(o)},_5=(e,a)=>e.filter(i=>i.css[a]).map(i=>({...i,css:i.css[a]}));function z5(e){const{cva:a}=e;return function(o={}){const s=Object.entries(A5(o)).map(([S,y])=>[S,a(y)]);function u(S){const y=s.map(([x,C])=>[x,C(S)]);return Object.fromEntries(y)}const f=o.variants??{},g=Object.keys(f);function h(S){const y=e1(S,["recipe"]),[x,C]=xr(y,g);return g.includes("colorPalette")||(x.colorPalette=S.colorPalette||o.defaultVariants?.colorPalette),g.includes("orientation")&&(C.orientation=S.orientation),[x,C]}const p=Object.fromEntries(Object.entries(f).map(([S,y])=>[S,Object.keys(y)]));let v={};return o.className&&(v=Object.fromEntries(o.slots.map(S=>[S,`${o.className}__${S}`]))),Object.assign(u,{variantMap:p,variantKeys:g,splitVariantProps:h,classNameMap:v})}}const V5=()=>e=>Array.from(new Set(e)),I5=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,D5=function(e,a){return a?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},v1=e=>(e+"").replace(I5,D5),b1=(e,a)=>{let i="",o=0,s="char",u="",f="";const g=[];for(;o<e.length;){const h=e[o];if(h==="{"){const v=e.indexOf("}",o);if(v===-1)break;const S=e.slice(o+1,v),y=a(S);i+=y??S,o=v+1;continue}if(s==="token"&&h===","){e[o]===""&&o++,s="fallback",g.push(s);const v=a(u);v?.endsWith(")")&&(i+=v.slice(0,-1)),u="",f="";continue}if(s==="fallback"&&f+h===", var("){const y=M5(e.slice(o+1))+o+1,x=e.slice(o+1,y);if(y===-1)break;i+=", var("+x+")",o=y+1,s=g.pop()??s,f="";continue}if(s==="token"||s==="fallback"){if(o++,h===")"){s=g.pop()??s??"char",f+=h;const v=u&&(a(u)??v1(u));if(f){if(f=f.slice(1).trim(),!f.startsWith("token(")&&f.endsWith(")")&&(f=f.slice(0,-1)),f.includes("token(")){const y=b1(f,a);y&&(f=y.slice(0,-1))}else if(f){const y=a(f);y&&(f=y)}}const S=i.at(-1);f?S?.trim()?i+=v.slice(0,-1)+(", "+f+")"):i+=f:i+=v||")",u="",f="",s="char";continue}s==="token"&&(u+=h),s==="fallback"&&(f+=h);continue}const p=e.indexOf("token(",o);if(p!==-1){const v=p+6;i+=e.slice(o,p),o=v,s="token",g.push(s);continue}i+=h,o++}return i},M5=e=>{let a=0;const i=["("];for(;a<e.length;){const o=e[a];if(o==="(")i.push(o);else if(o===")"&&(i.pop(),i.length===0))return a;a++}return a};function y1(e){const a={};return e.forEach((i,o)=>{i instanceof Map?a[o]=Object.fromEntries(i):a[o]=i}),a}const x1=/({([^}]*)})/g,P5=/[{}]/g,L5=/\w+\.\w+/,S1=e=>{if(!Vn(e))return[];const a=e.match(x1);return a?a.map(i=>i.replace(P5,"")).map(i=>i.trim()):[]},B5=e=>x1.test(e);function E1(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const a=e.extensions.references??{};return e.value=Object.keys(a).reduce((i,o)=>{const s=a[o];if(s.extensions.conditions)return i;const u=E1(s);return i.replace(`{${o}}`,u)},e.value),delete e.extensions.references,e.value}function C1(e){return It(e)&&e.reference?e.reference:String(e)}const Mc=(e,...a)=>a.map(C1).join(` ${e} `).replace(/calc/g,""),by=(...e)=>`calc(${Mc("+",...e)})`,yy=(...e)=>`calc(${Mc("-",...e)})`,$f=(...e)=>`calc(${Mc("*",...e)})`,xy=(...e)=>`calc(${Mc("/",...e)})`,Sy=e=>{const a=C1(e);return a!=null&&!Number.isNaN(parseFloat(a))?String(a).startsWith("-")?String(a).slice(1):`-${a}`:$f(a,-1)},gr=Object.assign(e=>({add:(...a)=>gr(by(e,...a)),subtract:(...a)=>gr(yy(e,...a)),multiply:(...a)=>gr($f(e,...a)),divide:(...a)=>gr(xy(e,...a)),negate:()=>gr(Sy(e)),toString:()=>e.toString()}),{add:by,subtract:yy,multiply:$f,divide:xy,negate:Sy}),H5={enforce:"pre",transform(e){const{prefix:a,allTokens:i,formatCssVar:o,formatTokenName:s,registerToken:u}=e;i.filter(({extensions:g})=>g.category==="spacing").forEach(g=>{const h=g.path.slice(),p=o(h,a);if(Vn(g.value)&&g.value==="0rem")return;const v=structuredClone(g);Object.assign(v.extensions,{negative:!0,prop:`-${g.extensions.prop}`,originalPath:h}),v.value=gr.negate(p.ref);const S=v.path[v.path.length-1];S!=null&&(v.path[v.path.length-1]=`-${S}`),v.path&&(v.name=s(v.path)),u(v)})}},j5=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),U5={enforce:"post",transform(e){e.allTokens.filter(i=>j5.has(i.extensions.category)&&!i.extensions.negative).forEach(i=>{Object.assign(i.extensions,{pixelValue:c1(i.value)})})}},F5={enforce:"post",transform(e){const{allTokens:a,registerToken:i,formatTokenName:o}=e,s=a.filter(({extensions:g})=>g.category==="colors"),u=new Map,f=new Map;s.forEach(g=>{const{colorPalette:h}=g.extensions;h&&(h.keys.forEach(p=>{u.set(o(p),p)}),h.roots.forEach(p=>{const v=o(p),S=f.get(v)||[];if(S.push(g),f.set(v,S),g.extensions.default&&p.length===1){const y=h.keys[0]?.filter(Boolean);if(!y.length)return;const x=p.concat(y);u.set(o(x),[])}}))}),u.forEach(g=>{const h=["colors","colorPalette",...g].filter(Boolean),p=o(h),v=o(h.slice(1));i({name:p,value:p,originalValue:p,path:h,extensions:{condition:"base",originalPath:h,category:"colors",prop:v,virtual:!0}},"pre")})}},G5={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(a=>a.value!=="")}},W5=[H5,F5,U5,G5],$5={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,a){const{prefix:i,formatCssVar:o}=a,{negative:s,originalPath:u}=e.extensions,f=s?u:e.path;return{cssVar:o(f.filter(Boolean),i)}}},q5={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,a){const{prefix:i,formatCssVar:o}=a,s=S1(e.value);return s.length&&s.forEach(u=>{const f=o(u.split("."),i);e.value=e.value.replace(`{${f.ref}}`,f)}),e.value}},Y5={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,a){let i=e.path.slice();if(i.pop(),i.shift(),i.length===0){const g=[...e.path];g.shift(),i=g}if(i.length===0)return{};const o=i.reduce((g,h,p,v)=>{const S=v.slice(0,p+1);return g.push(S),g},[]),s=i[0],u=a.formatTokenName(i),f=e.path.slice(e.path.indexOf(s)+1).reduce((g,h,p,v)=>(g.push(v.slice(p)),g),[]);return f.length===0&&f.push([""]),{colorPalette:{value:u,roots:o,keys:f}}}},X5=[$5,q5,Y5],Ey=e=>It(e)&&Object.prototype.hasOwnProperty.call(e,"value");function K5(e){return e?{breakpoints:r1(e,a=>({value:a})),sizes:Object.fromEntries(Object.entries(e).map(([a,i])=>[`breakpoint-${a}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function Q5(e){const{prefix:a="",tokens:i={},semanticTokens:o={},breakpoints:s={}}=e,u=Z=>Z.join("."),f=(Z,te)=>i1(Z.join("-"),{prefix:te}),g=[],h=new Map,p=new Map,v=new Map,S=new Map,y=new Map,x=new Map,C=new Map,E=new Map,k=[];function _(Z,te){g.push(Z),h.set(Z.name,Z),te&&E.forEach(Oe=>{Oe.enforce===te&&T(Oe,Z)})}const R=K5(s),A=il({...i,breakpoints:R.breakpoints,sizes:{...i.sizes,...R.sizes}});function M(){ia(A,(Z,te)=>{const Oe=te.includes("DEFAULT");te=Cy(te);const Ve=te[0],$e=u(te),Ke=Vn(Z)?{value:Z}:Z,Pt={value:Ke.value,originalValue:Ke.value,name:$e,path:te,extensions:{condition:"base",originalPath:te,category:Ve,prop:u(te.slice(1))}};Oe&&(Pt.extensions.default=!0),_(Pt)},{stop:Ey}),ia(o,(Z,te)=>{const Oe=te.includes("DEFAULT");te=O1(Cy(te));const Ve=te[0],$e=u(te),Ke=Vn(Z.value)?{value:{base:Z.value}}:Z,Pt={value:Ke.value.base||"",originalValue:Ke.value.base||"",name:$e,path:te,extensions:{originalPath:te,category:Ve,conditions:Ke.value,condition:"base",prop:u(te.slice(1))}};Oe&&(Pt.extensions.default=!0),_(Pt)},{stop:Ey})}function N(Z){return h.get(Z)}function Y(Z){const{condition:te}=Z.extensions;te&&(p.has(te)||p.set(te,new Set),p.get(te).add(Z))}function U(Z){const{category:te,prop:Oe}=Z.extensions;te&&(C.has(te)||C.set(te,new Map),C.get(te).set(Oe,Z))}function j(Z){const{condition:te,negative:Oe,virtual:Ve,cssVar:$e}=Z.extensions;Oe||Ve||!te||!$e||(v.has(te)||v.set(te,new Map),v.get(te).set($e.var,Z.value))}function W(Z){const{category:te,prop:Oe,cssVar:Ve,negative:$e}=Z.extensions;if(!te)return;x.has(te)||x.set(te,new Map);const Ke=$e?Z.extensions.conditions?Z.originalValue:Z.value:Ve.ref;x.get(te).set(Oe,Ke),y.set([te,Oe].join("."),Ke)}function Q(Z){const{colorPalette:te,virtual:Oe,default:Ve}=Z.extensions;!te||Oe||te.roots.forEach($e=>{const Ke=u($e);S.has(Ke)||S.set(Ke,new Map);const Pt=J5([...Z.path],[...$e]),yi=u(Pt),zr=N(yi);if(!zr||!zr.extensions.cssVar)return;const{var:Zt}=zr.extensions.cssVar;if(S.get(Ke).set(Zt,Z.extensions.cssVar.ref),Ve&&$e.length===1){const Pc=u(["colors","colorPalette"]),Vr=N(Pc);if(!Vr)return;const ml=u(Z.path),Pa=N(ml);if(!Pa)return;const pl=te.keys[0]?.filter(Boolean);if(!pl.length)return;const xi=u($e.concat(pl));S.has(xi)||S.set(xi,new Map),S.get(xi).set(Vr.extensions.cssVar.var,Pa.extensions.cssVar.ref)}})}let G={};function P(){g.forEach(Z=>{Y(Z),U(Z),j(Z),W(Z),Q(Z)}),G=y1(x)}const ne=(Z,te)=>{if(!Z||typeof Z!="string")return{invalid:!0,value:Z};const[Oe,Ve]=Z.split("/");if(!Oe||!Ve)return{invalid:!0,value:Oe};const $e=te(Oe),Ke=N(`opacity.${Ve}`)?.value;if(!Ke&&isNaN(Number(Ve)))return{invalid:!0,value:Oe};const Pt=Ke?Number(Ke)*100+"%":`${Ve}%`,yi=$e??Oe;return{invalid:!1,color:yi,value:`color-mix(in srgb, ${yi} ${Pt}, transparent)`}},re=pn((Z,te)=>y.get(Z)??te),le=pn(Z=>G[Z]||null),D=pn(Z=>b1(Z,te=>{if(!te)return;if(te.includes("/")){const Ve=ne(te,$e=>re($e));if(Ve.invalid)throw new Error("Invalid color mix at "+te+": "+Ve.value);return Ve.value}const Oe=re(te);return Oe||(L5.test(te)?v1(te):te)})),J={prefix:a,allTokens:g,tokenMap:h,registerToken:_,getByName:N,formatTokenName:u,formatCssVar:f,flatMap:y,cssVarMap:v,categoryMap:C,colorPaletteMap:S,getVar:re,getCategoryValues:le,expandReferenceInValue:D};function se(...Z){Z.forEach(te=>{E.set(te.name,te)})}function oe(...Z){k.push(...Z)}function T(Z,te){if(te.extensions.references||ig(Z.match)&&!Z.match(te))return;const Ve=($e=>Z.transform($e,J))(te);switch(!0){case Z.type==="extensions":Object.assign(te.extensions,Ve);break;case Z.type==="value":te.value=Ve;break;default:te[Z.type]=Ve;break}}function q(Z){k.forEach(te=>{te.enforce===Z&&te.transform(J)})}function ie(Z){E.forEach(te=>{te.enforce===Z&&g.forEach(Oe=>{T(te,Oe)})})}function ae(){g.forEach(Z=>{const te=Z5(Z);!te||te.length===0||te.forEach(Oe=>{_(Oe)})})}function ue(Z){return S1(Z).map(Oe=>N(Oe)).filter(Boolean)}function Ee(){g.forEach(Z=>{if(!B5(Z.value))return;const te=ue(Z.value);Z.extensions.references=te.reduce((Oe,Ve)=>(Oe[Ve.name]=Ve,Oe),{})})}function pe(){g.forEach(Z=>{E1(Z)})}function kt(){q("pre"),ie("pre"),ae(),Ee(),pe(),q("post"),ie("post"),P()}return M(),se(...X5),oe(...W5),kt(),J}function Cy(e){return e[0]==="DEFAULT"?e:e.filter(a=>a!=="DEFAULT")}function O1(e){return e.filter(a=>a!=="base")}function Z5(e){if(!e.extensions.conditions)return;const{conditions:a}=e.extensions,i=[];return ia(a,(o,s)=>{const u=O1(s);if(!u.length)return;const f=structuredClone(e);f.value=o,f.extensions.condition=u.join(":"),i.push(f)}),i}function J5(e,a){const i=e.findIndex((o,s)=>a.every((u,f)=>e[s+f]===u));return i===-1||(e.splice(i,a.length),e.splice(i,0,"colorPalette")),e}V5()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function e_(e){return Object.fromEntries(Object.entries(e).map(([a,i])=>[a,i]))}function t_(e){const a=e_(e.config),i=e.tokens,o=new Map,s=new Map;function u(j,W){a[j]=W,f(j,W)}const f=(j,W)=>{const Q=E(W);Q&&(s.set(j,Q),S(j,W))},g=()=>{for(const[j,W]of Object.entries(a))W&&f(j,W)},h=()=>{for(const[j,W]of Object.entries(a)){const{shorthand:Q}=W??{};if(!Q)continue;(Array.isArray(Q)?Q:[Q]).forEach(P=>o.set(P,j))}},p=()=>{const j=y1(i.colorPaletteMap);u("colorPalette",{values:Object.keys(j),transform:pn(W=>j[W])})},v=new Map,S=(j,W)=>{if(!W)return;const Q=E(W,P=>`type:Tokens["${P}"]`);if(typeof Q=="object"&&Q.type){v.set(j,new Set([`type:${Q.type}`]));return}if(Q){const P=new Set(Object.keys(Q));v.set(j,P)}const G=v.get(j)??new Set;W.property&&v.set(j,G.add(`CssProperties["${W.property}"]`))},y=()=>{for(const[j,W]of Object.entries(a))W&&S(j,W)},x=(j,W)=>{const Q=v.get(j)??new Set;v.set(j,new Set([...Q,...W]))},C=()=>{const j=new Map;for(const[W,Q]of v.entries()){if(Q.size===0){j.set(W,["string"]);continue}const G=Array.from(Q).map(P=>P.startsWith("CssProperties")?P:P.startsWith("type:")?P.replace("type:",""):JSON.stringify(P));j.set(W,G)}return j},E=(j,W)=>{const{values:Q}=j,G=P=>{const ne=W?.(P);return ne?{[ne]:ne}:void 0};return Vn(Q)?G?.(Q)??i.getCategoryValues(Q)??{}:Array.isArray(Q)?Q.reduce((P,ne)=>(P[ne]=ne,P),{}):ig(Q)?Q(W?G:i.getCategoryValues):Q},k=pn((j,W)=>({[j]:j.startsWith("--")?i.getVar(W,W):W})),_=Object.assign(i.getVar,{raw:j=>i.getByName(j)}),R=pn((j,W)=>{const Q=N(j);Vn(W)&&!W.includes("_EMO_")&&(W=i.expandReferenceInValue(W));const G=a[Q];if(!G)return k(Q,W);const P=s.get(Q)?.[W];if(!G.transform)return k(j,P??W);const ne=re=>_A(re,_);return G.transform(P??W,{raw:W,token:_,utils:{colorMix:ne}})});function A(){h(),p(),g(),y()}A();const M=o.size>0,N=pn(j=>o.get(j)??j);return{keys:()=>[...Array.from(o.keys()),...Object.keys(a)],hasShorthand:M,transform:R,shorthands:o,resolveShorthand:N,register:u,getTypes:C,addPropertyType:x}}const Vt={};function n_(...e){const a=a1(...e),{theme:i={},utilities:o={},globalCss:s={},cssVarsRoot:u=":where(:root, :host)",cssVarsPrefix:f="chakra",preflight:g}=a,h=T5(a),p=Q5({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:f}),v=r5(i.breakpoints??Vt),S=c5({conditions:a.conditions??Vt,breakpoints:v}),y=t_({config:o,tokens:p});function x(){const{textStyles:oe,layerStyles:T,animationStyles:q}=i,ie=il({textStyle:oe,layerStyle:T,animationStyle:q});for(const[ae,ue]of Object.entries(ie)){const Ee=o1(ue??Vt,T1);y.register(ae,{values:Object.keys(Ee),transform(pe){return A(Ee[pe])}})}}x(),y.addPropertyType("animationName",Object.keys(i.keyframes??Vt));const C=new Set(["css",...y.keys(),...S.keys()]),E=pn(oe=>C.has(oe)||e5(oe)),k=oe=>Array.isArray(oe)?oe.reduce((T,q,ie)=>{const ae=S.breakpoints[ie];return q!=null&&(T[ae]=q),T},{}):oe,_=k5({utility:y,normalize:k}),R=R5({conditions:S,isValidProperty:E}),A=m1({transform:y.transform,conditions:S,normalize:_}),M=E5({css:A,conditions:S,normalize:_,layers:h}),N=z5({cva:M});function Y(){const oe={};for(const[T,q]of p.cssVarMap.entries()){const ie=Object.fromEntries(q);if(Object.keys(ie).length===0)continue;const ae=T==="base"?u:S.resolve(T),ue=ae.startsWith("@"),Ee=A(R({[ae]:ue?{[u]:ie}:ie}));Ar(oe,Ee)}return h.wrap("tokens",oe)}function U(){const oe=Object.fromEntries(Object.entries(i.keyframes??Vt).map(([q,ie])=>[`@keyframes ${q}`,ie])),T=Object.assign({},oe,A(R(s)));return h.wrap("base",T)}function j(oe){return xr(oe,E)}function W(){const oe=w5({preflight:g});return h.wrap("reset",oe)}const Q=a_(p),G=(oe,T)=>Q.get(oe)?.value||T;G.var=(oe,T)=>Q.get(oe)?.variable||T;function P(oe,T){return i.recipes?.[oe]??T}function ne(oe,T){return i.slotRecipes?.[oe]??T}function re(oe){return Object.hasOwnProperty.call(i.recipes??Vt,oe)}function le(oe){return Object.hasOwnProperty.call(i.slotRecipes??Vt,oe)}function D(oe){return re(oe)||le(oe)}const J=[W(),U(),Y()],se={layerStyles:Cf(i.layerStyles??Vt),textStyles:Cf(i.textStyles??Vt),animationStyles:Cf(i.animationStyles??Vt),tokens:Oy(p,Object.keys(i.tokens??Vt),(oe,T)=>!oe.extensions.conditions&&!T.includes("colorPalette")),semanticTokens:Oy(p,Object.keys(i.semanticTokens??Vt),oe=>!!oe.extensions.conditions),keyframes:Ty(i.keyframes??Vt),breakpoints:Ty(i.breakpoints??Vt)};return{$$chakra:!0,_config:a,_global:J,breakpoints:v,tokens:p,conditions:S,utility:y,token:G,properties:C,layers:h,isValidProperty:E,splitCssProps:j,normalizeValue:k,getTokenCss:Y,getGlobalCss:U,getPreflightCss:W,css:A,cva:M,sva:N,getRecipe:P,getSlotRecipe:ne,hasRecipe:D,isRecipe:re,isSlotRecipe:le,query:se}}function a_(e){const a=new Map;return e.allTokens.forEach(i=>{const{cssVar:o,virtual:s,conditions:u}=i.extensions,f=u||s?o.ref:i.value;a.set(i.name,{value:f,variable:o.ref})}),a}const T1=e=>It(e)&&"value"in e,Cf=e=>({list(){return Object.keys(o1(e,T1))},search(a){return this.list().filter(i=>i.includes(a))}}),Oy=(e,a,i)=>({categoryKeys:a,list(o){return Array.from(e.categoryMap.get(o)?.entries()??[]).reduce((s,[u,f])=>(i(f,u)&&s.push(u),s),[])},search(o,s){return this.list(o).filter(u=>u.includes(s))}}),Ty=e=>({list(){return Object.keys(e)},search(a){return this.list().filter(i=>i.includes(a))}}),i_={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Of="var(--chakra-empty,/*!*/ /*!*/)",r_=IA({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Of,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Of])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Of])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),o_=PA({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),l_=MA({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Lg=ot({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),s_=ot({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),vt=ot({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:c_,defaultVariants:u_}=Lg,d_=ot({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:c_,defaultVariants:u_}),k1=ot({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),f_=ot({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),g_=ot({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),h_=ot({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),tt=ot({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),m_=ot({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:tt.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),p_=ot({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),v_=ot({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),b_=ot({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),bt=ot({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),y_=ot({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),x_=ot({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),S_=ot({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),E_=ot({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),C_=ot({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),O_={badge:Lg,button:s_,code:d_,container:f_,heading:g_,input:tt,inputAddon:m_,kbd:p_,link:v_,mark:b_,separator:y_,skeleton:x_,skipNavLink:S_,spinner:E_,textarea:C_,icon:h_,checkmark:vt,radiomark:bt,colorSwatch:k1},T_=Mg.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),k_=Mg.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),w_=Mg.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),R_=Q0.extendWith("itemBody"),N_=he("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),A_=he("alert").parts("title","description","root","indicator","content"),__=he("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),z_=he("blockquote").parts("root","icon","content","caption"),V_=he("card").parts("root","header","body","footer","title","description"),I_=he("checkbox-card",["root","control","label","description","addon","indicator","content"]),D_=he("data-list").parts("root","item","itemLabel","itemValue"),M_=zg.extendWith("header","body","footer","backdrop"),P_=zg.extendWith("header","body","footer","backdrop"),L_=vx.extendWith("textarea"),B_=he("empty-state",["root","content","indicator","title","description"]),H_=bx.extendWith("requiredIndicator"),j_=yx.extendWith("content"),U_=xx.extendWith("itemContent","dropzoneContent","fileText"),F_=he("list").parts("root","item","indicator"),G_=Ox.extendWith("itemCommand"),W_=he("select").parts("root","field","indicator"),$_=Dx.extendWith("header","body","footer"),w1=Dg.extendWith("itemAddon","itemIndicator"),q_=w1.extendWith("itemContent","itemDescription"),Y_=Px.extendWith("itemIndicator"),X_=Bx.extendWith("indicatorGroup"),K_=mx.extendWith("indicatorGroup","empty"),Q_=jx.extendWith("markerIndicator"),Z_=he("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),J_=he("status").parts("root","indicator"),ez=he("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),tz=Ux.extendWith("indicator"),nz=he("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),az=he("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),iz=he("tabs").parts("root","trigger","list","content","contentGroup","indicator"),rz=he("tag").parts("root","label","closeTrigger","startElement","endElement"),oz=he("timeline").parts("root","item","content","separator","indicator","connector","title","description"),lz=pR.extendWith("channelText"),sz=he("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);rx.extendWith("valueText");const cz=be({className:"chakra-accordion",slots:R_.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),uz=be({className:"chakra-action-bar",slots:N_.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),dz=be({slots:A_.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),fz=be({slots:ex.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),gz=be({className:"chakra-blockquote",slots:z_.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),hz=be({className:"chakra-breadcrumb",slots:__.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),mz=be({className:"chakra-card",slots:V_.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),pz=be({slots:mR.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:vt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:vt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:vt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:vt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:vt.variants?.size?.lg}},variant:{outline:{control:vt.variants?.variant?.outline},solid:{control:vt.variants?.variant?.solid},subtle:{control:vt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),vz=be({slots:I_.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:vt.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:vt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:vt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:vt.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:vt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:vt.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:vt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:vt.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),bz=be({slots:sz.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),yz=be({slots:_0.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),xz=be({className:"colorPicker",slots:lz.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...k1.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...tt.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:tt.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:tt.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:tt.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:tt.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:tt.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:tt.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:tt.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:tt.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:tt.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Sz=be({className:"chakra-combobox",slots:K_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),Ez=be({slots:D_.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),Cz=be({slots:M_.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),Oz=be({slots:P_.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),ky=_r({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Tz=be({slots:L_.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...ky,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...ky,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),kz=be({slots:B_.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),wz=be({className:"chakra-field",slots:H_.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),Rz=be({className:"fieldset",slots:j_.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),Nz=be({className:"chakra-file-upload",slots:U_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),Az=be({className:"chakra-hover-card",slots:Cx.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),_z=be({className:"chakra-list",slots:F_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),zz=be({className:"chakra-menu",slots:G_.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ac=be({className:"chakra-select",slots:X_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),Vz=be({className:"chakra-native-select",slots:W_.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:ac.variants?.variant.outline.trigger},subtle:{field:ac.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ac.defaultVariants});function qf(e,a){const i={};for(const o in e){const s=a(o,e[o]);i[s[0]]=s[1]}return i}const wy=_r({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),Iz=be({className:"chakra-number-input",slots:_x.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...tt.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...wy,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...wy,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:tt.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:tt.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:tt.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:tt.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:qf(tt.variants.variant,(e,a)=>[e,{input:a}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Ry,defaultVariants:Dz}=tt,Mz=be({className:"chakra-pin-input",slots:Ix.keys(),base:{input:{...tt.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:qf(Ry.size,(e,a)=>[e,{input:{...a,px:"1"}}]),variant:qf(Ry.variant,(e,a)=>[e,{input:a}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Dz}),Pz=be({className:"chakra-popover",slots:$_.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),Lz=be({slots:Ig.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),Bz=be({className:"chakra-progress-circle",slots:Ig.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),Hz=be({slots:Mx.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),jz=be({className:"chakra-radio-card",slots:q_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:bt.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:bt.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:bt.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:bt.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:bt.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:bt.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:bt.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:bt.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Uz=be({className:"chakra-radio-group",slots:w1.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:bt.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:bt.variants?.variant?.outline},subtle:{itemControl:bt.variants?.variant?.subtle},solid:{itemControl:bt.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:bt.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:bt.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:bt.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:bt.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),Fz=be({className:"chakra-rating-group",slots:Y_.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),Gz=be({className:"chakra-segment-group",slots:Lx.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),Wz=be({className:"chakra-slider",slots:Q_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),$z=be({className:"chakra-stat",slots:Z_.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),qz=be({className:"chakra-status",slots:J_.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),Yz=be({className:"chakra-steps",slots:ez.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),Xz=be({slots:tz.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),Kz=be({className:"chakra-table",slots:nz.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),Qz=be({slots:iz.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Us=Lg.variants?.variant,Zz=be({slots:rz.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:Us?.subtle},solid:{root:Us?.solid},outline:{root:Us?.outline},surface:{root:Us?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),Jz=be({slots:oz.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),eV=be({slots:az.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),tV=be({slots:Jx.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Ny=_r({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),Ay=_r({flex:"1"}),_y=_r({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),zy=_r({_selected:{layerStyle:"fill.solid"}}),nV=be({slots:wx.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Ny,item:Ny,itemText:Ay,branchText:Ay,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:_y,item:_y},solid:{branchControl:zy,item:zy}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),aV={accordion:cz,actionBar:uz,alert:dz,avatar:fz,blockquote:gz,breadcrumb:hz,card:mz,checkbox:pz,checkboxCard:vz,codeBlock:bz,collapsible:yz,dataList:Ez,dialog:Cz,drawer:Oz,editable:Tz,emptyState:kz,field:wz,fieldset:Rz,fileUpload:Nz,hoverCard:Az,list:_z,menu:zz,nativeSelect:Vz,numberInput:Iz,pinInput:Mz,popover:Pz,progress:Lz,progressCircle:Bz,radioCard:jz,radioGroup:Uz,ratingGroup:Fz,segmentGroup:Gz,select:ac,combobox:Sz,slider:Wz,stat:$z,steps:Yz,switch:Xz,table:Kz,tabs:Qz,tag:Zz,toast:eV,tooltip:tV,status:qz,timeline:Jz,colorPicker:xz,qrCode:Hz,treeView:nV},iV=DA({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),rV=at.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),oV=at.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),lV=at.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),sV=at.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),cV=at.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),uV=at.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),dV=at.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),fV=at.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),gV=at.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),hV=at.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Vy='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mV=at.fonts({heading:{value:`Inter, ${Vy}`},body:{value:`Inter, ${Vy}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),pV=VA({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),vV=at.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),bV=at.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),yV=at.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),R1=at.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),xV=at.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),SV=at.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),EV=at.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),CV=at.sizes({...xV,...R1,...EV,...SV}),OV=at.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),TV={aspectRatios:oV,animations:rV,blurs:lV,borders:sV,colors:cV,durations:dV,easings:fV,fonts:mV,fontSizes:gV,fontWeights:hV,letterSpacings:vV,lineHeights:bV,radii:yV,spacing:R1,sizes:CV,zIndex:OV,cursor:uV},kV={colors:T_,shadows:w_,radii:k_},wV="chakra",RV=":where(html, .chakra-theme)",NV=n1({preflight:!0,cssVarsPrefix:wV,cssVarsRoot:RV,globalCss:r_,theme:{breakpoints:i_,keyframes:pV,tokens:TV,semanticTokens:kV,recipes:O_,slotRecipes:aV,textStyles:iV,layerStyles:o_,animationStyles:l_}}),AV=a1(WA,NV),_V=n_(AV);function zV(e){const{key:a,recipe:i}=e,o=xc();return K.useMemo(()=>{const s=i||(a!=null?o.getSlotRecipe(a):{});return o.sva(structuredClone(s))},[a,i,o])}const VV=e=>e.charAt(0).toUpperCase()+e.slice(1),Bg=e=>{const{key:a,recipe:i}=e,o=VV(a||i.className||"Component"),[s,u]=yr({name:`${o}StylesContext`,errorMessage:`use${o}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${o}.Root />" `}),[f,g]=yr({name:`${o}ClassNameContext`,errorMessage:`use${o}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${o}.Root />" `,strict:!1}),[h,p]=yr({strict:!1,name:`${o}PropsContext`,providerName:`${o}PropsContext`,defaultValue:{}});function v(C){const{unstyled:E,...k}=C,_=zV({key:a,recipe:k.recipe||i}),[R,A]=K.useMemo(()=>_.splitVariantProps(k),[k,_]);return{styles:K.useMemo(()=>E?wO:_(R),[E,R,_]),classNames:_.classNameMap,props:A}}function S(C,E={}){const{defaultProps:k}=E,_=R=>{const A=p(),M=K.useMemo(()=>Ko(k,A,R),[A,R]),{styles:N,classNames:Y,props:U}=v(M);return H.jsx(s,{value:N,children:H.jsx(f,{value:Y,children:H.jsx(C,{...U})})})};return _.displayName=C.displayName||C.name,_}return{StylesProvider:s,ClassNamesProvider:f,PropsProvider:h,usePropsContext:p,useRecipeResult:v,withProvider:(C,E,k)=>{const{defaultProps:_,...R}=k??{},A=dn(C,{},R),M=K.forwardRef((N,Y)=>{const U=p(),j=K.useMemo(()=>Ko(_??{},U,N),[U,N]),{styles:W,props:Q,classNames:G}=v(j),P=G[E],ne=H.jsx(s,{value:W,children:H.jsx(f,{value:G,children:H.jsx(A,{ref:Y,...Q,css:[W[E],j.css],className:vn(j.className,P)})})});return k?.wrapElement?.(ne,j)??ne});return M.displayName=C.displayName||C.name,M},withContext:(C,E,k)=>{const _=dn(C,{},k),R=K.forwardRef((A,M)=>{const{unstyled:N,...Y}=A,U=u(),W=g()?.[E];return H.jsx(_,{...Y,css:[!N&&E?U[E]:void 0,A.css],ref:M,className:vn(A.className,W)})});return R.displayName=C.displayName||C.name,R},withRootProvider:S,useStyles:u,useClassNames:g}},N1=dn("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});N1.displayName="AbsoluteCenter";const IV=e=>H.jsx(dn.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:H.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Iy=e=>H.jsx(dn.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:H.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Dy=e=>H.jsx(dn.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:H.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),[DV,MV]=yr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:PV,withContext:Hg,useStyles:LV}=Bg({key:"alert"}),BV=PV("div","root",{forwardAsChild:!0,wrapElement(e,a){return H.jsx(DV,{value:{status:a.status||"info"},children:e})}}),HV=Hg("div","title"),jV=Hg("div","description"),UV=Hg("div","content"),FV={info:Dy,warning:Iy,success:IV,error:Iy,neutral:Dy},GV=K.forwardRef(function(a,i){const o=MV(),s=LV(),u=typeof o.status=="string"?FV[o.status]:K.Fragment,{children:f=H.jsx(u,{}),...g}=a;return H.jsx(dn.span,{ref:i,...g,css:[s.indicator,a.css],children:f})}),WV=e=>e?"":void 0,{withContext:$V}=rl({key:"spinner"}),qV=$V("span"),YV=K.forwardRef(function(a,i){const{spinner:o=H.jsx(qV,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:s="start",children:u,text:f,visible:g=!0,...h}=a;return g?f?H.jsxs(zs,{ref:i,display:"contents",...h,children:[s==="start"&&o,f,s==="end"&&o]}):o?H.jsxs(zs,{ref:i,display:"contents",...h,children:[H.jsx(N1,{display:"inline-flex",children:o}),H.jsx(zs,{visibility:"hidden",display:"contents",children:u})]}):H.jsx(zs,{ref:i,display:"contents",...h,children:u}):u}),{useRecipeResult:XV,usePropsContext:KV}=rl({key:"button"}),Tf=K.forwardRef(function(a,i){const o=KV(),s=K.useMemo(()=>Ko(o,a),[o,a]),u=XV(s),{loading:f,loadingText:g,children:h,spinner:p,spinnerPlacement:v,...S}=u.props;return H.jsx(dn.button,{type:"button",ref:i,...S,"data-loading":WV(f),disabled:f||S.disabled,className:vn(u.className,s.className),css:[u.styles,s.css],children:!s.asChild&&f?H.jsx(YV,{spinner:p,text:g,spinnerPlacement:v,children:h}):h})}),{withProvider:QV,withContext:gl}=Bg({key:"card"}),ZV=QV("div","root"),JV=gl("div","body");gl("div","header");gl("div","footer");gl("h3","title");gl("p","description");function eI(e){const{gap:a,direction:i}=e,o={column:{marginY:a,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:a,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:a,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:a,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":r1(i,s=>o[s])}}function tI(e){return K.Children.toArray(e).filter(a=>K.isValidElement(a))}const nI=K.forwardRef(function(a,i){const{direction:o="column",align:s,justify:u,gap:f="0.5rem",wrap:g,children:h,separator:p,className:v,...S}=a,y=K.useMemo(()=>eI({gap:f,direction:o}),[f,o]),x=K.useMemo(()=>K.isValidElement(p)?tI(h).map((C,E,k)=>{const _=typeof C.key<"u"?C.key:E,R=p,A=K.cloneElement(R,{css:[y,R.props.css]});return H.jsxs(K.Fragment,{children:[C,E===k.length-1?null:A]},_)}):h,[h,p,y]);return H.jsx(dn.div,{ref:i,display:"flex",alignItems:s,justifyContent:u,flexDirection:o,flexWrap:g,gap:p?void 0:f,className:vn("chakra-stack",v),...S,children:x})}),{withContext:aI}=rl({key:"container"}),A1=aI("div"),My=K.forwardRef(function(a,i){return H.jsx(nI,{align:"center",...a,direction:"column",ref:i})}),{withProvider:_1,withContext:hl}=Bg({key:"tabs"});_1(Zx,"root",{forwardAsChild:!0});const iI=_1(Qx,"root",{forwardAsChild:!0}),Py=hl(qx,"trigger",{forwardAsChild:!0}),Ly=hl(Gx,"content",{forwardAsChild:!0});hl("div","contentGroup");const rI=hl($x,"list",{forwardAsChild:!0});hl(Wx,"indicator",{forwardAsChild:!0});const z1=(e="chakra")=>({Container:"div",Box:"div",Button:"button",Input:"input",Textarea:"textarea",Table:"table",Thead:"thead",Tbody:"tbody",Tr:"tr",Th:"th",Td:"td",Text:"span",Heading:"h2",Stack:"div",HStack:"div",VStack:"div",Card:"div",Alert:"div",Badge:"span",Grid:"div",GridItem:"div",Flex:"div",Label:"label"}),ye=(e="chakra",a,i="default")=>{const o={tailwind:{Container:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",Box:"block",Button:{default:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",secondary:"inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},Input:{default:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",checkbox:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"},Textarea:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm resize-vertical",Table:"min-w-full divide-y divide-gray-200",Thead:"bg-gray-50",Tbody:"bg-white divide-y divide-gray-200",Tr:"hover:bg-gray-50",Th:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",Td:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",Text:"text-gray-900",Heading:"text-2xl font-bold text-gray-900 mb-4",Stack:"space-y-4",HStack:"flex space-x-4 items-center",VStack:"flex flex-col space-y-4",Card:"bg-white overflow-hidden shadow rounded-lg p-6",Alert:{error:"bg-red-50 border border-red-200 rounded-md p-4 text-red-800",success:"bg-green-50 border border-green-200 rounded-md p-4 text-green-800",warning:"bg-yellow-50 border border-yellow-200 rounded-md p-4 text-yellow-800",info:"bg-blue-50 border border-blue-200 rounded-md p-4 text-blue-800"},Badge:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800",Grid:"grid",GridItem:"",Flex:"flex",Label:"block text-sm font-medium text-gray-700"},shadcn:{Container:"container mx-auto px-4",Box:"block",Button:{default:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",secondary:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-secondary text-secondary-foreground hover:bg-secondary/80 h-10 px-4 py-2"},Input:{default:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",checkbox:"h-4 w-4 rounded border border-primary text-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"},Textarea:"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",Table:"w-full caption-bottom text-sm",Thead:"[&_tr]:border-b",Tbody:"[&_tr:last-child]:border-0",Tr:"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",Th:"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",Td:"p-4 align-middle [&:has([role=checkbox])]:pr-0",Text:"text-sm text-muted-foreground",Heading:"scroll-m-20 text-2xl font-semibold tracking-tight",Stack:"flex flex-col space-y-4",HStack:"flex space-x-4",VStack:"flex flex-col space-y-4",Card:"rounded-lg border bg-card text-card-foreground shadow-sm",Alert:{error:"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",success:"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",warning:"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",info:"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground"},Badge:"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",Grid:"grid",GridItem:"",Flex:"flex",Label:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"}};if(e==="chakra")return"";const s=o[e];if(!s||!s[a])return"";const u=s[a];return typeof u=="object"?u[i]||u.default||"":u},V1=(e,a="")=>{let i={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=a?`${a}.${o}`:o;typeof e[o]=="object"&&e[o]!==null&&!Array.isArray(e[o])?Object.assign(i,V1(e[o],s)):i[s]=e[o]}return i},By=e=>{const a={};for(let i in e){const o=i.split(".");let s=a;for(let u=0;u<o.length-1;u++)s[o[u]]||(s[o[u]]={}),s=s[o[u]];s[o[o.length-1]]=e[i]}return a},oI=e=>typeof e=="boolean"?"checkbox":typeof e=="number"?"number":typeof e=="string"&&e.includes("@")?"email":typeof e=="string"&&e.match(/^\d{4}-\d{2}-\d{2}$/)?"date":Array.isArray(e)?"array":typeof e=="object"&&e!==null?"object":"text",lI=e=>{try{return{success:!0,data:JSON.parse(e)}}catch(a){return{success:!1,error:a.message}}},I1=e=>e.split(".").pop().replace(/([A-Z])/g," $1").replace(/[_-]/g," ").replace(/\b\w/g,a=>a.toUpperCase()).trim(),sI=({uiLibrary:e="chakra",onSave:a,onCancel:i,onFieldChange:o,saveButtonText:s="Save Changes",cancelButtonText:u="Reset Form",initialJson:f="",customStyles:g={},showControls:h=!0,...p})=>{const[v,S]=K.useState(f),[y,x]=K.useState(null),[C,E]=K.useState(""),[k,_]=K.useState(null),R=z1(e),A=JSON.stringify([{id:1,name:"John Doe",email:"john@example.com",role:"Developer",salary:75e3},{id:2,name:"Jane Smith",email:"jane@example.com",role:"Designer",salary:68e3},{id:3,name:"Bob Johnson",email:"bob@example.com",role:"Manager",salary:85e3},{id:4,name:"Alice Brown",email:"alice@example.com",role:"Developer",salary:72e3}],null,2);K.useEffect(()=>{f&&(S(f),M(f))},[f]);const M=(G=v)=>{if(E(""),x(null),!G.trim()){E("Please enter some JSON data");return}try{const P=JSON.parse(G);if(Array.isArray(P)){if(P.length===0){E("The JSON array is empty");return}x(P),_([...P])}else if(typeof P=="object"&&P!==null){const ne=[P];x(ne),_([...ne])}else{E("JSON must be an object or array of objects");return}}catch(P){E(`Invalid JSON: ${P.message}`)}},N=(G,P,ne)=>{const re=[...k];re[G][P]=ne,_(re),o&&o(P,ne,re)},Y=()=>{if(a&&k){const G=k.map(P=>({...P}));a(k,G)}},U=()=>{y&&_([...y]),i&&i()},j=()=>{S(A),M(A)},W=()=>{if(!y||y.length===0)return[];const G=new Set;return y.forEach(P=>{Object.keys(P).forEach(ne=>G.add(ne))}),Array.from(G)},Q=()=>{if(!k||k.length===0)return null;const G=W();return H.jsx(R.Box,{className:ye(e,"Box"),style:{overflowX:"auto",...g.tableContainer},children:H.jsxs(R.Table,{className:ye(e,"Table"),style:g.table,children:[H.jsx(R.Thead,{className:ye(e,"Thead"),children:H.jsx(R.Tr,{className:ye(e,"Tr"),children:G.map(P=>H.jsx(R.Th,{className:ye(e,"Th"),style:g.th,children:I1(P)},P))})}),H.jsx(R.Tbody,{className:ye(e,"Tbody"),children:k.map((P,ne)=>H.jsx(R.Tr,{className:ye(e,"Tr"),children:G.map(re=>H.jsx(R.Td,{className:ye(e,"Td"),style:g.td,children:H.jsx(R.Input,{type:"text",value:P[re]||"",onChange:le=>N(ne,re,le.target.value),className:ye(e,"Input"),style:{border:"none",background:"transparent",...g.input}})},re))},ne))})]})})};return H.jsx(R.Container,{className:ye(e,"Container"),style:g.container,...p,children:H.jsxs(R.VStack,{className:ye(e,"VStack"),style:{gap:"1rem",...g.stack},children:[H.jsx(R.Heading,{className:ye(e,"Heading"),style:g.heading,children:"JSON to Table Converter"}),H.jsx(R.Box,{className:ye(e,"Box"),style:{width:"100%",...g.inputContainer},children:H.jsx(R.Textarea,{value:v,onChange:G=>S(G.target.value),placeholder:"Paste your JSON data here...",className:ye(e,"Textarea"),style:{minHeight:"150px",fontFamily:"monospace",...g.textarea}})}),H.jsxs(R.HStack,{className:ye(e,"HStack"),style:{gap:"0.5rem",...g.buttonGroup},children:[H.jsx(R.Button,{onClick:()=>M(),className:ye(e,"Button","default"),style:g.button,children:"Generate Table"}),H.jsx(R.Button,{onClick:j,className:ye(e,"Button","secondary"),style:g.secondaryButton,children:"Load Sample"})]}),C&&H.jsx(R.Alert,{className:ye(e,"Alert","error"),style:g.alert,children:H.jsx(R.Text,{style:g.errorText,children:C})}),Q(),h&&k&&H.jsxs(R.HStack,{className:ye(e,"HStack"),style:{gap:"0.5rem",marginTop:"1rem",...g.controlButtons},children:[H.jsx(R.Button,{onClick:Y,className:ye(e,"Button","default"),style:g.saveButton,children:s}),H.jsx(R.Button,{onClick:U,className:ye(e,"Button","secondary"),style:g.cancelButton,children:u})]})]})})},cI=({uiLibrary:e="chakra",onSave:a,onCancel:i,onFieldChange:o,saveButtonText:s="Save Changes",cancelButtonText:u="Reset Form",initialJson:f="",customStyles:g={},showControls:h=!0,showJsonInput:p=!0,...v})=>{const[S,y]=K.useState(f),[x,C]=K.useState({}),[E,k]=K.useState({}),[,_]=K.useState(null),[R,A]=K.useState(""),M=z1(e),N=JSON.stringify({user:{name:"John Doe",email:"john@example.com",age:30,isActive:!0,preferences:{theme:"dark",notifications:!0}},settings:{language:"en",timezone:"UTC"}},null,2);K.useEffect(()=>{f&&(y(f),Y(f))},[f]);const Y=(P=S)=>{const ne=lI(P);if(ne.success){_(ne.data);const re=V1(ne.data);C(re),k({...re}),A("")}else A(ne.error),_(null),C({}),k({})},U=(P,ne)=>{const re={...x,[P]:ne};if(C(re),o){const le=By(re);o(P,ne,le)}},j=()=>{if(a){const P=By(x);a(P,x)}},W=()=>{C({...E}),i&&i()},Q=()=>{y(N),Y(N)},G=(P,ne)=>{const re=oI(ne),le=I1(P);return re==="checkbox"?H.jsx(M.Box,{className:ye(e,"Box"),style:{marginBottom:"1rem",...g.fieldContainer},children:H.jsxs(M.Label,{className:ye(e,"Label"),style:{display:"flex",alignItems:"center",gap:"0.5rem",cursor:"pointer",...g.label},children:[H.jsx("input",{type:"checkbox",checked:x[P]||!1,onChange:D=>U(P,D.target.checked),className:ye(e,"Input","checkbox"),style:g.checkbox}),H.jsx(M.Text,{className:ye(e,"Text"),style:{fontWeight:"500",...g.fieldLabel},children:le})]})},P):re==="array"||re==="object"?H.jsxs(M.Box,{className:ye(e,"Box"),style:{marginBottom:"1rem",...g.fieldContainer},children:[H.jsx(M.Label,{className:ye(e,"Label"),style:{display:"block",fontWeight:"600",marginBottom:"0.5rem",...g.fieldLabel},children:le}),H.jsx(M.Textarea,{value:JSON.stringify(ne,null,2),onChange:D=>{try{const J=JSON.parse(D.target.value);U(P,J)}catch{U(P,D.target.value)}},className:ye(e,"Textarea"),style:{fontFamily:"monospace",minHeight:"100px",width:"100%",...g.textarea}})]},P):H.jsxs(M.Box,{className:ye(e,"Box"),style:{marginBottom:"1rem",...g.fieldContainer},children:[H.jsx(M.Label,{className:ye(e,"Label"),style:{display:"block",fontWeight:"600",marginBottom:"0.5rem",...g.fieldLabel},children:le}),H.jsx(M.Input,{type:re,value:x[P]||"",onChange:D=>{const J=re==="number"?parseFloat(D.target.value)||0:D.target.value;U(P,J)},className:ye(e,"Input"),style:{width:"100%",...g.input}})]},P)};return H.jsx(M.Container,{className:ye(e,"Container"),style:g.container,...v,children:H.jsxs(M.VStack,{className:ye(e,"VStack"),style:{gap:"1rem",...g.stack},children:[H.jsx(M.Heading,{className:ye(e,"Heading"),style:g.heading,children:"JSON to Form Fields"}),p&&H.jsxs(H.Fragment,{children:[H.jsx(M.Box,{className:ye(e,"Box"),style:{width:"100%",...g.inputContainer},children:H.jsx(M.Textarea,{value:S,onChange:P=>y(P.target.value),placeholder:"Paste your JSON data here...",className:ye(e,"Textarea"),style:{minHeight:"150px",fontFamily:"monospace",...g.textarea}})}),H.jsxs(M.HStack,{className:ye(e,"HStack"),style:{gap:"0.5rem",...g.buttonGroup},children:[H.jsx(M.Button,{onClick:()=>Y(),className:ye(e,"Button","default"),style:g.button,children:"Generate Form"}),H.jsx(M.Button,{onClick:Q,className:ye(e,"Button","secondary"),style:g.secondaryButton,children:"Load Sample"})]})]}),R&&H.jsx(M.Alert,{className:ye(e,"Alert","error"),style:g.alert,children:H.jsx(M.Text,{style:g.errorText,children:R})}),Object.keys(x).length>0&&H.jsx(M.Card,{className:ye(e,"Card"),style:{width:"100%",padding:"1rem",...g.formCard},children:H.jsx(M.VStack,{className:ye(e,"VStack"),style:{gap:"1rem",...g.formStack},children:Object.entries(x).map(([P,ne])=>G(P,ne))})}),h&&Object.keys(x).length>0&&H.jsxs(M.HStack,{className:ye(e,"HStack"),style:{gap:"0.5rem",marginTop:"1rem",...g.controlButtons},children:[H.jsx(M.Button,{onClick:j,className:ye(e,"Button","default"),style:g.saveButton,children:s}),H.jsx(M.Button,{onClick:W,className:ye(e,"Button","secondary"),style:g.cancelButton,children:u})]})]})})},D1="json_tools_",M1=()=>{try{const e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}},uI=(e,a=null)=>{if(!M1())return a;try{const i=localStorage.getItem(D1+e);return i?JSON.parse(i):a}catch(i){return console.error("Error reading from localStorage:",i),a}},dI=(e,a)=>{if(!M1())return!1;try{return localStorage.setItem(D1+e,JSON.stringify(a)),!0}catch(i){return console.error("Error writing to localStorage:",i),!1}},Hy={TAB_PREFERENCE:"tab_preference"};function fI(){const[e,a]=K.useState(()=>uI(Hy.TAB_PREFERENCE,"table"));K.useEffect(()=>{dI(Hy.TAB_PREFERENCE,e)},[e]);const i={container:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",borderRadius:"20px",padding:"2rem",boxShadow:"0 20px 40px rgba(0,0,0,0.1)",border:"1px solid rgba(255,255,255,0.1)"},heading:{color:"white",textAlign:"center",marginBottom:"1.5rem",textShadow:"0 2px 4px rgba(0,0,0,0.3)"},inputContainer:{background:"rgba(255,255,255,0.95)",borderRadius:"15px",padding:"1.5rem",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",backdropFilter:"blur(10px)"},textarea:{borderRadius:"10px",border:"2px solid transparent",background:"white",fontSize:"14px",transition:"all 0.3s ease",_focus:{borderColor:"#667eea",boxShadow:"0 0 0 3px rgba(102, 126, 234, 0.1)"}},buttonGroup:{justifyContent:"center",gap:"1rem"},button:{background:"linear-gradient(45deg, #667eea, #764ba2)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(102, 126, 234, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(102, 126, 234, 0.6)"}},secondaryButton:{background:"rgba(255,255,255,0.2)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"2px solid rgba(255,255,255,0.3)",backdropFilter:"blur(10px)",transition:"all 0.3s ease",_hover:{background:"rgba(255,255,255,0.3)",transform:"translateY(-2px)"}},tableContainer:{background:"rgba(255,255,255,0.95)",borderRadius:"15px",padding:"1.5rem",marginTop:"1.5rem",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",backdropFilter:"blur(10px)"},table:{borderRadius:"10px",overflow:"hidden"},th:{background:"linear-gradient(45deg, #667eea, #764ba2)",color:"white",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.5px",padding:"1rem"},td:{padding:"0.75rem 1rem",borderBottom:"1px solid #e2e8f0"},input:{border:"none",background:"transparent",fontSize:"14px",_focus:{outline:"none",background:"#f7fafc",borderRadius:"4px"}},controlButtons:{justifyContent:"center",gap:"1rem",marginTop:"1.5rem"},saveButton:{background:"linear-gradient(45deg, #48bb78, #38a169)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(72, 187, 120, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(72, 187, 120, 0.6)"}},cancelButton:{background:"linear-gradient(45deg, #ed8936, #dd6b20)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(237, 137, 54, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(237, 137, 54, 0.6)"}}},o={container:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",borderRadius:"20px",padding:"2rem",boxShadow:"0 20px 40px rgba(0,0,0,0.1)",border:"1px solid rgba(255,255,255,0.1)"},heading:{color:"white",textAlign:"center",marginBottom:"1.5rem",textShadow:"0 2px 4px rgba(0,0,0,0.3)"},inputContainer:{background:"rgba(255,255,255,0.95)",borderRadius:"15px",padding:"1.5rem",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",backdropFilter:"blur(10px)"},formCard:{background:"rgba(255,255,255,0.95)",borderRadius:"15px",padding:"2rem",marginTop:"1.5rem",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.2)"},fieldContainer:{marginBottom:"1.5rem"},fieldLabel:{color:"#2d3748",fontWeight:"600",marginBottom:"0.5rem",fontSize:"14px",textTransform:"uppercase",letterSpacing:"0.5px"},input:{borderRadius:"10px",border:"2px solid #e2e8f0",padding:"0.75rem 1rem",fontSize:"14px",transition:"all 0.3s ease",_focus:{borderColor:"#f5576c",boxShadow:"0 0 0 3px rgba(245, 87, 108, 0.1)",outline:"none"}},textarea:{borderRadius:"10px",border:"2px solid #e2e8f0",padding:"0.75rem 1rem",fontSize:"14px",transition:"all 0.3s ease",_focus:{borderColor:"#f5576c",boxShadow:"0 0 0 3px rgba(245, 87, 108, 0.1)",outline:"none"}},checkbox:{width:"18px",height:"18px",accentColor:"#f5576c"},label:{cursor:"pointer",alignItems:"center",gap:"0.75rem"},button:{background:"linear-gradient(45deg, #f093fb, #f5576c)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(240, 147, 251, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(240, 147, 251, 0.6)"}},secondaryButton:{background:"rgba(255,255,255,0.2)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"2px solid rgba(255,255,255,0.3)",backdropFilter:"blur(10px)",transition:"all 0.3s ease",_hover:{background:"rgba(255,255,255,0.3)",transform:"translateY(-2px)"}},saveButton:{background:"linear-gradient(45deg, #48bb78, #38a169)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(72, 187, 120, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(72, 187, 120, 0.6)"}},cancelButton:{background:"linear-gradient(45deg, #ed8936, #dd6b20)",color:"white",borderRadius:"25px",padding:"0.75rem 2rem",fontWeight:"600",border:"none",boxShadow:"0 4px 15px rgba(237, 137, 54, 0.4)",transition:"all 0.3s ease",_hover:{transform:"translateY(-2px)",boxShadow:"0 6px 20px rgba(237, 137, 54, 0.6)"}}};return H.jsx(rg,{minH:"100vh",bg:"gray.50",_dark:{bg:"gray.900"},children:H.jsx(A1,{maxW:"8xl",py:4,children:H.jsxs(iI,{value:e,onValueChange:s=>a(s.value),variant:"enclosed",children:[H.jsxs(rI,{children:[H.jsxs(Py,{value:"table",children:[H.jsx(pr,{fontSize:"lg",children:"📊"}),H.jsx(pr,{ml:2,children:"JSON to Table"})]}),H.jsxs(Py,{value:"fields",children:[H.jsx(pr,{fontSize:"lg",children:"📝"}),H.jsx(pr,{ml:2,children:"JSON to Form Fields"})]})]}),H.jsx(Ly,{value:"table",children:H.jsx(sI,{uiLibrary:"chakra",customStyles:i,onSave:(s,u)=>{console.log("Table data saved:",s),alert("✅ Table data saved successfully!")},onCancel:()=>{console.log("Table editing cancelled"),alert("❌ Changes cancelled")},onFieldChange:(s,u,f)=>{console.log(`Field ${s} changed to:`,u)},saveButtonText:"💾 Save Table",cancelButtonText:"🔄 Reset Table"})}),H.jsx(Ly,{value:"fields",children:H.jsx(cI,{uiLibrary:"chakra",customStyles:o,onSave:(s,u)=>{console.log("Form data saved:",s),alert("✅ Form data saved successfully!")},onCancel:()=>{console.log("Form cancelled"),alert("❌ Form reset to original values")},onFieldChange:(s,u,f)=>{console.log(`Field ${s} changed to:`,u)},saveButtonText:"💾 Save Form",cancelButtonText:"🔄 Reset Form"})})]})})})}class gI extends Uy.Component{constructor(a){super(a),this.state={hasError:!1,error:null,errorInfo:null,errorCount:0}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,i){this.setState(o=>({error:a,errorInfo:i,errorCount:o.errorCount+1}))}logErrorToService=(a,i)=>{const o={message:a.toString(),stack:a.stack,componentStack:i.componentStack,timestamp:new Date().toISOString(),userAgent:navigator.userAgent,url:window.location.href};console.log("Would send to error service:",o)};handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null}),this.state.errorCount>2&&window.location.reload()};render(){return this.state.hasError?H.jsx(A1,{maxW:"2xl",py:16,children:H.jsx(ZV,{children:H.jsx(JV,{children:H.jsxs(My,{gap:6,align:"stretch",children:[H.jsxs(BV,{status:"error",children:[H.jsx(GV,{}),H.jsxs(UV,{children:[H.jsx(HV,{children:"Oops! Something went wrong"}),H.jsx(jV,{children:"We've encountered an unexpected error. Please try refreshing the page."})]})]}),H.jsxs(rg,{children:[H.jsx(kT,{size:"lg",mb:3,children:"😔 Application Error"}),H.jsx(pr,{color:"fg.muted",mb:4,children:"Don't worry, your data is safe. This error has been logged and we'll look into it."})]}),!1,H.jsxs(My,{gap:3,children:[H.jsx(Tf,{colorPalette:"blue",onClick:this.handleReset,width:"full",children:"Try Again"}),H.jsx(Tf,{variant:"outline",onClick:()=>window.location.href="/",width:"full",children:"Go to Home"}),this.state.errorCount>1&&H.jsxs(Tf,{variant:"ghost",colorPalette:"red",onClick:()=>window.location.reload(),width:"full",children:["Reload Page (Error #",this.state.errorCount,")"]})]}),H.jsx(pr,{fontSize:"sm",color:"fg.muted",textAlign:"center",children:"If this problem persists, please contact support with the error details above."})]})})})}):this.props.children}}uC.createRoot(document.getElementById("root")).render(H.jsx(dO,{value:_V,children:H.jsx(gI,{children:H.jsx(fI,{})})}));