@owodesign/owoui 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +23 -9
  2. package/dist/index.css +4 -0
  3. package/dist/index.d.ts +40 -20
  4. package/dist/index.min.js +1 -1
  5. package/{src → dist}/preset-default.css +5 -2
  6. package/{src → dist}/preset-elevated.css +5 -2
  7. package/{src → dist}/preset-flat.css +5 -2
  8. package/{src → dist}/preset-glass.css +5 -2
  9. package/dist/storybook/index.css +4 -0
  10. package/dist/storybook/index.min.js +87 -14
  11. package/dist/storybook-static/app.css +402 -4054
  12. package/dist/storybook-static/assets/main.css +1 -2
  13. package/dist/storybook-static/assets/main.js +93 -21
  14. package/dist/style.css +355 -0
  15. package/{src → dist}/theme-dark.css +5 -5
  16. package/{src → dist}/theme-light.css +5 -6
  17. package/{src/styles → dist}/tokens.css +44 -97
  18. package/dist/tokens.d.ts +6 -3
  19. package/dist/tokens.min.js +1 -1
  20. package/package.json +39 -34
  21. package/src/style.css +0 -22
  22. package/src/styles/ui/avatar.css +0 -13
  23. package/src/styles/ui/badge.css +0 -52
  24. package/src/styles/ui/button.css +0 -49
  25. package/src/styles/ui/collapsible.css +0 -13
  26. package/src/styles/ui/dialog.css +0 -37
  27. package/src/styles/ui/drawer.css +0 -15
  28. package/src/styles/ui/dropdown-menu.css +0 -132
  29. package/src/styles/ui/field.css +0 -12
  30. package/src/styles/ui/icon-button.css +0 -29
  31. package/src/styles/ui/input.css +0 -16
  32. package/src/styles/ui/panel.css +0 -23
  33. package/src/styles/ui/segmented-control.css +0 -28
  34. package/src/styles/ui/select.css +0 -52
  35. package/src/styles/ui/skeleton.css +0 -99
  36. package/src/styles/ui/status-notice.css +0 -49
  37. package/src/styles/ui/switch.css +0 -17
  38. package/src/styles/ui/tabs.css +0 -33
  39. package/src/styles/ui/textarea.css +0 -8
  40. package/src/styles/ui/toast.css +0 -57
  41. package/src/styles/ui/tooltip.css +0 -31
  42. package/src/tokens.css +0 -1
@@ -1,16 +1,89 @@
1
- var Bv=Object.create;var wp=Object.defineProperty;var Nv=Object.getOwnPropertyDescriptor;var Rv=Object.getOwnPropertyNames;var zv=Object.getPrototypeOf,Ov=Object.prototype.hasOwnProperty;var Mt=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Ev=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of Rv(a))!Ov.call(e,r)&&r!==t&&wp(e,r,{get:()=>a[r],enumerable:!(o=Nv(a,r))||o.enumerable});return e};var y=(e,a,t)=>(t=e!=null?Bv(zv(e)):{},Ev(a||!e||!e.__esModule?wp(t,"default",{value:e,enumerable:!0}):t,e));var Ap=Mt(U=>{"use strict";var ec=Symbol.for("react.transitional.element"),Hv=Symbol.for("react.portal"),Pv=Symbol.for("react.fragment"),Uv=Symbol.for("react.strict_mode"),qv=Symbol.for("react.profiler"),_v=Symbol.for("react.consumer"),Fv=Symbol.for("react.context"),Gv=Symbol.for("react.forward_ref"),Vv=Symbol.for("react.suspense"),Xv=Symbol.for("react.memo"),Lp=Symbol.for("react.lazy"),Zv=Symbol.for("react.activity"),bp=Symbol.iterator;function Yv(e){return e===null||typeof e!="object"?null:(e=bp&&e[bp]||e["@@iterator"],typeof e=="function"?e:null)}var Sp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cp=Object.assign,Ip={};function es(e,a,t){this.props=e,this.context=a,this.refs=Ip,this.updater=t||Sp}es.prototype.isReactComponent={};es.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,a,"setState")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kp(){}kp.prototype=es.prototype;function ac(e,a,t){this.props=e,this.context=a,this.refs=Ip,this.updater=t||Sp}var tc=ac.prototype=new kp;tc.constructor=ac;Cp(tc,es.prototype);tc.isPureReactComponent=!0;var vp=Array.isArray;function $u(){}var Se={H:null,A:null,T:null,S:null},Tp=Object.prototype.hasOwnProperty;function oc(e,a,t){var o=t.ref;return{$$typeof:ec,type:e,key:a,ref:o!==void 0?o:null,props:t}}function jv(e,a){return oc(e.type,a,e.props)}function rc(e){return typeof e=="object"&&e!==null&&e.$$typeof===ec}function Qv(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var xp=/\/+/g;function Ju(e,a){return typeof e=="object"&&e!==null&&e.key!=null?Qv(""+e.key):a.toString(36)}function Kv(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then($u,$u):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function $r(e,a,t,o,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ec:case Hv:l=!0;break;case Lp:return l=e._init,$r(l(e._payload),a,t,o,r)}}if(l)return r=r(e),l=o===""?"."+Ju(e,0):o,vp(r)?(t="",l!=null&&(t=l.replace(xp,"$&/")+"/"),$r(r,a,t,"",function(u){return u})):r!=null&&(rc(r)&&(r=jv(r,t+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(xp,"$&/")+"/")+l)),a.push(r)),1;l=0;var n=o===""?".":o+":";if(vp(e))for(var i=0;i<e.length;i++)o=e[i],s=n+Ju(o,i),l+=$r(o,a,t,s,r);else if(i=Yv(e),typeof i=="function")for(e=i.call(e),i=0;!(o=e.next()).done;)o=o.value,s=n+Ju(o,i++),l+=$r(o,a,t,s,r);else if(s==="object"){if(typeof e.then=="function")return $r(Kv(e),a,t,o,r);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return l}function Kn(e,a,t){if(e==null)return e;var o=[],r=0;return $r(e,o,"","",function(s){return a.call(t,s,r++)}),o}function Wv(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var yp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jv={map:Kn,forEach:function(e,a,t){Kn(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return Kn(e,function(){a++}),a},toArray:function(e){return Kn(e,function(a){return a})||[]},only:function(e){if(!rc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=Zv;U.Children=Jv;U.Component=es;U.Fragment=Pv;U.Profiler=qv;U.PureComponent=ac;U.StrictMode=Uv;U.Suspense=Vv;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Se;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Se.H.useMemoCache(e)}};U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,a,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Cp({},e.props),r=e.key;if(a!=null)for(s in a.key!==void 0&&(r=""+a.key),a)!Tp.call(a,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&a.ref===void 0||(o[s]=a[s]);var s=arguments.length-2;if(s===1)o.children=t;else if(1<s){for(var l=Array(s),n=0;n<s;n++)l[n]=arguments[n+2];o.children=l}return oc(e.type,r,o)};U.createContext=function(e){return e={$$typeof:Fv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:_v,_context:e},e};U.createElement=function(e,a,t){var o,r={},s=null;if(a!=null)for(o in a.key!==void 0&&(s=""+a.key),a)Tp.call(a,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=a[o]);var l=arguments.length-2;if(l===1)r.children=t;else if(1<l){for(var n=Array(l),i=0;i<l;i++)n[i]=arguments[i+2];r.children=n}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)r[o]===void 0&&(r[o]=l[o]);return oc(e,s,r)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Gv,render:e}};U.isValidElement=rc;U.lazy=function(e){return{$$typeof:Lp,_payload:{_status:-1,_result:e},_init:Wv}};U.memo=function(e,a){return{$$typeof:Xv,type:e,compare:a===void 0?null:a}};U.startTransition=function(e){var a=Se.T,t={};Se.T=t;try{var o=e(),r=Se.S;r!==null&&r(t,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then($u,yp)}catch(s){yp(s)}finally{a!==null&&t.types!==null&&(a.types=t.types),Se.T=a}};U.unstable_useCacheRefresh=function(){return Se.H.useCacheRefresh()};U.use=function(e){return Se.H.use(e)};U.useActionState=function(e,a,t){return Se.H.useActionState(e,a,t)};U.useCallback=function(e,a){return Se.H.useCallback(e,a)};U.useContext=function(e){return Se.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,a){return Se.H.useDeferredValue(e,a)};U.useEffect=function(e,a){return Se.H.useEffect(e,a)};U.useEffectEvent=function(e){return Se.H.useEffectEvent(e)};U.useId=function(){return Se.H.useId()};U.useImperativeHandle=function(e,a,t){return Se.H.useImperativeHandle(e,a,t)};U.useInsertionEffect=function(e,a){return Se.H.useInsertionEffect(e,a)};U.useLayoutEffect=function(e,a){return Se.H.useLayoutEffect(e,a)};U.useMemo=function(e,a){return Se.H.useMemo(e,a)};U.useOptimistic=function(e,a){return Se.H.useOptimistic(e,a)};U.useReducer=function(e,a,t){return Se.H.useReducer(e,a,t)};U.useRef=function(e){return Se.H.useRef(e)};U.useState=function(e){return Se.H.useState(e)};U.useSyncExternalStore=function(e,a,t){return Se.H.useSyncExternalStore(e,a,t)};U.useTransition=function(){return Se.H.useTransition()};U.version="19.2.4"});var de=Mt((_S,Mp)=>{"use strict";Mp.exports=Ap()});var Up=Mt(Me=>{"use strict";function ic(e,a){var t=e.length;e.push(a);e:for(;0<t;){var o=t-1>>>1,r=e[o];if(0<Wn(r,a))e[o]=a,e[t]=r,t=o;else break e}}function Dt(e){return e.length===0?null:e[0]}function $n(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var o=0,r=e.length,s=r>>>1;o<s;){var l=2*(o+1)-1,n=e[l],i=l+1,u=e[i];if(0>Wn(n,t))i<r&&0>Wn(u,n)?(e[o]=u,e[i]=t,o=i):(e[o]=n,e[l]=t,o=l);else if(i<r&&0>Wn(u,t))e[o]=u,e[i]=t,o=i;else break e}}return a}function Wn(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}Me.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Dp=performance,Me.unstable_now=function(){return Dp.now()}):(sc=Date,Bp=sc.now(),Me.unstable_now=function(){return sc.now()-Bp});var Dp,sc,Bp,Xt=[],xo=[],$v=1,at=null,wa=3,uc=!1,il=!1,ul=!1,cc=!1,zp=typeof setTimeout=="function"?setTimeout:null,Op=typeof clearTimeout=="function"?clearTimeout:null,Np=typeof setImmediate<"u"?setImmediate:null;function Jn(e){for(var a=Dt(xo);a!==null;){if(a.callback===null)$n(xo);else if(a.startTime<=e)$n(xo),a.sortIndex=a.expirationTime,ic(Xt,a);else break;a=Dt(xo)}}function dc(e){if(ul=!1,Jn(e),!il)if(Dt(Xt)!==null)il=!0,ts||(ts=!0,as());else{var a=Dt(xo);a!==null&&fc(dc,a.startTime-e)}}var ts=!1,cl=-1,Ep=5,Hp=-1;function Pp(){return cc?!0:!(Me.unstable_now()-Hp<Ep)}function lc(){if(cc=!1,ts){var e=Me.unstable_now();Hp=e;var a=!0;try{e:{il=!1,ul&&(ul=!1,Op(cl),cl=-1),uc=!0;var t=wa;try{a:{for(Jn(e),at=Dt(Xt);at!==null&&!(at.expirationTime>e&&Pp());){var o=at.callback;if(typeof o=="function"){at.callback=null,wa=at.priorityLevel;var r=o(at.expirationTime<=e);if(e=Me.unstable_now(),typeof r=="function"){at.callback=r,Jn(e),a=!0;break a}at===Dt(Xt)&&$n(Xt),Jn(e)}else $n(Xt);at=Dt(Xt)}if(at!==null)a=!0;else{var s=Dt(xo);s!==null&&fc(dc,s.startTime-e),a=!1}}break e}finally{at=null,wa=t,uc=!1}a=void 0}}finally{a?as():ts=!1}}}var as;typeof Np=="function"?as=function(){Np(lc)}:typeof MessageChannel<"u"?(nc=new MessageChannel,Rp=nc.port2,nc.port1.onmessage=lc,as=function(){Rp.postMessage(null)}):as=function(){zp(lc,0)};var nc,Rp;function fc(e,a){cl=zp(function(){e(Me.unstable_now())},a)}Me.unstable_IdlePriority=5;Me.unstable_ImmediatePriority=1;Me.unstable_LowPriority=4;Me.unstable_NormalPriority=3;Me.unstable_Profiling=null;Me.unstable_UserBlockingPriority=2;Me.unstable_cancelCallback=function(e){e.callback=null};Me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ep=0<e?Math.floor(1e3/e):5};Me.unstable_getCurrentPriorityLevel=function(){return wa};Me.unstable_next=function(e){switch(wa){case 1:case 2:case 3:var a=3;break;default:a=wa}var t=wa;wa=a;try{return e()}finally{wa=t}};Me.unstable_requestPaint=function(){cc=!0};Me.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=wa;wa=e;try{return a()}finally{wa=t}};Me.unstable_scheduleCallback=function(e,a,t){var o=Me.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?o+t:o):t=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=t+r,e={id:$v++,callback:a,priorityLevel:e,startTime:t,expirationTime:r,sortIndex:-1},t>o?(e.sortIndex=t,ic(xo,e),Dt(Xt)===null&&e===Dt(xo)&&(ul?(Op(cl),cl=-1):ul=!0,fc(dc,t-o))):(e.sortIndex=r,ic(Xt,e),il||uc||(il=!0,ts||(ts=!0,as()))),e};Me.unstable_shouldYield=Pp;Me.unstable_wrapCallback=function(e){var a=wa;return function(){var t=wa;wa=a;try{return e.apply(this,arguments)}finally{wa=t}}}});var _p=Mt((GS,qp)=>{"use strict";qp.exports=Up()});var Gp=Mt(ya=>{"use strict";var ex=de();function Fp(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function yo(){}var xa={d:{f:yo,r:function(){throw Error(Fp(522))},D:yo,C:yo,L:yo,m:yo,X:yo,S:yo,M:yo},p:0,findDOMNode:null},ax=Symbol.for("react.portal");function tx(e,a,t){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ax,key:o==null?null:""+o,children:e,containerInfo:a,implementation:t}}var dl=ex.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ei(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}ya.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xa;ya.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(Fp(299));return tx(e,a,null,t)};ya.flushSync=function(e){var a=dl.T,t=xa.p;try{if(dl.T=null,xa.p=2,e)return e()}finally{dl.T=a,xa.p=t,xa.d.f()}};ya.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,xa.d.C(e,a))};ya.prefetchDNS=function(e){typeof e=="string"&&xa.d.D(e)};ya.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var t=a.as,o=ei(t,a.crossOrigin),r=typeof a.integrity=="string"?a.integrity:void 0,s=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;t==="style"?xa.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:s}):t==="script"&&xa.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:s,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};ya.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var t=ei(a.as,a.crossOrigin);xa.d.M(e,{crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&xa.d.M(e)};ya.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var t=a.as,o=ei(t,a.crossOrigin);xa.d.L(e,t,{crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};ya.preloadModule=function(e,a){if(typeof e=="string")if(a){var t=ei(a.as,a.crossOrigin);xa.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else xa.d.m(e)};ya.requestFormReset=function(e){xa.d.r(e)};ya.unstable_batchedUpdates=function(e,a){return e(a)};ya.useFormState=function(e,a,t){return dl.H.useFormState(e,a,t)};ya.useFormStatus=function(){return dl.H.useHostTransitionStatus()};ya.version="19.2.4"});var ai=Mt((XS,Xp)=>{"use strict";function Vp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vp)}catch(e){console.error(e)}}Vp(),Xp.exports=Gp()});var ob=Mt(ku=>{"use strict";var We=_p(),wg=de(),ox=ai();function L(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function bg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wl(e){var a=e,t=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(t=a.return),e=a.return;while(e)}return a.tag===3?t:null}function vg(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function xg(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function Zp(e){if(Wl(e)!==e)throw Error(L(188))}function rx(e){var a=e.alternate;if(!a){if(a=Wl(e),a===null)throw Error(L(188));return a!==e?null:e}for(var t=e,o=a;;){var r=t.return;if(r===null)break;var s=r.alternate;if(s===null){if(o=r.return,o!==null){t=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===t)return Zp(r),e;if(s===o)return Zp(r),a;s=s.sibling}throw Error(L(188))}if(t.return!==o.return)t=r,o=s;else{for(var l=!1,n=r.child;n;){if(n===t){l=!0,t=r,o=s;break}if(n===o){l=!0,o=r,t=s;break}n=n.sibling}if(!l){for(n=s.child;n;){if(n===t){l=!0,t=s,o=r;break}if(n===o){l=!0,o=s,t=r;break}n=n.sibling}if(!l)throw Error(L(189))}}if(t.alternate!==o)throw Error(L(190))}if(t.tag!==3)throw Error(L(188));return t.stateNode.current===t?e:a}function yg(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=yg(e),a!==null)return a;e=e.sibling}return null}var ke=Object.assign,sx=Symbol.for("react.element"),ti=Symbol.for("react.transitional.element"),vl=Symbol.for("react.portal"),is=Symbol.for("react.fragment"),Lg=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Sg=Symbol.for("react.consumer"),$t=Symbol.for("react.context"),_d=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),jc=Symbol.for("react.suspense_list"),Fd=Symbol.for("react.memo"),Lo=Symbol.for("react.lazy"),Qc=Symbol.for("react.activity"),lx=Symbol.for("react.memo_cache_sentinel"),Yp=Symbol.iterator;function fl(e){return e===null||typeof e!="object"?null:(e=Yp&&e[Yp]||e["@@iterator"],typeof e=="function"?e:null)}var nx=Symbol.for("react.client.reference");function Kc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nx?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case is:return"Fragment";case Zc:return"Profiler";case Lg:return"StrictMode";case Yc:return"Suspense";case jc:return"SuspenseList";case Qc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vl:return"Portal";case $t:return e.displayName||"Context";case Sg:return(e._context.displayName||"Context")+".Consumer";case _d:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fd:return a=e.displayName||null,a!==null?a:Kc(e.type)||"Memo";case Lo:a=e._payload,e=e._init;try{return Kc(e(a))}catch{}}return null}var xl=Array.isArray,H=wg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=ox.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vr={pending:!1,data:null,method:null,action:null},Wc=[],us=-1;function Ot(e){return{current:e}}function oa(e){0>us||(e.current=Wc[us],Wc[us]=null,us--)}function ve(e,a){us++,Wc[us]=e.current,e.current=a}var zt=Ot(null),Hl=Ot(null),Ro=Ot(null),Oi=Ot(null);function Ei(e,a){switch(ve(Ro,a),ve(Hl,e),ve(zt,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?eg(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=eg(a),e=Gw(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oa(zt),ve(zt,e)}function Ts(){oa(zt),oa(Hl),oa(Ro)}function Jc(e){e.memoizedState!==null&&ve(Oi,e);var a=zt.current,t=Gw(a,e.type);a!==t&&(ve(Hl,e),ve(zt,t))}function Hi(e){Hl.current===e&&(oa(zt),oa(Hl)),Oi.current===e&&(oa(Oi),jl._currentValue=vr)}var pc,jp;function gr(e){if(pc===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);pc=a&&a[1]||"",jp=-1<t.stack.indexOf(`
1
+ var mw=Object.create;var Xm=Object.defineProperty;var pw=Object.getOwnPropertyDescriptor;var gw=Object.getOwnPropertyNames;var hw=Object.getPrototypeOf,bw=Object.prototype.hasOwnProperty;var Jt=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var vw=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of gw(a))!bw.call(e,r)&&r!==t&&Xm(e,r,{get:()=>a[r],enumerable:!(o=pw(a,r))||o.enumerable});return e};var y=(e,a,t)=>(t=e!=null?mw(hw(e)):{},vw(a||!e||!e.__esModule?Xm(t,"default",{value:e,enumerable:!0}):t,e));var tp=Jt(Z=>{"use strict";var Sd=Symbol.for("react.transitional.element"),xw=Symbol.for("react.portal"),ww=Symbol.for("react.fragment"),yw=Symbol.for("react.strict_mode"),Lw=Symbol.for("react.profiler"),Cw=Symbol.for("react.consumer"),Sw=Symbol.for("react.context"),Iw=Symbol.for("react.forward_ref"),Tw=Symbol.for("react.suspense"),kw=Symbol.for("react.memo"),jm=Symbol.for("react.lazy"),Mw=Symbol.for("react.activity"),Zm=Symbol.iterator;function Aw(e){return e===null||typeof e!="object"?null:(e=Zm&&e[Zm]||e["@@iterator"],typeof e=="function"?e:null)}var Wm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jm=Object.assign,$m={};function wl(e,a,t){this.props=e,this.context=a,this.refs=$m,this.updater=t||Wm}wl.prototype.isReactComponent={};wl.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,a,"setState")};wl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ep(){}ep.prototype=wl.prototype;function Id(e,a,t){this.props=e,this.context=a,this.refs=$m,this.updater=t||Wm}var Td=Id.prototype=new ep;Td.constructor=Id;Jm(Td,wl.prototype);Td.isPureReactComponent=!0;var Ym=Array.isArray;function Cd(){}var Ne={H:null,A:null,T:null,S:null},ap=Object.prototype.hasOwnProperty;function kd(e,a,t){var o=t.ref;return{$$typeof:Sd,type:e,key:a,ref:o!==void 0?o:null,props:t}}function Dw(e,a){return kd(e.type,a,e.props)}function Md(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sd}function Nw(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var Qm=/\/+/g;function Ld(e,a){return typeof e=="object"&&e!==null&&e.key!=null?Nw(""+e.key):a.toString(36)}function zw(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Cd,Cd):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function xl(e,a,t,o,r){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var n=!1;if(e===null)n=!0;else switch(l){case"bigint":case"string":case"number":n=!0;break;case"object":switch(e.$$typeof){case Sd:case xw:n=!0;break;case jm:return n=e._init,xl(n(e._payload),a,t,o,r)}}if(n)return r=r(e),n=o===""?"."+Ld(e,0):o,Ym(r)?(t="",n!=null&&(t=n.replace(Qm,"$&/")+"/"),xl(r,a,t,"",function(u){return u})):r!=null&&(Md(r)&&(r=Dw(r,t+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Qm,"$&/")+"/")+n)),a.push(r)),1;n=0;var s=o===""?".":o+":";if(Ym(e))for(var i=0;i<e.length;i++)o=e[i],l=s+Ld(o,i),n+=xl(o,a,t,l,r);else if(i=Aw(e),typeof i=="function")for(e=i.call(e),i=0;!(o=e.next()).done;)o=o.value,l=s+Ld(o,i++),n+=xl(o,a,t,l,r);else if(l==="object"){if(typeof e.then=="function")return xl(zw(e),a,t,o,r);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return n}function vi(e,a,t){if(e==null)return e;var o=[],r=0;return xl(e,o,"","",function(l){return a.call(t,l,r++)}),o}function Bw(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Km=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rw={map:vi,forEach:function(e,a,t){vi(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return vi(e,function(){a++}),a},toArray:function(e){return vi(e,function(a){return a})||[]},only:function(e){if(!Md(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Activity=Mw;Z.Children=Rw;Z.Component=wl;Z.Fragment=ww;Z.Profiler=Lw;Z.PureComponent=Id;Z.StrictMode=yw;Z.Suspense=Tw;Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ne;Z.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ne.H.useMemoCache(e)}};Z.cache=function(e){return function(){return e.apply(null,arguments)}};Z.cacheSignal=function(){return null};Z.cloneElement=function(e,a,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Jm({},e.props),r=e.key;if(a!=null)for(l in a.key!==void 0&&(r=""+a.key),a)!ap.call(a,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&a.ref===void 0||(o[l]=a[l]);var l=arguments.length-2;if(l===1)o.children=t;else if(1<l){for(var n=Array(l),s=0;s<l;s++)n[s]=arguments[s+2];o.children=n}return kd(e.type,r,o)};Z.createContext=function(e){return e={$$typeof:Sw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Cw,_context:e},e};Z.createElement=function(e,a,t){var o,r={},l=null;if(a!=null)for(o in a.key!==void 0&&(l=""+a.key),a)ap.call(a,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=a[o]);var n=arguments.length-2;if(n===1)r.children=t;else if(1<n){for(var s=Array(n),i=0;i<n;i++)s[i]=arguments[i+2];r.children=s}if(e&&e.defaultProps)for(o in n=e.defaultProps,n)r[o]===void 0&&(r[o]=n[o]);return kd(e,l,r)};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:Iw,render:e}};Z.isValidElement=Md;Z.lazy=function(e){return{$$typeof:jm,_payload:{_status:-1,_result:e},_init:Bw}};Z.memo=function(e,a){return{$$typeof:kw,type:e,compare:a===void 0?null:a}};Z.startTransition=function(e){var a=Ne.T,t={};Ne.T=t;try{var o=e(),r=Ne.S;r!==null&&r(t,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Cd,Km)}catch(l){Km(l)}finally{a!==null&&t.types!==null&&(a.types=t.types),Ne.T=a}};Z.unstable_useCacheRefresh=function(){return Ne.H.useCacheRefresh()};Z.use=function(e){return Ne.H.use(e)};Z.useActionState=function(e,a,t){return Ne.H.useActionState(e,a,t)};Z.useCallback=function(e,a){return Ne.H.useCallback(e,a)};Z.useContext=function(e){return Ne.H.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e,a){return Ne.H.useDeferredValue(e,a)};Z.useEffect=function(e,a){return Ne.H.useEffect(e,a)};Z.useEffectEvent=function(e){return Ne.H.useEffectEvent(e)};Z.useId=function(){return Ne.H.useId()};Z.useImperativeHandle=function(e,a,t){return Ne.H.useImperativeHandle(e,a,t)};Z.useInsertionEffect=function(e,a){return Ne.H.useInsertionEffect(e,a)};Z.useLayoutEffect=function(e,a){return Ne.H.useLayoutEffect(e,a)};Z.useMemo=function(e,a){return Ne.H.useMemo(e,a)};Z.useOptimistic=function(e,a){return Ne.H.useOptimistic(e,a)};Z.useReducer=function(e,a,t){return Ne.H.useReducer(e,a,t)};Z.useRef=function(e){return Ne.H.useRef(e)};Z.useState=function(e){return Ne.H.useState(e)};Z.useSyncExternalStore=function(e,a,t){return Ne.H.useSyncExternalStore(e,a,t)};Z.useTransition=function(){return Ne.H.useTransition()};Z.version="19.2.4"});var ve=Jt((tI,op)=>{"use strict";op.exports=tp()});var mp=Jt(qe=>{"use strict";function zd(e,a){var t=e.length;e.push(a);e:for(;0<t;){var o=t-1>>>1,r=e[o];if(0<xi(r,a))e[o]=a,e[t]=r,t=o;else break e}}function $t(e){return e.length===0?null:e[0]}function yi(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var o=0,r=e.length,l=r>>>1;o<l;){var n=2*(o+1)-1,s=e[n],i=n+1,u=e[i];if(0>xi(s,t))i<r&&0>xi(u,s)?(e[o]=u,e[i]=t,o=i):(e[o]=s,e[n]=t,o=n);else if(i<r&&0>xi(u,t))e[o]=u,e[i]=t,o=i;else break e}}return a}function xi(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}qe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(rp=performance,qe.unstable_now=function(){return rp.now()}):(Ad=Date,lp=Ad.now(),qe.unstable_now=function(){return Ad.now()-lp});var rp,Ad,lp,go=[],_o=[],Ow=1,vt=null,Ba=3,Bd=!1,Mn=!1,An=!1,Rd=!1,ip=typeof setTimeout=="function"?setTimeout:null,up=typeof clearTimeout=="function"?clearTimeout:null,np=typeof setImmediate<"u"?setImmediate:null;function wi(e){for(var a=$t(_o);a!==null;){if(a.callback===null)yi(_o);else if(a.startTime<=e)yi(_o),a.sortIndex=a.expirationTime,zd(go,a);else break;a=$t(_o)}}function Od(e){if(An=!1,wi(e),!Mn)if($t(go)!==null)Mn=!0,Ll||(Ll=!0,yl());else{var a=$t(_o);a!==null&&Ed(Od,a.startTime-e)}}var Ll=!1,Dn=-1,dp=5,cp=-1;function fp(){return Rd?!0:!(qe.unstable_now()-cp<dp)}function Dd(){if(Rd=!1,Ll){var e=qe.unstable_now();cp=e;var a=!0;try{e:{Mn=!1,An&&(An=!1,up(Dn),Dn=-1),Bd=!0;var t=Ba;try{a:{for(wi(e),vt=$t(go);vt!==null&&!(vt.expirationTime>e&&fp());){var o=vt.callback;if(typeof o=="function"){vt.callback=null,Ba=vt.priorityLevel;var r=o(vt.expirationTime<=e);if(e=qe.unstable_now(),typeof r=="function"){vt.callback=r,wi(e),a=!0;break a}vt===$t(go)&&yi(go),wi(e)}else yi(go);vt=$t(go)}if(vt!==null)a=!0;else{var l=$t(_o);l!==null&&Ed(Od,l.startTime-e),a=!1}}break e}finally{vt=null,Ba=t,Bd=!1}a=void 0}}finally{a?yl():Ll=!1}}}var yl;typeof np=="function"?yl=function(){np(Dd)}:typeof MessageChannel<"u"?(Nd=new MessageChannel,sp=Nd.port2,Nd.port1.onmessage=Dd,yl=function(){sp.postMessage(null)}):yl=function(){ip(Dd,0)};var Nd,sp;function Ed(e,a){Dn=ip(function(){e(qe.unstable_now())},a)}qe.unstable_IdlePriority=5;qe.unstable_ImmediatePriority=1;qe.unstable_LowPriority=4;qe.unstable_NormalPriority=3;qe.unstable_Profiling=null;qe.unstable_UserBlockingPriority=2;qe.unstable_cancelCallback=function(e){e.callback=null};qe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dp=0<e?Math.floor(1e3/e):5};qe.unstable_getCurrentPriorityLevel=function(){return Ba};qe.unstable_next=function(e){switch(Ba){case 1:case 2:case 3:var a=3;break;default:a=Ba}var t=Ba;Ba=a;try{return e()}finally{Ba=t}};qe.unstable_requestPaint=function(){Rd=!0};qe.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Ba;Ba=e;try{return a()}finally{Ba=t}};qe.unstable_scheduleCallback=function(e,a,t){var o=qe.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?o+t:o):t=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=t+r,e={id:Ow++,callback:a,priorityLevel:e,startTime:t,expirationTime:r,sortIndex:-1},t>o?(e.sortIndex=t,zd(_o,e),$t(go)===null&&e===$t(_o)&&(An?(up(Dn),Dn=-1):An=!0,Ed(Od,t-o))):(e.sortIndex=r,zd(go,e),Mn||Bd||(Mn=!0,Ll||(Ll=!0,yl()))),e};qe.unstable_shouldYield=fp;qe.unstable_wrapCallback=function(e){var a=Ba;return function(){var t=Ba;Ba=a;try{return e.apply(this,arguments)}finally{Ba=t}}}});var gp=Jt((rI,pp)=>{"use strict";pp.exports=mp()});var bp=Jt(Ha=>{"use strict";var Ew=ve();function hp(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Vo(){}var Ea={d:{f:Vo,r:function(){throw Error(hp(522))},D:Vo,C:Vo,L:Vo,m:Vo,X:Vo,S:Vo,M:Vo},p:0,findDOMNode:null},Hw=Symbol.for("react.portal");function Pw(e,a,t){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hw,key:o==null?null:""+o,children:e,containerInfo:a,implementation:t}}var Nn=Ew.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Li(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}Ha.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ea;Ha.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(hp(299));return Pw(e,a,null,t)};Ha.flushSync=function(e){var a=Nn.T,t=Ea.p;try{if(Nn.T=null,Ea.p=2,e)return e()}finally{Nn.T=a,Ea.p=t,Ea.d.f()}};Ha.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,Ea.d.C(e,a))};Ha.prefetchDNS=function(e){typeof e=="string"&&Ea.d.D(e)};Ha.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var t=a.as,o=Li(t,a.crossOrigin),r=typeof a.integrity=="string"?a.integrity:void 0,l=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;t==="style"?Ea.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:l}):t==="script"&&Ea.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:l,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};Ha.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var t=Li(a.as,a.crossOrigin);Ea.d.M(e,{crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&Ea.d.M(e)};Ha.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var t=a.as,o=Li(t,a.crossOrigin);Ea.d.L(e,t,{crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};Ha.preloadModule=function(e,a){if(typeof e=="string")if(a){var t=Li(a.as,a.crossOrigin);Ea.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else Ea.d.m(e)};Ha.requestFormReset=function(e){Ea.d.r(e)};Ha.unstable_batchedUpdates=function(e,a){return e(a)};Ha.useFormState=function(e,a,t){return Nn.H.useFormState(e,a,t)};Ha.useFormStatus=function(){return Nn.H.useHostTransitionStatus()};Ha.version="19.2.4"});var Ci=Jt((nI,xp)=>{"use strict";function vp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vp)}catch(e){console.error(e)}}vp(),xp.exports=bp()});var Nv=Jt(Qu=>{"use strict";var ia=gp(),Xg=ve(),qw=Ci();function L(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Zg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bs(e){var a=e,t=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(t=a.return),e=a.return;while(e)}return a.tag===3?t:null}function Yg(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function Qg(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function wp(e){if(bs(e)!==e)throw Error(L(188))}function Uw(e){var a=e.alternate;if(!a){if(a=bs(e),a===null)throw Error(L(188));return a!==e?null:e}for(var t=e,o=a;;){var r=t.return;if(r===null)break;var l=r.alternate;if(l===null){if(o=r.return,o!==null){t=o;continue}break}if(r.child===l.child){for(l=r.child;l;){if(l===t)return wp(r),e;if(l===o)return wp(r),a;l=l.sibling}throw Error(L(188))}if(t.return!==o.return)t=r,o=l;else{for(var n=!1,s=r.child;s;){if(s===t){n=!0,t=r,o=l;break}if(s===o){n=!0,o=r,t=l;break}s=s.sibling}if(!n){for(s=l.child;s;){if(s===t){n=!0,t=l,o=r;break}if(s===o){n=!0,o=l,t=r;break}s=s.sibling}if(!n)throw Error(L(189))}}if(t.alternate!==o)throw Error(L(190))}if(t.tag!==3)throw Error(L(188));return t.stateNode.current===t?e:a}function Kg(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=Kg(e),a!==null)return a;e=e.sibling}return null}var Re=Object.assign,Fw=Symbol.for("react.element"),Si=Symbol.for("react.transitional.element"),qn=Symbol.for("react.portal"),Ml=Symbol.for("react.fragment"),jg=Symbol.for("react.strict_mode"),hc=Symbol.for("react.profiler"),Wg=Symbol.for("react.consumer"),Co=Symbol.for("react.context"),ff=Symbol.for("react.forward_ref"),bc=Symbol.for("react.suspense"),vc=Symbol.for("react.suspense_list"),mf=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),xc=Symbol.for("react.activity"),Gw=Symbol.for("react.memo_cache_sentinel"),yp=Symbol.iterator;function zn(e){return e===null||typeof e!="object"?null:(e=yp&&e[yp]||e["@@iterator"],typeof e=="function"?e:null)}var _w=Symbol.for("react.client.reference");function wc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_w?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ml:return"Fragment";case hc:return"Profiler";case jg:return"StrictMode";case bc:return"Suspense";case vc:return"SuspenseList";case xc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case qn:return"Portal";case Co:return e.displayName||"Context";case Wg:return(e._context.displayName||"Context")+".Consumer";case ff:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mf:return a=e.displayName||null,a!==null?a:wc(e.type)||"Memo";case Xo:a=e._payload,e=e._init;try{return wc(e(a))}catch{}}return null}var Un=Array.isArray,_=Xg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=qw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_r={pending:!1,data:null,method:null,action:null},yc=[],Al=-1;function ro(e){return{current:e}}function ba(e){0>Al||(e.current=yc[Al],yc[Al]=null,Al--)}function ke(e,a){Al++,yc[Al]=e.current,e.current=a}var oo=ro(null),os=ro(null),tr=ro(null),ou=ro(null);function ru(e,a){switch(ke(tr,a),ke(os,e),ke(oo,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Mg(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Mg(a),e=bv(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ba(oo),ke(oo,e)}function Yl(){ba(oo),ba(os),ba(tr)}function Lc(e){e.memoizedState!==null&&ke(ou,e);var a=oo.current,t=bv(a,e.type);a!==t&&(ke(os,e),ke(oo,t))}function lu(e){os.current===e&&(ba(oo),ba(os)),ou.current===e&&(ba(ou),ps._currentValue=_r)}var Hd,Lp;function qr(e){if(Hd===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Hd=a&&a[1]||"",Lp=-1<t.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+pc+e+jp}var mc=!1;function gc(e,a){if(!e||mc)return"";mc=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(f){var p=f}Reflect.construct(e,[],d)}else{try{d.call()}catch(f){p=f}e.call(d.prototype)}}else{try{throw Error()}catch(f){p=f}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(f){if(f&&p&&typeof f.stack=="string")return[f.stack,p.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=o.DetermineComponentFrameRoot(),l=s[0],n=s[1];if(l&&n){var i=l.split(`
4
- `),u=n.split(`
5
- `);for(r=o=0;o<i.length&&!i[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===i.length||r===u.length)for(o=i.length-1,r=u.length-1;1<=o&&0<=r&&i[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(i[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||i[o]!==u[r]){var c=`
6
- `+i[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{mc=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?gr(t):""}function ix(e,a){switch(e.tag){case 26:case 27:case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return e.child!==a&&a!==null?gr("Suspense Fallback"):gr("Suspense");case 19:return gr("SuspenseList");case 0:case 15:return gc(e.type,!1);case 11:return gc(e.type.render,!1);case 1:return gc(e.type,!0);case 31:return gr("Activity");default:return""}}function Qp(e){try{var a="",t=null;do a+=ix(e,t),t=e,e=e.return;while(e);return a}catch(o){return`
3
+ `+Hd+e+Lp}var Pd=!1;function qd(e,a){if(!e||Pd)return"";Pd=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(g){var c=g}Reflect.construct(e,[],m)}else{try{m.call()}catch(g){c=g}e.call(m.prototype)}}else{try{throw Error()}catch(g){c=g}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(g){if(g&&c&&typeof g.stack=="string")return[g.stack,c.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=o.DetermineComponentFrameRoot(),n=l[0],s=l[1];if(n&&s){var i=n.split(`
4
+ `),u=s.split(`
5
+ `);for(r=o=0;o<i.length&&!i[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===i.length||r===u.length)for(o=i.length-1,r=u.length-1;1<=o&&0<=r&&i[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(i[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||i[o]!==u[r]){var d=`
6
+ `+i[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=r);break}}}finally{Pd=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?qr(t):""}function Vw(e,a){switch(e.tag){case 26:case 27:case 5:return qr(e.type);case 16:return qr("Lazy");case 13:return e.child!==a&&a!==null?qr("Suspense Fallback"):qr("Suspense");case 19:return qr("SuspenseList");case 0:case 15:return qd(e.type,!1);case 11:return qd(e.type.render,!1);case 1:return qd(e.type,!0);case 31:return qr("Activity");default:return""}}function Cp(e){try{var a="",t=null;do a+=Vw(e,t),t=e,e=e.return;while(e);return a}catch(o){return`
7
7
  Error generating stack: `+o.message+`
8
- `+o.stack}}var $c=Object.prototype.hasOwnProperty,Gd=We.unstable_scheduleCallback,hc=We.unstable_cancelCallback,ux=We.unstable_shouldYield,cx=We.unstable_requestPaint,Va=We.unstable_now,dx=We.unstable_getCurrentPriorityLevel,Cg=We.unstable_ImmediatePriority,Ig=We.unstable_UserBlockingPriority,Pi=We.unstable_NormalPriority,fx=We.unstable_LowPriority,kg=We.unstable_IdlePriority,px=We.log,mx=We.unstable_setDisableYieldValue,Jl=null,Xa=null;function Ao(e){if(typeof px=="function"&&mx(e),Xa&&typeof Xa.setStrictMode=="function")try{Xa.setStrictMode(Jl,e)}catch{}}var Za=Math.clz32?Math.clz32:wx,gx=Math.log,hx=Math.LN2;function wx(e){return e>>>=0,e===0?32:31-(gx(e)/hx|0)|0}var oi=256,ri=262144,si=4194304;function hr(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function cu(e,a,t){var o=e.pendingLanes;if(o===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var n=o&134217727;return n!==0?(o=n&~s,o!==0?r=hr(o):(l&=n,l!==0?r=hr(l):t||(t=n&~e,t!==0&&(r=hr(t))))):(n=o&~s,n!==0?r=hr(n):l!==0?r=hr(l):t||(t=o&~e,t!==0&&(r=hr(t)))),r===0?0:a!==0&&a!==r&&(a&s)===0&&(s=r&-r,t=a&-a,s>=t||s===32&&(t&4194048)!==0)?a:r}function $l(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function bx(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Tg(){var e=si;return si<<=1,(si&62914560)===0&&(si=4194304),e}function wc(e){for(var a=[],t=0;31>t;t++)a.push(e);return a}function en(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vx(e,a,t,o,r,s){var l=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var n=e.entanglements,i=e.expirationTimes,u=e.hiddenUpdates;for(t=l&~t;0<t;){var c=31-Za(t),d=1<<c;n[c]=0,i[c]=-1;var p=u[c];if(p!==null)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];f!==null&&(f.lane&=-536870913)}t&=~d}o!==0&&Ag(e,o,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(l&~a))}function Ag(e,a,t){e.pendingLanes|=a,e.suspendedLanes&=~a;var o=31-Za(a);e.entangledLanes|=a,e.entanglements[o]=e.entanglements[o]|1073741824|t&261930}function Mg(e,a){var t=e.entangledLanes|=a;for(e=e.entanglements;t;){var o=31-Za(t),r=1<<o;r&a|e[o]&a&&(e[o]|=a),t&=~r}}function Dg(e,a){var t=a&-a;return t=(t&42)!==0?1:Vd(t),(t&(e.suspendedLanes|a))!==0?0:t}function Vd(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bg(){var e=se.p;return e!==0?e:(e=window.event,e===void 0?32:eb(e.type))}function Kp(e,a){var t=se.p;try{return se.p=e,a()}finally{se.p=t}}var Zo=Math.random().toString(36).slice(2),ca="__reactFiber$"+Zo,Na="__reactProps$"+Zo,Ps="__reactContainer$"+Zo,ed="__reactEvents$"+Zo,xx="__reactListeners$"+Zo,yx="__reactHandles$"+Zo,Wp="__reactResources$"+Zo,an="__reactMarker$"+Zo;function Zd(e){delete e[ca],delete e[Na],delete e[ed],delete e[xx],delete e[yx]}function cs(e){var a=e[ca];if(a)return a;for(var t=e.parentNode;t;){if(a=t[Ps]||t[ca]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=sg(e);e!==null;){if(t=e[ca])return t;e=sg(e)}return a}e=t,t=e.parentNode}return null}function Us(e){if(e=e[ca]||e[Ps]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function yl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(L(33))}function xs(e){var a=e[Wp];return a||(a=e[Wp]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ta(e){e[an]=!0}var Ng=new Set,Rg={};function Mr(e,a){As(e,a),As(e+"Capture",a)}function As(e,a){for(Rg[e]=a,e=0;e<a.length;e++)Ng.add(a[e])}var Lx=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]*$"),Jp={},$p={};function Sx(e){return $c.call($p,e)?!0:$c.call(Jp,e)?!1:Lx.test(e)?$p[e]=!0:(Jp[e]=!0,!1)}function xi(e,a,t){if(Sx(a))if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+t)}}function li(e,a,t){if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+t)}}function Zt(e,a,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(a,t,""+o)}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zg(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Cx(e,a,t){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,s=o.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return r.call(this)},set:function(l){t=""+l,s.call(this,l)}}),Object.defineProperty(e,a,{enumerable:o.enumerable}),{getValue:function(){return t},setValue:function(l){t=""+l},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function ad(e){if(!e._valueTracker){var a=zg(e)?"checked":"value";e._valueTracker=Cx(e,a,""+e[a])}}function Og(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var t=a.getValue(),o="";return e&&(o=zg(e)?e.checked?"true":"false":e.value),e=o,e!==t?(a.setValue(e),!0):!1}function Ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ix=/[\n"\\]/g;function lt(e){return e.replace(Ix,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function td(e,a,t,o,r,s,l,n){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),a!=null?l==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+ot(a)):e.value!==""+ot(a)&&(e.value=""+ot(a)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),a!=null?od(e,l,ot(a)):t!=null?od(e,l,ot(t)):o!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"?e.name=""+ot(n):e.removeAttribute("name")}function Eg(e,a,t,o,r,s,l,n){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),a!=null||t!=null){if(!(s!=="submit"&&s!=="reset"||a!=null)){ad(e);return}t=t!=null?""+ot(t):"",a=a!=null?""+ot(a):t,n||a===e.value||(e.value=a),e.defaultValue=a}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=n?e.checked:!!o,e.defaultChecked=!!o,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),ad(e)}function od(e,a,t){a==="number"&&Ui(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function ys(e,a,t,o){if(e=e.options,a){a={};for(var r=0;r<t.length;r++)a["$"+t[r]]=!0;for(t=0;t<e.length;t++)r=a.hasOwnProperty("$"+e[t].value),e[t].selected!==r&&(e[t].selected=r),r&&o&&(e[t].defaultSelected=!0)}else{for(t=""+ot(t),a=null,r=0;r<e.length;r++){if(e[r].value===t){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}a!==null||e[r].disabled||(a=e[r])}a!==null&&(a.selected=!0)}}function Hg(e,a,t){if(a!=null&&(a=""+ot(a),a!==e.value&&(e.value=a),t==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=t!=null?""+ot(t):""}function Pg(e,a,t,o){if(a==null){if(o!=null){if(t!=null)throw Error(L(92));if(xl(o)){if(1<o.length)throw Error(L(93));o=o[0]}t=o}t==null&&(t=""),a=t}t=ot(a),e.defaultValue=t,o=e.textContent,o===t&&o!==""&&o!==null&&(e.value=o),ad(e)}function Ms(e,a){if(a){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=a;return}}e.textContent=a}var kx=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 em(e,a,t){var o=a.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?o?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":o?e.setProperty(a,t):typeof t!="number"||t===0||kx.has(a)?a==="float"?e.cssFloat=t:e[a]=(""+t).trim():e[a]=t+"px"}function Ug(e,a,t){if(a!=null&&typeof a!="object")throw Error(L(62));if(e=e.style,t!=null){for(var o in t)!t.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var r in a)o=a[r],a.hasOwnProperty(r)&&t[r]!==o&&em(e,r,o)}else for(var s in a)a.hasOwnProperty(s)&&em(e,s,a[s])}function Yd(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tx=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"]]),Ax=/^[\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 yi(e){return Ax.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function eo(){}var rd=null;function jd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ds=null,Ls=null;function am(e){var a=Us(e);if(a&&(e=a.stateNode)){var t=e[Na]||null;e:switch(e=a.stateNode,a.type){case"input":if(td(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+lt(""+a)+'"][type="radio"]'),a=0;a<t.length;a++){var o=t[a];if(o!==e&&o.form===e.form){var r=o[Na]||null;if(!r)throw Error(L(90));td(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(a=0;a<t.length;a++)o=t[a],o.form===e.form&&Og(o)}break e;case"textarea":Hg(e,t.value,t.defaultValue);break e;case"select":a=t.value,a!=null&&ys(e,!!t.multiple,a,!1)}}}var bc=!1;function qg(e,a,t){if(bc)return e(a,t);bc=!0;try{var o=e(a);return o}finally{if(bc=!1,(ds!==null||Ls!==null)&&(Lu(),ds&&(a=ds,e=Ls,Ls=ds=null,am(a),e)))for(a=0;a<e.length;a++)am(e[a])}}function Pl(e,a){var t=e.stateNode;if(t===null)return null;var o=t[Na]||null;if(o===null)return null;t=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(L(231,a,typeof t));return t}var so=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sd=!1;if(so)try{os={},Object.defineProperty(os,"passive",{get:function(){sd=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{sd=!1}var os,Mo=null,Qd=null,Li=null;function _g(){if(Li)return Li;var e,a=Qd,t=a.length,o,r="value"in Mo?Mo.value:Mo.textContent,s=r.length;for(e=0;e<t&&a[e]===r[e];e++);var l=t-e;for(o=1;o<=l&&a[t-o]===r[s-o];o++);return Li=r.slice(e,1<o?1-o:void 0)}function Si(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function ni(){return!0}function tm(){return!1}function Ra(e){function a(t,o,r,s,l){this._reactName=t,this._targetInst=r,this.type=o,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var n in e)e.hasOwnProperty(n)&&(t=e[n],this[n]=t?t(s):s[n]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ni:tm,this.isPropagationStopped=tm,this}return ke(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=ni)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ni)},persist:function(){},isPersistent:ni}),a}var Dr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=Ra(Dr),tn=ke({},Dr,{view:0,detail:0}),Mx=Ra(tn),vc,xc,pl,fu=ke({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pl&&(pl&&e.type==="mousemove"?(vc=e.screenX-pl.screenX,xc=e.screenY-pl.screenY):xc=vc=0,pl=e),vc)},movementY:function(e){return"movementY"in e?e.movementY:xc}}),om=Ra(fu),Dx=ke({},fu,{dataTransfer:0}),Bx=Ra(Dx),Nx=ke({},tn,{relatedTarget:0}),yc=Ra(Nx),Rx=ke({},Dr,{animationName:0,elapsedTime:0,pseudoElement:0}),zx=Ra(Rx),Ox=ke({},Dr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ex=Ra(Ox),Hx=ke({},Dr,{data:0}),rm=Ra(Hx),Px={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ux={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"},qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _x(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=qx[e])?!!a[e]:!1}function Kd(){return _x}var Fx=ke({},tn,{key:function(e){if(e.key){var a=Px[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ux[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kd,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gx=Ra(Fx),Vx=ke({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sm=Ra(Vx),Xx=ke({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kd}),Zx=Ra(Xx),Yx=ke({},Dr,{propertyName:0,elapsedTime:0,pseudoElement:0}),jx=Ra(Yx),Qx=ke({},fu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kx=Ra(Qx),Wx=ke({},Dr,{newState:0,oldState:0}),Jx=Ra(Wx),$x=[9,13,27,32],Wd=so&&"CompositionEvent"in window,Cl=null;so&&"documentMode"in document&&(Cl=document.documentMode);var ey=so&&"TextEvent"in window&&!Cl,Fg=so&&(!Wd||Cl&&8<Cl&&11>=Cl),lm=" ",nm=!1;function Gg(e,a){switch(e){case"keyup":return $x.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fs=!1;function ay(e,a){switch(e){case"compositionend":return Vg(a);case"keypress":return a.which!==32?null:(nm=!0,lm);case"textInput":return e=a.data,e===lm&&nm?null:e;default:return null}}function ty(e,a){if(fs)return e==="compositionend"||!Wd&&Gg(e,a)?(e=_g(),Li=Qd=Mo=null,fs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Fg&&a.locale!=="ko"?null:a.data;default:return null}}var oy={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 im(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!oy[e.type]:a==="textarea"}function Xg(e,a,t,o){ds?Ls?Ls.push(o):Ls=[o]:ds=o,a=ou(a,"onChange"),0<a.length&&(t=new du("onChange","change",null,t,o),e.push({event:t,listeners:a}))}var Il=null,Ul=null;function ry(e){qw(e,0)}function pu(e){var a=yl(e);if(Og(a))return e}function um(e,a){if(e==="change")return a}var Zg=!1;so&&(so?(ui="oninput"in document,ui||(Lc=document.createElement("div"),Lc.setAttribute("oninput","return;"),ui=typeof Lc.oninput=="function"),ii=ui):ii=!1,Zg=ii&&(!document.documentMode||9<document.documentMode));var ii,ui,Lc;function cm(){Il&&(Il.detachEvent("onpropertychange",Yg),Ul=Il=null)}function Yg(e){if(e.propertyName==="value"&&pu(Ul)){var a=[];Xg(a,Ul,e,jd(e)),qg(ry,a)}}function sy(e,a,t){e==="focusin"?(cm(),Il=a,Ul=t,Il.attachEvent("onpropertychange",Yg)):e==="focusout"&&cm()}function ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pu(Ul)}function ny(e,a){if(e==="click")return pu(a)}function iy(e,a){if(e==="input"||e==="change")return pu(a)}function uy(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var ja=typeof Object.is=="function"?Object.is:uy;function ql(e,a){if(ja(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var t=Object.keys(e),o=Object.keys(a);if(t.length!==o.length)return!1;for(o=0;o<t.length;o++){var r=t[o];if(!$c.call(a,r)||!ja(e[r],a[r]))return!1}return!0}function dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fm(e,a){var t=dm(e);e=0;for(var o;t;){if(t.nodeType===3){if(o=e+t.textContent.length,e<=a&&o>=a)return{node:t,offset:a-e};e=o}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=dm(t)}}function jg(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?jg(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Qg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Ui(e.document);a instanceof e.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch{t=!1}if(t)e=a.contentWindow;else break;a=Ui(e.document)}return a}function Jd(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var cy=so&&"documentMode"in document&&11>=document.documentMode,ps=null,ld=null,kl=null,nd=!1;function pm(e,a,t){var o=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;nd||ps==null||ps!==Ui(o)||(o=ps,"selectionStart"in o&&Jd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),kl&&ql(kl,o)||(kl=o,o=ou(ld,"onSelect"),0<o.length&&(a=new du("onSelect","select",null,a,t),e.push({event:a,listeners:o}),a.target=ps)))}function mr(e,a){var t={};return t[e.toLowerCase()]=a.toLowerCase(),t["Webkit"+e]="webkit"+a,t["Moz"+e]="moz"+a,t}var ms={animationend:mr("Animation","AnimationEnd"),animationiteration:mr("Animation","AnimationIteration"),animationstart:mr("Animation","AnimationStart"),transitionrun:mr("Transition","TransitionRun"),transitionstart:mr("Transition","TransitionStart"),transitioncancel:mr("Transition","TransitionCancel"),transitionend:mr("Transition","TransitionEnd")},Sc={},Kg={};so&&(Kg=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Br(e){if(Sc[e])return Sc[e];if(!ms[e])return e;var a=ms[e],t;for(t in a)if(a.hasOwnProperty(t)&&t in Kg)return Sc[e]=a[t];return e}var Wg=Br("animationend"),Jg=Br("animationiteration"),$g=Br("animationstart"),dy=Br("transitionrun"),fy=Br("transitionstart"),py=Br("transitioncancel"),eh=Br("transitionend"),ah=new Map,id="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(" ");id.push("scrollEnd");function yt(e,a){ah.set(e,a),Mr(a,[e])}var qi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tt=[],gs=0,$d=0;function mu(){for(var e=gs,a=$d=gs=0;a<e;){var t=tt[a];tt[a++]=null;var o=tt[a];tt[a++]=null;var r=tt[a];tt[a++]=null;var s=tt[a];if(tt[a++]=null,o!==null&&r!==null){var l=o.pending;l===null?r.next=r:(r.next=l.next,l.next=r),o.pending=r}s!==0&&th(t,r,s)}}function gu(e,a,t,o){tt[gs++]=e,tt[gs++]=a,tt[gs++]=t,tt[gs++]=o,$d|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function ef(e,a,t,o){return gu(e,a,t,o),_i(e)}function Nr(e,a){return gu(e,null,null,a),_i(e)}function th(e,a,t){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t);for(var r=!1,s=e.return;s!==null;)s.childLanes|=t,o=s.alternate,o!==null&&(o.childLanes|=t),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&a!==null&&(r=31-Za(t),e=s.hiddenUpdates,o=e[r],o===null?e[r]=[a]:o.push(a),a.lane=t|536870912),s):null}function _i(e){if(50<Ol)throw Ol=0,Md=null,Error(L(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var hs={};function my(e,a,t,o){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fa(e,a,t,o){return new my(e,a,t,o)}function af(e){return e=e.prototype,!(!e||!e.isReactComponent)}function to(e,a){var t=e.alternate;return t===null?(t=Fa(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function oh(e,a){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,a=t.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Ci(e,a,t,o,r,s){var l=0;if(o=e,typeof e=="function")af(e)&&(l=1);else if(typeof e=="string")l=w0(e,t,zt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Qc:return e=Fa(31,t,a,r),e.elementType=Qc,e.lanes=s,e;case is:return xr(t.children,r,s,a);case Lg:l=8,r|=24;break;case Zc:return e=Fa(12,t,a,r|2),e.elementType=Zc,e.lanes=s,e;case Yc:return e=Fa(13,t,a,r),e.elementType=Yc,e.lanes=s,e;case jc:return e=Fa(19,t,a,r),e.elementType=jc,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $t:l=10;break e;case Sg:l=9;break e;case _d:l=11;break e;case Fd:l=14;break e;case Lo:l=16,o=null;break e}l=29,t=Error(L(130,e===null?"null":typeof e,"")),o=null}return a=Fa(l,t,a,r),a.elementType=e,a.type=o,a.lanes=s,a}function xr(e,a,t,o){return e=Fa(7,e,o,a),e.lanes=t,e}function Cc(e,a,t){return e=Fa(6,e,null,a),e.lanes=t,e}function rh(e){var a=Fa(18,null,null,0);return a.stateNode=e,a}function Ic(e,a,t){return a=Fa(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var mm=new WeakMap;function nt(e,a){if(typeof e=="object"&&e!==null){var t=mm.get(e);return t!==void 0?t:(a={value:e,source:a,stack:Qp(a)},mm.set(e,a),a)}return{value:e,source:a,stack:Qp(a)}}var ws=[],bs=0,Fi=null,_l=0,rt=[],st=0,Fo=null,Bt=1,Nt="";function Wt(e,a){ws[bs++]=_l,ws[bs++]=Fi,Fi=e,_l=a}function sh(e,a,t){rt[st++]=Bt,rt[st++]=Nt,rt[st++]=Fo,Fo=e;var o=Bt;e=Nt;var r=32-Za(o)-1;o&=~(1<<r),t+=1;var s=32-Za(a)+r;if(30<s){var l=r-r%5;s=(o&(1<<l)-1).toString(32),o>>=l,r-=l,Bt=1<<32-Za(a)+r|t<<r|o,Nt=s+e}else Bt=1<<s|t<<r|o,Nt=e}function tf(e){e.return!==null&&(Wt(e,1),sh(e,1,0))}function of(e){for(;e===Fi;)Fi=ws[--bs],ws[bs]=null,_l=ws[--bs],ws[bs]=null;for(;e===Fo;)Fo=rt[--st],rt[st]=null,Nt=rt[--st],rt[st]=null,Bt=rt[--st],rt[st]=null}function lh(e,a){rt[st++]=Bt,rt[st++]=Nt,rt[st++]=Fo,Bt=a.id,Nt=a.overflow,Fo=e}var da=null,Ie=null,W=!1,zo=null,it=!1,ud=Error(L(519));function Go(e){var a=Error(L(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(nt(a,e)),ud}function gm(e){var a=e.stateNode,t=e.type,o=e.memoizedProps;switch(a[ca]=e,a[Na]=o,t){case"dialog":Y("cancel",a),Y("close",a);break;case"iframe":case"object":case"embed":Y("load",a);break;case"video":case"audio":for(t=0;t<Zl.length;t++)Y(Zl[t],a);break;case"source":Y("error",a);break;case"img":case"image":case"link":Y("error",a),Y("load",a);break;case"details":Y("toggle",a);break;case"input":Y("invalid",a),Eg(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Y("invalid",a);break;case"textarea":Y("invalid",a),Pg(a,o.value,o.defaultValue,o.children)}t=o.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||a.textContent===""+t||o.suppressHydrationWarning===!0||Fw(a.textContent,t)?(o.popover!=null&&(Y("beforetoggle",a),Y("toggle",a)),o.onScroll!=null&&Y("scroll",a),o.onScrollEnd!=null&&Y("scrollend",a),o.onClick!=null&&(a.onclick=eo),a=!0):a=!1,a||Go(e,!0)}function hm(e){for(da=e.return;da;)switch(da.tag){case 5:case 31:case 13:it=!1;return;case 27:case 3:it=!0;return;default:da=da.return}}function rs(e){if(e!==da)return!1;if(!W)return hm(e),W=!0,!1;var a=e.tag,t;if((t=a!==3&&a!==27)&&((t=a===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||zd(e.type,e.memoizedProps)),t=!t),t&&Ie&&Go(e),hm(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));Ie=rg(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));Ie=rg(e)}else a===27?(a=Ie,Yo(e.type)?(e=Pd,Pd=null,Ie=e):Ie=a):Ie=da?ct(e.stateNode.nextSibling):null;return!0}function Cr(){Ie=da=null,W=!1}function kc(){var e=zo;return e!==null&&(Da===null?Da=e:Da.push.apply(Da,e),zo=null),e}function Fl(e){zo===null?zo=[e]:zo.push(e)}var cd=Ot(null),Rr=null,ao=null;function Co(e,a,t){ve(cd,a._currentValue),a._currentValue=t}function oo(e){e._currentValue=cd.current,oa(cd)}function dd(e,a,t){for(;e!==null;){var o=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),e===t)break;e=e.return}}function fd(e,a,t,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var l=r.child;s=s.firstContext;e:for(;s!==null;){var n=s;s=r;for(var i=0;i<a.length;i++)if(n.context===a[i]){s.lanes|=t,n=s.alternate,n!==null&&(n.lanes|=t),dd(s.return,t,e),o||(l=null);break e}s=n.next}}else if(r.tag===18){if(l=r.return,l===null)throw Error(L(341));l.lanes|=t,s=l.alternate,s!==null&&(s.lanes|=t),dd(l,t,e),l=null}else l=r.child;if(l!==null)l.return=r;else for(l=r;l!==null;){if(l===e){l=null;break}if(r=l.sibling,r!==null){r.return=l.return,l=r;break}l=l.return}r=l}}function qs(e,a,t,o){e=null;for(var r=a,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var l=r.alternate;if(l===null)throw Error(L(387));if(l=l.memoizedProps,l!==null){var n=r.type;ja(r.pendingProps.value,l.value)||(e!==null?e.push(n):e=[n])}}else if(r===Oi.current){if(l=r.alternate,l===null)throw Error(L(387));l.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(jl):e=[jl])}r=r.return}e!==null&&fd(a,e,t,o),a.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!ja(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ir(e){Rr=e,ao=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fa(e){return nh(Rr,e)}function ci(e,a){return Rr===null&&Ir(e),nh(e,a)}function nh(e,a){var t=a._currentValue;if(a={context:a,memoizedValue:t,next:null},ao===null){if(e===null)throw Error(L(308));ao=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else ao=ao.next=a;return t}var gy=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(t,o){e.push(o)}};this.abort=function(){a.aborted=!0,e.forEach(function(t){return t()})}},hy=We.unstable_scheduleCallback,wy=We.unstable_NormalPriority,Xe={$$typeof:$t,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rf(){return{controller:new gy,data:new Map,refCount:0}}function on(e){e.refCount--,e.refCount===0&&hy(wy,function(){e.controller.abort()})}var Tl=null,pd=0,Ds=0,Ss=null;function by(e,a){if(Tl===null){var t=Tl=[];pd=0,Ds=Df(),Ss={status:"pending",value:void 0,then:function(o){t.push(o)}}}return pd++,a.then(wm,wm),a}function wm(){if(--pd===0&&Tl!==null){Ss!==null&&(Ss.status="fulfilled");var e=Tl;Tl=null,Ds=0,Ss=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function vy(e,a){var t=[],o={status:"pending",value:null,reason:null,then:function(r){t.push(r)}};return e.then(function(){o.status="fulfilled",o.value=a;for(var r=0;r<t.length;r++)(0,t[r])(a)},function(r){for(o.status="rejected",o.reason=r,r=0;r<t.length;r++)(0,t[r])(void 0)}),o}var bm=H.S;H.S=function(e,a){yw=Va(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&by(e,a),bm!==null&&bm(e,a)};var yr=Ot(null);function sf(){var e=yr.current;return e!==null?e:be.pooledCache}function Ii(e,a){a===null?ve(yr,yr.current):ve(yr,a.pool)}function ih(){var e=sf();return e===null?null:{parent:Xe._currentValue,pool:e}}var _s=Error(L(460)),lf=Error(L(474)),hu=Error(L(542)),Vi={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uh(e,a,t){switch(t=e[t],t===void 0?e.push(a):t!==a&&(a.then(eo,eo),a=t),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ym(e),e;default:if(typeof a.status=="string")a.then(eo,eo);else{if(e=be,e!==null&&100<e.shellSuspendCounter)throw Error(L(482));e=a,e.status="pending",e.then(function(o){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=o}},function(o){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ym(e),e}throw Lr=a,_s}}function wr(e){try{var a=e._init;return a(e._payload)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Lr=t,_s):t}}var Lr=null;function xm(){if(Lr===null)throw Error(L(459));var e=Lr;return Lr=null,e}function ym(e){if(e===_s||e===hu)throw Error(L(483))}var Cs=null,Gl=0;function di(e){var a=Gl;return Gl+=1,Cs===null&&(Cs=[]),uh(Cs,e,a)}function ml(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function fi(e,a){throw a.$$typeof===sx?Error(L(525)):(e=Object.prototype.toString.call(a),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function ch(e){function a(m,g){if(e){var w=m.deletions;w===null?(m.deletions=[g],m.flags|=16):w.push(g)}}function t(m,g){if(!e)return null;for(;g!==null;)a(m,g),g=g.sibling;return null}function o(m){for(var g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function r(m,g){return m=to(m,g),m.index=0,m.sibling=null,m}function s(m,g,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<g?(m.flags|=67108866,g):w):(m.flags|=67108866,g)):(m.flags|=1048576,g)}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function n(m,g,w,v){return g===null||g.tag!==6?(g=Cc(w,m.mode,v),g.return=m,g):(g=r(g,w),g.return=m,g)}function i(m,g,w,v){var I=w.type;return I===is?c(m,g,w.props.children,v,w.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Lo&&wr(I)===g.type)?(g=r(g,w.props),ml(g,w),g.return=m,g):(g=Ci(w.type,w.key,w.props,null,m.mode,v),ml(g,w),g.return=m,g)}function u(m,g,w,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Ic(w,m.mode,v),g.return=m,g):(g=r(g,w.children||[]),g.return=m,g)}function c(m,g,w,v,I){return g===null||g.tag!==7?(g=xr(w,m.mode,v,I),g.return=m,g):(g=r(g,w),g.return=m,g)}function d(m,g,w){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Cc(""+g,m.mode,w),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ti:return w=Ci(g.type,g.key,g.props,null,m.mode,w),ml(w,g),w.return=m,w;case vl:return g=Ic(g,m.mode,w),g.return=m,g;case Lo:return g=wr(g),d(m,g,w)}if(xl(g)||fl(g))return g=xr(g,m.mode,w,null),g.return=m,g;if(typeof g.then=="function")return d(m,di(g),w);if(g.$$typeof===$t)return d(m,ci(m,g),w);fi(m,g)}return null}function p(m,g,w,v){var I=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return I!==null?null:n(m,g,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ti:return w.key===I?i(m,g,w,v):null;case vl:return w.key===I?u(m,g,w,v):null;case Lo:return w=wr(w),p(m,g,w,v)}if(xl(w)||fl(w))return I!==null?null:c(m,g,w,v,null);if(typeof w.then=="function")return p(m,g,di(w),v);if(w.$$typeof===$t)return p(m,g,ci(m,w),v);fi(m,w)}return null}function f(m,g,w,v,I){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return m=m.get(w)||null,n(g,m,""+v,I);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ti:return m=m.get(v.key===null?w:v.key)||null,i(g,m,v,I);case vl:return m=m.get(v.key===null?w:v.key)||null,u(g,m,v,I);case Lo:return v=wr(v),f(m,g,w,v,I)}if(xl(v)||fl(v))return m=m.get(w)||null,c(g,m,v,I,null);if(typeof v.then=="function")return f(m,g,w,di(v),I);if(v.$$typeof===$t)return f(m,g,w,ci(g,v),I);fi(g,v)}return null}function b(m,g,w,v){for(var I=null,N=null,T=g,R=g=0,O=null;T!==null&&R<w.length;R++){T.index>R?(O=T,T=null):O=T.sibling;var A=p(m,T,w[R],v);if(A===null){T===null&&(T=O);break}e&&T&&A.alternate===null&&a(m,T),g=s(A,g,R),N===null?I=A:N.sibling=A,N=A,T=O}if(R===w.length)return t(m,T),W&&Wt(m,R),I;if(T===null){for(;R<w.length;R++)T=d(m,w[R],v),T!==null&&(g=s(T,g,R),N===null?I=T:N.sibling=T,N=T);return W&&Wt(m,R),I}for(T=o(T);R<w.length;R++)O=f(T,m,R,w[R],v),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?R:O.key),g=s(O,g,R),N===null?I=O:N.sibling=O,N=O);return e&&T.forEach(function(P){return a(m,P)}),W&&Wt(m,R),I}function x(m,g,w,v){if(w==null)throw Error(L(151));for(var I=null,N=null,T=g,R=g=0,O=null,A=w.next();T!==null&&!A.done;R++,A=w.next()){T.index>R?(O=T,T=null):O=T.sibling;var P=p(m,T,A.value,v);if(P===null){T===null&&(T=O);break}e&&T&&P.alternate===null&&a(m,T),g=s(P,g,R),N===null?I=P:N.sibling=P,N=P,T=O}if(A.done)return t(m,T),W&&Wt(m,R),I;if(T===null){for(;!A.done;R++,A=w.next())A=d(m,A.value,v),A!==null&&(g=s(A,g,R),N===null?I=A:N.sibling=A,N=A);return W&&Wt(m,R),I}for(T=o(T);!A.done;R++,A=w.next())A=f(T,m,R,A.value,v),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=s(A,g,R),N===null?I=A:N.sibling=A,N=A);return e&&T.forEach(function(Re){return a(m,Re)}),W&&Wt(m,R),I}function k(m,g,w,v){if(typeof w=="object"&&w!==null&&w.type===is&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ti:e:{for(var I=w.key;g!==null;){if(g.key===I){if(I=w.type,I===is){if(g.tag===7){t(m,g.sibling),v=r(g,w.props.children),v.return=m,m=v;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Lo&&wr(I)===g.type){t(m,g.sibling),v=r(g,w.props),ml(v,w),v.return=m,m=v;break e}t(m,g);break}else a(m,g);g=g.sibling}w.type===is?(v=xr(w.props.children,m.mode,v,w.key),v.return=m,m=v):(v=Ci(w.type,w.key,w.props,null,m.mode,v),ml(v,w),v.return=m,m=v)}return l(m);case vl:e:{for(I=w.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){t(m,g.sibling),v=r(g,w.children||[]),v.return=m,m=v;break e}else{t(m,g);break}else a(m,g);g=g.sibling}v=Ic(w,m.mode,v),v.return=m,m=v}return l(m);case Lo:return w=wr(w),k(m,g,w,v)}if(xl(w))return b(m,g,w,v);if(fl(w)){if(I=fl(w),typeof I!="function")throw Error(L(150));return w=I.call(w),x(m,g,w,v)}if(typeof w.then=="function")return k(m,g,di(w),v);if(w.$$typeof===$t)return k(m,g,ci(m,w),v);fi(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,g!==null&&g.tag===6?(t(m,g.sibling),v=r(g,w),v.return=m,m=v):(t(m,g),v=Cc(w,m.mode,v),v.return=m,m=v),l(m)):t(m,g)}return function(m,g,w,v){try{Gl=0;var I=k(m,g,w,v);return Cs=null,I}catch(T){if(T===_s||T===hu)throw T;var N=Fa(29,T,null,m.mode);return N.lanes=v,N.return=m,N}}}var kr=ch(!0),dh=ch(!1),So=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function md(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Oo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Eo(e,a,t){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(re&2)!==0){var r=o.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),o.pending=a,a=_i(e),th(e,null,t),a}return gu(e,o,a,t),_i(e)}function Al(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194048)!==0)){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,Mg(e,t)}}function Tc(e,a){var t=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,t===o)){var r=null,s=null;if(t=t.firstBaseUpdate,t!==null){do{var l={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};s===null?r=s=l:s=s.next=l,t=t.next}while(t!==null);s===null?r=s=a:s=s.next=a}else r=s=a;t={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:o.shared,callbacks:o.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}var gd=!1;function Ml(){if(gd){var e=Ss;if(e!==null)throw e}}function Dl(e,a,t,o){gd=!1;var r=e.updateQueue;So=!1;var s=r.firstBaseUpdate,l=r.lastBaseUpdate,n=r.shared.pending;if(n!==null){r.shared.pending=null;var i=n,u=i.next;i.next=null,l===null?s=u:l.next=u,l=i;var c=e.alternate;c!==null&&(c=c.updateQueue,n=c.lastBaseUpdate,n!==l&&(n===null?c.firstBaseUpdate=u:n.next=u,c.lastBaseUpdate=i))}if(s!==null){var d=r.baseState;l=0,c=u=i=null,n=s;do{var p=n.lane&-536870913,f=p!==n.lane;if(f?(K&p)===p:(o&p)===p){p!==0&&p===Ds&&(gd=!0),c!==null&&(c=c.next={lane:0,tag:n.tag,payload:n.payload,callback:null,next:null});e:{var b=e,x=n;p=a;var k=t;switch(x.tag){case 1:if(b=x.payload,typeof b=="function"){d=b.call(k,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,p=typeof b=="function"?b.call(k,d,p):b,p==null)break e;d=ke({},d,p);break e;case 2:So=!0}}p=n.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:n.tag,payload:n.payload,callback:n.callback,next:null},c===null?(u=c=f,i=d):c=c.next=f,l|=p;if(n=n.next,n===null){if(n=r.shared.pending,n===null)break;f=n,n=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);c===null&&(i=d),r.baseState=i,r.firstBaseUpdate=u,r.lastBaseUpdate=c,s===null&&(r.shared.lanes=0),Xo|=l,e.lanes=l,e.memoizedState=d}}function fh(e,a){if(typeof e!="function")throw Error(L(191,e));e.call(a)}function ph(e,a){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)fh(t[e],a)}var Bs=Ot(null),Xi=Ot(0);function Lm(e,a){e=uo,ve(Xi,e),ve(Bs,a),uo=e|a.baseLanes}function hd(){ve(Xi,uo),ve(Bs,Bs.current)}function uf(){uo=Xi.current,oa(Bs),oa(Xi)}var Qa=Ot(null),ut=null;function Io(e){var a=e.alternate;ve(_e,_e.current&1),ve(Qa,e),ut===null&&(a===null||Bs.current!==null||a.memoizedState!==null)&&(ut=e)}function wd(e){ve(_e,_e.current),ve(Qa,e),ut===null&&(ut=e)}function mh(e){e.tag===22?(ve(_e,_e.current),ve(Qa,e),ut===null&&(ut=e)):ko(e)}function ko(){ve(_e,_e.current),ve(Qa,Qa.current)}function _a(e){oa(Qa),ut===e&&(ut=null),oa(_e)}var _e=Ot(0);function Zi(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||Ed(t)||Hd(t)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var lo=0,F=null,pe=null,Ge=null,Yi=!1,Is=!1,Tr=!1,ji=0,Vl=0,ks=null,xy=0;function Ee(){throw Error(L(321))}function cf(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!ja(e[t],a[t]))return!1;return!0}function df(e,a,t,o,r,s){return lo=s,F=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=e===null||e.memoizedState===null?Xh:Lf,Tr=!1,s=t(o,r),Tr=!1,Is&&(s=hh(a,t,o,r)),gh(e),s}function gh(e){H.H=Xl;var a=pe!==null&&pe.next!==null;if(lo=0,Ge=pe=F=null,Yi=!1,Vl=0,ks=null,a)throw Error(L(300));e===null||Ze||(e=e.dependencies,e!==null&&Gi(e)&&(Ze=!0))}function hh(e,a,t,o){F=e;var r=0;do{if(Is&&(ks=null),Vl=0,Is=!1,25<=r)throw Error(L(301));if(r+=1,Ge=pe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}H.H=Zh,s=a(t,o)}while(Is);return s}function yy(){var e=H.H,a=e.useState()[0];return a=typeof a.then=="function"?rn(a):a,e=e.useState()[0],(pe!==null?pe.memoizedState:null)!==e&&(F.flags|=1024),a}function ff(){var e=ji!==0;return ji=0,e}function pf(e,a,t){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~t}function mf(e){if(Yi){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Yi=!1}lo=0,Ge=pe=F=null,Is=!1,Vl=ji=0,ks=null}function La(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?F.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Fe(){if(pe===null){var e=F.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var a=Ge===null?F.memoizedState:Ge.next;if(a!==null)Ge=a,pe=e;else{if(e===null)throw F.alternate===null?Error(L(467)):Error(L(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},Ge===null?F.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rn(e){var a=Vl;return Vl+=1,ks===null&&(ks=[]),e=uh(ks,e,a),a=F,(Ge===null?a.memoizedState:Ge.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?Xh:Lf),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rn(e);if(e.$$typeof===$t)return fa(e)}throw Error(L(438,String(e)))}function gf(e){var a=null,t=F.updateQueue;if(t!==null&&(a=t.memoCache),a==null){var o=F.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(r){return r.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),t===null&&(t=wu(),F.updateQueue=t),t.memoCache=a,t=a.data[a.index],t===void 0)for(t=a.data[a.index]=Array(e),o=0;o<e;o++)t[o]=lx;return a.index++,t}function no(e,a){return typeof a=="function"?a(e):a}function ki(e){var a=Fe();return hf(a,pe,e)}function hf(e,a,t){var o=e.queue;if(o===null)throw Error(L(311));o.lastRenderedReducer=t;var r=e.baseQueue,s=o.pending;if(s!==null){if(r!==null){var l=r.next;r.next=s.next,s.next=l}a.baseQueue=r=s,o.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{a=r.next;var n=l=null,i=null,u=a,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(K&d)===d:(lo&d)===d){var p=u.revertLane;if(p===0)i!==null&&(i=i.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Ds&&(c=!0);else if((lo&p)===p){u=u.next,p===Ds&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},i===null?(n=i=d,l=s):i=i.next=d,F.lanes|=p,Xo|=p;d=u.action,Tr&&t(s,d),s=u.hasEagerState?u.eagerState:t(s,d)}else p={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},i===null?(n=i=p,l=s):i=i.next=p,F.lanes|=d,Xo|=d;u=u.next}while(u!==null&&u!==a);if(i===null?l=s:i.next=n,!ja(s,e.memoizedState)&&(Ze=!0,c&&(t=Ss,t!==null)))throw t;e.memoizedState=s,e.baseState=l,e.baseQueue=i,o.lastRenderedState=s}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ac(e){var a=Fe(),t=a.queue;if(t===null)throw Error(L(311));t.lastRenderedReducer=e;var o=t.dispatch,r=t.pending,s=a.memoizedState;if(r!==null){t.pending=null;var l=r=r.next;do s=e(s,l.action),l=l.next;while(l!==r);ja(s,a.memoizedState)||(Ze=!0),a.memoizedState=s,a.baseQueue===null&&(a.baseState=s),t.lastRenderedState=s}return[s,o]}function wh(e,a,t){var o=F,r=Fe(),s=W;if(s){if(t===void 0)throw Error(L(407));t=t()}else t=a();var l=!ja((pe||r).memoizedState,t);if(l&&(r.memoizedState=t,Ze=!0),r=r.queue,wf(xh.bind(null,o,r,e),[e]),r.getSnapshot!==a||l||Ge!==null&&Ge.memoizedState.tag&1){if(o.flags|=2048,Ns(9,{destroy:void 0},vh.bind(null,o,r,t,a),null),be===null)throw Error(L(349));s||(lo&127)!==0||bh(o,a,t)}return t}function bh(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=F.updateQueue,a===null?(a=wu(),F.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function vh(e,a,t,o){a.value=t,a.getSnapshot=o,yh(a)&&Lh(e)}function xh(e,a,t){return t(function(){yh(a)&&Lh(e)})}function yh(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!ja(e,t)}catch{return!0}}function Lh(e){var a=Nr(e,2);a!==null&&Ba(a,e,2)}function bd(e){var a=La();if(typeof e=="function"){var t=e;if(e=t(),Tr){Ao(!0);try{t()}finally{Ao(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:e},a}function Sh(e,a,t,o){return e.baseState=t,hf(e,pe,typeof o=="function"?o:no)}function Ly(e,a,t,o,r){if(xu(e))throw Error(L(485));if(e=a.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){s.listeners.push(l)}};H.T!==null?t(!0):s.isTransition=!1,o(s),t=a.pending,t===null?(s.next=a.pending=s,Ch(a,s)):(s.next=t.next,a.pending=t.next=s)}}function Ch(e,a){var t=a.action,o=a.payload,r=e.state;if(a.isTransition){var s=H.T,l={};H.T=l;try{var n=t(r,o),i=H.S;i!==null&&i(l,n),Sm(e,a,n)}catch(u){vd(e,a,u)}finally{s!==null&&l.types!==null&&(s.types=l.types),H.T=s}}else try{s=t(r,o),Sm(e,a,s)}catch(u){vd(e,a,u)}}function Sm(e,a,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(o){Cm(e,a,o)},function(o){return vd(e,a,o)}):Cm(e,a,t)}function Cm(e,a,t){a.status="fulfilled",a.value=t,Ih(a),e.state=t,a=e.pending,a!==null&&(t=a.next,t===a?e.pending=null:(t=t.next,a.next=t,Ch(e,t)))}function vd(e,a,t){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=t,Ih(a),a=a.next;while(a!==o)}e.action=null}function Ih(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function kh(e,a){return a}function Im(e,a){if(W){var t=be.formState;if(t!==null){e:{var o=F;if(W){if(Ie){a:{for(var r=Ie,s=it;r.nodeType!==8;){if(!s){r=null;break a}if(r=ct(r.nextSibling),r===null){r=null;break a}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){Ie=ct(r.nextSibling),o=r.data==="F!";break e}}Go(o)}o=!1}o&&(a=t[0])}}return t=La(),t.memoizedState=t.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kh,lastRenderedState:a},t.queue=o,t=Fh.bind(null,F,o),o.dispatch=t,o=bd(!1),s=yf.bind(null,F,!1,o.queue),o=La(),r={state:a,dispatch:null,action:e,pending:null},o.queue=r,t=Ly.bind(null,F,r,s,t),r.dispatch=t,o.memoizedState=e,[a,t,!1]}function km(e){var a=Fe();return Th(a,pe,e)}function Th(e,a,t){if(a=hf(e,a,kh)[0],e=ki(no)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=rn(a)}catch(l){throw l===_s?hu:l}else o=a;a=Fe();var r=a.queue,s=r.dispatch;return t!==a.memoizedState&&(F.flags|=2048,Ns(9,{destroy:void 0},Sy.bind(null,r,t),null)),[o,s,e]}function Sy(e,a){e.action=a}function Tm(e){var a=Fe(),t=pe;if(t!==null)return Th(a,t,e);Fe(),a=a.memoizedState,t=Fe();var o=t.queue.dispatch;return t.memoizedState=e,[a,o,!1]}function Ns(e,a,t,o){return e={tag:e,create:t,deps:o,inst:a,next:null},a=F.updateQueue,a===null&&(a=wu(),F.updateQueue=a),t=a.lastEffect,t===null?a.lastEffect=e.next=e:(o=t.next,t.next=e,e.next=o,a.lastEffect=e),e}function Ah(){return Fe().memoizedState}function Ti(e,a,t,o){var r=La();F.flags|=e,r.memoizedState=Ns(1|a,{destroy:void 0},t,o===void 0?null:o)}function vu(e,a,t,o){var r=Fe();o=o===void 0?null:o;var s=r.memoizedState.inst;pe!==null&&o!==null&&cf(o,pe.memoizedState.deps)?r.memoizedState=Ns(a,s,t,o):(F.flags|=e,r.memoizedState=Ns(1|a,s,t,o))}function Am(e,a){Ti(8390656,8,e,a)}function wf(e,a){vu(2048,8,e,a)}function Cy(e){F.flags|=4;var a=F.updateQueue;if(a===null)a=wu(),F.updateQueue=a,a.events=[e];else{var t=a.events;t===null?a.events=[e]:t.push(e)}}function Mh(e){var a=Fe().memoizedState;return Cy({ref:a,nextImpl:e}),function(){if((re&2)!==0)throw Error(L(440));return a.impl.apply(void 0,arguments)}}function Dh(e,a){return vu(4,2,e,a)}function Bh(e,a){return vu(4,4,e,a)}function Nh(e,a){if(typeof a=="function"){e=e();var t=a(e);return function(){typeof t=="function"?t():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Rh(e,a,t){t=t!=null?t.concat([e]):null,vu(4,4,Nh.bind(null,a,e),t)}function bf(){}function zh(e,a){var t=Fe();a=a===void 0?null:a;var o=t.memoizedState;return a!==null&&cf(a,o[1])?o[0]:(t.memoizedState=[e,a],e)}function Oh(e,a){var t=Fe();a=a===void 0?null:a;var o=t.memoizedState;if(a!==null&&cf(a,o[1]))return o[0];if(o=e(),Tr){Ao(!0);try{e()}finally{Ao(!1)}}return t.memoizedState=[o,a],o}function vf(e,a,t){return t===void 0||(lo&1073741824)!==0&&(K&261930)===0?e.memoizedState=a:(e.memoizedState=t,e=Sw(),F.lanes|=e,Xo|=e,t)}function Eh(e,a,t,o){return ja(t,a)?t:Bs.current!==null?(e=vf(e,t,o),ja(e,a)||(Ze=!0),e):(lo&42)===0||(lo&1073741824)!==0&&(K&261930)===0?(Ze=!0,e.memoizedState=t):(e=Sw(),F.lanes|=e,Xo|=e,a)}function Hh(e,a,t,o,r){var s=se.p;se.p=s!==0&&8>s?s:8;var l=H.T,n={};H.T=n,yf(e,!1,a,t);try{var i=r(),u=H.S;if(u!==null&&u(n,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var c=vy(i,o);Bl(e,a,c,Ya(e))}else Bl(e,a,o,Ya(e))}catch(d){Bl(e,a,{then:function(){},status:"rejected",reason:d},Ya())}finally{se.p=s,l!==null&&n.types!==null&&(l.types=n.types),H.T=l}}function Iy(){}function xd(e,a,t,o){if(e.tag!==5)throw Error(L(476));var r=Ph(e).queue;Hh(e,r,a,vr,t===null?Iy:function(){return Uh(e),t(o)})}function Ph(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:vr,baseState:vr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:vr},next:null};var t={};return a.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:t},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Uh(e){var a=Ph(e);a.next===null&&(a=e.alternate.memoizedState),Bl(e,a.next.queue,{},Ya())}function xf(){return fa(jl)}function qh(){return Fe().memoizedState}function _h(){return Fe().memoizedState}function ky(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var t=Ya();e=Oo(t);var o=Eo(a,e,t);o!==null&&(Ba(o,a,t),Al(o,a,t)),a={cache:rf()},e.payload=a;return}a=a.return}}function Ty(e,a,t){var o=Ya();t={lane:o,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},xu(e)?Gh(a,t):(t=ef(e,a,t,o),t!==null&&(Ba(t,e,o),Vh(t,a,o)))}function Fh(e,a,t){var o=Ya();Bl(e,a,t,o)}function Bl(e,a,t,o){var r={lane:o,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(xu(e))Gh(a,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=a.lastRenderedReducer,s!==null))try{var l=a.lastRenderedState,n=s(l,t);if(r.hasEagerState=!0,r.eagerState=n,ja(n,l))return gu(e,a,r,0),be===null&&mu(),!1}catch{}if(t=ef(e,a,r,o),t!==null)return Ba(t,e,o),Vh(t,a,o),!0}return!1}function yf(e,a,t,o){if(o={lane:2,revertLane:Df(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},xu(e)){if(a)throw Error(L(479))}else a=ef(e,t,o,2),a!==null&&Ba(a,e,2)}function xu(e){var a=e.alternate;return e===F||a!==null&&a===F}function Gh(e,a){Is=Yi=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function Vh(e,a,t){if((t&4194048)!==0){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,Mg(e,t)}}var Xl={readContext:fa,use:bu,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useLayoutEffect:Ee,useInsertionEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useSyncExternalStore:Ee,useId:Ee,useHostTransitionStatus:Ee,useFormState:Ee,useActionState:Ee,useOptimistic:Ee,useMemoCache:Ee,useCacheRefresh:Ee};Xl.useEffectEvent=Ee;var Xh={readContext:fa,use:bu,useCallback:function(e,a){return La().memoizedState=[e,a===void 0?null:a],e},useContext:fa,useEffect:Am,useImperativeHandle:function(e,a,t){t=t!=null?t.concat([e]):null,Ti(4194308,4,Nh.bind(null,a,e),t)},useLayoutEffect:function(e,a){return Ti(4194308,4,e,a)},useInsertionEffect:function(e,a){Ti(4,2,e,a)},useMemo:function(e,a){var t=La();a=a===void 0?null:a;var o=e();if(Tr){Ao(!0);try{e()}finally{Ao(!1)}}return t.memoizedState=[o,a],o},useReducer:function(e,a,t){var o=La();if(t!==void 0){var r=t(a);if(Tr){Ao(!0);try{t(a)}finally{Ao(!1)}}}else r=a;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=Ty.bind(null,F,e),[o.memoizedState,e]},useRef:function(e){var a=La();return e={current:e},a.memoizedState=e},useState:function(e){e=bd(e);var a=e.queue,t=Fh.bind(null,F,a);return a.dispatch=t,[e.memoizedState,t]},useDebugValue:bf,useDeferredValue:function(e,a){var t=La();return vf(t,e,a)},useTransition:function(){var e=bd(!1);return e=Hh.bind(null,F,e.queue,!0,!1),La().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,t){var o=F,r=La();if(W){if(t===void 0)throw Error(L(407));t=t()}else{if(t=a(),be===null)throw Error(L(349));(K&127)!==0||bh(o,a,t)}r.memoizedState=t;var s={value:t,getSnapshot:a};return r.queue=s,Am(xh.bind(null,o,s,e),[e]),o.flags|=2048,Ns(9,{destroy:void 0},vh.bind(null,o,s,t,a),null),t},useId:function(){var e=La(),a=be.identifierPrefix;if(W){var t=Nt,o=Bt;t=(o&~(1<<32-Za(o)-1)).toString(32)+t,a="_"+a+"R_"+t,t=ji++,0<t&&(a+="H"+t.toString(32)),a+="_"}else t=xy++,a="_"+a+"r_"+t.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:xf,useFormState:Im,useActionState:Im,useOptimistic:function(e){var a=La();a.memoizedState=a.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=t,a=yf.bind(null,F,!0,t),t.dispatch=a,[e,a]},useMemoCache:gf,useCacheRefresh:function(){return La().memoizedState=ky.bind(null,F)},useEffectEvent:function(e){var a=La(),t={impl:e};return a.memoizedState=t,function(){if((re&2)!==0)throw Error(L(440));return t.impl.apply(void 0,arguments)}}},Lf={readContext:fa,use:bu,useCallback:zh,useContext:fa,useEffect:wf,useImperativeHandle:Rh,useInsertionEffect:Dh,useLayoutEffect:Bh,useMemo:Oh,useReducer:ki,useRef:Ah,useState:function(){return ki(no)},useDebugValue:bf,useDeferredValue:function(e,a){var t=Fe();return Eh(t,pe.memoizedState,e,a)},useTransition:function(){var e=ki(no)[0],a=Fe().memoizedState;return[typeof e=="boolean"?e:rn(e),a]},useSyncExternalStore:wh,useId:qh,useHostTransitionStatus:xf,useFormState:km,useActionState:km,useOptimistic:function(e,a){var t=Fe();return Sh(t,pe,e,a)},useMemoCache:gf,useCacheRefresh:_h};Lf.useEffectEvent=Mh;var Zh={readContext:fa,use:bu,useCallback:zh,useContext:fa,useEffect:wf,useImperativeHandle:Rh,useInsertionEffect:Dh,useLayoutEffect:Bh,useMemo:Oh,useReducer:Ac,useRef:Ah,useState:function(){return Ac(no)},useDebugValue:bf,useDeferredValue:function(e,a){var t=Fe();return pe===null?vf(t,e,a):Eh(t,pe.memoizedState,e,a)},useTransition:function(){var e=Ac(no)[0],a=Fe().memoizedState;return[typeof e=="boolean"?e:rn(e),a]},useSyncExternalStore:wh,useId:qh,useHostTransitionStatus:xf,useFormState:Tm,useActionState:Tm,useOptimistic:function(e,a){var t=Fe();return pe!==null?Sh(t,pe,e,a):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:gf,useCacheRefresh:_h};Zh.useEffectEvent=Mh;function Mc(e,a,t,o){a=e.memoizedState,t=t(o,a),t=t==null?a:ke({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var yd={enqueueSetState:function(e,a,t){e=e._reactInternals;var o=Ya(),r=Oo(o);r.payload=a,t!=null&&(r.callback=t),a=Eo(e,r,o),a!==null&&(Ba(a,e,o),Al(a,e,o))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var o=Ya(),r=Oo(o);r.tag=1,r.payload=a,t!=null&&(r.callback=t),a=Eo(e,r,o),a!==null&&(Ba(a,e,o),Al(a,e,o))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=Ya(),o=Oo(t);o.tag=2,a!=null&&(o.callback=a),a=Eo(e,o,t),a!==null&&(Ba(a,e,t),Al(a,e,t))}};function Mm(e,a,t,o,r,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,s,l):a.prototype&&a.prototype.isPureReactComponent?!ql(t,o)||!ql(r,s):!0}function Dm(e,a,t,o){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,o),a.state!==e&&yd.enqueueReplaceState(a,a.state,null)}function Ar(e,a){var t=a;if("ref"in a){t={};for(var o in a)o!=="ref"&&(t[o]=a[o])}if(e=e.defaultProps){t===a&&(t=ke({},t));for(var r in e)t[r]===void 0&&(t[r]=e[r])}return t}function Yh(e){qi(e)}function jh(e){console.error(e)}function Qh(e){qi(e)}function Qi(e,a){try{var t=e.onUncaughtError;t(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Bm(e,a,t){try{var o=e.onCaughtError;o(t.value,{componentStack:t.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ld(e,a,t){return t=Oo(t),t.tag=3,t.payload={element:null},t.callback=function(){Qi(e,a)},t}function Kh(e){return e=Oo(e),e.tag=3,e}function Wh(e,a,t,o){var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=o.value;e.payload=function(){return r(s)},e.callback=function(){Bm(a,t,o)}}var l=t.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Bm(a,t,o),typeof r!="function"&&(Ho===null?Ho=new Set([this]):Ho.add(this));var n=o.stack;this.componentDidCatch(o.value,{componentStack:n!==null?n:""})})}function Ay(e,a,t,o,r){if(t.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=t.alternate,a!==null&&qs(a,t,r,!0),t=Qa.current,t!==null){switch(t.tag){case 31:case 13:return ut===null?eu():t.alternate===null&&He===0&&(He=3),t.flags&=-257,t.flags|=65536,t.lanes=r,o===Vi?t.flags|=16384:(a=t.updateQueue,a===null?t.updateQueue=new Set([o]):a.add(o),qc(e,o,r)),!1;case 22:return t.flags|=65536,o===Vi?t.flags|=16384:(a=t.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},t.updateQueue=a):(t=a.retryQueue,t===null?a.retryQueue=new Set([o]):t.add(o)),qc(e,o,r)),!1}throw Error(L(435,t.tag))}return qc(e,o,r),eu(),!1}if(W)return a=Qa.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,o!==ud&&(e=Error(L(422),{cause:o}),Fl(nt(e,t)))):(o!==ud&&(a=Error(L(423),{cause:o}),Fl(nt(a,t))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=nt(o,t),r=Ld(e.stateNode,o,r),Tc(e,r),He!==4&&(He=2)),!1;var s=Error(L(520),{cause:o});if(s=nt(s,t),zl===null?zl=[s]:zl.push(s),He!==4&&(He=2),a===null)return!0;o=nt(o,t),t=a;do{switch(t.tag){case 3:return t.flags|=65536,e=r&-r,t.lanes|=e,e=Ld(t.stateNode,o,e),Tc(t,e),!1;case 1:if(a=t.type,s=t.stateNode,(t.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ho===null||!Ho.has(s))))return t.flags|=65536,r&=-r,t.lanes|=r,r=Kh(r),Wh(r,e,t,o),Tc(t,r),!1}t=t.return}while(t!==null);return!1}var Sf=Error(L(461)),Ze=!1;function ua(e,a,t,o){a.child=e===null?dh(a,null,t,o):kr(a,e.child,t,o)}function Nm(e,a,t,o,r){t=t.render;var s=a.ref;if("ref"in o){var l={};for(var n in o)n!=="ref"&&(l[n]=o[n])}else l=o;return Ir(a),o=df(e,a,t,l,s,r),n=ff(),e!==null&&!Ze?(pf(e,a,r),io(e,a,r)):(W&&n&&tf(a),a.flags|=1,ua(e,a,o,r),a.child)}function Rm(e,a,t,o,r){if(e===null){var s=t.type;return typeof s=="function"&&!af(s)&&s.defaultProps===void 0&&t.compare===null?(a.tag=15,a.type=s,Jh(e,a,s,o,r)):(e=Ci(t.type,null,o,a,a.mode,r),e.ref=a.ref,e.return=a,a.child=e)}if(s=e.child,!Cf(e,r)){var l=s.memoizedProps;if(t=t.compare,t=t!==null?t:ql,t(l,o)&&e.ref===a.ref)return io(e,a,r)}return a.flags|=1,e=to(s,o),e.ref=a.ref,e.return=a,a.child=e}function Jh(e,a,t,o,r){if(e!==null){var s=e.memoizedProps;if(ql(s,o)&&e.ref===a.ref)if(Ze=!1,a.pendingProps=o=s,Cf(e,r))(e.flags&131072)!==0&&(Ze=!0);else return a.lanes=e.lanes,io(e,a,r)}return Sd(e,a,t,o,r)}function $h(e,a,t,o){var r=o.children,s=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(s=s!==null?s.baseLanes|t:t,e!==null){for(o=a.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~s}else o=0,a.child=null;return zm(e,a,s,t,o)}if((t&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ii(a,s!==null?s.cachePool:null),s!==null?Lm(a,s):hd(),mh(a);else return o=a.lanes=536870912,zm(e,a,s!==null?s.baseLanes|t:t,t,o)}else s!==null?(Ii(a,s.cachePool),Lm(a,s),ko(a),a.memoizedState=null):(e!==null&&Ii(a,null),hd(),ko(a));return ua(e,a,r,t),a.child}function Ll(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function zm(e,a,t,o,r){var s=sf();return s=s===null?null:{parent:Xe._currentValue,pool:s},a.memoizedState={baseLanes:t,cachePool:s},e!==null&&Ii(a,null),hd(),mh(a),e!==null&&qs(e,a,o,!0),a.childLanes=r,null}function Ai(e,a){return a=Ki({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Om(e,a,t){return kr(a,e.child,null,t),e=Ai(a,a.pendingProps),e.flags|=2,_a(a),a.memoizedState=null,e}function My(e,a,t){var o=a.pendingProps,r=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(W){if(o.mode==="hidden")return e=Ai(a,o),a.lanes=536870912,Ll(null,e);if(wd(a),(e=Ie)?(e=Xw(e,it),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Fo!==null?{id:Bt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},t=rh(e),t.return=a,a.child=t,da=a,Ie=null)):e=null,e===null)throw Go(a);return a.lanes=536870912,null}return Ai(a,o)}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(wd(a),r)if(a.flags&256)a.flags&=-257,a=Om(e,a,t);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(L(558));else if(Ze||qs(e,a,t,!1),r=(t&e.childLanes)!==0,Ze||r){if(o=be,o!==null&&(l=Dg(o,t),l!==0&&l!==s.retryLane))throw s.retryLane=l,Nr(e,l),Ba(o,e,l),Sf;eu(),a=Om(e,a,t)}else e=s.treeContext,Ie=ct(l.nextSibling),da=a,W=!0,zo=null,it=!1,e!==null&&lh(a,e),a=Ai(a,o),a.flags|=4096;return a}return e=to(e.child,{mode:o.mode,children:o.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Mi(e,a){var t=a.ref;if(t===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(L(284));(e===null||e.ref!==t)&&(a.flags|=4194816)}}function Sd(e,a,t,o,r){return Ir(a),t=df(e,a,t,o,void 0,r),o=ff(),e!==null&&!Ze?(pf(e,a,r),io(e,a,r)):(W&&o&&tf(a),a.flags|=1,ua(e,a,t,r),a.child)}function Em(e,a,t,o,r,s){return Ir(a),a.updateQueue=null,t=hh(a,o,t,r),gh(e),o=ff(),e!==null&&!Ze?(pf(e,a,s),io(e,a,s)):(W&&o&&tf(a),a.flags|=1,ua(e,a,t,s),a.child)}function Hm(e,a,t,o,r){if(Ir(a),a.stateNode===null){var s=hs,l=t.contextType;typeof l=="object"&&l!==null&&(s=fa(l)),s=new t(o,s),a.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=yd,a.stateNode=s,s._reactInternals=a,s=a.stateNode,s.props=o,s.state=a.memoizedState,s.refs={},nf(a),l=t.contextType,s.context=typeof l=="object"&&l!==null?fa(l):hs,s.state=a.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Mc(a,t,l,o),s.state=a.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(l=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),l!==s.state&&yd.enqueueReplaceState(s,s.state,null),Dl(a,o,s,r),Ml(),s.state=a.memoizedState),typeof s.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(e===null){s=a.stateNode;var n=a.memoizedProps,i=Ar(t,n);s.props=i;var u=s.context,c=t.contextType;l=hs,typeof c=="object"&&c!==null&&(l=fa(c));var d=t.getDerivedStateFromProps;c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function",n=a.pendingProps!==n,c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(n||u!==l)&&Dm(a,s,o,l),So=!1;var p=a.memoizedState;s.state=p,Dl(a,o,s,r),Ml(),u=a.memoizedState,n||p!==u||So?(typeof d=="function"&&(Mc(a,t,d,o),u=a.memoizedState),(i=So||Mm(a,t,i,o,p,u,l))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(a.flags|=4194308)):(typeof s.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=u),s.props=o,s.state=u,s.context=l,o=i):(typeof s.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{s=a.stateNode,md(e,a),l=a.memoizedProps,c=Ar(t,l),s.props=c,d=a.pendingProps,p=s.context,u=t.contextType,i=hs,typeof u=="object"&&u!==null&&(i=fa(u)),n=t.getDerivedStateFromProps,(u=typeof n=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||p!==i)&&Dm(a,s,o,i),So=!1,p=a.memoizedState,s.state=p,Dl(a,o,s,r),Ml();var f=a.memoizedState;l!==d||p!==f||So||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof n=="function"&&(Mc(a,t,n,o),f=a.memoizedState),(c=So||Mm(a,t,c,o,p,f,i)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,f,i),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,f,i)),typeof s.componentDidUpdate=="function"&&(a.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(a.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=f),s.props=o,s.state=f,s.context=i,o=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(a.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(a.flags|=1024),o=!1)}return s=o,Mi(e,a),o=(a.flags&128)!==0,s||o?(s=a.stateNode,t=o&&typeof t.getDerivedStateFromError!="function"?null:s.render(),a.flags|=1,e!==null&&o?(a.child=kr(a,e.child,null,r),a.child=kr(a,null,t,r)):ua(e,a,t,r),a.memoizedState=s.state,e=a.child):e=io(e,a,r),e}function Pm(e,a,t,o){return Cr(),a.flags|=256,ua(e,a,t,o),a.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:ih()}}function Nc(e,a,t){return e=e!==null?e.childLanes&~t:0,a&&(e|=Ga),e}function ew(e,a,t){var o=a.pendingProps,r=!1,s=(a.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(_e.current&2)!==0),l&&(r=!0,a.flags&=-129),l=(a.flags&32)!==0,a.flags&=-33,e===null){if(W){if(r?Io(a):ko(a),(e=Ie)?(e=Xw(e,it),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Fo!==null?{id:Bt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},t=rh(e),t.return=a,a.child=t,da=a,Ie=null)):e=null,e===null)throw Go(a);return Hd(e)?a.lanes=32:a.lanes=536870912,null}var n=o.children;return o=o.fallback,r?(ko(a),r=a.mode,n=Ki({mode:"hidden",children:n},r),o=xr(o,r,t,null),n.return=a,o.return=a,n.sibling=o,a.child=n,o=a.child,o.memoizedState=Bc(t),o.childLanes=Nc(e,l,t),a.memoizedState=Dc,Ll(null,o)):(Io(a),Cd(a,n))}var i=e.memoizedState;if(i!==null&&(n=i.dehydrated,n!==null)){if(s)a.flags&256?(Io(a),a.flags&=-257,a=Rc(e,a,t)):a.memoizedState!==null?(ko(a),a.child=e.child,a.flags|=128,a=null):(ko(a),n=o.fallback,r=a.mode,o=Ki({mode:"visible",children:o.children},r),n=xr(n,r,t,null),n.flags|=2,o.return=a,n.return=a,o.sibling=n,a.child=o,kr(a,e.child,null,t),o=a.child,o.memoizedState=Bc(t),o.childLanes=Nc(e,l,t),a.memoizedState=Dc,a=Ll(null,o));else if(Io(a),Hd(n)){if(l=n.nextSibling&&n.nextSibling.dataset,l)var u=l.dgst;l=u,o=Error(L(419)),o.stack="",o.digest=l,Fl({value:o,source:null,stack:null}),a=Rc(e,a,t)}else if(Ze||qs(e,a,t,!1),l=(t&e.childLanes)!==0,Ze||l){if(l=be,l!==null&&(o=Dg(l,t),o!==0&&o!==i.retryLane))throw i.retryLane=o,Nr(e,o),Ba(l,e,o),Sf;Ed(n)||eu(),a=Rc(e,a,t)}else Ed(n)?(a.flags|=192,a.child=e.child,a=null):(e=i.treeContext,Ie=ct(n.nextSibling),da=a,W=!0,zo=null,it=!1,e!==null&&lh(a,e),a=Cd(a,o.children),a.flags|=4096);return a}return r?(ko(a),n=o.fallback,r=a.mode,i=e.child,u=i.sibling,o=to(i,{mode:"hidden",children:o.children}),o.subtreeFlags=i.subtreeFlags&65011712,u!==null?n=to(u,n):(n=xr(n,r,t,null),n.flags|=2),n.return=a,o.return=a,o.sibling=n,a.child=o,Ll(null,o),o=a.child,n=e.child.memoizedState,n===null?n=Bc(t):(r=n.cachePool,r!==null?(i=Xe._currentValue,r=r.parent!==i?{parent:i,pool:i}:r):r=ih(),n={baseLanes:n.baseLanes|t,cachePool:r}),o.memoizedState=n,o.childLanes=Nc(e,l,t),a.memoizedState=Dc,Ll(e.child,o)):(Io(a),t=e.child,e=t.sibling,t=to(t,{mode:"visible",children:o.children}),t.return=a,t.sibling=null,e!==null&&(l=a.deletions,l===null?(a.deletions=[e],a.flags|=16):l.push(e)),a.child=t,a.memoizedState=null,t)}function Cd(e,a){return a=Ki({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Ki(e,a){return e=Fa(22,e,null,a),e.lanes=0,e}function Rc(e,a,t){return kr(a,e.child,null,t),e=Cd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Um(e,a,t){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a),dd(e.return,a,t)}function zc(e,a,t,o,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:t,tailMode:r,treeForkCount:s}:(l.isBackwards=a,l.rendering=null,l.renderingStartTime=0,l.last=o,l.tail=t,l.tailMode=r,l.treeForkCount=s)}function aw(e,a,t){var o=a.pendingProps,r=o.revealOrder,s=o.tail;o=o.children;var l=_e.current,n=(l&2)!==0;if(n?(l=l&1|2,a.flags|=128):l&=1,ve(_e,l),ua(e,a,o,t),o=W?_l:0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Um(e,t,a);else if(e.tag===19)Um(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(t=a.child,r=null;t!==null;)e=t.alternate,e!==null&&Zi(e)===null&&(r=t),t=t.sibling;t=r,t===null?(r=a.child,a.child=null):(r=t.sibling,t.sibling=null),zc(a,!1,r,t,s,o);break;case"backwards":case"unstable_legacy-backwards":for(t=null,r=a.child,a.child=null;r!==null;){if(e=r.alternate,e!==null&&Zi(e)===null){a.child=r;break}e=r.sibling,r.sibling=t,t=r,r=e}zc(a,!0,t,null,s,o);break;case"together":zc(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function io(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),Xo|=a.lanes,(t&a.childLanes)===0)if(e!==null){if(qs(e,a,t,!1),(t&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(L(153));if(a.child!==null){for(e=a.child,t=to(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=to(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function Cf(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function Dy(e,a,t){switch(a.tag){case 3:Ei(a,a.stateNode.containerInfo),Co(a,Xe,e.memoizedState.cache),Cr();break;case 27:case 5:Jc(a);break;case 4:Ei(a,a.stateNode.containerInfo);break;case 10:Co(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,wd(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Io(a),a.flags|=128,null):(t&a.child.childLanes)!==0?ew(e,a,t):(Io(a),e=io(e,a,t),e!==null?e.sibling:null);Io(a);break;case 19:var r=(e.flags&128)!==0;if(o=(t&a.childLanes)!==0,o||(qs(e,a,t,!1),o=(t&a.childLanes)!==0),r){if(o)return aw(e,a,t);a.flags|=128}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ve(_e,_e.current),o)break;return null;case 22:return a.lanes=0,$h(e,a,t,a.pendingProps);case 24:Co(a,Xe,e.memoizedState.cache)}return io(e,a,t)}function tw(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps)Ze=!0;else{if(!Cf(e,t)&&(a.flags&128)===0)return Ze=!1,Dy(e,a,t);Ze=(e.flags&131072)!==0}else Ze=!1,W&&(a.flags&1048576)!==0&&sh(a,_l,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(e=wr(a.elementType),a.type=e,typeof e=="function")af(e)?(o=Ar(e,o),a.tag=1,a=Hm(null,a,e,o,t)):(a.tag=0,a=Sd(null,a,e,o,t));else{if(e!=null){var r=e.$$typeof;if(r===_d){a.tag=11,a=Nm(null,a,e,o,t);break e}else if(r===Fd){a.tag=14,a=Rm(null,a,e,o,t);break e}}throw a=Kc(e)||e,Error(L(306,a,""))}}return a;case 0:return Sd(e,a,a.type,a.pendingProps,t);case 1:return o=a.type,r=Ar(o,a.pendingProps),Hm(e,a,o,r,t);case 3:e:{if(Ei(a,a.stateNode.containerInfo),e===null)throw Error(L(387));o=a.pendingProps;var s=a.memoizedState;r=s.element,md(e,a),Dl(a,o,null,t);var l=a.memoizedState;if(o=l.cache,Co(a,Xe,o),o!==s.cache&&fd(a,[Xe],t,!0),Ml(),o=l.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:l.cache},a.updateQueue.baseState=s,a.memoizedState=s,a.flags&256){a=Pm(e,a,o,t);break e}else if(o!==r){r=nt(Error(L(424)),a),Fl(r),a=Pm(e,a,o,t);break e}else for(e=a.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ie=ct(e.firstChild),da=a,W=!0,zo=null,it=!0,t=dh(a,null,o,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Cr(),o===r){a=io(e,a,t);break e}ua(e,a,o,t)}a=a.child}return a;case 26:return Mi(e,a),e===null?(t=ng(a.type,null,a.pendingProps,null))?a.memoizedState=t:W||(t=a.type,e=a.pendingProps,o=ru(Ro.current).createElement(t),o[ca]=a,o[Na]=e,pa(o,t,e),ta(o),a.stateNode=o):a.memoizedState=ng(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Jc(a),e===null&&W&&(o=a.stateNode=Zw(a.type,a.pendingProps,Ro.current),da=a,it=!0,r=Ie,Yo(a.type)?(Pd=r,Ie=ct(o.firstChild)):Ie=r),ua(e,a,a.pendingProps.children,t),Mi(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&W&&((r=o=Ie)&&(o=r0(o,a.type,a.pendingProps,it),o!==null?(a.stateNode=o,da=a,Ie=ct(o.firstChild),it=!1,r=!0):r=!1),r||Go(a)),Jc(a),r=a.type,s=a.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,zd(r,s)?o=null:l!==null&&zd(r,l)&&(a.flags|=32),a.memoizedState!==null&&(r=df(e,a,yy,null,null,t),jl._currentValue=r),Mi(e,a),ua(e,a,o,t),a.child;case 6:return e===null&&W&&((e=t=Ie)&&(t=s0(t,a.pendingProps,it),t!==null?(a.stateNode=t,da=a,Ie=null,e=!0):e=!1),e||Go(a)),null;case 13:return ew(e,a,t);case 4:return Ei(a,a.stateNode.containerInfo),o=a.pendingProps,e===null?a.child=kr(a,null,o,t):ua(e,a,o,t),a.child;case 11:return Nm(e,a,a.type,a.pendingProps,t);case 7:return ua(e,a,a.pendingProps,t),a.child;case 8:return ua(e,a,a.pendingProps.children,t),a.child;case 12:return ua(e,a,a.pendingProps.children,t),a.child;case 10:return o=a.pendingProps,Co(a,a.type,o.value),ua(e,a,o.children,t),a.child;case 9:return r=a.type._context,o=a.pendingProps.children,Ir(a),r=fa(r),o=o(r),a.flags|=1,ua(e,a,o,t),a.child;case 14:return Rm(e,a,a.type,a.pendingProps,t);case 15:return Jh(e,a,a.type,a.pendingProps,t);case 19:return aw(e,a,t);case 31:return My(e,a,t);case 22:return $h(e,a,t,a.pendingProps);case 24:return Ir(a),o=fa(Xe),e===null?(r=sf(),r===null&&(r=be,s=rf(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=t),r=s),a.memoizedState={parent:o,cache:r},nf(a),Co(a,Xe,r)):((e.lanes&t)!==0&&(md(e,a),Dl(a,null,null,t),Ml()),r=e.memoizedState,s=a.memoizedState,r.parent!==o?(r={parent:o,cache:o},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),Co(a,Xe,o)):(o=s.cache,Co(a,Xe,o),o!==r.cache&&fd(a,[Xe],t,!0))),ua(e,a,a.pendingProps.children,t),a.child;case 29:throw a.pendingProps}throw Error(L(156,a.tag))}function Yt(e){e.flags|=4}function Oc(e,a,t,o,r){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(kw())e.flags|=8192;else throw Lr=Vi,lf}else e.flags&=-16777217}function qm(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qw(a))if(kw())e.flags|=8192;else throw Lr=Vi,lf}function pi(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?Tg():536870912,e.lanes|=a,Rs|=a)}function gl(e,a){if(!W)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ce(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,o=0;if(a)for(var r=e.child;r!==null;)t|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)t|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=t,a}function By(e,a,t){var o=a.pendingProps;switch(of(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(a),null;case 1:return Ce(a),null;case 3:return t=a.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),oo(Xe),Ts(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(rs(a)?Yt(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,kc())),Ce(a),null;case 26:var r=a.type,s=a.memoizedState;return e===null?(Yt(a),s!==null?(Ce(a),qm(a,s)):(Ce(a),Oc(a,r,null,o,t))):s?s!==e.memoizedState?(Yt(a),Ce(a),qm(a,s)):(Ce(a),a.flags&=-16777217):(e=e.memoizedProps,e!==o&&Yt(a),Ce(a),Oc(a,r,e,o,t)),null;case 27:if(Hi(a),t=Ro.current,r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&Yt(a);else{if(!o){if(a.stateNode===null)throw Error(L(166));return Ce(a),null}e=zt.current,rs(a)?gm(a,e):(e=Zw(r,o,t),a.stateNode=e,Yt(a))}return Ce(a),null;case 5:if(Hi(a),r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&Yt(a);else{if(!o){if(a.stateNode===null)throw Error(L(166));return Ce(a),null}if(s=zt.current,rs(a))gm(a,s);else{var l=ru(Ro.current);switch(s){case 1:s=l.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:s=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":s=l.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":s=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":s=l.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is=="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is=="string"?l.createElement(r,{is:o.is}):l.createElement(r)}}s[ca]=a,s[Na]=o;e:for(l=a.child;l!==null;){if(l.tag===5||l.tag===6)s.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}a.stateNode=s;e:switch(pa(s,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Yt(a)}}return Ce(a),Oc(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,t),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==o&&Yt(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(L(166));if(e=Ro.current,rs(a)){if(e=a.stateNode,t=a.memoizedProps,o=null,r=da,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[ca]=a,e=!!(e.nodeValue===t||o!==null&&o.suppressHydrationWarning===!0||Fw(e.nodeValue,t)),e||Go(a,!0)}else e=ru(e).createTextNode(o),e[ca]=a,a.stateNode=e}return Ce(a),null;case 31:if(t=a.memoizedState,e===null||e.memoizedState!==null){if(o=rs(a),t!==null){if(e===null){if(!o)throw Error(L(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(557));e[ca]=a}else Cr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ce(a),e=!1}else t=kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return a.flags&256?(_a(a),a):(_a(a),null);if((a.flags&128)!==0)throw Error(L(558))}return Ce(a),null;case 13:if(o=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=rs(a),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(L(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(L(317));r[ca]=a}else Cr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ce(a),r=!1}else r=kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return a.flags&256?(_a(a),a):(_a(a),null)}return _a(a),(a.flags&128)!==0?(a.lanes=t,a):(t=o!==null,e=e!==null&&e.memoizedState!==null,t&&(o=a.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==r&&(o.flags|=2048)),t!==e&&t&&(a.child.flags|=8192),pi(a,a.updateQueue),Ce(a),null);case 4:return Ts(),e===null&&Bf(a.stateNode.containerInfo),Ce(a),null;case 10:return oo(a.type),Ce(a),null;case 19:if(oa(_e),o=a.memoizedState,o===null)return Ce(a),null;if(r=(a.flags&128)!==0,s=o.rendering,s===null)if(r)gl(o,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(s=Zi(e),s!==null){for(a.flags|=128,gl(o,!1),e=s.updateQueue,a.updateQueue=e,pi(a,e),a.subtreeFlags=0,e=t,t=a.child;t!==null;)oh(t,e),t=t.sibling;return ve(_e,_e.current&1|2),W&&Wt(a,o.treeForkCount),a.child}e=e.sibling}o.tail!==null&&Va()>Ji&&(a.flags|=128,r=!0,gl(o,!1),a.lanes=4194304)}else{if(!r)if(e=Zi(s),e!==null){if(a.flags|=128,r=!0,e=e.updateQueue,a.updateQueue=e,pi(a,e),gl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return Ce(a),null}else 2*Va()-o.renderingStartTime>Ji&&t!==536870912&&(a.flags|=128,r=!0,gl(o,!1),a.lanes=4194304);o.isBackwards?(s.sibling=a.child,a.child=s):(e=o.last,e!==null?e.sibling=s:a.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Va(),e.sibling=null,t=_e.current,ve(_e,r?t&1|2:t&1),W&&Wt(a,o.treeForkCount),e):(Ce(a),null);case 22:case 23:return _a(a),uf(),o=a.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(t&536870912)!==0&&(a.flags&128)===0&&(Ce(a),a.subtreeFlags&6&&(a.flags|=8192)):Ce(a),t=a.updateQueue,t!==null&&pi(a,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==t&&(a.flags|=2048),e!==null&&oa(yr),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),a.memoizedState.cache!==t&&(a.flags|=2048),oo(Xe),Ce(a),null;case 25:return null;case 30:return null}throw Error(L(156,a.tag))}function Ny(e,a){switch(of(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return oo(Xe),Ts(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return Hi(a),null;case 31:if(a.memoizedState!==null){if(_a(a),a.alternate===null)throw Error(L(340));Cr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(_a(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(L(340));Cr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return oa(_e),null;case 4:return Ts(),null;case 10:return oo(a.type),null;case 22:case 23:return _a(a),uf(),e!==null&&oa(yr),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return oo(Xe),null;case 25:return null;default:return null}}function ow(e,a){switch(of(a),a.tag){case 3:oo(Xe),Ts();break;case 26:case 27:case 5:Hi(a);break;case 4:Ts();break;case 31:a.memoizedState!==null&&_a(a);break;case 13:_a(a);break;case 19:oa(_e);break;case 10:oo(a.type);break;case 22:case 23:_a(a),uf(),e!==null&&oa(yr);break;case 24:oo(Xe)}}function sn(e,a){try{var t=a.updateQueue,o=t!==null?t.lastEffect:null;if(o!==null){var r=o.next;t=r;do{if((t.tag&e)===e){o=void 0;var s=t.create,l=t.inst;o=s(),l.destroy=o}t=t.next}while(t!==r)}}catch(n){ie(a,a.return,n)}}function Vo(e,a,t){try{var o=a.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var s=r.next;o=s;do{if((o.tag&e)===e){var l=o.inst,n=l.destroy;if(n!==void 0){l.destroy=void 0,r=a;var i=t,u=n;try{u()}catch(c){ie(r,i,c)}}}o=o.next}while(o!==s)}}catch(c){ie(a,a.return,c)}}function rw(e){var a=e.updateQueue;if(a!==null){var t=e.stateNode;try{ph(a,t)}catch(o){ie(e,e.return,o)}}}function sw(e,a,t){t.props=Ar(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(o){ie(e,a,o)}}function Nl(e,a){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof t=="function"?e.refCleanup=t(o):t.current=o}}catch(r){ie(e,a,r)}}function Rt(e,a){var t=e.ref,o=e.refCleanup;if(t!==null)if(typeof o=="function")try{o()}catch(r){ie(e,a,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(r){ie(e,a,r)}else t.current=null}function lw(e){var a=e.type,t=e.memoizedProps,o=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":t.autoFocus&&o.focus();break e;case"img":t.src?o.src=t.src:t.srcSet&&(o.srcset=t.srcSet)}}catch(r){ie(e,e.return,r)}}function Ec(e,a,t){try{var o=e.stateNode;Jy(o,e.type,t,a),o[Na]=a}catch(r){ie(e,e.return,r)}}function nw(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yo(e.type)||e.tag===4}function Hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Yo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Id(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,a):(a=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.appendChild(e),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=eo));else if(o!==4&&(o===27&&Yo(e.type)&&(t=e.stateNode,a=null),e=e.child,e!==null))for(Id(e,a,t),e=e.sibling;e!==null;)Id(e,a,t),e=e.sibling}function Wi(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(o!==4&&(o===27&&Yo(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(Wi(e,a,t),e=e.sibling;e!==null;)Wi(e,a,t),e=e.sibling}function iw(e){var a=e.stateNode,t=e.memoizedProps;try{for(var o=e.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);pa(a,o,t),a[ca]=e,a[Na]=t}catch(s){ie(e,e.return,s)}}var Jt=!1,Ve=!1,Pc=!1,_m=typeof WeakSet=="function"?WeakSet:Set,aa=null;function Ry(e,a){if(e=e.containerInfo,Nd=iu,e=Qg(e),Jd(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var o=t.getSelection&&t.getSelection();if(o&&o.rangeCount!==0){t=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{t.nodeType,s.nodeType}catch{t=null;break e}var l=0,n=-1,i=-1,u=0,c=0,d=e,p=null;a:for(;;){for(var f;d!==t||r!==0&&d.nodeType!==3||(n=l+r),d!==s||o!==0&&d.nodeType!==3||(i=l+o),d.nodeType===3&&(l+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break a;if(p===t&&++u===r&&(n=l),p===s&&++c===o&&(i=l),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}t=n===-1||i===-1?null:{start:n,end:i}}else t=null}t=t||{start:0,end:0}}else t=null;for(Rd={focusedElem:e,selectionRange:t},iu=!1,aa=a;aa!==null;)if(a=aa,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,aa=e;else for(;aa!==null;){switch(a=aa,s=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(t=0;t<e.length;t++)r=e[t],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,t=a,r=s.memoizedProps,s=s.memoizedState,o=t.stateNode;try{var b=Ar(t.type,r);e=o.getSnapshotBeforeUpdate(b,s),o.__reactInternalSnapshotBeforeUpdate=e}catch(x){ie(t,t.return,x)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,t=e.nodeType,t===9)Od(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(L(163))}if(e=a.sibling,e!==null){e.return=a.return,aa=e;break}aa=a.return}}function uw(e,a,t){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t),o&4&&sn(5,t);break;case 1:if(Qt(e,t),o&4)if(e=t.stateNode,a===null)try{e.componentDidMount()}catch(l){ie(t,t.return,l)}else{var r=Ar(t.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(r,a,e.__reactInternalSnapshotBeforeUpdate)}catch(l){ie(t,t.return,l)}}o&64&&rw(t),o&512&&Nl(t,t.return);break;case 3:if(Qt(e,t),o&64&&(e=t.updateQueue,e!==null)){if(a=null,t.child!==null)switch(t.child.tag){case 27:case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}try{ph(e,a)}catch(l){ie(t,t.return,l)}}break;case 27:a===null&&o&4&&iw(t);case 26:case 5:Qt(e,t),a===null&&o&4&&lw(t),o&512&&Nl(t,t.return);break;case 12:Qt(e,t);break;case 31:Qt(e,t),o&4&&fw(e,t);break;case 13:Qt(e,t),o&4&&pw(e,t),o&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=Fy.bind(null,t),l0(e,t))));break;case 22:if(o=t.memoizedState!==null||Jt,!o){a=a!==null&&a.memoizedState!==null||Ve,r=Jt;var s=Ve;Jt=o,(Ve=a)&&!s?Kt(e,t,(t.subtreeFlags&8772)!==0):Qt(e,t),Jt=r,Ve=s}break;case 30:break;default:Qt(e,t)}}function cw(e){var a=e.alternate;a!==null&&(e.alternate=null,cw(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&Zd(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,Ma=!1;function jt(e,a,t){for(t=t.child;t!==null;)dw(e,a,t),t=t.sibling}function dw(e,a,t){if(Xa&&typeof Xa.onCommitFiberUnmount=="function")try{Xa.onCommitFiberUnmount(Jl,t)}catch{}switch(t.tag){case 26:Ve||Rt(t,a),jt(e,a,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:Ve||Rt(t,a);var o=De,r=Ma;Yo(t.type)&&(De=t.stateNode,Ma=!1),jt(e,a,t),El(t.stateNode),De=o,Ma=r;break;case 5:Ve||Rt(t,a);case 6:if(o=De,r=Ma,De=null,jt(e,a,t),De=o,Ma=r,De!==null)if(Ma)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(t.stateNode)}catch(s){ie(t,a,s)}else try{De.removeChild(t.stateNode)}catch(s){ie(t,a,s)}break;case 18:De!==null&&(Ma?(e=De,tg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),Hs(e)):tg(De,t.stateNode));break;case 4:o=De,r=Ma,De=t.stateNode.containerInfo,Ma=!0,jt(e,a,t),De=o,Ma=r;break;case 0:case 11:case 14:case 15:Vo(2,t,a),Ve||Vo(4,t,a),jt(e,a,t);break;case 1:Ve||(Rt(t,a),o=t.stateNode,typeof o.componentWillUnmount=="function"&&sw(t,a,o)),jt(e,a,t);break;case 21:jt(e,a,t);break;case 22:Ve=(o=Ve)||t.memoizedState!==null,jt(e,a,t),Ve=o;break;default:jt(e,a,t)}}function fw(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hs(e)}catch(t){ie(a,a.return,t)}}}function pw(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hs(e)}catch(t){ie(a,a.return,t)}}function zy(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new _m),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new _m),a;default:throw Error(L(435,e.tag))}}function mi(e,a){var t=zy(e);a.forEach(function(o){if(!t.has(o)){t.add(o);var r=Gy.bind(null,e,o);o.then(r,r)}})}function Ta(e,a){var t=a.deletions;if(t!==null)for(var o=0;o<t.length;o++){var r=t[o],s=e,l=a,n=l;e:for(;n!==null;){switch(n.tag){case 27:if(Yo(n.type)){De=n.stateNode,Ma=!1;break e}break;case 5:De=n.stateNode,Ma=!1;break e;case 3:case 4:De=n.stateNode.containerInfo,Ma=!0;break e}n=n.return}if(De===null)throw Error(L(160));dw(s,l,r),De=null,Ma=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)mw(a,e),a=a.sibling}var xt=null;function mw(e,a){var t=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ta(a,e),Aa(e),o&4&&(Vo(3,e,e.return),sn(3,e),Vo(5,e,e.return));break;case 1:Ta(a,e),Aa(e),o&512&&(Ve||t===null||Rt(t,t.return)),o&64&&Jt&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?o:t.concat(o))));break;case 26:var r=xt;if(Ta(a,e),Aa(e),o&512&&(Ve||t===null||Rt(t,t.return)),o&4){var s=t!==null?t.memoizedState:null;if(o=e.memoizedState,t===null)if(o===null)if(e.stateNode===null){e:{o=e.type,t=e.memoizedProps,r=r.ownerDocument||r;a:switch(o){case"title":s=r.getElementsByTagName("title")[0],(!s||s[an]||s[ca]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(o),r.head.insertBefore(s,r.querySelector("head > title"))),pa(s,o,t),s[ca]=e,ta(s),o=s;break e;case"link":var l=ug("link","href",r).get(o+(t.href||""));if(l){for(var n=0;n<l.length;n++)if(s=l[n],s.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&s.getAttribute("rel")===(t.rel==null?null:t.rel)&&s.getAttribute("title")===(t.title==null?null:t.title)&&s.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){l.splice(n,1);break a}}s=r.createElement(o),pa(s,o,t),r.head.appendChild(s);break;case"meta":if(l=ug("meta","content",r).get(o+(t.content||""))){for(n=0;n<l.length;n++)if(s=l[n],s.getAttribute("content")===(t.content==null?null:""+t.content)&&s.getAttribute("name")===(t.name==null?null:t.name)&&s.getAttribute("property")===(t.property==null?null:t.property)&&s.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&s.getAttribute("charset")===(t.charSet==null?null:t.charSet)){l.splice(n,1);break a}}s=r.createElement(o),pa(s,o,t),r.head.appendChild(s);break;default:throw Error(L(468,o))}s[ca]=e,ta(s),o=s}e.stateNode=o}else cg(r,e.type,e.stateNode);else e.stateNode=ig(r,o,e.memoizedProps);else s!==o?(s===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):s.count--,o===null?cg(r,e.type,e.stateNode):ig(r,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Ec(e,e.memoizedProps,t.memoizedProps)}break;case 27:Ta(a,e),Aa(e),o&512&&(Ve||t===null||Rt(t,t.return)),t!==null&&o&4&&Ec(e,e.memoizedProps,t.memoizedProps);break;case 5:if(Ta(a,e),Aa(e),o&512&&(Ve||t===null||Rt(t,t.return)),e.flags&32){r=e.stateNode;try{Ms(r,"")}catch(b){ie(e,e.return,b)}}o&4&&e.stateNode!=null&&(r=e.memoizedProps,Ec(e,r,t!==null?t.memoizedProps:r)),o&1024&&(Pc=!0);break;case 6:if(Ta(a,e),Aa(e),o&4){if(e.stateNode===null)throw Error(L(162));o=e.memoizedProps,t=e.stateNode;try{t.nodeValue=o}catch(b){ie(e,e.return,b)}}break;case 3:if(Ni=null,r=xt,xt=su(a.containerInfo),Ta(a,e),xt=r,Aa(e),o&4&&t!==null&&t.memoizedState.isDehydrated)try{Hs(a.containerInfo)}catch(b){ie(e,e.return,b)}Pc&&(Pc=!1,gw(e));break;case 4:o=xt,xt=su(e.stateNode.containerInfo),Ta(a,e),Aa(e),xt=o;break;case 12:Ta(a,e),Aa(e);break;case 31:Ta(a,e),Aa(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mi(e,o)));break;case 13:Ta(a,e),Aa(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(yu=Va()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mi(e,o)));break;case 22:r=e.memoizedState!==null;var i=t!==null&&t.memoizedState!==null,u=Jt,c=Ve;if(Jt=u||r,Ve=c||i,Ta(a,e),Ve=c,Jt=u,Aa(e),o&8192)e:for(a=e.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(t===null||i||Jt||Ve||br(e)),t=null,a=e;;){if(a.tag===5||a.tag===26){if(t===null){i=t=a;try{if(s=i.stateNode,r)l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{n=i.stateNode;var d=i.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;n.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(b){ie(i,i.return,b)}}}else if(a.tag===6){if(t===null){i=a;try{i.stateNode.nodeValue=r?"":i.memoizedProps}catch(b){ie(i,i.return,b)}}}else if(a.tag===18){if(t===null){i=a;try{var f=i.stateNode;r?og(f,!0):og(i.stateNode,!1)}catch(b){ie(i,i.return,b)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;t===a&&(t=null),a=a.return}t===a&&(t=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=e.updateQueue,o!==null&&(t=o.retryQueue,t!==null&&(o.retryQueue=null,mi(e,t))));break;case 19:Ta(a,e),Aa(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mi(e,o)));break;case 30:break;case 21:break;default:Ta(a,e),Aa(e)}}function Aa(e){var a=e.flags;if(a&2){try{for(var t,o=e.return;o!==null;){if(nw(o)){t=o;break}o=o.return}if(t==null)throw Error(L(160));switch(t.tag){case 27:var r=t.stateNode,s=Hc(e);Wi(e,s,r);break;case 5:var l=t.stateNode;t.flags&32&&(Ms(l,""),t.flags&=-33);var n=Hc(e);Wi(e,n,l);break;case 3:case 4:var i=t.stateNode.containerInfo,u=Hc(e);Id(e,u,i);break;default:throw Error(L(161))}}catch(c){ie(e,e.return,c)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function gw(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;gw(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Qt(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)uw(e,a.alternate,a),a=a.sibling}function br(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Vo(4,a,a.return),br(a);break;case 1:Rt(a,a.return);var t=a.stateNode;typeof t.componentWillUnmount=="function"&&sw(a,a.return,t),br(a);break;case 27:El(a.stateNode);case 26:case 5:Rt(a,a.return),br(a);break;case 22:a.memoizedState===null&&br(a);break;case 30:br(a);break;default:br(a)}e=e.sibling}}function Kt(e,a,t){for(t=t&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,r=e,s=a,l=s.flags;switch(s.tag){case 0:case 11:case 15:Kt(r,s,t),sn(4,s);break;case 1:if(Kt(r,s,t),o=s,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){ie(o,o.return,u)}if(o=s,r=o.updateQueue,r!==null){var n=o.stateNode;try{var i=r.shared.hiddenCallbacks;if(i!==null)for(r.shared.hiddenCallbacks=null,r=0;r<i.length;r++)fh(i[r],n)}catch(u){ie(o,o.return,u)}}t&&l&64&&rw(s),Nl(s,s.return);break;case 27:iw(s);case 26:case 5:Kt(r,s,t),t&&o===null&&l&4&&lw(s),Nl(s,s.return);break;case 12:Kt(r,s,t);break;case 31:Kt(r,s,t),t&&l&4&&fw(r,s);break;case 13:Kt(r,s,t),t&&l&4&&pw(r,s);break;case 22:s.memoizedState===null&&Kt(r,s,t),Nl(s,s.return);break;case 30:break;default:Kt(r,s,t)}a=a.sibling}}function If(e,a){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&on(t))}function kf(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&on(e))}function vt(e,a,t,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)hw(e,a,t,o),a=a.sibling}function hw(e,a,t,o){var r=a.flags;switch(a.tag){case 0:case 11:case 15:vt(e,a,t,o),r&2048&&sn(9,a);break;case 1:vt(e,a,t,o);break;case 3:vt(e,a,t,o),r&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&on(e)));break;case 12:if(r&2048){vt(e,a,t,o),e=a.stateNode;try{var s=a.memoizedProps,l=s.id,n=s.onPostCommit;typeof n=="function"&&n(l,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(i){ie(a,a.return,i)}}else vt(e,a,t,o);break;case 31:vt(e,a,t,o);break;case 13:vt(e,a,t,o);break;case 23:break;case 22:s=a.stateNode,l=a.alternate,a.memoizedState!==null?s._visibility&2?vt(e,a,t,o):Rl(e,a):s._visibility&2?vt(e,a,t,o):(s._visibility|=2,ls(e,a,t,o,(a.subtreeFlags&10256)!==0||!1)),r&2048&&If(l,a);break;case 24:vt(e,a,t,o),r&2048&&kf(a.alternate,a);break;default:vt(e,a,t,o)}}function ls(e,a,t,o,r){for(r=r&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var s=e,l=a,n=t,i=o,u=l.flags;switch(l.tag){case 0:case 11:case 15:ls(s,l,n,i,r),sn(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?ls(s,l,n,i,r):Rl(s,l):(c._visibility|=2,ls(s,l,n,i,r)),r&&u&2048&&If(l.alternate,l);break;case 24:ls(s,l,n,i,r),r&&u&2048&&kf(l.alternate,l);break;default:ls(s,l,n,i,r)}a=a.sibling}}function Rl(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var t=e,o=a,r=o.flags;switch(o.tag){case 22:Rl(t,o),r&2048&&If(o.alternate,o);break;case 24:Rl(t,o),r&2048&&kf(o.alternate,o);break;default:Rl(t,o)}a=a.sibling}}var Sl=8192;function ss(e,a,t){if(e.subtreeFlags&Sl)for(e=e.child;e!==null;)ww(e,a,t),e=e.sibling}function ww(e,a,t){switch(e.tag){case 26:ss(e,a,t),e.flags&Sl&&e.memoizedState!==null&&b0(t,xt,e.memoizedState,e.memoizedProps);break;case 5:ss(e,a,t);break;case 3:case 4:var o=xt;xt=su(e.stateNode.containerInfo),ss(e,a,t),xt=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Sl,Sl=16777216,ss(e,a,t),Sl=o):ss(e,a,t));break;default:ss(e,a,t)}}function bw(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function hl(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];aa=o,xw(o,e)}bw(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vw(e),e=e.sibling}function vw(e){switch(e.tag){case 0:case 11:case 15:hl(e),e.flags&2048&&Vo(9,e,e.return);break;case 3:hl(e);break;case 12:hl(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,Di(e)):hl(e);break;default:hl(e)}}function Di(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];aa=o,xw(o,e)}bw(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Vo(8,a,a.return),Di(a);break;case 22:t=a.stateNode,t._visibility&2&&(t._visibility&=-3,Di(a));break;default:Di(a)}e=e.sibling}}function xw(e,a){for(;aa!==null;){var t=aa;switch(t.tag){case 0:case 11:case 15:Vo(8,t,a);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var o=t.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:on(t.memoizedState.cache)}if(o=t.child,o!==null)o.return=t,aa=o;else e:for(t=e;aa!==null;){o=aa;var r=o.sibling,s=o.return;if(cw(o),o===t){aa=null;break e}if(r!==null){r.return=s,aa=r;break e}aa=s}}}var Oy={getCacheForType:function(e){var a=fa(Xe),t=a.data.get(e);return t===void 0&&(t=e(),a.data.set(e,t)),t},cacheSignal:function(){return fa(Xe).controller.signal}},Ey=typeof WeakMap=="function"?WeakMap:Map,re=0,be=null,j=null,K=0,ne=0,qa=null,Do=!1,Fs=!1,Tf=!1,uo=0,He=0,Xo=0,Sr=0,Af=0,Ga=0,Rs=0,zl=null,Da=null,kd=!1,yu=0,yw=0,Ji=1/0,$i=null,Ho=null,Ke=0,Po=null,zs=null,ro=0,Td=0,Ad=null,Lw=null,Ol=0,Md=null;function Ya(){return(re&2)!==0&&K!==0?K&-K:H.T!==null?Df():Bg()}function Sw(){if(Ga===0)if((K&536870912)===0||W){var e=ri;ri<<=1,(ri&3932160)===0&&(ri=262144),Ga=e}else Ga=536870912;return e=Qa.current,e!==null&&(e.flags|=32),Ga}function Ba(e,a,t){(e===be&&(ne===2||ne===9)||e.cancelPendingCommit!==null)&&(Os(e,0),Bo(e,K,Ga,!1)),en(e,t),((re&2)===0||e!==be)&&(e===be&&((re&2)===0&&(Sr|=t),He===4&&Bo(e,K,Ga,!1)),Et(e))}function Cw(e,a,t){if((re&6)!==0)throw Error(L(327));var o=!t&&(a&127)===0&&(a&e.expiredLanes)===0||$l(e,a),r=o?Uy(e,a):Uc(e,a,!0),s=o;do{if(r===0){Fs&&!o&&Bo(e,a,0,!1);break}else{if(t=e.current.alternate,s&&!Hy(t)){r=Uc(e,a,!1),s=!1;continue}if(r===2){if(s=a,e.errorRecoveryDisabledLanes&s)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){a=l;e:{var n=e;r=zl;var i=n.current.memoizedState.isDehydrated;if(i&&(Os(n,l).flags|=256),l=Uc(n,l,!1),l!==2){if(Tf&&!i){n.errorRecoveryDisabledLanes|=s,Sr|=s,r=4;break e}s=Da,Da=r,s!==null&&(Da===null?Da=s:Da.push.apply(Da,s))}r=l}if(s=!1,r!==2)continue}}if(r===1){Os(e,0),Bo(e,a,0,!0);break}e:{switch(o=e,s=r,s){case 0:case 1:throw Error(L(345));case 4:if((a&4194048)!==a)break;case 6:Bo(o,a,Ga,!Do);break e;case 2:Da=null;break;case 3:case 5:break;default:throw Error(L(329))}if((a&62914560)===a&&(r=yu+300-Va(),10<r)){if(Bo(o,a,Ga,!Do),cu(o,0,!0)!==0)break e;ro=a,o.timeoutHandle=Vw(Fm.bind(null,o,t,Da,$i,kd,a,Ga,Sr,Rs,Do,s,"Throttled",-0,0),r);break e}Fm(o,t,Da,$i,kd,a,Ga,Sr,Rs,Do,s,null,-0,0)}}break}while(!0);Et(e)}function Fm(e,a,t,o,r,s,l,n,i,u,c,d,p,f){if(e.timeoutHandle=-1,d=a.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:eo},ww(a,s,d);var b=(s&62914560)===s?yu-Va():(s&4194048)===s?yw-Va():0;if(b=v0(d,b),b!==null){ro=s,e.cancelPendingCommit=b(Vm.bind(null,e,a,s,t,o,r,l,n,i,c,d,null,p,f)),Bo(e,s,l,!u);return}}Vm(e,a,s,t,o,r,l,n,i)}function Hy(e){for(var a=e;;){var t=a.tag;if((t===0||t===11||t===15)&&a.flags&16384&&(t=a.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var o=0;o<t.length;o++){var r=t[o],s=r.getSnapshot;r=r.value;try{if(!ja(s(),r))return!1}catch{return!1}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Bo(e,a,t,o){a&=~Af,a&=~Sr,e.suspendedLanes|=a,e.pingedLanes&=~a,o&&(e.warmLanes|=a),o=e.expirationTimes;for(var r=a;0<r;){var s=31-Za(r),l=1<<s;o[s]=-1,r&=~l}t!==0&&Ag(e,t,a)}function Lu(){return(re&6)===0?(ln(0,!1),!1):!0}function Mf(){if(j!==null){if(ne===0)var e=j.return;else e=j,ao=Rr=null,mf(e),Cs=null,Gl=0,e=j;for(;e!==null;)ow(e.alternate,e),e=e.return;j=null}}function Os(e,a){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,a0(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),ro=0,Mf(),be=e,j=t=to(e.current,null),K=a,ne=0,qa=null,Do=!1,Fs=$l(e,a),Tf=!1,Rs=Ga=Af=Sr=Xo=He=0,Da=zl=null,kd=!1,(a&8)!==0&&(a|=a&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=a;0<o;){var r=31-Za(o),s=1<<r;a|=e[r],o&=~s}return uo=a,mu(),t}function Iw(e,a){F=null,H.H=Xl,a===_s||a===hu?(a=xm(),ne=3):a===lf?(a=xm(),ne=4):ne=a===Sf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qa=a,j===null&&(He=1,Qi(e,nt(a,e.current)))}function kw(){var e=Qa.current;return e===null?!0:(K&4194048)===K?ut===null:(K&62914560)===K||(K&536870912)!==0?e===ut:!1}function Tw(){var e=H.H;return H.H=Xl,e===null?Xl:e}function Aw(){var e=H.A;return H.A=Oy,e}function eu(){He=4,Do||(K&4194048)!==K&&Qa.current!==null||(Fs=!0),(Xo&134217727)===0&&(Sr&134217727)===0||be===null||Bo(be,K,Ga,!1)}function Uc(e,a,t){var o=re;re|=2;var r=Tw(),s=Aw();(be!==e||K!==a)&&($i=null,Os(e,a)),a=!1;var l=He;e:do try{if(ne!==0&&j!==null){var n=j,i=qa;switch(ne){case 8:Mf(),l=6;break e;case 3:case 2:case 9:case 6:Qa.current===null&&(a=!0);var u=ne;if(ne=0,qa=null,vs(e,n,i,u),t&&Fs){l=0;break e}break;default:u=ne,ne=0,qa=null,vs(e,n,i,u)}}Py(),l=He;break}catch(c){Iw(e,c)}while(!0);return a&&e.shellSuspendCounter++,ao=Rr=null,re=o,H.H=r,H.A=s,j===null&&(be=null,K=0,mu()),l}function Py(){for(;j!==null;)Mw(j)}function Uy(e,a){var t=re;re|=2;var o=Tw(),r=Aw();be!==e||K!==a?($i=null,Ji=Va()+500,Os(e,a)):Fs=$l(e,a);e:do try{if(ne!==0&&j!==null){a=j;var s=qa;a:switch(ne){case 1:ne=0,qa=null,vs(e,a,s,1);break;case 2:case 9:if(vm(s)){ne=0,qa=null,Gm(a);break}a=function(){ne!==2&&ne!==9||be!==e||(ne=7),Et(e)},s.then(a,a);break e;case 3:ne=7;break e;case 4:ne=5;break e;case 7:vm(s)?(ne=0,qa=null,Gm(a)):(ne=0,qa=null,vs(e,a,s,7));break;case 5:var l=null;switch(j.tag){case 26:l=j.memoizedState;case 5:case 27:var n=j;if(l?Qw(l):n.stateNode.complete){ne=0,qa=null;var i=n.sibling;if(i!==null)j=i;else{var u=n.return;u!==null?(j=u,Su(u)):j=null}break a}}ne=0,qa=null,vs(e,a,s,5);break;case 6:ne=0,qa=null,vs(e,a,s,6);break;case 8:Mf(),He=6;break e;default:throw Error(L(462))}}qy();break}catch(c){Iw(e,c)}while(!0);return ao=Rr=null,H.H=o,H.A=r,re=t,j!==null?0:(be=null,K=0,mu(),He)}function qy(){for(;j!==null&&!ux();)Mw(j)}function Mw(e){var a=tw(e.alternate,e,uo);e.memoizedProps=e.pendingProps,a===null?Su(e):j=a}function Gm(e){var a=e,t=a.alternate;switch(a.tag){case 15:case 0:a=Em(t,a,a.pendingProps,a.type,void 0,K);break;case 11:a=Em(t,a,a.pendingProps,a.type.render,a.ref,K);break;case 5:mf(a);default:ow(t,a),a=j=oh(a,uo),a=tw(t,a,uo)}e.memoizedProps=e.pendingProps,a===null?Su(e):j=a}function vs(e,a,t,o){ao=Rr=null,mf(a),Cs=null,Gl=0;var r=a.return;try{if(Ay(e,r,a,t,K)){He=1,Qi(e,nt(t,e.current)),j=null;return}}catch(s){if(r!==null)throw j=r,s;He=1,Qi(e,nt(t,e.current)),j=null;return}a.flags&32768?(W||o===1?e=!0:Fs||(K&536870912)!==0?e=!1:(Do=e=!0,(o===2||o===9||o===3||o===6)&&(o=Qa.current,o!==null&&o.tag===13&&(o.flags|=16384))),Dw(a,e)):Su(a)}function Su(e){var a=e;do{if((a.flags&32768)!==0){Dw(a,Do);return}e=a.return;var t=By(a.alternate,a,uo);if(t!==null){j=t;return}if(a=a.sibling,a!==null){j=a;return}j=a=e}while(a!==null);He===0&&(He=5)}function Dw(e,a){do{var t=Ny(e.alternate,e);if(t!==null){t.flags&=32767,j=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!a&&(e=e.sibling,e!==null)){j=e;return}j=e=t}while(e!==null);He=6,j=null}function Vm(e,a,t,o,r,s,l,n,i){e.cancelPendingCommit=null;do Cu();while(Ke!==0);if((re&6)!==0)throw Error(L(327));if(a!==null){if(a===e.current)throw Error(L(177));if(s=a.lanes|a.childLanes,s|=$d,vx(e,t,s,l,n,i),e===be&&(j=be=null,K=0),zs=a,Po=e,ro=t,Td=s,Ad=r,Lw=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vy(Pi,function(){return Ow(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,r=se.p,se.p=2,l=re,re|=4;try{Ry(e,a,t)}finally{re=l,se.p=r,H.T=o}}Ke=1,Bw(),Nw(),Rw()}}function Bw(){if(Ke===1){Ke=0;var e=Po,a=zs,t=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||t){t=H.T,H.T=null;var o=se.p;se.p=2;var r=re;re|=4;try{mw(a,e);var s=Rd,l=Qg(e.containerInfo),n=s.focusedElem,i=s.selectionRange;if(l!==n&&n&&n.ownerDocument&&jg(n.ownerDocument.documentElement,n)){if(i!==null&&Jd(n)){var u=i.start,c=i.end;if(c===void 0&&(c=u),"selectionStart"in n)n.selectionStart=u,n.selectionEnd=Math.min(c,n.value.length);else{var d=n.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),b=n.textContent.length,x=Math.min(i.start,b),k=i.end===void 0?x:Math.min(i.end,b);!f.extend&&x>k&&(l=k,k=x,x=l);var m=fm(n,x),g=fm(n,k);if(m&&g&&(f.rangeCount!==1||f.anchorNode!==m.node||f.anchorOffset!==m.offset||f.focusNode!==g.node||f.focusOffset!==g.offset)){var w=d.createRange();w.setStart(m.node,m.offset),f.removeAllRanges(),x>k?(f.addRange(w),f.extend(g.node,g.offset)):(w.setEnd(g.node,g.offset),f.addRange(w))}}}}for(d=[],f=n;f=f.parentNode;)f.nodeType===1&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<d.length;n++){var v=d[n];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}iu=!!Nd,Rd=Nd=null}finally{re=r,se.p=o,H.T=t}}e.current=a,Ke=2}}function Nw(){if(Ke===2){Ke=0;var e=Po,a=zs,t=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||t){t=H.T,H.T=null;var o=se.p;se.p=2;var r=re;re|=4;try{uw(e,a.alternate,a)}finally{re=r,se.p=o,H.T=t}}Ke=3}}function Rw(){if(Ke===4||Ke===3){Ke=0,cx();var e=Po,a=zs,t=ro,o=Lw;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ke=5:(Ke=0,zs=Po=null,zw(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ho=null),Xd(t),a=a.stateNode,Xa&&typeof Xa.onCommitFiberRoot=="function")try{Xa.onCommitFiberRoot(Jl,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=H.T,r=se.p,se.p=2,H.T=null;try{for(var s=e.onRecoverableError,l=0;l<o.length;l++){var n=o[l];s(n.value,{componentStack:n.stack})}}finally{H.T=a,se.p=r}}(ro&3)!==0&&Cu(),Et(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?e===Md?Ol++:(Ol=0,Md=e):Ol=0,ln(0,!1)}}function zw(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,on(a)))}function Cu(){return Bw(),Nw(),Rw(),Ow()}function Ow(){if(Ke!==5)return!1;var e=Po,a=Td;Td=0;var t=Xd(ro),o=H.T,r=se.p;try{se.p=32>t?32:t,H.T=null,t=Ad,Ad=null;var s=Po,l=ro;if(Ke=0,zs=Po=null,ro=0,(re&6)!==0)throw Error(L(331));var n=re;if(re|=4,vw(s.current),hw(s,s.current,l,t),re=n,ln(0,!1),Xa&&typeof Xa.onPostCommitFiberRoot=="function")try{Xa.onPostCommitFiberRoot(Jl,s)}catch{}return!0}finally{se.p=r,H.T=o,zw(e,a)}}function Xm(e,a,t){a=nt(t,a),a=Ld(e.stateNode,a,2),e=Eo(e,a,2),e!==null&&(en(e,2),Et(e))}function ie(e,a,t){if(e.tag===3)Xm(e,e,t);else for(;a!==null;){if(a.tag===3){Xm(a,e,t);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ho===null||!Ho.has(o))){e=nt(t,e),t=Kh(2),o=Eo(a,t,2),o!==null&&(Wh(t,o,a,e),en(o,2),Et(o));break}}a=a.return}}function qc(e,a,t){var o=e.pingCache;if(o===null){o=e.pingCache=new Ey;var r=new Set;o.set(a,r)}else r=o.get(a),r===void 0&&(r=new Set,o.set(a,r));r.has(t)||(Tf=!0,r.add(t),e=_y.bind(null,e,a,t),a.then(e,e))}function _y(e,a,t){var o=e.pingCache;o!==null&&o.delete(a),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,be===e&&(K&t)===t&&(He===4||He===3&&(K&62914560)===K&&300>Va()-yu?(re&2)===0&&Os(e,0):Af|=t,Rs===K&&(Rs=0)),Et(e)}function Ew(e,a){a===0&&(a=Tg()),e=Nr(e,a),e!==null&&(en(e,a),Et(e))}function Fy(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),Ew(e,t)}function Gy(e,a){var t=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(t=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(L(314))}o!==null&&o.delete(a),Ew(e,t)}function Vy(e,a){return Gd(e,a)}var au=null,ns=null,Dd=!1,tu=!1,_c=!1,No=0;function Et(e){e!==ns&&e.next===null&&(ns===null?au=ns=e:ns=ns.next=e),tu=!0,Dd||(Dd=!0,Zy())}function ln(e,a){if(!_c&&tu){_c=!0;do for(var t=!1,o=au;o!==null;){if(!a)if(e!==0){var r=o.pendingLanes;if(r===0)var s=0;else{var l=o.suspendedLanes,n=o.pingedLanes;s=(1<<31-Za(42|e)+1)-1,s&=r&~(l&~n),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(t=!0,Zm(o,s))}else s=K,s=cu(o,o===be?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(s&3)===0||$l(o,s)||(t=!0,Zm(o,s));o=o.next}while(t);_c=!1}}function Xy(){Hw()}function Hw(){tu=Dd=!1;var e=0;No!==0&&e0()&&(e=No);for(var a=Va(),t=null,o=au;o!==null;){var r=o.next,s=Pw(o,a);s===0?(o.next=null,t===null?au=r:t.next=r,r===null&&(ns=t)):(t=o,(e!==0||(s&3)!==0)&&(tu=!0)),o=r}Ke!==0&&Ke!==5||ln(e,!1),No!==0&&(No=0)}function Pw(e,a){for(var t=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var l=31-Za(s),n=1<<l,i=r[l];i===-1?((n&t)===0||(n&o)!==0)&&(r[l]=bx(n,a)):i<=a&&(e.expiredLanes|=n),s&=~n}if(a=be,t=K,t=cu(e,e===a?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,t===0||e===a&&(ne===2||ne===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&hc(o),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||$l(e,t)){if(a=t&-t,a===e.callbackPriority)return a;switch(o!==null&&hc(o),Xd(t)){case 2:case 8:t=Ig;break;case 32:t=Pi;break;case 268435456:t=kg;break;default:t=Pi}return o=Uw.bind(null,e),t=Gd(t,o),e.callbackPriority=a,e.callbackNode=t,a}return o!==null&&o!==null&&hc(o),e.callbackPriority=2,e.callbackNode=null,2}function Uw(e,a){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Cu()&&e.callbackNode!==t)return null;var o=K;return o=cu(e,e===be?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Cw(e,o,a),Pw(e,Va()),e.callbackNode!=null&&e.callbackNode===t?Uw.bind(null,e):null)}function Zm(e,a){if(Cu())return null;Cw(e,a,!0)}function Zy(){t0(function(){(re&6)!==0?Gd(Cg,Xy):Hw()})}function Df(){if(No===0){var e=Ds;e===0&&(e=oi,oi<<=1,(oi&261888)===0&&(oi=256)),No=e}return No}function Ym(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yi(""+e)}function jm(e,a){var t=a.ownerDocument.createElement("input");return t.name=a.name,t.value=a.value,e.id&&t.setAttribute("form",e.id),a.parentNode.insertBefore(t,a),e=new FormData(e),t.parentNode.removeChild(t),e}function Yy(e,a,t,o,r){if(a==="submit"&&t&&t.stateNode===r){var s=Ym((r[Na]||null).action),l=o.submitter;l&&(a=(a=l[Na]||null)?Ym(a.formAction):l.getAttribute("formAction"),a!==null&&(s=a,l=null));var n=new du("action","action",null,o,r);e.push({event:n,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(No!==0){var i=l?jm(r,l):new FormData(r);xd(t,{pending:!0,data:i,method:r.method,action:s},null,i)}}else typeof s=="function"&&(n.preventDefault(),i=l?jm(r,l):new FormData(r),xd(t,{pending:!0,data:i,method:r.method,action:s},s,i))},currentTarget:r}]})}}for(gi=0;gi<id.length;gi++)hi=id[gi],Qm=hi.toLowerCase(),Km=hi[0].toUpperCase()+hi.slice(1),yt(Qm,"on"+Km);var hi,Qm,Km,gi;yt(Wg,"onAnimationEnd");yt(Jg,"onAnimationIteration");yt($g,"onAnimationStart");yt("dblclick","onDoubleClick");yt("focusin","onFocus");yt("focusout","onBlur");yt(dy,"onTransitionRun");yt(fy,"onTransitionStart");yt(py,"onTransitionCancel");yt(eh,"onTransitionEnd");As("onMouseEnter",["mouseout","mouseover"]);As("onMouseLeave",["mouseout","mouseover"]);As("onPointerEnter",["pointerout","pointerover"]);As("onPointerLeave",["pointerout","pointerover"]);Mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),jy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function qw(e,a){a=(a&4)!==0;for(var t=0;t<e.length;t++){var o=e[t],r=o.event;o=o.listeners;e:{var s=void 0;if(a)for(var l=o.length-1;0<=l;l--){var n=o[l],i=n.instance,u=n.currentTarget;if(n=n.listener,i!==s&&r.isPropagationStopped())break e;s=n,r.currentTarget=u;try{s(r)}catch(c){qi(c)}r.currentTarget=null,s=i}else for(l=0;l<o.length;l++){if(n=o[l],i=n.instance,u=n.currentTarget,n=n.listener,i!==s&&r.isPropagationStopped())break e;s=n,r.currentTarget=u;try{s(r)}catch(c){qi(c)}r.currentTarget=null,s=i}}}}function Y(e,a){var t=a[ed];t===void 0&&(t=a[ed]=new Set);var o=e+"__bubble";t.has(o)||(_w(a,e,2,!1),t.add(o))}function Fc(e,a,t){var o=0;a&&(o|=4),_w(t,e,o,a)}var wi="_reactListening"+Math.random().toString(36).slice(2);function Bf(e){if(!e[wi]){e[wi]=!0,Ng.forEach(function(t){t!=="selectionchange"&&(jy.has(t)||Fc(t,!1,e),Fc(t,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[wi]||(a[wi]=!0,Fc("selectionchange",!1,a))}}function _w(e,a,t,o){switch(eb(a)){case 2:var r=L0;break;case 8:r=S0;break;default:r=Of}t=r.bind(null,a,t,e),r=void 0,!sd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(a,t,{capture:!0,passive:r}):e.addEventListener(a,t,!0):r!==void 0?e.addEventListener(a,t,{passive:r}):e.addEventListener(a,t,!1)}function Gc(e,a,t,o,r){var s=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var l=o.tag;if(l===3||l===4){var n=o.stateNode.containerInfo;if(n===r)break;if(l===4)for(l=o.return;l!==null;){var i=l.tag;if((i===3||i===4)&&l.stateNode.containerInfo===r)return;l=l.return}for(;n!==null;){if(l=cs(n),l===null)return;if(i=l.tag,i===5||i===6||i===26||i===27){o=s=l;continue e}n=n.parentNode}}o=o.return}qg(function(){var u=s,c=jd(t),d=[];e:{var p=ah.get(e);if(p!==void 0){var f=du,b=e;switch(e){case"keypress":if(Si(t)===0)break e;case"keydown":case"keyup":f=Gx;break;case"focusin":b="focus",f=yc;break;case"focusout":b="blur",f=yc;break;case"beforeblur":case"afterblur":f=yc;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Bx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Zx;break;case Wg:case Jg:case $g:f=zx;break;case eh:f=jx;break;case"scroll":case"scrollend":f=Mx;break;case"wheel":f=Kx;break;case"copy":case"cut":case"paste":f=Ex;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=sm;break;case"toggle":case"beforetoggle":f=Jx}var x=(a&4)!==0,k=!x&&(e==="scroll"||e==="scrollend"),m=x?p!==null?p+"Capture":null:p;x=[];for(var g=u,w;g!==null;){var v=g;if(w=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||w===null||m===null||(v=Pl(g,m),v!=null&&x.push(Yl(g,v,w))),k)break;g=g.return}0<x.length&&(p=new f(p,b,null,t,c),d.push({event:p,listeners:x}))}}if((a&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&t!==rd&&(b=t.relatedTarget||t.fromElement)&&(cs(b)||b[Ps]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(b=t.relatedTarget||t.toElement,f=u,b=b?cs(b):null,b!==null&&(k=Wl(b),x=b.tag,b!==k||x!==5&&x!==27&&x!==6)&&(b=null)):(f=null,b=u),f!==b)){if(x=om,v="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=sm,v="onPointerLeave",m="onPointerEnter",g="pointer"),k=f==null?p:yl(f),w=b==null?p:yl(b),p=new x(v,g+"leave",f,t,c),p.target=k,p.relatedTarget=w,v=null,cs(c)===u&&(x=new x(m,g+"enter",b,t,c),x.target=w,x.relatedTarget=k,v=x),k=v,f&&b)a:{for(x=Qy,m=f,g=b,w=0,v=m;v;v=x(v))w++;v=0;for(var I=g;I;I=x(I))v++;for(;0<w-v;)m=x(m),w--;for(;0<v-w;)g=x(g),v--;for(;w--;){if(m===g||g!==null&&m===g.alternate){x=m;break a}m=x(m),g=x(g)}x=null}else x=null;f!==null&&Wm(d,p,f,x,!1),b!==null&&k!==null&&Wm(d,k,b,x,!0)}}e:{if(p=u?yl(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var N=um;else if(im(p))if(Zg)N=iy;else{N=ly;var T=sy}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&Yd(u.elementType)&&(N=um):N=ny;if(N&&(N=N(e,u))){Xg(d,N,t,c);break e}T&&T(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&od(p,"number",p.value)}switch(T=u?yl(u):window,e){case"focusin":(im(T)||T.contentEditable==="true")&&(ps=T,ld=u,kl=null);break;case"focusout":kl=ld=ps=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,pm(d,t,c);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":pm(d,t,c)}var R;if(Wd)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else fs?Gg(e,t)&&(O="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(O="onCompositionStart");O&&(Fg&&t.locale!=="ko"&&(fs||O!=="onCompositionStart"?O==="onCompositionEnd"&&fs&&(R=_g()):(Mo=c,Qd="value"in Mo?Mo.value:Mo.textContent,fs=!0)),T=ou(u,O),0<T.length&&(O=new rm(O,e,null,t,c),d.push({event:O,listeners:T}),R?O.data=R:(R=Vg(t),R!==null&&(O.data=R)))),(R=ey?ay(e,t):ty(e,t))&&(O=ou(u,"onBeforeInput"),0<O.length&&(T=new rm("onBeforeInput","beforeinput",null,t,c),d.push({event:T,listeners:O}),T.data=R)),Yy(d,e,u,t,c)}qw(d,a)})}function Yl(e,a,t){return{instance:e,listener:a,currentTarget:t}}function ou(e,a){for(var t=a+"Capture",o=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=Pl(e,t),r!=null&&o.unshift(Yl(e,r,s)),r=Pl(e,a),r!=null&&o.push(Yl(e,r,s))),e.tag===3)return o;e=e.return}return[]}function Qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wm(e,a,t,o,r){for(var s=a._reactName,l=[];t!==null&&t!==o;){var n=t,i=n.alternate,u=n.stateNode;if(n=n.tag,i!==null&&i===o)break;n!==5&&n!==26&&n!==27||u===null||(i=u,r?(u=Pl(t,s),u!=null&&l.unshift(Yl(t,u,i))):r||(u=Pl(t,s),u!=null&&l.push(Yl(t,u,i)))),t=t.return}l.length!==0&&e.push({event:a,listeners:l})}var Ky=/\r\n?/g,Wy=/\u0000|\uFFFD/g;function Jm(e){return(typeof e=="string"?e:""+e).replace(Ky,`
9
- `).replace(Wy,"")}function Fw(e,a){return a=Jm(a),Jm(e)===a}function fe(e,a,t,o,r,s){switch(t){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Ms(e,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Ms(e,""+o);break;case"className":li(e,"class",o);break;case"tabIndex":li(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":li(e,t,o);break;case"style":Ug(e,o,s);break;case"data":if(a!=="object"){li(e,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||t!=="href")){e.removeAttribute(t);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=yi(""+o),e.setAttribute(t,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(t,"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 s=="function"&&(t==="formAction"?(a!=="input"&&fe(e,a,"name",r.name,r,null),fe(e,a,"formEncType",r.formEncType,r,null),fe(e,a,"formMethod",r.formMethod,r,null),fe(e,a,"formTarget",r.formTarget,r,null)):(fe(e,a,"encType",r.encType,r,null),fe(e,a,"method",r.method,r,null),fe(e,a,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=yi(""+o),e.setAttribute(t,o);break;case"onClick":o!=null&&(e.onclick=eo);break;case"onScroll":o!=null&&Y("scroll",e);break;case"onScrollEnd":o!=null&&Y("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(L(61));if(t=o.__html,t!=null){if(r.children!=null)throw Error(L(60));e.innerHTML=t}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}t=yi(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""+o):e.removeAttribute(t);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":o===!0?e.setAttribute(t,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,o):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(t,o):e.removeAttribute(t);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(t):e.setAttribute(t,o);break;case"popover":Y("beforetoggle",e),Y("toggle",e),xi(e,"popover",o);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":xi(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=Tx.get(t)||t,xi(e,t,o))}}function Bd(e,a,t,o,r,s){switch(t){case"style":Ug(e,o,s);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(L(61));if(t=o.__html,t!=null){if(r.children!=null)throw Error(L(60));e.innerHTML=t}}break;case"children":typeof o=="string"?Ms(e,o):(typeof o=="number"||typeof o=="bigint")&&Ms(e,""+o);break;case"onScroll":o!=null&&Y("scroll",e);break;case"onScrollEnd":o!=null&&Y("scrollend",e);break;case"onClick":o!=null&&(e.onclick=eo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rg.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(r=t.endsWith("Capture"),a=t.slice(2,r?t.length-7:void 0),s=e[Na]||null,s=s!=null?s[t]:null,typeof s=="function"&&e.removeEventListener(a,s,r),typeof o=="function")){typeof s!="function"&&s!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,o,r);break e}t in e?e[t]=o:o===!0?e.setAttribute(t,""):xi(e,t,o)}}}function pa(e,a,t){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",e),Y("load",e);var o=!1,r=!1,s;for(s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l!=null)switch(s){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(L(137,a));default:fe(e,a,s,l,t,null)}}r&&fe(e,a,"srcSet",t.srcSet,t,null),o&&fe(e,a,"src",t.src,t,null);return;case"input":Y("invalid",e);var n=s=l=r=null,i=null,u=null;for(o in t)if(t.hasOwnProperty(o)){var c=t[o];if(c!=null)switch(o){case"name":r=c;break;case"type":l=c;break;case"checked":i=c;break;case"defaultChecked":u=c;break;case"value":s=c;break;case"defaultValue":n=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(L(137,a));break;default:fe(e,a,o,c,t,null)}}Eg(e,s,n,i,u,l,r,!1);return;case"select":Y("invalid",e),o=l=s=null;for(r in t)if(t.hasOwnProperty(r)&&(n=t[r],n!=null))switch(r){case"value":s=n;break;case"defaultValue":l=n;break;case"multiple":o=n;default:fe(e,a,r,n,t,null)}a=s,t=l,e.multiple=!!o,a!=null?ys(e,!!o,a,!1):t!=null&&ys(e,!!o,t,!0);return;case"textarea":Y("invalid",e),s=r=o=null;for(l in t)if(t.hasOwnProperty(l)&&(n=t[l],n!=null))switch(l){case"value":o=n;break;case"defaultValue":r=n;break;case"children":s=n;break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(L(91));break;default:fe(e,a,l,n,t,null)}Pg(e,o,r,s);return;case"option":for(i in t)t.hasOwnProperty(i)&&(o=t[i],o!=null)&&(i==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":fe(e,a,i,o,t,null));return;case"dialog":Y("beforetoggle",e),Y("toggle",e),Y("cancel",e),Y("close",e);break;case"iframe":case"object":Y("load",e);break;case"video":case"audio":for(o=0;o<Zl.length;o++)Y(Zl[o],e);break;case"image":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"embed":case"source":case"link":Y("error",e),Y("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in t)if(t.hasOwnProperty(u)&&(o=t[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(L(137,a));default:fe(e,a,u,o,t,null)}return;default:if(Yd(a)){for(c in t)t.hasOwnProperty(c)&&(o=t[c],o!==void 0&&Bd(e,a,c,o,t,void 0));return}}for(n in t)t.hasOwnProperty(n)&&(o=t[n],o!=null&&fe(e,a,n,o,t,null))}function Jy(e,a,t,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,l=null,n=null,i=null,u=null,c=null;for(f in t){var d=t[f];if(t.hasOwnProperty(f)&&d!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":i=d;default:o.hasOwnProperty(f)||fe(e,a,f,null,o,d)}}for(var p in o){var f=o[p];if(d=t[p],o.hasOwnProperty(p)&&(f!=null||d!=null))switch(p){case"type":s=f;break;case"name":r=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":l=f;break;case"defaultValue":n=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(L(137,a));break;default:f!==d&&fe(e,a,p,f,o,d)}}td(e,l,n,i,u,c,s,r);return;case"select":f=l=n=p=null;for(s in t)if(i=t[s],t.hasOwnProperty(s)&&i!=null)switch(s){case"value":break;case"multiple":f=i;default:o.hasOwnProperty(s)||fe(e,a,s,null,o,i)}for(r in o)if(s=o[r],i=t[r],o.hasOwnProperty(r)&&(s!=null||i!=null))switch(r){case"value":p=s;break;case"defaultValue":n=s;break;case"multiple":l=s;default:s!==i&&fe(e,a,r,s,o,i)}a=n,t=l,o=f,p!=null?ys(e,!!t,p,!1):!!o!=!!t&&(a!=null?ys(e,!!t,a,!0):ys(e,!!t,t?[]:"",!1));return;case"textarea":f=p=null;for(n in t)if(r=t[n],t.hasOwnProperty(n)&&r!=null&&!o.hasOwnProperty(n))switch(n){case"value":break;case"children":break;default:fe(e,a,n,null,o,r)}for(l in o)if(r=o[l],s=t[l],o.hasOwnProperty(l)&&(r!=null||s!=null))switch(l){case"value":p=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(L(91));break;default:r!==s&&fe(e,a,l,r,o,s)}Hg(e,p,f);return;case"option":for(var b in t)p=t[b],t.hasOwnProperty(b)&&p!=null&&!o.hasOwnProperty(b)&&(b==="selected"?e.selected=!1:fe(e,a,b,null,o,p));for(i in o)p=o[i],f=t[i],o.hasOwnProperty(i)&&p!==f&&(p!=null||f!=null)&&(i==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":fe(e,a,i,p,o,f));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 x in t)p=t[x],t.hasOwnProperty(x)&&p!=null&&!o.hasOwnProperty(x)&&fe(e,a,x,null,o,p);for(u in o)if(p=o[u],f=t[u],o.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(L(137,a));break;default:fe(e,a,u,p,o,f)}return;default:if(Yd(a)){for(var k in t)p=t[k],t.hasOwnProperty(k)&&p!==void 0&&!o.hasOwnProperty(k)&&Bd(e,a,k,void 0,o,p);for(c in o)p=o[c],f=t[c],!o.hasOwnProperty(c)||p===f||p===void 0&&f===void 0||Bd(e,a,c,p,o,f);return}}for(var m in t)p=t[m],t.hasOwnProperty(m)&&p!=null&&!o.hasOwnProperty(m)&&fe(e,a,m,null,o,p);for(d in o)p=o[d],f=t[d],!o.hasOwnProperty(d)||p===f||p==null&&f==null||fe(e,a,d,p,o,f)}function $m(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $y(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,t=performance.getEntriesByType("resource"),o=0;o<t.length;o++){var r=t[o],s=r.transferSize,l=r.initiatorType,n=r.duration;if(s&&n&&$m(l)){for(l=0,n=r.responseEnd,o+=1;o<t.length;o++){var i=t[o],u=i.startTime;if(u>n)break;var c=i.transferSize,d=i.initiatorType;c&&$m(d)&&(i=i.responseEnd,l+=c*(i<n?1:(n-u)/(i-u)))}if(--o,a+=8*(s+l)/(r.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Nd=null,Rd=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function eg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gw(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function zd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vc=null;function e0(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var Vw=typeof setTimeout=="function"?setTimeout:void 0,a0=typeof clearTimeout=="function"?clearTimeout:void 0,ag=typeof Promise=="function"?Promise:void 0,t0=typeof queueMicrotask=="function"?queueMicrotask:typeof ag<"u"?function(e){return ag.resolve(null).then(e).catch(o0)}:Vw;function o0(e){setTimeout(function(){throw e})}function Yo(e){return e==="head"}function tg(e,a){var t=a,o=0;do{var r=t.nextSibling;if(e.removeChild(t),r&&r.nodeType===8)if(t=r.data,t==="/$"||t==="/&"){if(o===0){e.removeChild(r),Hs(a);return}o--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")o++;else if(t==="html")El(e.ownerDocument.documentElement);else if(t==="head"){t=e.ownerDocument.head,El(t);for(var s=t.firstChild;s;){var l=s.nextSibling,n=s.nodeName;s[an]||n==="SCRIPT"||n==="STYLE"||n==="LINK"&&s.rel.toLowerCase()==="stylesheet"||t.removeChild(s),s=l}}else t==="body"&&El(e.ownerDocument.body);t=r}while(t);Hs(a)}function og(e,a){var t=e;e=0;do{var o=t.nextSibling;if(t.nodeType===1?a?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(a?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),o&&o.nodeType===8)if(t=o.data,t==="/$"){if(e===0)break;e--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||e++;t=o}while(t)}function Od(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var t=a;switch(a=a.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Od(t),Zd(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function r0(e,a,t,o){for(;e.nodeType===1;){var r=t;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[an])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=ct(e.nextSibling),e===null)break}return null}function s0(e,a,t){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ct(e.nextSibling),e===null))return null;return e}function Xw(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ct(e.nextSibling),e===null))return null;return e}function Ed(e){return e.data==="$?"||e.data==="$~"}function Hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function l0(e,a){var t=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||t.readyState!=="loading")a();else{var o=function(){a(),t.removeEventListener("DOMContentLoaded",o)};t.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function ct(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var Pd=null;function rg(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"||t==="/&"){if(a===0)return ct(e.nextSibling);a--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||a++}e=e.nextSibling}return null}function sg(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(a===0)return e;a--}else t!=="/$"&&t!=="/&"||a++}e=e.previousSibling}return null}function Zw(e,a,t){switch(a=ru(t),e){case"html":if(e=a.documentElement,!e)throw Error(L(452));return e;case"head":if(e=a.head,!e)throw Error(L(453));return e;case"body":if(e=a.body,!e)throw Error(L(454));return e;default:throw Error(L(451))}}function El(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Zd(e)}var dt=new Map,lg=new Set;function su(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var co=se.d;se.d={f:n0,r:i0,D:u0,C:c0,L:d0,m:f0,X:m0,S:p0,M:g0};function n0(){var e=co.f(),a=Lu();return e||a}function i0(e){var a=Us(e);a!==null&&a.tag===5&&a.type==="form"?Uh(a):co.r(e)}var Gs=typeof document>"u"?null:document;function Yw(e,a,t){var o=Gs;if(o&&typeof a=="string"&&a){var r=lt(a);r='link[rel="'+e+'"][href="'+r+'"]',typeof t=="string"&&(r+='[crossorigin="'+t+'"]'),lg.has(r)||(lg.add(r),e={rel:e,crossOrigin:t,href:a},o.querySelector(r)===null&&(a=o.createElement("link"),pa(a,"link",e),ta(a),o.head.appendChild(a)))}}function u0(e){co.D(e),Yw("dns-prefetch",e,null)}function c0(e,a){co.C(e,a),Yw("preconnect",e,a)}function d0(e,a,t){co.L(e,a,t);var o=Gs;if(o&&e&&a){var r='link[rel="preload"][as="'+lt(a)+'"]';a==="image"&&t&&t.imageSrcSet?(r+='[imagesrcset="'+lt(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(r+='[imagesizes="'+lt(t.imageSizes)+'"]')):r+='[href="'+lt(e)+'"]';var s=r;switch(a){case"style":s=Es(e);break;case"script":s=Vs(e)}dt.has(s)||(e=ke({rel:"preload",href:a==="image"&&t&&t.imageSrcSet?void 0:e,as:a},t),dt.set(s,e),o.querySelector(r)!==null||a==="style"&&o.querySelector(nn(s))||a==="script"&&o.querySelector(un(s))||(a=o.createElement("link"),pa(a,"link",e),ta(a),o.head.appendChild(a)))}}function f0(e,a){co.m(e,a);var t=Gs;if(t&&e){var o=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+lt(o)+'"][href="'+lt(e)+'"]',s=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Vs(e)}if(!dt.has(s)&&(e=ke({rel:"modulepreload",href:e},a),dt.set(s,e),t.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(un(s)))return}o=t.createElement("link"),pa(o,"link",e),ta(o),t.head.appendChild(o)}}}function p0(e,a,t){co.S(e,a,t);var o=Gs;if(o&&e){var r=xs(o).hoistableStyles,s=Es(e);a=a||"default";var l=r.get(s);if(!l){var n={loading:0,preload:null};if(l=o.querySelector(nn(s)))n.loading=5;else{e=ke({rel:"stylesheet",href:e,"data-precedence":a},t),(t=dt.get(s))&&Nf(e,t);var i=l=o.createElement("link");ta(i),pa(i,"link",e),i._p=new Promise(function(u,c){i.onload=u,i.onerror=c}),i.addEventListener("load",function(){n.loading|=1}),i.addEventListener("error",function(){n.loading|=2}),n.loading|=4,Bi(l,a,o)}l={type:"stylesheet",instance:l,count:1,state:n},r.set(s,l)}}}function m0(e,a){co.X(e,a);var t=Gs;if(t&&e){var o=xs(t).hoistableScripts,r=Vs(e),s=o.get(r);s||(s=t.querySelector(un(r)),s||(e=ke({src:e,async:!0},a),(a=dt.get(r))&&Rf(e,a),s=t.createElement("script"),ta(s),pa(s,"link",e),t.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(r,s))}}function g0(e,a){co.M(e,a);var t=Gs;if(t&&e){var o=xs(t).hoistableScripts,r=Vs(e),s=o.get(r);s||(s=t.querySelector(un(r)),s||(e=ke({src:e,async:!0,type:"module"},a),(a=dt.get(r))&&Rf(e,a),s=t.createElement("script"),ta(s),pa(s,"link",e),t.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(r,s))}}function ng(e,a,t,o){var r=(r=Ro.current)?su(r):null;if(!r)throw Error(L(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(a=Es(t.href),t=xs(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=Es(t.href);var s=xs(r).hoistableStyles,l=s.get(e);if(l||(r=r.ownerDocument||r,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,l),(s=r.querySelector(nn(e)))&&!s._p&&(l.instance=s,l.state.loading=5),dt.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},dt.set(e,t),s||h0(r,e,t,l.state))),a&&o===null)throw Error(L(528,""));return l}if(a&&o!==null)throw Error(L(529,""));return null;case"script":return a=t.async,t=t.src,typeof t=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vs(t),t=xs(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(L(444,e))}}function Es(e){return'href="'+lt(e)+'"'}function nn(e){return'link[rel="stylesheet"]['+e+"]"}function jw(e){return ke({},e,{"data-precedence":e.precedence,precedence:null})}function h0(e,a,t,o){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=e.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),pa(a,"link",t),ta(a),e.head.appendChild(a))}function Vs(e){return'[src="'+lt(e)+'"]'}function un(e){return"script[async]"+e}function ig(e,a,t){if(a.count++,a.instance===null)switch(a.type){case"style":var o=e.querySelector('style[data-href~="'+lt(t.href)+'"]');if(o)return a.instance=o,ta(o),o;var r=ke({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ta(o),pa(o,"style",r),Bi(o,t.precedence,e),a.instance=o;case"stylesheet":r=Es(t.href);var s=e.querySelector(nn(r));if(s)return a.state.loading|=4,a.instance=s,ta(s),s;o=jw(t),(r=dt.get(r))&&Nf(o,r),s=(e.ownerDocument||e).createElement("link"),ta(s);var l=s;return l._p=new Promise(function(n,i){l.onload=n,l.onerror=i}),pa(s,"link",o),a.state.loading|=4,Bi(s,t.precedence,e),a.instance=s;case"script":return s=Vs(t.src),(r=e.querySelector(un(s)))?(a.instance=r,ta(r),r):(o=t,(r=dt.get(s))&&(o=ke({},t),Rf(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),ta(r),pa(r,"link",o),e.head.appendChild(r),a.instance=r);case"void":return null;default:throw Error(L(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Bi(o,t.precedence,e));return a.instance}function Bi(e,a,t){for(var o=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,s=r,l=0;l<o.length;l++){var n=o[l];if(n.dataset.precedence===a)s=n;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(a=t.nodeType===9?t.head:t,a.insertBefore(e,a.firstChild))}function Nf(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function Rf(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var Ni=null;function ug(e,a,t){if(Ni===null){var o=new Map,r=Ni=new Map;r.set(t,o)}else r=Ni,o=r.get(t),o||(o=new Map,r.set(t,o));if(o.has(e))return o;for(o.set(e,null),t=t.getElementsByTagName(e),r=0;r<t.length;r++){var s=t[r];if(!(s[an]||s[ca]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var l=s.getAttribute(a)||"";l=e+l;var n=o.get(l);n?n.push(s):o.set(l,[s])}}return o}function cg(e,a,t){e=e.ownerDocument||e,e.head.insertBefore(t,a==="title"?e.querySelector("head > title"):null)}function w0(e,a,t){if(t===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(e=a.disabled,typeof a.precedence=="string"&&e==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Qw(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function b0(e,a,t,o){if(t.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var r=Es(o.href),s=a.querySelector(nn(r));if(s){a=s._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=lu.bind(e),a.then(e,e)),t.state.loading|=4,t.instance=s,ta(s);return}s=a.ownerDocument||a,o=jw(o),(r=dt.get(r))&&Nf(o,r),s=s.createElement("link"),ta(s);var l=s;l._p=new Promise(function(n,i){l.onload=n,l.onerror=i}),pa(s,"link",o),t.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(t,a),(a=t.state.preload)&&(t.state.loading&3)===0&&(e.count++,t=lu.bind(e),a.addEventListener("load",t),a.addEventListener("error",t))}}var Xc=0;function v0(e,a){return e.stylesheets&&e.count===0&&Ri(e,e.stylesheets),0<e.count||0<e.imgCount?function(t){var o=setTimeout(function(){if(e.stylesheets&&Ri(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+a);0<e.imgBytes&&Xc===0&&(Xc=62500*$y());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ri(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Xc?50:800)+a);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ri(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nu=null;function Ri(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nu=new Map,a.forEach(x0,e),nu=null,lu.call(e))}function x0(e,a){if(!(a.state.loading&4)){var t=nu.get(e);if(t)var o=t.get(null);else{t=new Map,nu.set(e,t);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var l=r[s];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(t.set(l.dataset.precedence,l),o=l)}o&&t.set(null,o)}r=a.instance,l=r.getAttribute("data-precedence"),s=t.get(l)||o,s===o&&t.set(null,r),t.set(l,r),this.count++,o=lu.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),a.state.loading|=4}}var jl={$$typeof:$t,Provider:null,Consumer:null,_currentValue:vr,_currentValue2:vr,_threadCount:0};function y0(e,a,t,o,r,s,l,n,i){this.tag=1,this.containerInfo=e,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=wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wc(0),this.hiddenUpdates=wc(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=i,this.incompleteTransitions=new Map}function Kw(e,a,t,o,r,s,l,n,i,u,c,d){return e=new y0(e,a,t,l,i,u,c,d,n),a=1,s===!0&&(a|=24),s=Fa(3,null,null,a),e.current=s,s.stateNode=e,a=rf(),a.refCount++,e.pooledCache=a,a.refCount++,s.memoizedState={element:o,isDehydrated:t,cache:a},nf(s),e}function Ww(e){return e?(e=hs,e):hs}function Jw(e,a,t,o,r,s){r=Ww(r),o.context===null?o.context=r:o.pendingContext=r,o=Oo(a),o.payload={element:t},s=s===void 0?null:s,s!==null&&(o.callback=s),t=Eo(e,o,a),t!==null&&(Ba(t,e,a),Al(t,e,a))}function dg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function zf(e,a){dg(e,a),(e=e.alternate)&&dg(e,a)}function $w(e){if(e.tag===13||e.tag===31){var a=Nr(e,67108864);a!==null&&Ba(a,e,67108864),zf(e,67108864)}}function fg(e){if(e.tag===13||e.tag===31){var a=Ya();a=Vd(a);var t=Nr(e,a);t!==null&&Ba(t,e,a),zf(e,a)}}var iu=!0;function L0(e,a,t,o){var r=H.T;H.T=null;var s=se.p;try{se.p=2,Of(e,a,t,o)}finally{se.p=s,H.T=r}}function S0(e,a,t,o){var r=H.T;H.T=null;var s=se.p;try{se.p=8,Of(e,a,t,o)}finally{se.p=s,H.T=r}}function Of(e,a,t,o){if(iu){var r=Ud(o);if(r===null)Gc(e,a,o,uu,t),pg(e,o);else if(I0(r,e,a,t,o))o.stopPropagation();else if(pg(e,o),a&4&&-1<C0.indexOf(e)){for(;r!==null;){var s=Us(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var l=hr(s.pendingLanes);if(l!==0){var n=s;for(n.pendingLanes|=2,n.entangledLanes|=2;l;){var i=1<<31-Za(l);n.entanglements[1]|=i,l&=~i}Et(s),(re&6)===0&&(Ji=Va()+500,ln(0,!1))}}break;case 31:case 13:n=Nr(s,2),n!==null&&Ba(n,s,2),Lu(),zf(s,2)}if(s=Ud(o),s===null&&Gc(e,a,o,uu,t),s===r)break;r=s}r!==null&&o.stopPropagation()}else Gc(e,a,o,null,t)}}function Ud(e){return e=jd(e),Ef(e)}var uu=null;function Ef(e){if(uu=null,e=cs(e),e!==null){var a=Wl(e);if(a===null)e=null;else{var t=a.tag;if(t===13){if(e=vg(a),e!==null)return e;e=null}else if(t===31){if(e=xg(a),e!==null)return e;e=null}else if(t===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return uu=e,null}function eb(e){switch(e){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(dx()){case Cg:return 2;case Ig:return 8;case Pi:case fx:return 32;case kg:return 268435456;default:return 32}default:return 32}}var qd=!1,Uo=null,qo=null,_o=null,Ql=new Map,Kl=new Map,To=[],C0="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 pg(e,a){switch(e){case"focusin":case"focusout":Uo=null;break;case"dragenter":case"dragleave":qo=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":Ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(a.pointerId)}}function wl(e,a,t,o,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:a,domEventName:t,eventSystemFlags:o,nativeEvent:s,targetContainers:[r]},a!==null&&(a=Us(a),a!==null&&$w(a)),e):(e.eventSystemFlags|=o,a=e.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),e)}function I0(e,a,t,o,r){switch(a){case"focusin":return Uo=wl(Uo,e,a,t,o,r),!0;case"dragenter":return qo=wl(qo,e,a,t,o,r),!0;case"mouseover":return _o=wl(_o,e,a,t,o,r),!0;case"pointerover":var s=r.pointerId;return Ql.set(s,wl(Ql.get(s)||null,e,a,t,o,r)),!0;case"gotpointercapture":return s=r.pointerId,Kl.set(s,wl(Kl.get(s)||null,e,a,t,o,r)),!0}return!1}function ab(e){var a=cs(e.target);if(a!==null){var t=Wl(a);if(t!==null){if(a=t.tag,a===13){if(a=vg(t),a!==null){e.blockedOn=a,Kp(e.priority,function(){fg(t)});return}}else if(a===31){if(a=xg(t),a!==null){e.blockedOn=a,Kp(e.priority,function(){fg(t)});return}}else if(a===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zi(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var t=Ud(e.nativeEvent);if(t===null){t=e.nativeEvent;var o=new t.constructor(t.type,t);rd=o,t.target.dispatchEvent(o),rd=null}else return a=Us(t),a!==null&&$w(a),e.blockedOn=t,!1;a.shift()}return!0}function mg(e,a,t){zi(e)&&t.delete(a)}function k0(){qd=!1,Uo!==null&&zi(Uo)&&(Uo=null),qo!==null&&zi(qo)&&(qo=null),_o!==null&&zi(_o)&&(_o=null),Ql.forEach(mg),Kl.forEach(mg)}function bi(e,a){e.blockedOn===a&&(e.blockedOn=null,qd||(qd=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,k0)))}var vi=null;function gg(e){vi!==e&&(vi=e,We.unstable_scheduleCallback(We.unstable_NormalPriority,function(){vi===e&&(vi=null);for(var a=0;a<e.length;a+=3){var t=e[a],o=e[a+1],r=e[a+2];if(typeof o!="function"){if(Ef(o||t)===null)continue;break}var s=Us(t);s!==null&&(e.splice(a,3),a-=3,xd(s,{pending:!0,data:r,method:t.method,action:o},o,r))}}))}function Hs(e){function a(i){return bi(i,e)}Uo!==null&&bi(Uo,e),qo!==null&&bi(qo,e),_o!==null&&bi(_o,e),Ql.forEach(a),Kl.forEach(a);for(var t=0;t<To.length;t++){var o=To[t];o.blockedOn===e&&(o.blockedOn=null)}for(;0<To.length&&(t=To[0],t.blockedOn===null);)ab(t),t.blockedOn===null&&To.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(o=0;o<t.length;o+=3){var r=t[o],s=t[o+1],l=r[Na]||null;if(typeof s=="function")l||gg(t);else if(l){var n=null;if(s&&s.hasAttribute("formAction")){if(r=s,l=s[Na]||null)n=l.formAction;else if(Ef(r)!==null)continue}else n=l.action;typeof n=="function"?t[o+1]=n:(t.splice(o,3),o-=3),gg(t)}}}function tb(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(l){return r=l})},focusReset:"manual",scroll:"manual"})}function a(){r!==null&&(r(),r=null),o||setTimeout(t,20)}function t(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(t,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),r!==null&&(r(),r=null)}}}function Hf(e){this._internalRoot=e}Iu.prototype.render=Hf.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(L(409));var t=a.current,o=Ya();Jw(t,o,e,a,null,null)};Iu.prototype.unmount=Hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Jw(e.current,2,null,e,null,null),Lu(),a[Ps]=null}};function Iu(e){this._internalRoot=e}Iu.prototype.unstable_scheduleHydration=function(e){if(e){var a=Bg();e={blockedOn:null,target:e,priority:a};for(var t=0;t<To.length&&a!==0&&a<To[t].priority;t++);To.splice(t,0,e),t===0&&ab(e)}};var hg=wg.version;if(hg!=="19.2.4")throw Error(L(527,hg,"19.2.4"));se.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=rx(a),e=e!==null?yg(e):null,e=e===null?null:e.stateNode,e};var T0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(bl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!bl.isDisabled&&bl.supportsFiber))try{Jl=bl.inject(T0),Xa=bl}catch{}var bl;ku.createRoot=function(e,a){if(!bg(e))throw Error(L(299));var t=!1,o="",r=Yh,s=jh,l=Qh;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError)),a=Kw(e,1,!1,null,null,t,o,null,r,s,l,tb),e[Ps]=a.current,Bf(e),new Hf(a)};ku.hydrateRoot=function(e,a,t){if(!bg(e))throw Error(L(299));var o=!1,r="",s=Yh,l=jh,n=Qh,i=null;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(n=t.onRecoverableError),t.formState!==void 0&&(i=t.formState)),a=Kw(e,1,!0,a,t??null,o,r,i,s,l,n,tb),a.context=Ww(null),t=a.current,o=Ya(),o=Vd(o),r=Oo(o),r.callback=null,Eo(t,r,o),t=o,a.current.lanes=t,en(a,t),Et(a),e[Ps]=a.current,Bf(e),new Iu(a)};ku.version="19.2.4"});var lb=Mt((YS,sb)=>{"use strict";function rb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rb)}catch(e){console.error(e)}}rb(),sb.exports=ob()});var mb=Mt(Mu=>{"use strict";var BL=Symbol.for("react.transitional.element"),NL=Symbol.for("react.fragment");function pb(e,a,t){var o=null;if(t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),"key"in a){t={};for(var r in a)r!=="key"&&(t[r]=a[r])}else t=a;return a=t.ref,{$$typeof:BL,type:e,key:o,ref:a!==void 0?a:null,props:t}}Mu.Fragment=NL;Mu.jsx=pb;Mu.jsxs=pb});var C=Mt((Lk,gb)=>{"use strict";gb.exports=mb()});var kv=y(de(),1),Tv=y(lb(),1);var Au=y(de());var Tu=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var nb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var ib=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase());var Pf=e=>{let a=ib(e);return a.charAt(0).toUpperCase()+a.slice(1)};var cn=y(de());var ub={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var cb=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var db=(0,cn.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:l,...n},i)=>(0,cn.createElement)("svg",{ref:i,...ub,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Tu("lucide",r),...!s&&!cb(n)&&{"aria-hidden":"true"},...n},[...l.map(([u,c])=>(0,cn.createElement)(u,c)),...Array.isArray(s)?s:[s]]));var S=(e,a)=>{let t=(0,Au.forwardRef)(({className:o,...r},s)=>(0,Au.createElement)(db,{ref:s,iconNode:a,className:Tu(`lucide-${nb(Pf(e))}`,`lucide-${e}`,o),...r}));return t.displayName=Pf(e),t};var A0=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],dn=S("app-window",A0);var M0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jo=S("arrow-right",M0);var D0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],fn=S("bell",D0);var B0=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],pn=S("bookmark",B0);var N0=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Qo=S("chart-column",N0);var R0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zr=S("check",R0);var z0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Or=S("chevron-down",z0);var O0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Er=S("chevron-right",O0);var E0=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],mn=S("chevrons-up-down",E0);var H0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lt=S("circle-alert",H0);var P0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ko=S("circle-check",P0);var U0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],St=S("circle-question-mark",U0);var q0=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Wo=S("circle-user-round",q0);var _0=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],Hr=S("clipboard",_0);var F0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Xs=S("clock",F0);var G0=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Jo=S("code-xml",G0);var V0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],$o=S("columns-2",V0);var X0=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],gn=S("credit-card",X0);var Z0=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],er=S("ellipsis",Z0);var Y0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],hn=S("external-link",Y0);var j0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],wn=S("file-text",j0);var Q0=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],bn=S("fold-vertical",Q0);var K0=[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]],vn=S("gallery-horizontal-end",K0);var W0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],xn=S("globe",W0);var J0=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],yn=S("heart",J0);var $0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zs=S("info",$0);var eL=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Ln=S("layout-template",eL);var aL=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Sn=S("loader",aL);var tL=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Cn=S("menu",tL);var oL=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ar=S("message-circle-question-mark",oL);var rL=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],In=S("message-square",rL);var sL=[["path",{d:"M5 12h14",key:"1ays0h"}]],kn=S("minus",sL);var lL=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Pr=S("moon",lL);var nL=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],Ys=S("mouse-pointer-click",nL);var iL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],tr=S("panel-left-open",iL);var uL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Tn=S("panel-right",uL);var cL=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ht=S("plus",cL);var dL=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],or=S("rectangle-ellipsis",dL);var fL=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ur=S("refresh-cw",fL);var pL=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qr=S("search",pL);var mL=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],za=S("settings",mL);var gL=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],An=S("share-2",gL);var hL=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Mn=S("sliders-horizontal",hL);var wL=[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],rr=S("square-dashed",wL);var bL=[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]],Dn=S("square-stack",bL);var vL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Bn=S("square",vL);var xL=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],_r=S("sun",xL);var yL=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Nn=S("tag",yL);var LL=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],js=S("text-cursor-input",LL);var SL=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],sr=S("text-wrap",SL);var CL=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Rn=S("toggle-left",CL);var IL=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zn=S("trash-2",IL);var kL=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],On=S("trending-down",kL);var TL=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],fo=S("triangle-alert",TL);var AL=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qs=S("users",AL);var ML=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],po=S("x",ML);var DL=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],En=S("zap",DL);function fb(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=fb(e[a]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function D(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=fb(e))&&(o&&(o+=" "),o+=a);return o}var X=y(C(),1),RL={xs:12,sm:14,md:16,lg:24};function zL({px:e}){let t=Math.PI*2*9;return(0,X.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[(0,X.jsx)("circle",{cx:"12",cy:"12",r:9,stroke:"currentColor",strokeWidth:"3",opacity:"0.2"}),(0,X.jsx)("circle",{cx:"12",cy:"12",r:9,stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:`${t*.28} ${t*.72}`})]})}function OL({px:e}){return(0,X.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,X.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",opacity:"0.9"}),(0,X.jsx)("path",{d:"M12 2a10 10 0 0 0-7.07 2.93",opacity:"0.2"}),(0,X.jsx)("path",{d:"M4.93 4.93A10 10 0 0 0 2 12",opacity:"0.2"}),(0,X.jsx)("path",{d:"M2 12a10 10 0 0 0 2.93 7.07",opacity:"0.2"}),(0,X.jsx)("path",{d:"M4.93 19.07A10 10 0 0 0 12 22",opacity:"0.2"}),(0,X.jsx)("path",{d:"M12 22a10 10 0 0 0 7.07-2.93",opacity:"0.2"}),(0,X.jsx)("path",{d:"M19.07 19.07A10 10 0 0 0 22 12",opacity:"0.2"})]})}function EL({px:e}){return(0,X.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[0,1,2,3,4,5,6,7].map(t=>{let o=t/8*360,r=.15+t/8*.85;return(0,X.jsx)("circle",{cx:"12",cy:"3.5",r:"1.8",fill:"currentColor",opacity:r,transform:`rotate(${o} 12 12)`},t)})})}function HL({px:e}){return(0,X.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[0,1,2,3].map(a=>(0,X.jsxs)("rect",{x:3+a*5.5,y:"4",width:"3",height:"16",rx:"1.5",fill:"currentColor",opacity:"0.3",children:[(0,X.jsx)("animate",{attributeName:"opacity",values:"0.3;1;0.3",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"}),(0,X.jsx)("animate",{attributeName:"height",values:"16;8;16",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"}),(0,X.jsx)("animate",{attributeName:"y",values:"4;8;4",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"})]},a))})}function PL({px:e}){let a=e*.14,t=e*.33,o=e/2-t,r=e/2,s=e/2+t,l=e/2;return(0,X.jsx)("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,children:[o,r,s].map((n,i)=>(0,X.jsxs)("circle",{cx:n,cy:l,r:a,fill:"currentColor",opacity:"0.4",children:[(0,X.jsx)("animate",{attributeName:"cy",values:`${l};${l-e*.25};${l}`,dur:"0.6s",begin:`${i*.12}s`,repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.2 1;0.4 0 0.2 1"}),(0,X.jsx)("animate",{attributeName:"opacity",values:"0.4;1;0.4",dur:"0.6s",begin:`${i*.12}s`,repeatCount:"indefinite"})]},i))})}function UL({px:e}){return(0,X.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[(0,X.jsxs)("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",opacity:"0",children:[(0,X.jsx)("animate",{attributeName:"r",values:"4;10;4",dur:"1.2s",repeatCount:"indefinite"}),(0,X.jsx)("animate",{attributeName:"opacity",values:"0.8;0.1;0.8",dur:"1.2s",repeatCount:"indefinite"})]}),(0,X.jsx)("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",opacity:"0.7"})]})}function qL({px:e}){return(0,X.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[(0,X.jsx)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.15"}),(0,X.jsx)("circle",{cx:"12",cy:"4",r:"2.2",fill:"currentColor",children:(0,X.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"0.9s",repeatCount:"indefinite"})}),(0,X.jsx)("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor",opacity:"0.5",children:(0,X.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"-360 12 12",dur:"0.9s",repeatCount:"indefinite"})})]})}function _L({px:e}){let a=e*.14,t=e*.33,o=e/2-t,r=e/2,s=e/2+t,l=e/2;return(0,X.jsx)("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,children:[o,r,s].map((n,i)=>(0,X.jsx)("circle",{cx:n,cy:l,r:a,fill:"currentColor",opacity:"0.25",children:(0,X.jsx)("animate",{attributeName:"opacity",values:"0.25;1;0.25",dur:"0.9s",begin:`${i*.2}s`,repeatCount:"indefinite"})},i))})}var FL={ring:zL,arc:OL,dots:EL,bars:HL,bounce:PL,pulse:UL,orbit:qL,flow:_L},GL=new Set(["ring","arc","dots"]);function Sa({variant:e="ring",size:a="md",className:t,label:o}){let r=typeof a=="number"?a:RL[a],s=FL[e];return(0,X.jsx)("span",{"aria-hidden":!o,"aria-label":o,role:o?"img":void 0,className:D("owo-spinner inline-flex",GL.has(e)&&"animate-spin",t),children:(0,X.jsx)(s,{px:r})})}var ft=y(C(),1);function VL({variant:e="secondary",size:a="md",loading:t=!1,className:o}){return D("owo-button","inline-flex items-center justify-center gap-2 rounded-[var(--owo-cmp-control-radius-md)] border font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-[var(--button-disabled-opacity)]",a==="sm"?"min-h-8 px-3 text-xs":"min-h-9 px-4 text-sm",t&&"pointer-events-none cursor-wait",o)}function M(e){let{variant:a="secondary",size:t="md",loading:o=!1,leadingIcon:r,trailingIcon:s,className:l,children:n,...i}=e,u=(0,ft.jsxs)(ft.Fragment,{children:[o?(0,ft.jsx)("span",{className:"shrink-0",children:(0,ft.jsx)(Sa,{size:t==="sm"?"sm":"md"})}):r?(0,ft.jsx)("span",{className:"shrink-0",children:r}):null,(0,ft.jsx)("span",{children:n}),!o&&s?(0,ft.jsx)("span",{className:"shrink-0",children:s}):null]}),c=VL({variant:a,size:t,loading:o,className:l});if("href"in e&&e.href){let{href:p,...f}=i;return(0,ft.jsx)("a",{href:p,"data-variant":a,"data-size":t,"data-loading":o?"true":void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,className:c,onClick:o?b=>b.preventDefault():void 0,...f,children:u})}let d=i;return(0,ft.jsx)("button",{type:d.type??"button","data-variant":a,"data-size":t,"data-loading":o?"true":void 0,disabled:d.disabled||o,className:c,...d,children:u})}var Uf=[],qf=[{group:"actions",componentId:"button"},{group:"actions",componentId:"dropdown-menu"},{group:"actions",componentId:"icon-button"},{group:"forms",componentId:"input"},{group:"forms",componentId:"field"},{group:"forms",componentId:"select"},{group:"forms",componentId:"segmented-control"},{group:"forms",componentId:"switch"},{group:"forms",componentId:"textarea"},{group:"forms",componentId:"collapsible"},{group:"forms",componentId:"tabs"},{group:"feedback",componentId:"badge"},{group:"feedback",componentId:"status-notice"},{group:"feedback",componentId:"empty-state"},{group:"feedback",componentId:"spinner"},{group:"feedback",componentId:"skeleton"},{group:"feedback",componentId:"dialog"},{group:"feedback",componentId:"toast"},{group:"feedback",componentId:"avatar"},{group:"feedback",componentId:"tooltip"},{group:"layout",componentId:"drawer"},{group:"layout",componentId:"panel"}];function q(e){Uf.push(e)}function _f(e,a){return Uf.find(t=>t.group===e&&t.componentId===a)}function Fr(){let e={actions:[],forms:[],feedback:[],layout:[]};for(let a of Uf)e[a.group].push(a);return e}var Hn={actions:"Actions",forms:"Forms",feedback:"Feedback",layout:"Layout"},Gr=["actions","forms","feedback","layout"];var ue=y(C(),1);q({group:"actions",componentId:"button",componentName:"Button",description:"Primary action trigger. Supports variants, sizes, icons, loading, and disabled states.",defaultScale:1.5,props:[{name:"variant",type:"'primary' | 'secondary' | 'ghost' | 'danger'",default:"'primary'",description:"Visual style variant."},{name:"size",type:"'sm' | 'md'",default:"'md'",description:"Button size."},{name:"loading",type:"boolean",default:"false",description:"Shows loading state and sets cursor-wait."},{name:"disabled",type:"boolean",default:"false",description:"Disables the button."},{name:"children",type:"string",default:"'Get Started'",description:"Button label text."},{name:"leadingIcon",type:"ReactNode",description:"Icon rendered before children."},{name:"trailingIcon",type:"ReactNode",description:"Icon rendered after children."},{name:"href",type:"string",description:"When set, renders as a Next.js Link."}],renderPlayground:e=>(0,ue.jsx)(M,{variant:e.variant,size:e.size,loading:!!e.loading,disabled:!!e.disabled,children:e.children||"Get Started"}),stories:[{id:"variants",title:"Variants",description:"primary / secondary / ghost / danger",source:`<Button variant="primary">Primary</Button>
8
+ `+o.stack}}var Cc=Object.prototype.hasOwnProperty,pf=ia.unstable_scheduleCallback,Ud=ia.unstable_cancelCallback,Xw=ia.unstable_shouldYield,Zw=ia.unstable_requestPaint,lt=ia.unstable_now,Yw=ia.unstable_getCurrentPriorityLevel,Jg=ia.unstable_ImmediatePriority,$g=ia.unstable_UserBlockingPriority,nu=ia.unstable_NormalPriority,Qw=ia.unstable_LowPriority,eh=ia.unstable_IdlePriority,Kw=ia.log,jw=ia.unstable_setDisableYieldValue,vs=null,nt=null;function Wo(e){if(typeof Kw=="function"&&jw(e),nt&&typeof nt.setStrictMode=="function")try{nt.setStrictMode(vs,e)}catch{}}var st=Math.clz32?Math.clz32:$w,Ww=Math.log,Jw=Math.LN2;function $w(e){return e>>>=0,e===0?32:31-(Ww(e)/Jw|0)|0}var Ii=256,Ti=262144,ki=4194304;function Ur(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zu(e,a,t){var o=e.pendingLanes;if(o===0)return 0;var r=0,l=e.suspendedLanes,n=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~l,o!==0?r=Ur(o):(n&=s,n!==0?r=Ur(n):t||(t=s&~e,t!==0&&(r=Ur(t))))):(s=o&~l,s!==0?r=Ur(s):n!==0?r=Ur(n):t||(t=o&~e,t!==0&&(r=Ur(t)))),r===0?0:a!==0&&a!==r&&(a&l)===0&&(l=r&-r,t=a&-a,l>=t||l===32&&(t&4194048)!==0)?a:r}function xs(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function ey(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 ah(){var e=ki;return ki<<=1,(ki&62914560)===0&&(ki=4194304),e}function Fd(e){for(var a=[],t=0;31>t;t++)a.push(e);return a}function ws(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ay(e,a,t,o,r,l){var n=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,i=e.expirationTimes,u=e.hiddenUpdates;for(t=n&~t;0<t;){var d=31-st(t),m=1<<d;s[d]=0,i[d]=-1;var c=u[d];if(c!==null)for(u[d]=null,d=0;d<c.length;d++){var g=c[d];g!==null&&(g.lane&=-536870913)}t&=~m}o!==0&&th(e,o,0),l!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=l&~(n&~a))}function th(e,a,t){e.pendingLanes|=a,e.suspendedLanes&=~a;var o=31-st(a);e.entangledLanes|=a,e.entanglements[o]=e.entanglements[o]|1073741824|t&261930}function oh(e,a){var t=e.entangledLanes|=a;for(e=e.entanglements;t;){var o=31-st(t),r=1<<o;r&a|e[o]&a&&(e[o]|=a),t&=~r}}function rh(e,a){var t=a&-a;return t=(t&42)!==0?1:gf(t),(t&(e.suspendedLanes|a))!==0?0:t}function gf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lh(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:Mv(e.type))}function Sp(e,a){var t=ge.p;try{return ge.p=e,a()}finally{ge.p=t}}var gr=Math.random().toString(36).slice(2),Ia="__reactFiber$"+gr,Qa="__reactProps$"+gr,rn="__reactContainer$"+gr,Sc="__reactEvents$"+gr,ty="__reactListeners$"+gr,oy="__reactHandles$"+gr,Ip="__reactResources$"+gr,ys="__reactMarker$"+gr;function bf(e){delete e[Ia],delete e[Qa],delete e[Sc],delete e[ty],delete e[oy]}function Dl(e){var a=e[Ia];if(a)return a;for(var t=e.parentNode;t;){if(a=t[rn]||t[Ia]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=Bg(e);e!==null;){if(t=e[Ia])return t;e=Bg(e)}return a}e=t,t=e.parentNode}return null}function ln(e){if(e=e[Ia]||e[rn]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Fn(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(L(33))}function Ul(e){var a=e[Ip];return a||(a=e[Ip]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ha(e){e[ys]=!0}var nh=new Set,sh={};function $r(e,a){Ql(e,a),Ql(e+"Capture",a)}function Ql(e,a){for(sh[e]=a,e=0;e<a.length;e++)nh.add(a[e])}var ry=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]*$"),Tp={},kp={};function ly(e){return Cc.call(kp,e)?!0:Cc.call(Tp,e)?!1:ry.test(e)?kp[e]=!0:(Tp[e]=!0,!1)}function Gi(e,a,t){if(ly(a))if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+t)}}function Mi(e,a,t){if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+t)}}function ho(e,a,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(a,t,""+o)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ih(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ny(e,a,t){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,l=o.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return r.call(this)},set:function(n){t=""+n,l.call(this,n)}}),Object.defineProperty(e,a,{enumerable:o.enumerable}),{getValue:function(){return t},setValue:function(n){t=""+n},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Ic(e){if(!e._valueTracker){var a=ih(e)?"checked":"value";e._valueTracker=ny(e,a,""+e[a])}}function uh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var t=a.getValue(),o="";return e&&(o=ih(e)?e.checked?"true":"false":e.value),e=o,e!==t?(a.setValue(e),!0):!1}function su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sy=/[\n"\\]/g;function Ct(e){return e.replace(sy,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Tc(e,a,t,o,r,l,n,s){e.name="",n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"?e.type=n:e.removeAttribute("type"),a!=null?n==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+wt(a)):e.value!==""+wt(a)&&(e.value=""+wt(a)):n!=="submit"&&n!=="reset"||e.removeAttribute("value"),a!=null?kc(e,n,wt(a)):t!=null?kc(e,n,wt(t)):o!=null&&e.removeAttribute("value"),r==null&&l!=null&&(e.defaultChecked=!!l),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+wt(s):e.removeAttribute("name")}function dh(e,a,t,o,r,l,n,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),a!=null||t!=null){if(!(l!=="submit"&&l!=="reset"||a!=null)){Ic(e);return}t=t!=null?""+wt(t):"",a=a!=null?""+wt(a):t,s||a===e.value||(e.value=a),e.defaultValue=a}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.name=n),Ic(e)}function kc(e,a,t){a==="number"&&su(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Fl(e,a,t,o){if(e=e.options,a){a={};for(var r=0;r<t.length;r++)a["$"+t[r]]=!0;for(t=0;t<e.length;t++)r=a.hasOwnProperty("$"+e[t].value),e[t].selected!==r&&(e[t].selected=r),r&&o&&(e[t].defaultSelected=!0)}else{for(t=""+wt(t),a=null,r=0;r<e.length;r++){if(e[r].value===t){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}a!==null||e[r].disabled||(a=e[r])}a!==null&&(a.selected=!0)}}function ch(e,a,t){if(a!=null&&(a=""+wt(a),a!==e.value&&(e.value=a),t==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=t!=null?""+wt(t):""}function fh(e,a,t,o){if(a==null){if(o!=null){if(t!=null)throw Error(L(92));if(Un(o)){if(1<o.length)throw Error(L(93));o=o[0]}t=o}t==null&&(t=""),a=t}t=wt(a),e.defaultValue=t,o=e.textContent,o===t&&o!==""&&o!==null&&(e.value=o),Ic(e)}function Kl(e,a){if(a){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=a;return}}e.textContent=a}var iy=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 Mp(e,a,t){var o=a.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?o?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":o?e.setProperty(a,t):typeof t!="number"||t===0||iy.has(a)?a==="float"?e.cssFloat=t:e[a]=(""+t).trim():e[a]=t+"px"}function mh(e,a,t){if(a!=null&&typeof a!="object")throw Error(L(62));if(e=e.style,t!=null){for(var o in t)!t.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var r in a)o=a[r],a.hasOwnProperty(r)&&t[r]!==o&&Mp(e,r,o)}else for(var l in a)a.hasOwnProperty(l)&&Mp(e,l,a[l])}function vf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uy=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"]]),dy=/^[\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 _i(e){return dy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function So(){}var Mc=null;function xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,Gl=null;function Ap(e){var a=ln(e);if(a&&(e=a.stateNode)){var t=e[Qa]||null;e:switch(e=a.stateNode,a.type){case"input":if(Tc(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+Ct(""+a)+'"][type="radio"]'),a=0;a<t.length;a++){var o=t[a];if(o!==e&&o.form===e.form){var r=o[Qa]||null;if(!r)throw Error(L(90));Tc(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(a=0;a<t.length;a++)o=t[a],o.form===e.form&&uh(o)}break e;case"textarea":ch(e,t.value,t.defaultValue);break e;case"select":a=t.value,a!=null&&Fl(e,!!t.multiple,a,!1)}}}var Gd=!1;function ph(e,a,t){if(Gd)return e(a,t);Gd=!0;try{var o=e(a);return o}finally{if(Gd=!1,(Nl!==null||Gl!==null)&&(Vu(),Nl&&(a=Nl,e=Gl,Gl=Nl=null,Ap(a),e)))for(a=0;a<e.length;a++)Ap(e[a])}}function rs(e,a){var t=e.stateNode;if(t===null)return null;var o=t[Qa]||null;if(o===null)return null;t=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(L(231,a,typeof t));return t}var Ao=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=!1;if(Ao)try{Cl={},Object.defineProperty(Cl,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{Ac=!1}var Cl,Jo=null,wf=null,Vi=null;function gh(){if(Vi)return Vi;var e,a=wf,t=a.length,o,r="value"in Jo?Jo.value:Jo.textContent,l=r.length;for(e=0;e<t&&a[e]===r[e];e++);var n=t-e;for(o=1;o<=n&&a[t-o]===r[l-o];o++);return Vi=r.slice(e,1<o?1-o:void 0)}function Xi(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Ai(){return!0}function Dp(){return!1}function Ka(e){function a(t,o,r,l,n){this._reactName=t,this._targetInst=r,this.type=o,this.nativeEvent=l,this.target=n,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ai:Dp,this.isPropagationStopped=Dp,this}return Re(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Ai)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),a}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=Ka(el),Ls=Re({},el,{view:0,detail:0}),cy=Ka(Ls),_d,Vd,Bn,Ru=Re({},Ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bn&&(Bn&&e.type==="mousemove"?(_d=e.screenX-Bn.screenX,Vd=e.screenY-Bn.screenY):Vd=_d=0,Bn=e),_d)},movementY:function(e){return"movementY"in e?e.movementY:Vd}}),Np=Ka(Ru),fy=Re({},Ru,{dataTransfer:0}),my=Ka(fy),py=Re({},Ls,{relatedTarget:0}),Xd=Ka(py),gy=Re({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=Ka(gy),by=Re({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vy=Ka(by),xy=Re({},el,{data:0}),zp=Ka(xy),wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yy={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"},Ly={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cy(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=Ly[e])?!!a[e]:!1}function yf(){return Cy}var Sy=Re({},Ls,{key:function(e){if(e.key){var a=wy[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yf,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iy=Ka(Sy),Ty=Re({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bp=Ka(Ty),ky=Re({},Ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yf}),My=Ka(ky),Ay=Re({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dy=Ka(Ay),Ny=Re({},Ru,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zy=Ka(Ny),By=Re({},el,{newState:0,oldState:0}),Ry=Ka(By),Oy=[9,13,27,32],Lf=Ao&&"CompositionEvent"in window,Vn=null;Ao&&"documentMode"in document&&(Vn=document.documentMode);var Ey=Ao&&"TextEvent"in window&&!Vn,hh=Ao&&(!Lf||Vn&&8<Vn&&11>=Vn),Rp=" ",Op=!1;function bh(e,a){switch(e){case"keyup":return Oy.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zl=!1;function Hy(e,a){switch(e){case"compositionend":return vh(a);case"keypress":return a.which!==32?null:(Op=!0,Rp);case"textInput":return e=a.data,e===Rp&&Op?null:e;default:return null}}function Py(e,a){if(zl)return e==="compositionend"||!Lf&&bh(e,a)?(e=gh(),Vi=wf=Jo=null,zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return hh&&a.locale!=="ko"?null:a.data;default:return null}}var qy={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 Ep(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!qy[e.type]:a==="textarea"}function xh(e,a,t,o){Nl?Gl?Gl.push(o):Gl=[o]:Nl=o,a=Iu(a,"onChange"),0<a.length&&(t=new Bu("onChange","change",null,t,o),e.push({event:t,listeners:a}))}var Xn=null,ls=null;function Uy(e){pv(e,0)}function Ou(e){var a=Fn(e);if(uh(a))return e}function Hp(e,a){if(e==="change")return a}var wh=!1;Ao&&(Ao?(Ni="oninput"in document,Ni||(Zd=document.createElement("div"),Zd.setAttribute("oninput","return;"),Ni=typeof Zd.oninput=="function"),Di=Ni):Di=!1,wh=Di&&(!document.documentMode||9<document.documentMode));var Di,Ni,Zd;function Pp(){Xn&&(Xn.detachEvent("onpropertychange",yh),ls=Xn=null)}function yh(e){if(e.propertyName==="value"&&Ou(ls)){var a=[];xh(a,ls,e,xf(e)),ph(Uy,a)}}function Fy(e,a,t){e==="focusin"?(Pp(),Xn=a,ls=t,Xn.attachEvent("onpropertychange",yh)):e==="focusout"&&Pp()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ou(ls)}function _y(e,a){if(e==="click")return Ou(a)}function Vy(e,a){if(e==="input"||e==="change")return Ou(a)}function Xy(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var ut=typeof Object.is=="function"?Object.is:Xy;function ns(e,a){if(ut(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var t=Object.keys(e),o=Object.keys(a);if(t.length!==o.length)return!1;for(o=0;o<t.length;o++){var r=t[o];if(!Cc.call(a,r)||!ut(e[r],a[r]))return!1}return!0}function qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Up(e,a){var t=qp(e);e=0;for(var o;t;){if(t.nodeType===3){if(o=e+t.textContent.length,e<=a&&o>=a)return{node:t,offset:a-e};e=o}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=qp(t)}}function Lh(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Lh(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Ch(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=su(e.document);a instanceof e.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch{t=!1}if(t)e=a.contentWindow;else break;a=su(e.document)}return a}function Cf(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Zy=Ao&&"documentMode"in document&&11>=document.documentMode,Bl=null,Dc=null,Zn=null,Nc=!1;function Fp(e,a,t){var o=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Nc||Bl==null||Bl!==su(o)||(o=Bl,"selectionStart"in o&&Cf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Zn&&ns(Zn,o)||(Zn=o,o=Iu(Dc,"onSelect"),0<o.length&&(a=new Bu("onSelect","select",null,a,t),e.push({event:a,listeners:o}),a.target=Bl)))}function Pr(e,a){var t={};return t[e.toLowerCase()]=a.toLowerCase(),t["Webkit"+e]="webkit"+a,t["Moz"+e]="moz"+a,t}var Rl={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionrun:Pr("Transition","TransitionRun"),transitionstart:Pr("Transition","TransitionStart"),transitioncancel:Pr("Transition","TransitionCancel"),transitionend:Pr("Transition","TransitionEnd")},Yd={},Sh={};Ao&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function al(e){if(Yd[e])return Yd[e];if(!Rl[e])return e;var a=Rl[e],t;for(t in a)if(a.hasOwnProperty(t)&&t in Sh)return Yd[e]=a[t];return e}var Ih=al("animationend"),Th=al("animationiteration"),kh=al("animationstart"),Yy=al("transitionrun"),Qy=al("transitionstart"),Ky=al("transitioncancel"),Mh=al("transitionend"),Ah=new Map,zc="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(" ");zc.push("scrollEnd");function Ut(e,a){Ah.set(e,a),$r(a,[e])}var iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},xt=[],Ol=0,Sf=0;function Eu(){for(var e=Ol,a=Sf=Ol=0;a<e;){var t=xt[a];xt[a++]=null;var o=xt[a];xt[a++]=null;var r=xt[a];xt[a++]=null;var l=xt[a];if(xt[a++]=null,o!==null&&r!==null){var n=o.pending;n===null?r.next=r:(r.next=n.next,n.next=r),o.pending=r}l!==0&&Dh(t,r,l)}}function Hu(e,a,t,o){xt[Ol++]=e,xt[Ol++]=a,xt[Ol++]=t,xt[Ol++]=o,Sf|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function If(e,a,t,o){return Hu(e,a,t,o),uu(e)}function tl(e,a){return Hu(e,null,null,a),uu(e)}function Dh(e,a,t){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t);for(var r=!1,l=e.return;l!==null;)l.childLanes|=t,o=l.alternate,o!==null&&(o.childLanes|=t),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(r=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,r&&a!==null&&(r=31-st(t),e=l.hiddenUpdates,o=e[r],o===null?e[r]=[a]:o.push(a),a.lane=t|536870912),l):null}function uu(e){if(50<as)throw as=0,$c=null,Error(L(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var El={};function jy(e,a,t,o){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,a,t,o){return new jy(e,a,t,o)}function Tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function To(e,a){var t=e.alternate;return t===null?(t=ot(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Nh(e,a){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,a=t.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Zi(e,a,t,o,r,l){var n=0;if(o=e,typeof e=="function")Tf(e)&&(n=1);else if(typeof e=="string")n=$0(e,t,oo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xc:return e=ot(31,t,a,r),e.elementType=xc,e.lanes=l,e;case Ml:return Vr(t.children,r,l,a);case jg:n=8,r|=24;break;case hc:return e=ot(12,t,a,r|2),e.elementType=hc,e.lanes=l,e;case bc:return e=ot(13,t,a,r),e.elementType=bc,e.lanes=l,e;case vc:return e=ot(19,t,a,r),e.elementType=vc,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Co:n=10;break e;case Wg:n=9;break e;case ff:n=11;break e;case mf:n=14;break e;case Xo:n=16,o=null;break e}n=29,t=Error(L(130,e===null?"null":typeof e,"")),o=null}return a=ot(n,t,a,r),a.elementType=e,a.type=o,a.lanes=l,a}function Vr(e,a,t,o){return e=ot(7,e,o,a),e.lanes=t,e}function Qd(e,a,t){return e=ot(6,e,null,a),e.lanes=t,e}function zh(e){var a=ot(18,null,null,0);return a.stateNode=e,a}function Kd(e,a,t){return a=ot(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Gp=new WeakMap;function St(e,a){if(typeof e=="object"&&e!==null){var t=Gp.get(e);return t!==void 0?t:(a={value:e,source:a,stack:Cp(a)},Gp.set(e,a),a)}return{value:e,source:a,stack:Cp(a)}}var Hl=[],Pl=0,du=null,ss=0,yt=[],Lt=0,cr=null,eo=1,ao="";function yo(e,a){Hl[Pl++]=ss,Hl[Pl++]=du,du=e,ss=a}function Bh(e,a,t){yt[Lt++]=eo,yt[Lt++]=ao,yt[Lt++]=cr,cr=e;var o=eo;e=ao;var r=32-st(o)-1;o&=~(1<<r),t+=1;var l=32-st(a)+r;if(30<l){var n=r-r%5;l=(o&(1<<n)-1).toString(32),o>>=n,r-=n,eo=1<<32-st(a)+r|t<<r|o,ao=l+e}else eo=1<<l|t<<r|o,ao=e}function kf(e){e.return!==null&&(yo(e,1),Bh(e,1,0))}function Mf(e){for(;e===du;)du=Hl[--Pl],Hl[Pl]=null,ss=Hl[--Pl],Hl[Pl]=null;for(;e===cr;)cr=yt[--Lt],yt[Lt]=null,ao=yt[--Lt],yt[Lt]=null,eo=yt[--Lt],yt[Lt]=null}function Rh(e,a){yt[Lt++]=eo,yt[Lt++]=ao,yt[Lt++]=cr,eo=a.id,ao=a.overflow,cr=e}var Ta=null,Be=null,ne=!1,or=null,It=!1,Bc=Error(L(519));function fr(e){var a=Error(L(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw is(St(a,e)),Bc}function _p(e){var a=e.stateNode,t=e.type,o=e.memoizedProps;switch(a[Ia]=e,a[Qa]=o,t){case"dialog":ae("cancel",a),ae("close",a);break;case"iframe":case"object":case"embed":ae("load",a);break;case"video":case"audio":for(t=0;t<fs.length;t++)ae(fs[t],a);break;case"source":ae("error",a);break;case"img":case"image":case"link":ae("error",a),ae("load",a);break;case"details":ae("toggle",a);break;case"input":ae("invalid",a),dh(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ae("invalid",a);break;case"textarea":ae("invalid",a),fh(a,o.value,o.defaultValue,o.children)}t=o.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||a.textContent===""+t||o.suppressHydrationWarning===!0||hv(a.textContent,t)?(o.popover!=null&&(ae("beforetoggle",a),ae("toggle",a)),o.onScroll!=null&&ae("scroll",a),o.onScrollEnd!=null&&ae("scrollend",a),o.onClick!=null&&(a.onclick=So),a=!0):a=!1,a||fr(e,!0)}function Vp(e){for(Ta=e.return;Ta;)switch(Ta.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:Ta=Ta.return}}function Sl(e){if(e!==Ta)return!1;if(!ne)return Vp(e),ne=!0,!1;var a=e.tag,t;if((t=a!==3&&a!==27)&&((t=a===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||rf(e.type,e.memoizedProps)),t=!t),t&&Be&&fr(e),Vp(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));Be=zg(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));Be=zg(e)}else a===27?(a=Be,hr(e.type)?(e=uf,uf=null,Be=e):Be=a):Be=Ta?kt(e.stateNode.nextSibling):null;return!0}function Qr(){Be=Ta=null,ne=!1}function jd(){var e=or;return e!==null&&(Za===null?Za=e:Za.push.apply(Za,e),or=null),e}function is(e){or===null?or=[e]:or.push(e)}var Rc=ro(null),ol=null,Io=null;function Yo(e,a,t){ke(Rc,a._currentValue),a._currentValue=t}function ko(e){e._currentValue=Rc.current,ba(Rc)}function Oc(e,a,t){for(;e!==null;){var o=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),e===t)break;e=e.return}}function Ec(e,a,t,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var l=r.dependencies;if(l!==null){var n=r.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=r;for(var i=0;i<a.length;i++)if(s.context===a[i]){l.lanes|=t,s=l.alternate,s!==null&&(s.lanes|=t),Oc(l.return,t,e),o||(n=null);break e}l=s.next}}else if(r.tag===18){if(n=r.return,n===null)throw Error(L(341));n.lanes|=t,l=n.alternate,l!==null&&(l.lanes|=t),Oc(n,t,e),n=null}else n=r.child;if(n!==null)n.return=r;else for(n=r;n!==null;){if(n===e){n=null;break}if(r=n.sibling,r!==null){r.return=n.return,n=r;break}n=n.return}r=n}}function nn(e,a,t,o){e=null;for(var r=a,l=!1;r!==null;){if(!l){if((r.flags&524288)!==0)l=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var n=r.alternate;if(n===null)throw Error(L(387));if(n=n.memoizedProps,n!==null){var s=r.type;ut(r.pendingProps.value,n.value)||(e!==null?e.push(s):e=[s])}}else if(r===ou.current){if(n=r.alternate,n===null)throw Error(L(387));n.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ps):e=[ps])}r=r.return}e!==null&&Ec(a,e,t,o),a.flags|=262144}function cu(e){for(e=e.firstContext;e!==null;){if(!ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kr(e){ol=e,Io=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ka(e){return Oh(ol,e)}function zi(e,a){return ol===null&&Kr(e),Oh(e,a)}function Oh(e,a){var t=a._currentValue;if(a={context:a,memoizedValue:t,next:null},Io===null){if(e===null)throw Error(L(308));Io=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Io=Io.next=a;return t}var Wy=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(t,o){e.push(o)}};this.abort=function(){a.aborted=!0,e.forEach(function(t){return t()})}},Jy=ia.unstable_scheduleCallback,$y=ia.unstable_NormalPriority,oa={$$typeof:Co,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Af(){return{controller:new Wy,data:new Map,refCount:0}}function Cs(e){e.refCount--,e.refCount===0&&Jy($y,function(){e.controller.abort()})}var Yn=null,Hc=0,jl=0,_l=null;function e0(e,a){if(Yn===null){var t=Yn=[];Hc=0,jl=em(),_l={status:"pending",value:void 0,then:function(o){t.push(o)}}}return Hc++,a.then(Xp,Xp),a}function Xp(){if(--Hc===0&&Yn!==null){_l!==null&&(_l.status="fulfilled");var e=Yn;Yn=null,jl=0,_l=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function a0(e,a){var t=[],o={status:"pending",value:null,reason:null,then:function(r){t.push(r)}};return e.then(function(){o.status="fulfilled",o.value=a;for(var r=0;r<t.length;r++)(0,t[r])(a)},function(r){for(o.status="rejected",o.reason=r,r=0;r<t.length;r++)(0,t[r])(void 0)}),o}var Zp=_.S;_.S=function(e,a){Kb=lt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&e0(e,a),Zp!==null&&Zp(e,a)};var Xr=ro(null);function Df(){var e=Xr.current;return e!==null?e:Te.pooledCache}function Yi(e,a){a===null?ke(Xr,Xr.current):ke(Xr,a.pool)}function Eh(){var e=Df();return e===null?null:{parent:oa._currentValue,pool:e}}var sn=Error(L(460)),Nf=Error(L(474)),Pu=Error(L(542)),fu={then:function(){}};function Yp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hh(e,a,t){switch(t=e[t],t===void 0?e.push(a):t!==a&&(a.then(So,So),a=t),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Kp(e),e;default:if(typeof a.status=="string")a.then(So,So);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(L(482));e=a,e.status="pending",e.then(function(o){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=o}},function(o){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Kp(e),e}throw Zr=a,sn}}function Fr(e){try{var a=e._init;return a(e._payload)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Zr=t,sn):t}}var Zr=null;function Qp(){if(Zr===null)throw Error(L(459));var e=Zr;return Zr=null,e}function Kp(e){if(e===sn||e===Pu)throw Error(L(483))}var Vl=null,us=0;function Bi(e){var a=us;return us+=1,Vl===null&&(Vl=[]),Hh(Vl,e,a)}function Rn(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Ri(e,a){throw a.$$typeof===Fw?Error(L(525)):(e=Object.prototype.toString.call(a),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Ph(e){function a(p,f){if(e){var b=p.deletions;b===null?(p.deletions=[f],p.flags|=16):b.push(f)}}function t(p,f){if(!e)return null;for(;f!==null;)a(p,f),f=f.sibling;return null}function o(p){for(var f=new Map;p!==null;)p.key!==null?f.set(p.key,p):f.set(p.index,p),p=p.sibling;return f}function r(p,f){return p=To(p,f),p.index=0,p.sibling=null,p}function l(p,f,b){return p.index=b,e?(b=p.alternate,b!==null?(b=b.index,b<f?(p.flags|=67108866,f):b):(p.flags|=67108866,f)):(p.flags|=1048576,f)}function n(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function s(p,f,b,x){return f===null||f.tag!==6?(f=Qd(b,p.mode,x),f.return=p,f):(f=r(f,b),f.return=p,f)}function i(p,f,b,x){var N=b.type;return N===Ml?d(p,f,b.props.children,x,b.key):f!==null&&(f.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Xo&&Fr(N)===f.type)?(f=r(f,b.props),Rn(f,b),f.return=p,f):(f=Zi(b.type,b.key,b.props,null,p.mode,x),Rn(f,b),f.return=p,f)}function u(p,f,b,x){return f===null||f.tag!==4||f.stateNode.containerInfo!==b.containerInfo||f.stateNode.implementation!==b.implementation?(f=Kd(b,p.mode,x),f.return=p,f):(f=r(f,b.children||[]),f.return=p,f)}function d(p,f,b,x,N){return f===null||f.tag!==7?(f=Vr(b,p.mode,x,N),f.return=p,f):(f=r(f,b),f.return=p,f)}function m(p,f,b){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=Qd(""+f,p.mode,b),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Si:return b=Zi(f.type,f.key,f.props,null,p.mode,b),Rn(b,f),b.return=p,b;case qn:return f=Kd(f,p.mode,b),f.return=p,f;case Xo:return f=Fr(f),m(p,f,b)}if(Un(f)||zn(f))return f=Vr(f,p.mode,b,null),f.return=p,f;if(typeof f.then=="function")return m(p,Bi(f),b);if(f.$$typeof===Co)return m(p,zi(p,f),b);Ri(p,f)}return null}function c(p,f,b,x){var N=f!==null?f.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return N!==null?null:s(p,f,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Si:return b.key===N?i(p,f,b,x):null;case qn:return b.key===N?u(p,f,b,x):null;case Xo:return b=Fr(b),c(p,f,b,x)}if(Un(b)||zn(b))return N!==null?null:d(p,f,b,x,null);if(typeof b.then=="function")return c(p,f,Bi(b),x);if(b.$$typeof===Co)return c(p,f,zi(p,b),x);Ri(p,b)}return null}function g(p,f,b,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return p=p.get(b)||null,s(f,p,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Si:return p=p.get(x.key===null?b:x.key)||null,i(f,p,x,N);case qn:return p=p.get(x.key===null?b:x.key)||null,u(f,p,x,N);case Xo:return x=Fr(x),g(p,f,b,x,N)}if(Un(x)||zn(x))return p=p.get(b)||null,d(f,p,x,N,null);if(typeof x.then=="function")return g(p,f,b,Bi(x),N);if(x.$$typeof===Co)return g(p,f,b,zi(f,x),N);Ri(f,x)}return null}function v(p,f,b,x){for(var N=null,R=null,z=f,E=f=0,q=null;z!==null&&E<b.length;E++){z.index>E?(q=z,z=null):q=z.sibling;var U=c(p,z,b[E],x);if(U===null){z===null&&(z=q);break}e&&z&&U.alternate===null&&a(p,z),f=l(U,f,E),R===null?N=U:R.sibling=U,R=U,z=q}if(E===b.length)return t(p,z),ne&&yo(p,E),N;if(z===null){for(;E<b.length;E++)z=m(p,b[E],x),z!==null&&(f=l(z,f,E),R===null?N=z:R.sibling=z,R=z);return ne&&yo(p,E),N}for(z=o(z);E<b.length;E++)q=g(z,p,E,b[E],x),q!==null&&(e&&q.alternate!==null&&z.delete(q.key===null?E:q.key),f=l(q,f,E),R===null?N=q:R.sibling=q,R=q);return e&&z.forEach(function(P){return a(p,P)}),ne&&yo(p,E),N}function w(p,f,b,x){if(b==null)throw Error(L(151));for(var N=null,R=null,z=f,E=f=0,q=null,U=b.next();z!==null&&!U.done;E++,U=b.next()){z.index>E?(q=z,z=null):q=z.sibling;var P=c(p,z,U.value,x);if(P===null){z===null&&(z=q);break}e&&z&&P.alternate===null&&a(p,z),f=l(P,f,E),R===null?N=P:R.sibling=P,R=P,z=q}if(U.done)return t(p,z),ne&&yo(p,E),N;if(z===null){for(;!U.done;E++,U=b.next())U=m(p,U.value,x),U!==null&&(f=l(U,f,E),R===null?N=U:R.sibling=U,R=U);return ne&&yo(p,E),N}for(z=o(z);!U.done;E++,U=b.next())U=g(z,p,E,U.value,x),U!==null&&(e&&U.alternate!==null&&z.delete(U.key===null?E:U.key),f=l(U,f,E),R===null?N=U:R.sibling=U,R=U);return e&&z.forEach(function($){return a(p,$)}),ne&&yo(p,E),N}function D(p,f,b,x){if(typeof b=="object"&&b!==null&&b.type===Ml&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Si:e:{for(var N=b.key;f!==null;){if(f.key===N){if(N=b.type,N===Ml){if(f.tag===7){t(p,f.sibling),x=r(f,b.props.children),x.return=p,p=x;break e}}else if(f.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Xo&&Fr(N)===f.type){t(p,f.sibling),x=r(f,b.props),Rn(x,b),x.return=p,p=x;break e}t(p,f);break}else a(p,f);f=f.sibling}b.type===Ml?(x=Vr(b.props.children,p.mode,x,b.key),x.return=p,p=x):(x=Zi(b.type,b.key,b.props,null,p.mode,x),Rn(x,b),x.return=p,p=x)}return n(p);case qn:e:{for(N=b.key;f!==null;){if(f.key===N)if(f.tag===4&&f.stateNode.containerInfo===b.containerInfo&&f.stateNode.implementation===b.implementation){t(p,f.sibling),x=r(f,b.children||[]),x.return=p,p=x;break e}else{t(p,f);break}else a(p,f);f=f.sibling}x=Kd(b,p.mode,x),x.return=p,p=x}return n(p);case Xo:return b=Fr(b),D(p,f,b,x)}if(Un(b))return v(p,f,b,x);if(zn(b)){if(N=zn(b),typeof N!="function")throw Error(L(150));return b=N.call(b),w(p,f,b,x)}if(typeof b.then=="function")return D(p,f,Bi(b),x);if(b.$$typeof===Co)return D(p,f,zi(p,b),x);Ri(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,f!==null&&f.tag===6?(t(p,f.sibling),x=r(f,b),x.return=p,p=x):(t(p,f),x=Qd(b,p.mode,x),x.return=p,p=x),n(p)):t(p,f)}return function(p,f,b,x){try{us=0;var N=D(p,f,b,x);return Vl=null,N}catch(z){if(z===sn||z===Pu)throw z;var R=ot(29,z,null,p.mode);return R.lanes=x,R.return=p,R}}}var jr=Ph(!0),qh=Ph(!1),Zo=!1;function zf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pc(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function rr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lr(e,a,t){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(pe&2)!==0){var r=o.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),o.pending=a,a=uu(e),Dh(e,null,t),a}return Hu(e,o,a,t),uu(e)}function Qn(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194048)!==0)){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,oh(e,t)}}function Wd(e,a){var t=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,t===o)){var r=null,l=null;if(t=t.firstBaseUpdate,t!==null){do{var n={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};l===null?r=l=n:l=l.next=n,t=t.next}while(t!==null);l===null?r=l=a:l=l.next=a}else r=l=a;t={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:l,shared:o.shared,callbacks:o.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}var qc=!1;function Kn(){if(qc){var e=_l;if(e!==null)throw e}}function jn(e,a,t,o){qc=!1;var r=e.updateQueue;Zo=!1;var l=r.firstBaseUpdate,n=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var i=s,u=i.next;i.next=null,n===null?l=u:n.next=u,n=i;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==n&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=i))}if(l!==null){var m=r.baseState;n=0,d=u=i=null,s=l;do{var c=s.lane&-536870913,g=c!==s.lane;if(g?(re&c)===c:(o&c)===c){c!==0&&c===jl&&(qc=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var v=e,w=s;c=a;var D=t;switch(w.tag){case 1:if(v=w.payload,typeof v=="function"){m=v.call(D,m,c);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,c=typeof v=="function"?v.call(D,m,c):v,c==null)break e;m=Re({},m,c);break e;case 2:Zo=!0}}c=s.callback,c!==null&&(e.flags|=64,g&&(e.flags|=8192),g=r.callbacks,g===null?r.callbacks=[c]:g.push(c))}else g={lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,i=m):d=d.next=g,n|=c;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;g=s,s=g.next,g.next=null,r.lastBaseUpdate=g,r.shared.pending=null}}while(!0);d===null&&(i=m),r.baseState=i,r.firstBaseUpdate=u,r.lastBaseUpdate=d,l===null&&(r.shared.lanes=0),pr|=n,e.lanes=n,e.memoizedState=m}}function Uh(e,a){if(typeof e!="function")throw Error(L(191,e));e.call(a)}function Fh(e,a){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)Uh(t[e],a)}var Wl=ro(null),mu=ro(0);function jp(e,a){e=Bo,ke(mu,e),ke(Wl,a),Bo=e|a.baseLanes}function Uc(){ke(mu,Bo),ke(Wl,Wl.current)}function Bf(){Bo=mu.current,ba(Wl),ba(mu)}var dt=ro(null),Tt=null;function Qo(e){var a=e.alternate;ke(Je,Je.current&1),ke(dt,e),Tt===null&&(a===null||Wl.current!==null||a.memoizedState!==null)&&(Tt=e)}function Fc(e){ke(Je,Je.current),ke(dt,e),Tt===null&&(Tt=e)}function Gh(e){e.tag===22?(ke(Je,Je.current),ke(dt,e),Tt===null&&(Tt=e)):Ko(e)}function Ko(){ke(Je,Je.current),ke(dt,dt.current)}function tt(e){ba(dt),Tt===e&&(Tt=null),ba(Je)}var Je=ro(0);function pu(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||nf(t)||sf(t)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Do=0,K=null,Le=null,aa=null,gu=!1,Xl=!1,Wr=!1,hu=0,ds=0,Zl=null,t0=0;function Xe(){throw Error(L(321))}function Rf(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!ut(e[t],a[t]))return!1;return!0}function Of(e,a,t,o,r,l){return Do=l,K=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=e===null||e.memoizedState===null?xb:Zf,Wr=!1,l=t(o,r),Wr=!1,Xl&&(l=Vh(a,t,o,r)),_h(e),l}function _h(e){_.H=cs;var a=Le!==null&&Le.next!==null;if(Do=0,aa=Le=K=null,gu=!1,ds=0,Zl=null,a)throw Error(L(300));e===null||ra||(e=e.dependencies,e!==null&&cu(e)&&(ra=!0))}function Vh(e,a,t,o){K=e;var r=0;do{if(Xl&&(Zl=null),ds=0,Xl=!1,25<=r)throw Error(L(301));if(r+=1,aa=Le=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}_.H=wb,l=a(t,o)}while(Xl);return l}function o0(){var e=_.H,a=e.useState()[0];return a=typeof a.then=="function"?Ss(a):a,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(K.flags|=1024),a}function Ef(){var e=hu!==0;return hu=0,e}function Hf(e,a,t){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~t}function Pf(e){if(gu){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}gu=!1}Do=0,aa=Le=K=null,Xl=!1,ds=hu=0,Zl=null}function Pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return aa===null?K.memoizedState=aa=e:aa=aa.next=e,aa}function $e(){if(Le===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var a=aa===null?K.memoizedState:aa.next;if(a!==null)aa=a,Le=e;else{if(e===null)throw K.alternate===null?Error(L(467)):Error(L(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},aa===null?K.memoizedState=aa=e:aa=aa.next=e}return aa}function qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ss(e){var a=ds;return ds+=1,Zl===null&&(Zl=[]),e=Hh(Zl,e,a),a=K,(aa===null?a.memoizedState:aa.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?xb:Zf),e}function Uu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ss(e);if(e.$$typeof===Co)return ka(e)}throw Error(L(438,String(e)))}function qf(e){var a=null,t=K.updateQueue;if(t!==null&&(a=t.memoCache),a==null){var o=K.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(r){return r.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),t===null&&(t=qu(),K.updateQueue=t),t.memoCache=a,t=a.data[a.index],t===void 0)for(t=a.data[a.index]=Array(e),o=0;o<e;o++)t[o]=Gw;return a.index++,t}function No(e,a){return typeof a=="function"?a(e):a}function Qi(e){var a=$e();return Uf(a,Le,e)}function Uf(e,a,t){var o=e.queue;if(o===null)throw Error(L(311));o.lastRenderedReducer=t;var r=e.baseQueue,l=o.pending;if(l!==null){if(r!==null){var n=r.next;r.next=l.next,l.next=n}a.baseQueue=r=l,o.pending=null}if(l=e.baseState,r===null)e.memoizedState=l;else{a=r.next;var s=n=null,i=null,u=a,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(re&m)===m:(Do&m)===m){var c=u.revertLane;if(c===0)i!==null&&(i=i.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===jl&&(d=!0);else if((Do&c)===c){u=u.next,c===jl&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},i===null?(s=i=m,n=l):i=i.next=m,K.lanes|=c,pr|=c;m=u.action,Wr&&t(l,m),l=u.hasEagerState?u.eagerState:t(l,m)}else c={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},i===null?(s=i=c,n=l):i=i.next=c,K.lanes|=m,pr|=m;u=u.next}while(u!==null&&u!==a);if(i===null?n=l:i.next=s,!ut(l,e.memoizedState)&&(ra=!0,d&&(t=_l,t!==null)))throw t;e.memoizedState=l,e.baseState=n,e.baseQueue=i,o.lastRenderedState=l}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Jd(e){var a=$e(),t=a.queue;if(t===null)throw Error(L(311));t.lastRenderedReducer=e;var o=t.dispatch,r=t.pending,l=a.memoizedState;if(r!==null){t.pending=null;var n=r=r.next;do l=e(l,n.action),n=n.next;while(n!==r);ut(l,a.memoizedState)||(ra=!0),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),t.lastRenderedState=l}return[l,o]}function Xh(e,a,t){var o=K,r=$e(),l=ne;if(l){if(t===void 0)throw Error(L(407));t=t()}else t=a();var n=!ut((Le||r).memoizedState,t);if(n&&(r.memoizedState=t,ra=!0),r=r.queue,Ff(Qh.bind(null,o,r,e),[e]),r.getSnapshot!==a||n||aa!==null&&aa.memoizedState.tag&1){if(o.flags|=2048,Jl(9,{destroy:void 0},Yh.bind(null,o,r,t,a),null),Te===null)throw Error(L(349));l||(Do&127)!==0||Zh(o,a,t)}return t}function Zh(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=K.updateQueue,a===null?(a=qu(),K.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function Yh(e,a,t,o){a.value=t,a.getSnapshot=o,Kh(a)&&jh(e)}function Qh(e,a,t){return t(function(){Kh(a)&&jh(e)})}function Kh(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!ut(e,t)}catch{return!0}}function jh(e){var a=tl(e,2);a!==null&&Ya(a,e,2)}function Gc(e){var a=Pa();if(typeof e=="function"){var t=e;if(e=t(),Wr){Wo(!0);try{t()}finally{Wo(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},a}function Wh(e,a,t,o){return e.baseState=t,Uf(e,Le,typeof o=="function"?o:No)}function r0(e,a,t,o,r){if(Gu(e))throw Error(L(485));if(e=a.action,e!==null){var l={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(n){l.listeners.push(n)}};_.T!==null?t(!0):l.isTransition=!1,o(l),t=a.pending,t===null?(l.next=a.pending=l,Jh(a,l)):(l.next=t.next,a.pending=t.next=l)}}function Jh(e,a){var t=a.action,o=a.payload,r=e.state;if(a.isTransition){var l=_.T,n={};_.T=n;try{var s=t(r,o),i=_.S;i!==null&&i(n,s),Wp(e,a,s)}catch(u){_c(e,a,u)}finally{l!==null&&n.types!==null&&(l.types=n.types),_.T=l}}else try{l=t(r,o),Wp(e,a,l)}catch(u){_c(e,a,u)}}function Wp(e,a,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(o){Jp(e,a,o)},function(o){return _c(e,a,o)}):Jp(e,a,t)}function Jp(e,a,t){a.status="fulfilled",a.value=t,$h(a),e.state=t,a=e.pending,a!==null&&(t=a.next,t===a?e.pending=null:(t=t.next,a.next=t,Jh(e,t)))}function _c(e,a,t){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=t,$h(a),a=a.next;while(a!==o)}e.action=null}function $h(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function eb(e,a){return a}function $p(e,a){if(ne){var t=Te.formState;if(t!==null){e:{var o=K;if(ne){if(Be){a:{for(var r=Be,l=It;r.nodeType!==8;){if(!l){r=null;break a}if(r=kt(r.nextSibling),r===null){r=null;break a}}l=r.data,r=l==="F!"||l==="F"?r:null}if(r){Be=kt(r.nextSibling),o=r.data==="F!";break e}}fr(o)}o=!1}o&&(a=t[0])}}return t=Pa(),t.memoizedState=t.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eb,lastRenderedState:a},t.queue=o,t=hb.bind(null,K,o),o.dispatch=t,o=Gc(!1),l=Xf.bind(null,K,!1,o.queue),o=Pa(),r={state:a,dispatch:null,action:e,pending:null},o.queue=r,t=r0.bind(null,K,r,l,t),r.dispatch=t,o.memoizedState=e,[a,t,!1]}function eg(e){var a=$e();return ab(a,Le,e)}function ab(e,a,t){if(a=Uf(e,a,eb)[0],e=Qi(No)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Ss(a)}catch(n){throw n===sn?Pu:n}else o=a;a=$e();var r=a.queue,l=r.dispatch;return t!==a.memoizedState&&(K.flags|=2048,Jl(9,{destroy:void 0},l0.bind(null,r,t),null)),[o,l,e]}function l0(e,a){e.action=a}function ag(e){var a=$e(),t=Le;if(t!==null)return ab(a,t,e);$e(),a=a.memoizedState,t=$e();var o=t.queue.dispatch;return t.memoizedState=e,[a,o,!1]}function Jl(e,a,t,o){return e={tag:e,create:t,deps:o,inst:a,next:null},a=K.updateQueue,a===null&&(a=qu(),K.updateQueue=a),t=a.lastEffect,t===null?a.lastEffect=e.next=e:(o=t.next,t.next=e,e.next=o,a.lastEffect=e),e}function tb(){return $e().memoizedState}function Ki(e,a,t,o){var r=Pa();K.flags|=e,r.memoizedState=Jl(1|a,{destroy:void 0},t,o===void 0?null:o)}function Fu(e,a,t,o){var r=$e();o=o===void 0?null:o;var l=r.memoizedState.inst;Le!==null&&o!==null&&Rf(o,Le.memoizedState.deps)?r.memoizedState=Jl(a,l,t,o):(K.flags|=e,r.memoizedState=Jl(1|a,l,t,o))}function tg(e,a){Ki(8390656,8,e,a)}function Ff(e,a){Fu(2048,8,e,a)}function n0(e){K.flags|=4;var a=K.updateQueue;if(a===null)a=qu(),K.updateQueue=a,a.events=[e];else{var t=a.events;t===null?a.events=[e]:t.push(e)}}function ob(e){var a=$e().memoizedState;return n0({ref:a,nextImpl:e}),function(){if((pe&2)!==0)throw Error(L(440));return a.impl.apply(void 0,arguments)}}function rb(e,a){return Fu(4,2,e,a)}function lb(e,a){return Fu(4,4,e,a)}function nb(e,a){if(typeof a=="function"){e=e();var t=a(e);return function(){typeof t=="function"?t():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function sb(e,a,t){t=t!=null?t.concat([e]):null,Fu(4,4,nb.bind(null,a,e),t)}function Gf(){}function ib(e,a){var t=$e();a=a===void 0?null:a;var o=t.memoizedState;return a!==null&&Rf(a,o[1])?o[0]:(t.memoizedState=[e,a],e)}function ub(e,a){var t=$e();a=a===void 0?null:a;var o=t.memoizedState;if(a!==null&&Rf(a,o[1]))return o[0];if(o=e(),Wr){Wo(!0);try{e()}finally{Wo(!1)}}return t.memoizedState=[o,a],o}function _f(e,a,t){return t===void 0||(Do&1073741824)!==0&&(re&261930)===0?e.memoizedState=a:(e.memoizedState=t,e=Wb(),K.lanes|=e,pr|=e,t)}function db(e,a,t,o){return ut(t,a)?t:Wl.current!==null?(e=_f(e,t,o),ut(e,a)||(ra=!0),e):(Do&42)===0||(Do&1073741824)!==0&&(re&261930)===0?(ra=!0,e.memoizedState=t):(e=Wb(),K.lanes|=e,pr|=e,a)}function cb(e,a,t,o,r){var l=ge.p;ge.p=l!==0&&8>l?l:8;var n=_.T,s={};_.T=s,Xf(e,!1,a,t);try{var i=r(),u=_.S;if(u!==null&&u(s,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=a0(i,o);Wn(e,a,d,it(e))}else Wn(e,a,o,it(e))}catch(m){Wn(e,a,{then:function(){},status:"rejected",reason:m},it())}finally{ge.p=l,n!==null&&s.types!==null&&(n.types=s.types),_.T=n}}function s0(){}function Vc(e,a,t,o){if(e.tag!==5)throw Error(L(476));var r=fb(e).queue;cb(e,r,a,_r,t===null?s0:function(){return mb(e),t(o)})}function fb(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:_r,baseState:_r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:_r},next:null};var t={};return a.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:t},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function mb(e){var a=fb(e);a.next===null&&(a=e.alternate.memoizedState),Wn(e,a.next.queue,{},it())}function Vf(){return ka(ps)}function pb(){return $e().memoizedState}function gb(){return $e().memoizedState}function i0(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var t=it();e=rr(t);var o=lr(a,e,t);o!==null&&(Ya(o,a,t),Qn(o,a,t)),a={cache:Af()},e.payload=a;return}a=a.return}}function u0(e,a,t){var o=it();t={lane:o,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},Gu(e)?bb(a,t):(t=If(e,a,t,o),t!==null&&(Ya(t,e,o),vb(t,a,o)))}function hb(e,a,t){var o=it();Wn(e,a,t,o)}function Wn(e,a,t,o){var r={lane:o,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Gu(e))bb(a,r);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=a.lastRenderedReducer,l!==null))try{var n=a.lastRenderedState,s=l(n,t);if(r.hasEagerState=!0,r.eagerState=s,ut(s,n))return Hu(e,a,r,0),Te===null&&Eu(),!1}catch{}if(t=If(e,a,r,o),t!==null)return Ya(t,e,o),vb(t,a,o),!0}return!1}function Xf(e,a,t,o){if(o={lane:2,revertLane:em(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Gu(e)){if(a)throw Error(L(479))}else a=If(e,t,o,2),a!==null&&Ya(a,e,2)}function Gu(e){var a=e.alternate;return e===K||a!==null&&a===K}function bb(e,a){Xl=gu=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function vb(e,a,t){if((t&4194048)!==0){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,oh(e,t)}}var cs={readContext:ka,use:Uu,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};cs.useEffectEvent=Xe;var xb={readContext:ka,use:Uu,useCallback:function(e,a){return Pa().memoizedState=[e,a===void 0?null:a],e},useContext:ka,useEffect:tg,useImperativeHandle:function(e,a,t){t=t!=null?t.concat([e]):null,Ki(4194308,4,nb.bind(null,a,e),t)},useLayoutEffect:function(e,a){return Ki(4194308,4,e,a)},useInsertionEffect:function(e,a){Ki(4,2,e,a)},useMemo:function(e,a){var t=Pa();a=a===void 0?null:a;var o=e();if(Wr){Wo(!0);try{e()}finally{Wo(!1)}}return t.memoizedState=[o,a],o},useReducer:function(e,a,t){var o=Pa();if(t!==void 0){var r=t(a);if(Wr){Wo(!0);try{t(a)}finally{Wo(!1)}}}else r=a;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=u0.bind(null,K,e),[o.memoizedState,e]},useRef:function(e){var a=Pa();return e={current:e},a.memoizedState=e},useState:function(e){e=Gc(e);var a=e.queue,t=hb.bind(null,K,a);return a.dispatch=t,[e.memoizedState,t]},useDebugValue:Gf,useDeferredValue:function(e,a){var t=Pa();return _f(t,e,a)},useTransition:function(){var e=Gc(!1);return e=cb.bind(null,K,e.queue,!0,!1),Pa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,t){var o=K,r=Pa();if(ne){if(t===void 0)throw Error(L(407));t=t()}else{if(t=a(),Te===null)throw Error(L(349));(re&127)!==0||Zh(o,a,t)}r.memoizedState=t;var l={value:t,getSnapshot:a};return r.queue=l,tg(Qh.bind(null,o,l,e),[e]),o.flags|=2048,Jl(9,{destroy:void 0},Yh.bind(null,o,l,t,a),null),t},useId:function(){var e=Pa(),a=Te.identifierPrefix;if(ne){var t=ao,o=eo;t=(o&~(1<<32-st(o)-1)).toString(32)+t,a="_"+a+"R_"+t,t=hu++,0<t&&(a+="H"+t.toString(32)),a+="_"}else t=t0++,a="_"+a+"r_"+t.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:Vf,useFormState:$p,useActionState:$p,useOptimistic:function(e){var a=Pa();a.memoizedState=a.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=t,a=Xf.bind(null,K,!0,t),t.dispatch=a,[e,a]},useMemoCache:qf,useCacheRefresh:function(){return Pa().memoizedState=i0.bind(null,K)},useEffectEvent:function(e){var a=Pa(),t={impl:e};return a.memoizedState=t,function(){if((pe&2)!==0)throw Error(L(440));return t.impl.apply(void 0,arguments)}}},Zf={readContext:ka,use:Uu,useCallback:ib,useContext:ka,useEffect:Ff,useImperativeHandle:sb,useInsertionEffect:rb,useLayoutEffect:lb,useMemo:ub,useReducer:Qi,useRef:tb,useState:function(){return Qi(No)},useDebugValue:Gf,useDeferredValue:function(e,a){var t=$e();return db(t,Le.memoizedState,e,a)},useTransition:function(){var e=Qi(No)[0],a=$e().memoizedState;return[typeof e=="boolean"?e:Ss(e),a]},useSyncExternalStore:Xh,useId:pb,useHostTransitionStatus:Vf,useFormState:eg,useActionState:eg,useOptimistic:function(e,a){var t=$e();return Wh(t,Le,e,a)},useMemoCache:qf,useCacheRefresh:gb};Zf.useEffectEvent=ob;var wb={readContext:ka,use:Uu,useCallback:ib,useContext:ka,useEffect:Ff,useImperativeHandle:sb,useInsertionEffect:rb,useLayoutEffect:lb,useMemo:ub,useReducer:Jd,useRef:tb,useState:function(){return Jd(No)},useDebugValue:Gf,useDeferredValue:function(e,a){var t=$e();return Le===null?_f(t,e,a):db(t,Le.memoizedState,e,a)},useTransition:function(){var e=Jd(No)[0],a=$e().memoizedState;return[typeof e=="boolean"?e:Ss(e),a]},useSyncExternalStore:Xh,useId:pb,useHostTransitionStatus:Vf,useFormState:ag,useActionState:ag,useOptimistic:function(e,a){var t=$e();return Le!==null?Wh(t,Le,e,a):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:qf,useCacheRefresh:gb};wb.useEffectEvent=ob;function $d(e,a,t,o){a=e.memoizedState,t=t(o,a),t=t==null?a:Re({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Xc={enqueueSetState:function(e,a,t){e=e._reactInternals;var o=it(),r=rr(o);r.payload=a,t!=null&&(r.callback=t),a=lr(e,r,o),a!==null&&(Ya(a,e,o),Qn(a,e,o))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var o=it(),r=rr(o);r.tag=1,r.payload=a,t!=null&&(r.callback=t),a=lr(e,r,o),a!==null&&(Ya(a,e,o),Qn(a,e,o))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=it(),o=rr(t);o.tag=2,a!=null&&(o.callback=a),a=lr(e,o,t),a!==null&&(Ya(a,e,t),Qn(a,e,t))}};function og(e,a,t,o,r,l,n){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,l,n):a.prototype&&a.prototype.isPureReactComponent?!ns(t,o)||!ns(r,l):!0}function rg(e,a,t,o){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,o),a.state!==e&&Xc.enqueueReplaceState(a,a.state,null)}function Jr(e,a){var t=a;if("ref"in a){t={};for(var o in a)o!=="ref"&&(t[o]=a[o])}if(e=e.defaultProps){t===a&&(t=Re({},t));for(var r in e)t[r]===void 0&&(t[r]=e[r])}return t}function yb(e){iu(e)}function Lb(e){console.error(e)}function Cb(e){iu(e)}function bu(e,a){try{var t=e.onUncaughtError;t(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function lg(e,a,t){try{var o=e.onCaughtError;o(t.value,{componentStack:t.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Zc(e,a,t){return t=rr(t),t.tag=3,t.payload={element:null},t.callback=function(){bu(e,a)},t}function Sb(e){return e=rr(e),e.tag=3,e}function Ib(e,a,t,o){var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var l=o.value;e.payload=function(){return r(l)},e.callback=function(){lg(a,t,o)}}var n=t.stateNode;n!==null&&typeof n.componentDidCatch=="function"&&(e.callback=function(){lg(a,t,o),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function d0(e,a,t,o,r){if(t.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=t.alternate,a!==null&&nn(a,t,r,!0),t=dt.current,t!==null){switch(t.tag){case 31:case 13:return Tt===null?Lu():t.alternate===null&&Ze===0&&(Ze=3),t.flags&=-257,t.flags|=65536,t.lanes=r,o===fu?t.flags|=16384:(a=t.updateQueue,a===null?t.updateQueue=new Set([o]):a.add(o),dc(e,o,r)),!1;case 22:return t.flags|=65536,o===fu?t.flags|=16384:(a=t.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},t.updateQueue=a):(t=a.retryQueue,t===null?a.retryQueue=new Set([o]):t.add(o)),dc(e,o,r)),!1}throw Error(L(435,t.tag))}return dc(e,o,r),Lu(),!1}if(ne)return a=dt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,o!==Bc&&(e=Error(L(422),{cause:o}),is(St(e,t)))):(o!==Bc&&(a=Error(L(423),{cause:o}),is(St(a,t))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=St(o,t),r=Zc(e.stateNode,o,r),Wd(e,r),Ze!==4&&(Ze=2)),!1;var l=Error(L(520),{cause:o});if(l=St(l,t),es===null?es=[l]:es.push(l),Ze!==4&&(Ze=2),a===null)return!0;o=St(o,t),t=a;do{switch(t.tag){case 3:return t.flags|=65536,e=r&-r,t.lanes|=e,e=Zc(t.stateNode,o,e),Wd(t,e),!1;case 1:if(a=t.type,l=t.stateNode,(t.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(nr===null||!nr.has(l))))return t.flags|=65536,r&=-r,t.lanes|=r,r=Sb(r),Ib(r,e,t,o),Wd(t,r),!1}t=t.return}while(t!==null);return!1}var Yf=Error(L(461)),ra=!1;function Sa(e,a,t,o){a.child=e===null?qh(a,null,t,o):jr(a,e.child,t,o)}function ng(e,a,t,o,r){t=t.render;var l=a.ref;if("ref"in o){var n={};for(var s in o)s!=="ref"&&(n[s]=o[s])}else n=o;return Kr(a),o=Of(e,a,t,n,l,r),s=Ef(),e!==null&&!ra?(Hf(e,a,r),zo(e,a,r)):(ne&&s&&kf(a),a.flags|=1,Sa(e,a,o,r),a.child)}function sg(e,a,t,o,r){if(e===null){var l=t.type;return typeof l=="function"&&!Tf(l)&&l.defaultProps===void 0&&t.compare===null?(a.tag=15,a.type=l,Tb(e,a,l,o,r)):(e=Zi(t.type,null,o,a,a.mode,r),e.ref=a.ref,e.return=a,a.child=e)}if(l=e.child,!Qf(e,r)){var n=l.memoizedProps;if(t=t.compare,t=t!==null?t:ns,t(n,o)&&e.ref===a.ref)return zo(e,a,r)}return a.flags|=1,e=To(l,o),e.ref=a.ref,e.return=a,a.child=e}function Tb(e,a,t,o,r){if(e!==null){var l=e.memoizedProps;if(ns(l,o)&&e.ref===a.ref)if(ra=!1,a.pendingProps=o=l,Qf(e,r))(e.flags&131072)!==0&&(ra=!0);else return a.lanes=e.lanes,zo(e,a,r)}return Yc(e,a,t,o,r)}function kb(e,a,t,o){var r=o.children,l=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(l=l!==null?l.baseLanes|t:t,e!==null){for(o=a.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~l}else o=0,a.child=null;return ig(e,a,l,t,o)}if((t&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(a,l!==null?l.cachePool:null),l!==null?jp(a,l):Uc(),Gh(a);else return o=a.lanes=536870912,ig(e,a,l!==null?l.baseLanes|t:t,t,o)}else l!==null?(Yi(a,l.cachePool),jp(a,l),Ko(a),a.memoizedState=null):(e!==null&&Yi(a,null),Uc(),Ko(a));return Sa(e,a,r,t),a.child}function Gn(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ig(e,a,t,o,r){var l=Df();return l=l===null?null:{parent:oa._currentValue,pool:l},a.memoizedState={baseLanes:t,cachePool:l},e!==null&&Yi(a,null),Uc(),Gh(a),e!==null&&nn(e,a,o,!0),a.childLanes=r,null}function ji(e,a){return a=vu({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function ug(e,a,t){return jr(a,e.child,null,t),e=ji(a,a.pendingProps),e.flags|=2,tt(a),a.memoizedState=null,e}function c0(e,a,t){var o=a.pendingProps,r=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(ne){if(o.mode==="hidden")return e=ji(a,o),a.lanes=536870912,Gn(null,e);if(Fc(a),(e=Be)?(e=xv(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:cr!==null?{id:eo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},t=zh(e),t.return=a,a.child=t,Ta=a,Be=null)):e=null,e===null)throw fr(a);return a.lanes=536870912,null}return ji(a,o)}var l=e.memoizedState;if(l!==null){var n=l.dehydrated;if(Fc(a),r)if(a.flags&256)a.flags&=-257,a=ug(e,a,t);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(L(558));else if(ra||nn(e,a,t,!1),r=(t&e.childLanes)!==0,ra||r){if(o=Te,o!==null&&(n=rh(o,t),n!==0&&n!==l.retryLane))throw l.retryLane=n,tl(e,n),Ya(o,e,n),Yf;Lu(),a=ug(e,a,t)}else e=l.treeContext,Be=kt(n.nextSibling),Ta=a,ne=!0,or=null,It=!1,e!==null&&Rh(a,e),a=ji(a,o),a.flags|=4096;return a}return e=To(e.child,{mode:o.mode,children:o.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Wi(e,a){var t=a.ref;if(t===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(L(284));(e===null||e.ref!==t)&&(a.flags|=4194816)}}function Yc(e,a,t,o,r){return Kr(a),t=Of(e,a,t,o,void 0,r),o=Ef(),e!==null&&!ra?(Hf(e,a,r),zo(e,a,r)):(ne&&o&&kf(a),a.flags|=1,Sa(e,a,t,r),a.child)}function dg(e,a,t,o,r,l){return Kr(a),a.updateQueue=null,t=Vh(a,o,t,r),_h(e),o=Ef(),e!==null&&!ra?(Hf(e,a,l),zo(e,a,l)):(ne&&o&&kf(a),a.flags|=1,Sa(e,a,t,l),a.child)}function cg(e,a,t,o,r){if(Kr(a),a.stateNode===null){var l=El,n=t.contextType;typeof n=="object"&&n!==null&&(l=ka(n)),l=new t(o,l),a.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Xc,a.stateNode=l,l._reactInternals=a,l=a.stateNode,l.props=o,l.state=a.memoizedState,l.refs={},zf(a),n=t.contextType,l.context=typeof n=="object"&&n!==null?ka(n):El,l.state=a.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&($d(a,t,n,o),l.state=a.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Xc.enqueueReplaceState(l,l.state,null),jn(a,o,l,r),Kn(),l.state=a.memoizedState),typeof l.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(e===null){l=a.stateNode;var s=a.memoizedProps,i=Jr(t,s);l.props=i;var u=l.context,d=t.contextType;n=El,typeof d=="object"&&d!==null&&(n=ka(d));var m=t.getDerivedStateFromProps;d=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=a.pendingProps!==s,d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||u!==n)&&rg(a,l,o,n),Zo=!1;var c=a.memoizedState;l.state=c,jn(a,o,l,r),Kn(),u=a.memoizedState,s||c!==u||Zo?(typeof m=="function"&&($d(a,t,m,o),u=a.memoizedState),(i=Zo||og(a,t,i,o,c,u,n))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(a.flags|=4194308)):(typeof l.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=u),l.props=o,l.state=u,l.context=n,o=i):(typeof l.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{l=a.stateNode,Pc(e,a),n=a.memoizedProps,d=Jr(t,n),l.props=d,m=a.pendingProps,c=l.context,u=t.contextType,i=El,typeof u=="object"&&u!==null&&(i=ka(u)),s=t.getDerivedStateFromProps,(u=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(n!==m||c!==i)&&rg(a,l,o,i),Zo=!1,c=a.memoizedState,l.state=c,jn(a,o,l,r),Kn();var g=a.memoizedState;n!==m||c!==g||Zo||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof s=="function"&&($d(a,t,s,o),g=a.memoizedState),(d=Zo||og(a,t,d,o,c,g,i)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(o,g,i),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(o,g,i)),typeof l.componentDidUpdate=="function"&&(a.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof l.componentDidUpdate!="function"||n===e.memoizedProps&&c===e.memoizedState||(a.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||n===e.memoizedProps&&c===e.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=g),l.props=o,l.state=g,l.context=i,o=d):(typeof l.componentDidUpdate!="function"||n===e.memoizedProps&&c===e.memoizedState||(a.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||n===e.memoizedProps&&c===e.memoizedState||(a.flags|=1024),o=!1)}return l=o,Wi(e,a),o=(a.flags&128)!==0,l||o?(l=a.stateNode,t=o&&typeof t.getDerivedStateFromError!="function"?null:l.render(),a.flags|=1,e!==null&&o?(a.child=jr(a,e.child,null,r),a.child=jr(a,null,t,r)):Sa(e,a,t,r),a.memoizedState=l.state,e=a.child):e=zo(e,a,r),e}function fg(e,a,t,o){return Qr(),a.flags|=256,Sa(e,a,t,o),a.child}var ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:Eh()}}function tc(e,a,t){return e=e!==null?e.childLanes&~t:0,a&&(e|=rt),e}function Mb(e,a,t){var o=a.pendingProps,r=!1,l=(a.flags&128)!==0,n;if((n=l)||(n=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),n&&(r=!0,a.flags&=-129),n=(a.flags&32)!==0,a.flags&=-33,e===null){if(ne){if(r?Qo(a):Ko(a),(e=Be)?(e=xv(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:cr!==null?{id:eo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},t=zh(e),t.return=a,a.child=t,Ta=a,Be=null)):e=null,e===null)throw fr(a);return sf(e)?a.lanes=32:a.lanes=536870912,null}var s=o.children;return o=o.fallback,r?(Ko(a),r=a.mode,s=vu({mode:"hidden",children:s},r),o=Vr(o,r,t,null),s.return=a,o.return=a,s.sibling=o,a.child=s,o=a.child,o.memoizedState=ac(t),o.childLanes=tc(e,n,t),a.memoizedState=ec,Gn(null,o)):(Qo(a),Qc(a,s))}var i=e.memoizedState;if(i!==null&&(s=i.dehydrated,s!==null)){if(l)a.flags&256?(Qo(a),a.flags&=-257,a=oc(e,a,t)):a.memoizedState!==null?(Ko(a),a.child=e.child,a.flags|=128,a=null):(Ko(a),s=o.fallback,r=a.mode,o=vu({mode:"visible",children:o.children},r),s=Vr(s,r,t,null),s.flags|=2,o.return=a,s.return=a,o.sibling=s,a.child=o,jr(a,e.child,null,t),o=a.child,o.memoizedState=ac(t),o.childLanes=tc(e,n,t),a.memoizedState=ec,a=Gn(null,o));else if(Qo(a),sf(s)){if(n=s.nextSibling&&s.nextSibling.dataset,n)var u=n.dgst;n=u,o=Error(L(419)),o.stack="",o.digest=n,is({value:o,source:null,stack:null}),a=oc(e,a,t)}else if(ra||nn(e,a,t,!1),n=(t&e.childLanes)!==0,ra||n){if(n=Te,n!==null&&(o=rh(n,t),o!==0&&o!==i.retryLane))throw i.retryLane=o,tl(e,o),Ya(n,e,o),Yf;nf(s)||Lu(),a=oc(e,a,t)}else nf(s)?(a.flags|=192,a.child=e.child,a=null):(e=i.treeContext,Be=kt(s.nextSibling),Ta=a,ne=!0,or=null,It=!1,e!==null&&Rh(a,e),a=Qc(a,o.children),a.flags|=4096);return a}return r?(Ko(a),s=o.fallback,r=a.mode,i=e.child,u=i.sibling,o=To(i,{mode:"hidden",children:o.children}),o.subtreeFlags=i.subtreeFlags&65011712,u!==null?s=To(u,s):(s=Vr(s,r,t,null),s.flags|=2),s.return=a,o.return=a,o.sibling=s,a.child=o,Gn(null,o),o=a.child,s=e.child.memoizedState,s===null?s=ac(t):(r=s.cachePool,r!==null?(i=oa._currentValue,r=r.parent!==i?{parent:i,pool:i}:r):r=Eh(),s={baseLanes:s.baseLanes|t,cachePool:r}),o.memoizedState=s,o.childLanes=tc(e,n,t),a.memoizedState=ec,Gn(e.child,o)):(Qo(a),t=e.child,e=t.sibling,t=To(t,{mode:"visible",children:o.children}),t.return=a,t.sibling=null,e!==null&&(n=a.deletions,n===null?(a.deletions=[e],a.flags|=16):n.push(e)),a.child=t,a.memoizedState=null,t)}function Qc(e,a){return a=vu({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function vu(e,a){return e=ot(22,e,null,a),e.lanes=0,e}function oc(e,a,t){return jr(a,e.child,null,t),e=Qc(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function mg(e,a,t){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a),Oc(e.return,a,t)}function rc(e,a,t,o,r,l){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:t,tailMode:r,treeForkCount:l}:(n.isBackwards=a,n.rendering=null,n.renderingStartTime=0,n.last=o,n.tail=t,n.tailMode=r,n.treeForkCount=l)}function Ab(e,a,t){var o=a.pendingProps,r=o.revealOrder,l=o.tail;o=o.children;var n=Je.current,s=(n&2)!==0;if(s?(n=n&1|2,a.flags|=128):n&=1,ke(Je,n),Sa(e,a,o,t),o=ne?ss:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mg(e,t,a);else if(e.tag===19)mg(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(t=a.child,r=null;t!==null;)e=t.alternate,e!==null&&pu(e)===null&&(r=t),t=t.sibling;t=r,t===null?(r=a.child,a.child=null):(r=t.sibling,t.sibling=null),rc(a,!1,r,t,l,o);break;case"backwards":case"unstable_legacy-backwards":for(t=null,r=a.child,a.child=null;r!==null;){if(e=r.alternate,e!==null&&pu(e)===null){a.child=r;break}e=r.sibling,r.sibling=t,t=r,r=e}rc(a,!0,t,null,l,o);break;case"together":rc(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function zo(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),pr|=a.lanes,(t&a.childLanes)===0)if(e!==null){if(nn(e,a,t,!1),(t&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(L(153));if(a.child!==null){for(e=a.child,t=To(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=To(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function Qf(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function f0(e,a,t){switch(a.tag){case 3:ru(a,a.stateNode.containerInfo),Yo(a,oa,e.memoizedState.cache),Qr();break;case 27:case 5:Lc(a);break;case 4:ru(a,a.stateNode.containerInfo);break;case 10:Yo(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Fc(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Qo(a),a.flags|=128,null):(t&a.child.childLanes)!==0?Mb(e,a,t):(Qo(a),e=zo(e,a,t),e!==null?e.sibling:null);Qo(a);break;case 19:var r=(e.flags&128)!==0;if(o=(t&a.childLanes)!==0,o||(nn(e,a,t,!1),o=(t&a.childLanes)!==0),r){if(o)return Ab(e,a,t);a.flags|=128}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ke(Je,Je.current),o)break;return null;case 22:return a.lanes=0,kb(e,a,t,a.pendingProps);case 24:Yo(a,oa,e.memoizedState.cache)}return zo(e,a,t)}function Db(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps)ra=!0;else{if(!Qf(e,t)&&(a.flags&128)===0)return ra=!1,f0(e,a,t);ra=(e.flags&131072)!==0}else ra=!1,ne&&(a.flags&1048576)!==0&&Bh(a,ss,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(e=Fr(a.elementType),a.type=e,typeof e=="function")Tf(e)?(o=Jr(e,o),a.tag=1,a=cg(null,a,e,o,t)):(a.tag=0,a=Yc(null,a,e,o,t));else{if(e!=null){var r=e.$$typeof;if(r===ff){a.tag=11,a=ng(null,a,e,o,t);break e}else if(r===mf){a.tag=14,a=sg(null,a,e,o,t);break e}}throw a=wc(e)||e,Error(L(306,a,""))}}return a;case 0:return Yc(e,a,a.type,a.pendingProps,t);case 1:return o=a.type,r=Jr(o,a.pendingProps),cg(e,a,o,r,t);case 3:e:{if(ru(a,a.stateNode.containerInfo),e===null)throw Error(L(387));o=a.pendingProps;var l=a.memoizedState;r=l.element,Pc(e,a),jn(a,o,null,t);var n=a.memoizedState;if(o=n.cache,Yo(a,oa,o),o!==l.cache&&Ec(a,[oa],t,!0),Kn(),o=n.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:n.cache},a.updateQueue.baseState=l,a.memoizedState=l,a.flags&256){a=fg(e,a,o,t);break e}else if(o!==r){r=St(Error(L(424)),a),is(r),a=fg(e,a,o,t);break e}else for(e=a.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Be=kt(e.firstChild),Ta=a,ne=!0,or=null,It=!0,t=qh(a,null,o,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Qr(),o===r){a=zo(e,a,t);break e}Sa(e,a,o,t)}a=a.child}return a;case 26:return Wi(e,a),e===null?(t=Og(a.type,null,a.pendingProps,null))?a.memoizedState=t:ne||(t=a.type,e=a.pendingProps,o=Tu(tr.current).createElement(t),o[Ia]=a,o[Qa]=e,Ma(o,t,e),ha(o),a.stateNode=o):a.memoizedState=Og(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Lc(a),e===null&&ne&&(o=a.stateNode=wv(a.type,a.pendingProps,tr.current),Ta=a,It=!0,r=Be,hr(a.type)?(uf=r,Be=kt(o.firstChild)):Be=r),Sa(e,a,a.pendingProps.children,t),Wi(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&ne&&((r=o=Be)&&(o=U0(o,a.type,a.pendingProps,It),o!==null?(a.stateNode=o,Ta=a,Be=kt(o.firstChild),It=!1,r=!0):r=!1),r||fr(a)),Lc(a),r=a.type,l=a.pendingProps,n=e!==null?e.memoizedProps:null,o=l.children,rf(r,l)?o=null:n!==null&&rf(r,n)&&(a.flags|=32),a.memoizedState!==null&&(r=Of(e,a,o0,null,null,t),ps._currentValue=r),Wi(e,a),Sa(e,a,o,t),a.child;case 6:return e===null&&ne&&((e=t=Be)&&(t=F0(t,a.pendingProps,It),t!==null?(a.stateNode=t,Ta=a,Be=null,e=!0):e=!1),e||fr(a)),null;case 13:return Mb(e,a,t);case 4:return ru(a,a.stateNode.containerInfo),o=a.pendingProps,e===null?a.child=jr(a,null,o,t):Sa(e,a,o,t),a.child;case 11:return ng(e,a,a.type,a.pendingProps,t);case 7:return Sa(e,a,a.pendingProps,t),a.child;case 8:return Sa(e,a,a.pendingProps.children,t),a.child;case 12:return Sa(e,a,a.pendingProps.children,t),a.child;case 10:return o=a.pendingProps,Yo(a,a.type,o.value),Sa(e,a,o.children,t),a.child;case 9:return r=a.type._context,o=a.pendingProps.children,Kr(a),r=ka(r),o=o(r),a.flags|=1,Sa(e,a,o,t),a.child;case 14:return sg(e,a,a.type,a.pendingProps,t);case 15:return Tb(e,a,a.type,a.pendingProps,t);case 19:return Ab(e,a,t);case 31:return c0(e,a,t);case 22:return kb(e,a,t,a.pendingProps);case 24:return Kr(a),o=ka(oa),e===null?(r=Df(),r===null&&(r=Te,l=Af(),r.pooledCache=l,l.refCount++,l!==null&&(r.pooledCacheLanes|=t),r=l),a.memoizedState={parent:o,cache:r},zf(a),Yo(a,oa,r)):((e.lanes&t)!==0&&(Pc(e,a),jn(a,null,null,t),Kn()),r=e.memoizedState,l=a.memoizedState,r.parent!==o?(r={parent:o,cache:o},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),Yo(a,oa,o)):(o=l.cache,Yo(a,oa,o),o!==r.cache&&Ec(a,[oa],t,!0))),Sa(e,a,a.pendingProps.children,t),a.child;case 29:throw a.pendingProps}throw Error(L(156,a.tag))}function bo(e){e.flags|=4}function lc(e,a,t,o,r){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(ev())e.flags|=8192;else throw Zr=fu,Nf}else e.flags&=-16777217}function pg(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cv(a))if(ev())e.flags|=8192;else throw Zr=fu,Nf}function Oi(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?ah():536870912,e.lanes|=a,$l|=a)}function On(e,a){if(!ne)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ze(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,o=0;if(a)for(var r=e.child;r!==null;)t|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)t|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=t,a}function m0(e,a,t){var o=a.pendingProps;switch(Mf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(a),null;case 1:return ze(a),null;case 3:return t=a.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ko(oa),Yl(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(Sl(a)?bo(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,jd())),ze(a),null;case 26:var r=a.type,l=a.memoizedState;return e===null?(bo(a),l!==null?(ze(a),pg(a,l)):(ze(a),lc(a,r,null,o,t))):l?l!==e.memoizedState?(bo(a),ze(a),pg(a,l)):(ze(a),a.flags&=-16777217):(e=e.memoizedProps,e!==o&&bo(a),ze(a),lc(a,r,e,o,t)),null;case 27:if(lu(a),t=tr.current,r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&bo(a);else{if(!o){if(a.stateNode===null)throw Error(L(166));return ze(a),null}e=oo.current,Sl(a)?_p(a,e):(e=wv(r,o,t),a.stateNode=e,bo(a))}return ze(a),null;case 5:if(lu(a),r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&bo(a);else{if(!o){if(a.stateNode===null)throw Error(L(166));return ze(a),null}if(l=oo.current,Sl(a))_p(a,l);else{var n=Tu(tr.current);switch(l){case 1:l=n.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:l=n.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":l=n.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":l=n.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":l=n.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is=="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is=="string"?n.createElement(r,{is:o.is}):n.createElement(r)}}l[Ia]=a,l[Qa]=o;e:for(n=a.child;n!==null;){if(n.tag===5||n.tag===6)l.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}a.stateNode=l;e:switch(Ma(l,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&bo(a)}}return ze(a),lc(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,t),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==o&&bo(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(L(166));if(e=tr.current,Sl(a)){if(e=a.stateNode,t=a.memoizedProps,o=null,r=Ta,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Ia]=a,e=!!(e.nodeValue===t||o!==null&&o.suppressHydrationWarning===!0||hv(e.nodeValue,t)),e||fr(a,!0)}else e=Tu(e).createTextNode(o),e[Ia]=a,a.stateNode=e}return ze(a),null;case 31:if(t=a.memoizedState,e===null||e.memoizedState!==null){if(o=Sl(a),t!==null){if(e===null){if(!o)throw Error(L(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(557));e[Ia]=a}else Qr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ze(a),e=!1}else t=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return a.flags&256?(tt(a),a):(tt(a),null);if((a.flags&128)!==0)throw Error(L(558))}return ze(a),null;case 13:if(o=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Sl(a),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(L(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(L(317));r[Ia]=a}else Qr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ze(a),r=!1}else r=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return a.flags&256?(tt(a),a):(tt(a),null)}return tt(a),(a.flags&128)!==0?(a.lanes=t,a):(t=o!==null,e=e!==null&&e.memoizedState!==null,t&&(o=a.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==r&&(o.flags|=2048)),t!==e&&t&&(a.child.flags|=8192),Oi(a,a.updateQueue),ze(a),null);case 4:return Yl(),e===null&&am(a.stateNode.containerInfo),ze(a),null;case 10:return ko(a.type),ze(a),null;case 19:if(ba(Je),o=a.memoizedState,o===null)return ze(a),null;if(r=(a.flags&128)!==0,l=o.rendering,l===null)if(r)On(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(l=pu(e),l!==null){for(a.flags|=128,On(o,!1),e=l.updateQueue,a.updateQueue=e,Oi(a,e),a.subtreeFlags=0,e=t,t=a.child;t!==null;)Nh(t,e),t=t.sibling;return ke(Je,Je.current&1|2),ne&&yo(a,o.treeForkCount),a.child}e=e.sibling}o.tail!==null&&lt()>wu&&(a.flags|=128,r=!0,On(o,!1),a.lanes=4194304)}else{if(!r)if(e=pu(l),e!==null){if(a.flags|=128,r=!0,e=e.updateQueue,a.updateQueue=e,Oi(a,e),On(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ne)return ze(a),null}else 2*lt()-o.renderingStartTime>wu&&t!==536870912&&(a.flags|=128,r=!0,On(o,!1),a.lanes=4194304);o.isBackwards?(l.sibling=a.child,a.child=l):(e=o.last,e!==null?e.sibling=l:a.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=lt(),e.sibling=null,t=Je.current,ke(Je,r?t&1|2:t&1),ne&&yo(a,o.treeForkCount),e):(ze(a),null);case 22:case 23:return tt(a),Bf(),o=a.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(t&536870912)!==0&&(a.flags&128)===0&&(ze(a),a.subtreeFlags&6&&(a.flags|=8192)):ze(a),t=a.updateQueue,t!==null&&Oi(a,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==t&&(a.flags|=2048),e!==null&&ba(Xr),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),a.memoizedState.cache!==t&&(a.flags|=2048),ko(oa),ze(a),null;case 25:return null;case 30:return null}throw Error(L(156,a.tag))}function p0(e,a){switch(Mf(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return ko(oa),Yl(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return lu(a),null;case 31:if(a.memoizedState!==null){if(tt(a),a.alternate===null)throw Error(L(340));Qr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(tt(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(L(340));Qr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return ba(Je),null;case 4:return Yl(),null;case 10:return ko(a.type),null;case 22:case 23:return tt(a),Bf(),e!==null&&ba(Xr),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return ko(oa),null;case 25:return null;default:return null}}function Nb(e,a){switch(Mf(a),a.tag){case 3:ko(oa),Yl();break;case 26:case 27:case 5:lu(a);break;case 4:Yl();break;case 31:a.memoizedState!==null&&tt(a);break;case 13:tt(a);break;case 19:ba(Je);break;case 10:ko(a.type);break;case 22:case 23:tt(a),Bf(),e!==null&&ba(Xr);break;case 24:ko(oa)}}function Is(e,a){try{var t=a.updateQueue,o=t!==null?t.lastEffect:null;if(o!==null){var r=o.next;t=r;do{if((t.tag&e)===e){o=void 0;var l=t.create,n=t.inst;o=l(),n.destroy=o}t=t.next}while(t!==r)}}catch(s){we(a,a.return,s)}}function mr(e,a,t){try{var o=a.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var l=r.next;o=l;do{if((o.tag&e)===e){var n=o.inst,s=n.destroy;if(s!==void 0){n.destroy=void 0,r=a;var i=t,u=s;try{u()}catch(d){we(r,i,d)}}}o=o.next}while(o!==l)}}catch(d){we(a,a.return,d)}}function zb(e){var a=e.updateQueue;if(a!==null){var t=e.stateNode;try{Fh(a,t)}catch(o){we(e,e.return,o)}}}function Bb(e,a,t){t.props=Jr(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(o){we(e,a,o)}}function Jn(e,a){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof t=="function"?e.refCleanup=t(o):t.current=o}}catch(r){we(e,a,r)}}function to(e,a){var t=e.ref,o=e.refCleanup;if(t!==null)if(typeof o=="function")try{o()}catch(r){we(e,a,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(r){we(e,a,r)}else t.current=null}function Rb(e){var a=e.type,t=e.memoizedProps,o=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":t.autoFocus&&o.focus();break e;case"img":t.src?o.src=t.src:t.srcSet&&(o.srcset=t.srcSet)}}catch(r){we(e,e.return,r)}}function nc(e,a,t){try{var o=e.stateNode;R0(o,e.type,t,a),o[Qa]=a}catch(r){we(e,e.return,r)}}function Ob(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hr(e.type)||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ob(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,a):(a=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.appendChild(e),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=So));else if(o!==4&&(o===27&&hr(e.type)&&(t=e.stateNode,a=null),e=e.child,e!==null))for(Kc(e,a,t),e=e.sibling;e!==null;)Kc(e,a,t),e=e.sibling}function xu(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(o!==4&&(o===27&&hr(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(xu(e,a,t),e=e.sibling;e!==null;)xu(e,a,t),e=e.sibling}function Eb(e){var a=e.stateNode,t=e.memoizedProps;try{for(var o=e.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Ma(a,o,t),a[Ia]=e,a[Qa]=t}catch(l){we(e,e.return,l)}}var Lo=!1,ta=!1,ic=!1,gg=typeof WeakSet=="function"?WeakSet:Set,ga=null;function g0(e,a){if(e=e.containerInfo,tf=Du,e=Ch(e),Cf(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var o=t.getSelection&&t.getSelection();if(o&&o.rangeCount!==0){t=o.anchorNode;var r=o.anchorOffset,l=o.focusNode;o=o.focusOffset;try{t.nodeType,l.nodeType}catch{t=null;break e}var n=0,s=-1,i=-1,u=0,d=0,m=e,c=null;a:for(;;){for(var g;m!==t||r!==0&&m.nodeType!==3||(s=n+r),m!==l||o!==0&&m.nodeType!==3||(i=n+o),m.nodeType===3&&(n+=m.nodeValue.length),(g=m.firstChild)!==null;)c=m,m=g;for(;;){if(m===e)break a;if(c===t&&++u===r&&(s=n),c===l&&++d===o&&(i=n),(g=m.nextSibling)!==null)break;m=c,c=m.parentNode}m=g}t=s===-1||i===-1?null:{start:s,end:i}}else t=null}t=t||{start:0,end:0}}else t=null;for(of={focusedElem:e,selectionRange:t},Du=!1,ga=a;ga!==null;)if(a=ga,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,ga=e;else for(;ga!==null;){switch(a=ga,l=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(t=0;t<e.length;t++)r=e[t],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&l!==null){e=void 0,t=a,r=l.memoizedProps,l=l.memoizedState,o=t.stateNode;try{var v=Jr(t.type,r);e=o.getSnapshotBeforeUpdate(v,l),o.__reactInternalSnapshotBeforeUpdate=e}catch(w){we(t,t.return,w)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,t=e.nodeType,t===9)lf(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(L(163))}if(e=a.sibling,e!==null){e.return=a.return,ga=e;break}ga=a.return}}function Hb(e,a,t){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xo(e,t),o&4&&Is(5,t);break;case 1:if(xo(e,t),o&4)if(e=t.stateNode,a===null)try{e.componentDidMount()}catch(n){we(t,t.return,n)}else{var r=Jr(t.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(r,a,e.__reactInternalSnapshotBeforeUpdate)}catch(n){we(t,t.return,n)}}o&64&&zb(t),o&512&&Jn(t,t.return);break;case 3:if(xo(e,t),o&64&&(e=t.updateQueue,e!==null)){if(a=null,t.child!==null)switch(t.child.tag){case 27:case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}try{Fh(e,a)}catch(n){we(t,t.return,n)}}break;case 27:a===null&&o&4&&Eb(t);case 26:case 5:xo(e,t),a===null&&o&4&&Rb(t),o&512&&Jn(t,t.return);break;case 12:xo(e,t);break;case 31:xo(e,t),o&4&&Ub(e,t);break;case 13:xo(e,t),o&4&&Fb(e,t),o&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=S0.bind(null,t),G0(e,t))));break;case 22:if(o=t.memoizedState!==null||Lo,!o){a=a!==null&&a.memoizedState!==null||ta,r=Lo;var l=ta;Lo=o,(ta=a)&&!l?wo(e,t,(t.subtreeFlags&8772)!==0):xo(e,t),Lo=r,ta=l}break;case 30:break;default:xo(e,t)}}function Pb(e){var a=e.alternate;a!==null&&(e.alternate=null,Pb(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&bf(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,Xa=!1;function vo(e,a,t){for(t=t.child;t!==null;)qb(e,a,t),t=t.sibling}function qb(e,a,t){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(vs,t)}catch{}switch(t.tag){case 26:ta||to(t,a),vo(e,a,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:ta||to(t,a);var o=Ue,r=Xa;hr(t.type)&&(Ue=t.stateNode,Xa=!1),vo(e,a,t),ts(t.stateNode),Ue=o,Xa=r;break;case 5:ta||to(t,a);case 6:if(o=Ue,r=Xa,Ue=null,vo(e,a,t),Ue=o,Xa=r,Ue!==null)if(Xa)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(t.stateNode)}catch(l){we(t,a,l)}else try{Ue.removeChild(t.stateNode)}catch(l){we(t,a,l)}break;case 18:Ue!==null&&(Xa?(e=Ue,Dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),on(e)):Dg(Ue,t.stateNode));break;case 4:o=Ue,r=Xa,Ue=t.stateNode.containerInfo,Xa=!0,vo(e,a,t),Ue=o,Xa=r;break;case 0:case 11:case 14:case 15:mr(2,t,a),ta||mr(4,t,a),vo(e,a,t);break;case 1:ta||(to(t,a),o=t.stateNode,typeof o.componentWillUnmount=="function"&&Bb(t,a,o)),vo(e,a,t);break;case 21:vo(e,a,t);break;case 22:ta=(o=ta)||t.memoizedState!==null,vo(e,a,t),ta=o;break;default:vo(e,a,t)}}function Ub(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{on(e)}catch(t){we(a,a.return,t)}}}function Fb(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{on(e)}catch(t){we(a,a.return,t)}}function h0(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new gg),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new gg),a;default:throw Error(L(435,e.tag))}}function Ei(e,a){var t=h0(e);a.forEach(function(o){if(!t.has(o)){t.add(o);var r=I0.bind(null,e,o);o.then(r,r)}})}function _a(e,a){var t=a.deletions;if(t!==null)for(var o=0;o<t.length;o++){var r=t[o],l=e,n=a,s=n;e:for(;s!==null;){switch(s.tag){case 27:if(hr(s.type)){Ue=s.stateNode,Xa=!1;break e}break;case 5:Ue=s.stateNode,Xa=!1;break e;case 3:case 4:Ue=s.stateNode.containerInfo,Xa=!0;break e}s=s.return}if(Ue===null)throw Error(L(160));qb(l,n,r),Ue=null,Xa=!1,l=r.alternate,l!==null&&(l.return=null),r.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Gb(a,e),a=a.sibling}var qt=null;function Gb(e,a){var t=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_a(a,e),Va(e),o&4&&(mr(3,e,e.return),Is(3,e),mr(5,e,e.return));break;case 1:_a(a,e),Va(e),o&512&&(ta||t===null||to(t,t.return)),o&64&&Lo&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?o:t.concat(o))));break;case 26:var r=qt;if(_a(a,e),Va(e),o&512&&(ta||t===null||to(t,t.return)),o&4){var l=t!==null?t.memoizedState:null;if(o=e.memoizedState,t===null)if(o===null)if(e.stateNode===null){e:{o=e.type,t=e.memoizedProps,r=r.ownerDocument||r;a:switch(o){case"title":l=r.getElementsByTagName("title")[0],(!l||l[ys]||l[Ia]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=r.createElement(o),r.head.insertBefore(l,r.querySelector("head > title"))),Ma(l,o,t),l[Ia]=e,ha(l),o=l;break e;case"link":var n=Hg("link","href",r).get(o+(t.href||""));if(n){for(var s=0;s<n.length;s++)if(l=n[s],l.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&l.getAttribute("rel")===(t.rel==null?null:t.rel)&&l.getAttribute("title")===(t.title==null?null:t.title)&&l.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){n.splice(s,1);break a}}l=r.createElement(o),Ma(l,o,t),r.head.appendChild(l);break;case"meta":if(n=Hg("meta","content",r).get(o+(t.content||""))){for(s=0;s<n.length;s++)if(l=n[s],l.getAttribute("content")===(t.content==null?null:""+t.content)&&l.getAttribute("name")===(t.name==null?null:t.name)&&l.getAttribute("property")===(t.property==null?null:t.property)&&l.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&l.getAttribute("charset")===(t.charSet==null?null:t.charSet)){n.splice(s,1);break a}}l=r.createElement(o),Ma(l,o,t),r.head.appendChild(l);break;default:throw Error(L(468,o))}l[Ia]=e,ha(l),o=l}e.stateNode=o}else Pg(r,e.type,e.stateNode);else e.stateNode=Eg(r,o,e.memoizedProps);else l!==o?(l===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):l.count--,o===null?Pg(r,e.type,e.stateNode):Eg(r,o,e.memoizedProps)):o===null&&e.stateNode!==null&&nc(e,e.memoizedProps,t.memoizedProps)}break;case 27:_a(a,e),Va(e),o&512&&(ta||t===null||to(t,t.return)),t!==null&&o&4&&nc(e,e.memoizedProps,t.memoizedProps);break;case 5:if(_a(a,e),Va(e),o&512&&(ta||t===null||to(t,t.return)),e.flags&32){r=e.stateNode;try{Kl(r,"")}catch(v){we(e,e.return,v)}}o&4&&e.stateNode!=null&&(r=e.memoizedProps,nc(e,r,t!==null?t.memoizedProps:r)),o&1024&&(ic=!0);break;case 6:if(_a(a,e),Va(e),o&4){if(e.stateNode===null)throw Error(L(162));o=e.memoizedProps,t=e.stateNode;try{t.nodeValue=o}catch(v){we(e,e.return,v)}}break;case 3:if(eu=null,r=qt,qt=ku(a.containerInfo),_a(a,e),qt=r,Va(e),o&4&&t!==null&&t.memoizedState.isDehydrated)try{on(a.containerInfo)}catch(v){we(e,e.return,v)}ic&&(ic=!1,_b(e));break;case 4:o=qt,qt=ku(e.stateNode.containerInfo),_a(a,e),Va(e),qt=o;break;case 12:_a(a,e),Va(e);break;case 31:_a(a,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ei(e,o)));break;case 13:_a(a,e),Va(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(_u=lt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ei(e,o)));break;case 22:r=e.memoizedState!==null;var i=t!==null&&t.memoizedState!==null,u=Lo,d=ta;if(Lo=u||r,ta=d||i,_a(a,e),ta=d,Lo=u,Va(e),o&8192)e:for(a=e.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(t===null||i||Lo||ta||Gr(e)),t=null,a=e;;){if(a.tag===5||a.tag===26){if(t===null){i=t=a;try{if(l=i.stateNode,r)n=l.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{s=i.stateNode;var m=i.memoizedProps.style,c=m!=null&&m.hasOwnProperty("display")?m.display:null;s.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}}catch(v){we(i,i.return,v)}}}else if(a.tag===6){if(t===null){i=a;try{i.stateNode.nodeValue=r?"":i.memoizedProps}catch(v){we(i,i.return,v)}}}else if(a.tag===18){if(t===null){i=a;try{var g=i.stateNode;r?Ng(g,!0):Ng(i.stateNode,!1)}catch(v){we(i,i.return,v)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;t===a&&(t=null),a=a.return}t===a&&(t=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=e.updateQueue,o!==null&&(t=o.retryQueue,t!==null&&(o.retryQueue=null,Ei(e,t))));break;case 19:_a(a,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ei(e,o)));break;case 30:break;case 21:break;default:_a(a,e),Va(e)}}function Va(e){var a=e.flags;if(a&2){try{for(var t,o=e.return;o!==null;){if(Ob(o)){t=o;break}o=o.return}if(t==null)throw Error(L(160));switch(t.tag){case 27:var r=t.stateNode,l=sc(e);xu(e,l,r);break;case 5:var n=t.stateNode;t.flags&32&&(Kl(n,""),t.flags&=-33);var s=sc(e);xu(e,s,n);break;case 3:case 4:var i=t.stateNode.containerInfo,u=sc(e);Kc(e,u,i);break;default:throw Error(L(161))}}catch(d){we(e,e.return,d)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function _b(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;_b(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function xo(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Hb(e,a.alternate,a),a=a.sibling}function Gr(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:mr(4,a,a.return),Gr(a);break;case 1:to(a,a.return);var t=a.stateNode;typeof t.componentWillUnmount=="function"&&Bb(a,a.return,t),Gr(a);break;case 27:ts(a.stateNode);case 26:case 5:to(a,a.return),Gr(a);break;case 22:a.memoizedState===null&&Gr(a);break;case 30:Gr(a);break;default:Gr(a)}e=e.sibling}}function wo(e,a,t){for(t=t&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,r=e,l=a,n=l.flags;switch(l.tag){case 0:case 11:case 15:wo(r,l,t),Is(4,l);break;case 1:if(wo(r,l,t),o=l,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){we(o,o.return,u)}if(o=l,r=o.updateQueue,r!==null){var s=o.stateNode;try{var i=r.shared.hiddenCallbacks;if(i!==null)for(r.shared.hiddenCallbacks=null,r=0;r<i.length;r++)Uh(i[r],s)}catch(u){we(o,o.return,u)}}t&&n&64&&zb(l),Jn(l,l.return);break;case 27:Eb(l);case 26:case 5:wo(r,l,t),t&&o===null&&n&4&&Rb(l),Jn(l,l.return);break;case 12:wo(r,l,t);break;case 31:wo(r,l,t),t&&n&4&&Ub(r,l);break;case 13:wo(r,l,t),t&&n&4&&Fb(r,l);break;case 22:l.memoizedState===null&&wo(r,l,t),Jn(l,l.return);break;case 30:break;default:wo(r,l,t)}a=a.sibling}}function Kf(e,a){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&Cs(t))}function jf(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&Cs(e))}function Pt(e,a,t,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Vb(e,a,t,o),a=a.sibling}function Vb(e,a,t,o){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Pt(e,a,t,o),r&2048&&Is(9,a);break;case 1:Pt(e,a,t,o);break;case 3:Pt(e,a,t,o),r&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&Cs(e)));break;case 12:if(r&2048){Pt(e,a,t,o),e=a.stateNode;try{var l=a.memoizedProps,n=l.id,s=l.onPostCommit;typeof s=="function"&&s(n,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(i){we(a,a.return,i)}}else Pt(e,a,t,o);break;case 31:Pt(e,a,t,o);break;case 13:Pt(e,a,t,o);break;case 23:break;case 22:l=a.stateNode,n=a.alternate,a.memoizedState!==null?l._visibility&2?Pt(e,a,t,o):$n(e,a):l._visibility&2?Pt(e,a,t,o):(l._visibility|=2,Tl(e,a,t,o,(a.subtreeFlags&10256)!==0||!1)),r&2048&&Kf(n,a);break;case 24:Pt(e,a,t,o),r&2048&&jf(a.alternate,a);break;default:Pt(e,a,t,o)}}function Tl(e,a,t,o,r){for(r=r&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var l=e,n=a,s=t,i=o,u=n.flags;switch(n.tag){case 0:case 11:case 15:Tl(l,n,s,i,r),Is(8,n);break;case 23:break;case 22:var d=n.stateNode;n.memoizedState!==null?d._visibility&2?Tl(l,n,s,i,r):$n(l,n):(d._visibility|=2,Tl(l,n,s,i,r)),r&&u&2048&&Kf(n.alternate,n);break;case 24:Tl(l,n,s,i,r),r&&u&2048&&jf(n.alternate,n);break;default:Tl(l,n,s,i,r)}a=a.sibling}}function $n(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var t=e,o=a,r=o.flags;switch(o.tag){case 22:$n(t,o),r&2048&&Kf(o.alternate,o);break;case 24:$n(t,o),r&2048&&jf(o.alternate,o);break;default:$n(t,o)}a=a.sibling}}var _n=8192;function Il(e,a,t){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)Xb(e,a,t),e=e.sibling}function Xb(e,a,t){switch(e.tag){case 26:Il(e,a,t),e.flags&_n&&e.memoizedState!==null&&eL(t,qt,e.memoizedState,e.memoizedProps);break;case 5:Il(e,a,t);break;case 3:case 4:var o=qt;qt=ku(e.stateNode.containerInfo),Il(e,a,t),qt=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=_n,_n=16777216,Il(e,a,t),_n=o):Il(e,a,t));break;default:Il(e,a,t)}}function Zb(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function En(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];ga=o,Qb(o,e)}Zb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yb(e),e=e.sibling}function Yb(e){switch(e.tag){case 0:case 11:case 15:En(e),e.flags&2048&&mr(9,e,e.return);break;case 3:En(e);break;case 12:En(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,Ji(e)):En(e);break;default:En(e)}}function Ji(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];ga=o,Qb(o,e)}Zb(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:mr(8,a,a.return),Ji(a);break;case 22:t=a.stateNode,t._visibility&2&&(t._visibility&=-3,Ji(a));break;default:Ji(a)}e=e.sibling}}function Qb(e,a){for(;ga!==null;){var t=ga;switch(t.tag){case 0:case 11:case 15:mr(8,t,a);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var o=t.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Cs(t.memoizedState.cache)}if(o=t.child,o!==null)o.return=t,ga=o;else e:for(t=e;ga!==null;){o=ga;var r=o.sibling,l=o.return;if(Pb(o),o===t){ga=null;break e}if(r!==null){r.return=l,ga=r;break e}ga=l}}}var b0={getCacheForType:function(e){var a=ka(oa),t=a.data.get(e);return t===void 0&&(t=e(),a.data.set(e,t)),t},cacheSignal:function(){return ka(oa).controller.signal}},v0=typeof WeakMap=="function"?WeakMap:Map,pe=0,Te=null,te=null,re=0,xe=0,at=null,$o=!1,un=!1,Wf=!1,Bo=0,Ze=0,pr=0,Yr=0,Jf=0,rt=0,$l=0,es=null,Za=null,jc=!1,_u=0,Kb=0,wu=1/0,yu=null,nr=null,sa=0,sr=null,en=null,Mo=0,Wc=0,Jc=null,jb=null,as=0,$c=null;function it(){return(pe&2)!==0&&re!==0?re&-re:_.T!==null?em():lh()}function Wb(){if(rt===0)if((re&536870912)===0||ne){var e=Ti;Ti<<=1,(Ti&3932160)===0&&(Ti=262144),rt=e}else rt=536870912;return e=dt.current,e!==null&&(e.flags|=32),rt}function Ya(e,a,t){(e===Te&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(an(e,0),er(e,re,rt,!1)),ws(e,t),((pe&2)===0||e!==Te)&&(e===Te&&((pe&2)===0&&(Yr|=t),Ze===4&&er(e,re,rt,!1)),lo(e))}function Jb(e,a,t){if((pe&6)!==0)throw Error(L(327));var o=!t&&(a&127)===0&&(a&e.expiredLanes)===0||xs(e,a),r=o?y0(e,a):uc(e,a,!0),l=o;do{if(r===0){un&&!o&&er(e,a,0,!1);break}else{if(t=e.current.alternate,l&&!x0(t)){r=uc(e,a,!1),l=!1;continue}if(r===2){if(l=a,e.errorRecoveryDisabledLanes&l)var n=0;else n=e.pendingLanes&-536870913,n=n!==0?n:n&536870912?536870912:0;if(n!==0){a=n;e:{var s=e;r=es;var i=s.current.memoizedState.isDehydrated;if(i&&(an(s,n).flags|=256),n=uc(s,n,!1),n!==2){if(Wf&&!i){s.errorRecoveryDisabledLanes|=l,Yr|=l,r=4;break e}l=Za,Za=r,l!==null&&(Za===null?Za=l:Za.push.apply(Za,l))}r=n}if(l=!1,r!==2)continue}}if(r===1){an(e,0),er(e,a,0,!0);break}e:{switch(o=e,l=r,l){case 0:case 1:throw Error(L(345));case 4:if((a&4194048)!==a)break;case 6:er(o,a,rt,!$o);break e;case 2:Za=null;break;case 3:case 5:break;default:throw Error(L(329))}if((a&62914560)===a&&(r=_u+300-lt(),10<r)){if(er(o,a,rt,!$o),zu(o,0,!0)!==0)break e;Mo=a,o.timeoutHandle=vv(hg.bind(null,o,t,Za,yu,jc,a,rt,Yr,$l,$o,l,"Throttled",-0,0),r);break e}hg(o,t,Za,yu,jc,a,rt,Yr,$l,$o,l,null,-0,0)}}break}while(!0);lo(e)}function hg(e,a,t,o,r,l,n,s,i,u,d,m,c,g){if(e.timeoutHandle=-1,m=a.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:So},Xb(a,l,m);var v=(l&62914560)===l?_u-lt():(l&4194048)===l?Kb-lt():0;if(v=aL(m,v),v!==null){Mo=l,e.cancelPendingCommit=v(vg.bind(null,e,a,l,t,o,r,n,s,i,d,m,null,c,g)),er(e,l,n,!u);return}}vg(e,a,l,t,o,r,n,s,i)}function x0(e){for(var a=e;;){var t=a.tag;if((t===0||t===11||t===15)&&a.flags&16384&&(t=a.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var o=0;o<t.length;o++){var r=t[o],l=r.getSnapshot;r=r.value;try{if(!ut(l(),r))return!1}catch{return!1}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function er(e,a,t,o){a&=~Jf,a&=~Yr,e.suspendedLanes|=a,e.pingedLanes&=~a,o&&(e.warmLanes|=a),o=e.expirationTimes;for(var r=a;0<r;){var l=31-st(r),n=1<<l;o[l]=-1,r&=~n}t!==0&&th(e,t,a)}function Vu(){return(pe&6)===0?(Ts(0,!1),!1):!0}function $f(){if(te!==null){if(xe===0)var e=te.return;else e=te,Io=ol=null,Pf(e),Vl=null,us=0,e=te;for(;e!==null;)Nb(e.alternate,e),e=e.return;te=null}}function an(e,a){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,H0(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),Mo=0,$f(),Te=e,te=t=To(e.current,null),re=a,xe=0,at=null,$o=!1,un=xs(e,a),Wf=!1,$l=rt=Jf=Yr=pr=Ze=0,Za=es=null,jc=!1,(a&8)!==0&&(a|=a&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=a;0<o;){var r=31-st(o),l=1<<r;a|=e[r],o&=~l}return Bo=a,Eu(),t}function $b(e,a){K=null,_.H=cs,a===sn||a===Pu?(a=Qp(),xe=3):a===Nf?(a=Qp(),xe=4):xe=a===Yf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,at=a,te===null&&(Ze=1,bu(e,St(a,e.current)))}function ev(){var e=dt.current;return e===null?!0:(re&4194048)===re?Tt===null:(re&62914560)===re||(re&536870912)!==0?e===Tt:!1}function av(){var e=_.H;return _.H=cs,e===null?cs:e}function tv(){var e=_.A;return _.A=b0,e}function Lu(){Ze=4,$o||(re&4194048)!==re&&dt.current!==null||(un=!0),(pr&134217727)===0&&(Yr&134217727)===0||Te===null||er(Te,re,rt,!1)}function uc(e,a,t){var o=pe;pe|=2;var r=av(),l=tv();(Te!==e||re!==a)&&(yu=null,an(e,a)),a=!1;var n=Ze;e:do try{if(xe!==0&&te!==null){var s=te,i=at;switch(xe){case 8:$f(),n=6;break e;case 3:case 2:case 9:case 6:dt.current===null&&(a=!0);var u=xe;if(xe=0,at=null,ql(e,s,i,u),t&&un){n=0;break e}break;default:u=xe,xe=0,at=null,ql(e,s,i,u)}}w0(),n=Ze;break}catch(d){$b(e,d)}while(!0);return a&&e.shellSuspendCounter++,Io=ol=null,pe=o,_.H=r,_.A=l,te===null&&(Te=null,re=0,Eu()),n}function w0(){for(;te!==null;)ov(te)}function y0(e,a){var t=pe;pe|=2;var o=av(),r=tv();Te!==e||re!==a?(yu=null,wu=lt()+500,an(e,a)):un=xs(e,a);e:do try{if(xe!==0&&te!==null){a=te;var l=at;a:switch(xe){case 1:xe=0,at=null,ql(e,a,l,1);break;case 2:case 9:if(Yp(l)){xe=0,at=null,bg(a);break}a=function(){xe!==2&&xe!==9||Te!==e||(xe=7),lo(e)},l.then(a,a);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:Yp(l)?(xe=0,at=null,bg(a)):(xe=0,at=null,ql(e,a,l,7));break;case 5:var n=null;switch(te.tag){case 26:n=te.memoizedState;case 5:case 27:var s=te;if(n?Cv(n):s.stateNode.complete){xe=0,at=null;var i=s.sibling;if(i!==null)te=i;else{var u=s.return;u!==null?(te=u,Xu(u)):te=null}break a}}xe=0,at=null,ql(e,a,l,5);break;case 6:xe=0,at=null,ql(e,a,l,6);break;case 8:$f(),Ze=6;break e;default:throw Error(L(462))}}L0();break}catch(d){$b(e,d)}while(!0);return Io=ol=null,_.H=o,_.A=r,pe=t,te!==null?0:(Te=null,re=0,Eu(),Ze)}function L0(){for(;te!==null&&!Xw();)ov(te)}function ov(e){var a=Db(e.alternate,e,Bo);e.memoizedProps=e.pendingProps,a===null?Xu(e):te=a}function bg(e){var a=e,t=a.alternate;switch(a.tag){case 15:case 0:a=dg(t,a,a.pendingProps,a.type,void 0,re);break;case 11:a=dg(t,a,a.pendingProps,a.type.render,a.ref,re);break;case 5:Pf(a);default:Nb(t,a),a=te=Nh(a,Bo),a=Db(t,a,Bo)}e.memoizedProps=e.pendingProps,a===null?Xu(e):te=a}function ql(e,a,t,o){Io=ol=null,Pf(a),Vl=null,us=0;var r=a.return;try{if(d0(e,r,a,t,re)){Ze=1,bu(e,St(t,e.current)),te=null;return}}catch(l){if(r!==null)throw te=r,l;Ze=1,bu(e,St(t,e.current)),te=null;return}a.flags&32768?(ne||o===1?e=!0:un||(re&536870912)!==0?e=!1:($o=e=!0,(o===2||o===9||o===3||o===6)&&(o=dt.current,o!==null&&o.tag===13&&(o.flags|=16384))),rv(a,e)):Xu(a)}function Xu(e){var a=e;do{if((a.flags&32768)!==0){rv(a,$o);return}e=a.return;var t=m0(a.alternate,a,Bo);if(t!==null){te=t;return}if(a=a.sibling,a!==null){te=a;return}te=a=e}while(a!==null);Ze===0&&(Ze=5)}function rv(e,a){do{var t=p0(e.alternate,e);if(t!==null){t.flags&=32767,te=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!a&&(e=e.sibling,e!==null)){te=e;return}te=e=t}while(e!==null);Ze=6,te=null}function vg(e,a,t,o,r,l,n,s,i){e.cancelPendingCommit=null;do Zu();while(sa!==0);if((pe&6)!==0)throw Error(L(327));if(a!==null){if(a===e.current)throw Error(L(177));if(l=a.lanes|a.childLanes,l|=Sf,ay(e,t,l,n,s,i),e===Te&&(te=Te=null,re=0),en=a,sr=e,Mo=t,Wc=l,Jc=r,jb=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,T0(nu,function(){return uv(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=_.T,_.T=null,r=ge.p,ge.p=2,n=pe,pe|=4;try{g0(e,a,t)}finally{pe=n,ge.p=r,_.T=o}}sa=1,lv(),nv(),sv()}}function lv(){if(sa===1){sa=0;var e=sr,a=en,t=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||t){t=_.T,_.T=null;var o=ge.p;ge.p=2;var r=pe;pe|=4;try{Gb(a,e);var l=of,n=Ch(e.containerInfo),s=l.focusedElem,i=l.selectionRange;if(n!==s&&s&&s.ownerDocument&&Lh(s.ownerDocument.documentElement,s)){if(i!==null&&Cf(s)){var u=i.start,d=i.end;if(d===void 0&&(d=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(d,s.value.length);else{var m=s.ownerDocument||document,c=m&&m.defaultView||window;if(c.getSelection){var g=c.getSelection(),v=s.textContent.length,w=Math.min(i.start,v),D=i.end===void 0?w:Math.min(i.end,v);!g.extend&&w>D&&(n=D,D=w,w=n);var p=Up(s,w),f=Up(s,D);if(p&&f&&(g.rangeCount!==1||g.anchorNode!==p.node||g.anchorOffset!==p.offset||g.focusNode!==f.node||g.focusOffset!==f.offset)){var b=m.createRange();b.setStart(p.node,p.offset),g.removeAllRanges(),w>D?(g.addRange(b),g.extend(f.node,f.offset)):(b.setEnd(f.node,f.offset),g.addRange(b))}}}}for(m=[],g=s;g=g.parentNode;)g.nodeType===1&&m.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<m.length;s++){var x=m[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Du=!!tf,of=tf=null}finally{pe=r,ge.p=o,_.T=t}}e.current=a,sa=2}}function nv(){if(sa===2){sa=0;var e=sr,a=en,t=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||t){t=_.T,_.T=null;var o=ge.p;ge.p=2;var r=pe;pe|=4;try{Hb(e,a.alternate,a)}finally{pe=r,ge.p=o,_.T=t}}sa=3}}function sv(){if(sa===4||sa===3){sa=0,Zw();var e=sr,a=en,t=Mo,o=jb;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?sa=5:(sa=0,en=sr=null,iv(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(nr=null),hf(t),a=a.stateNode,nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(vs,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=_.T,r=ge.p,ge.p=2,_.T=null;try{for(var l=e.onRecoverableError,n=0;n<o.length;n++){var s=o[n];l(s.value,{componentStack:s.stack})}}finally{_.T=a,ge.p=r}}(Mo&3)!==0&&Zu(),lo(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?e===$c?as++:(as=0,$c=e):as=0,Ts(0,!1)}}function iv(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,Cs(a)))}function Zu(){return lv(),nv(),sv(),uv()}function uv(){if(sa!==5)return!1;var e=sr,a=Wc;Wc=0;var t=hf(Mo),o=_.T,r=ge.p;try{ge.p=32>t?32:t,_.T=null,t=Jc,Jc=null;var l=sr,n=Mo;if(sa=0,en=sr=null,Mo=0,(pe&6)!==0)throw Error(L(331));var s=pe;if(pe|=4,Yb(l.current),Vb(l,l.current,n,t),pe=s,Ts(0,!1),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(vs,l)}catch{}return!0}finally{ge.p=r,_.T=o,iv(e,a)}}function xg(e,a,t){a=St(t,a),a=Zc(e.stateNode,a,2),e=lr(e,a,2),e!==null&&(ws(e,2),lo(e))}function we(e,a,t){if(e.tag===3)xg(e,e,t);else for(;a!==null;){if(a.tag===3){xg(a,e,t);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(nr===null||!nr.has(o))){e=St(t,e),t=Sb(2),o=lr(a,t,2),o!==null&&(Ib(t,o,a,e),ws(o,2),lo(o));break}}a=a.return}}function dc(e,a,t){var o=e.pingCache;if(o===null){o=e.pingCache=new v0;var r=new Set;o.set(a,r)}else r=o.get(a),r===void 0&&(r=new Set,o.set(a,r));r.has(t)||(Wf=!0,r.add(t),e=C0.bind(null,e,a,t),a.then(e,e))}function C0(e,a,t){var o=e.pingCache;o!==null&&o.delete(a),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,Te===e&&(re&t)===t&&(Ze===4||Ze===3&&(re&62914560)===re&&300>lt()-_u?(pe&2)===0&&an(e,0):Jf|=t,$l===re&&($l=0)),lo(e)}function dv(e,a){a===0&&(a=ah()),e=tl(e,a),e!==null&&(ws(e,a),lo(e))}function S0(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),dv(e,t)}function I0(e,a){var t=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(t=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(L(314))}o!==null&&o.delete(a),dv(e,t)}function T0(e,a){return pf(e,a)}var Cu=null,kl=null,ef=!1,Su=!1,cc=!1,ar=0;function lo(e){e!==kl&&e.next===null&&(kl===null?Cu=kl=e:kl=kl.next=e),Su=!0,ef||(ef=!0,M0())}function Ts(e,a){if(!cc&&Su){cc=!0;do for(var t=!1,o=Cu;o!==null;){if(!a)if(e!==0){var r=o.pendingLanes;if(r===0)var l=0;else{var n=o.suspendedLanes,s=o.pingedLanes;l=(1<<31-st(42|e)+1)-1,l&=r&~(n&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(t=!0,wg(o,l))}else l=re,l=zu(o,o===Te?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(l&3)===0||xs(o,l)||(t=!0,wg(o,l));o=o.next}while(t);cc=!1}}function k0(){cv()}function cv(){Su=ef=!1;var e=0;ar!==0&&E0()&&(e=ar);for(var a=lt(),t=null,o=Cu;o!==null;){var r=o.next,l=fv(o,a);l===0?(o.next=null,t===null?Cu=r:t.next=r,r===null&&(kl=t)):(t=o,(e!==0||(l&3)!==0)&&(Su=!0)),o=r}sa!==0&&sa!==5||Ts(e,!1),ar!==0&&(ar=0)}function fv(e,a){for(var t=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var n=31-st(l),s=1<<n,i=r[n];i===-1?((s&t)===0||(s&o)!==0)&&(r[n]=ey(s,a)):i<=a&&(e.expiredLanes|=s),l&=~s}if(a=Te,t=re,t=zu(e,e===a?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,t===0||e===a&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ud(o),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||xs(e,t)){if(a=t&-t,a===e.callbackPriority)return a;switch(o!==null&&Ud(o),hf(t)){case 2:case 8:t=$g;break;case 32:t=nu;break;case 268435456:t=eh;break;default:t=nu}return o=mv.bind(null,e),t=pf(t,o),e.callbackPriority=a,e.callbackNode=t,a}return o!==null&&o!==null&&Ud(o),e.callbackPriority=2,e.callbackNode=null,2}function mv(e,a){if(sa!==0&&sa!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Zu()&&e.callbackNode!==t)return null;var o=re;return o=zu(e,e===Te?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Jb(e,o,a),fv(e,lt()),e.callbackNode!=null&&e.callbackNode===t?mv.bind(null,e):null)}function wg(e,a){if(Zu())return null;Jb(e,a,!0)}function M0(){P0(function(){(pe&6)!==0?pf(Jg,k0):cv()})}function em(){if(ar===0){var e=jl;e===0&&(e=Ii,Ii<<=1,(Ii&261888)===0&&(Ii=256)),ar=e}return ar}function yg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_i(""+e)}function Lg(e,a){var t=a.ownerDocument.createElement("input");return t.name=a.name,t.value=a.value,e.id&&t.setAttribute("form",e.id),a.parentNode.insertBefore(t,a),e=new FormData(e),t.parentNode.removeChild(t),e}function A0(e,a,t,o,r){if(a==="submit"&&t&&t.stateNode===r){var l=yg((r[Qa]||null).action),n=o.submitter;n&&(a=(a=n[Qa]||null)?yg(a.formAction):n.getAttribute("formAction"),a!==null&&(l=a,n=null));var s=new Bu("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ar!==0){var i=n?Lg(r,n):new FormData(r);Vc(t,{pending:!0,data:i,method:r.method,action:l},null,i)}}else typeof l=="function"&&(s.preventDefault(),i=n?Lg(r,n):new FormData(r),Vc(t,{pending:!0,data:i,method:r.method,action:l},l,i))},currentTarget:r}]})}}for(Hi=0;Hi<zc.length;Hi++)Pi=zc[Hi],Cg=Pi.toLowerCase(),Sg=Pi[0].toUpperCase()+Pi.slice(1),Ut(Cg,"on"+Sg);var Pi,Cg,Sg,Hi;Ut(Ih,"onAnimationEnd");Ut(Th,"onAnimationIteration");Ut(kh,"onAnimationStart");Ut("dblclick","onDoubleClick");Ut("focusin","onFocus");Ut("focusout","onBlur");Ut(Yy,"onTransitionRun");Ut(Qy,"onTransitionStart");Ut(Ky,"onTransitionCancel");Ut(Mh,"onTransitionEnd");Ql("onMouseEnter",["mouseout","mouseover"]);Ql("onMouseLeave",["mouseout","mouseover"]);Ql("onPointerEnter",["pointerout","pointerover"]);Ql("onPointerLeave",["pointerout","pointerover"]);$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$r("onBeforeInput",["compositionend","keypress","textInput","paste"]);$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),D0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fs));function pv(e,a){a=(a&4)!==0;for(var t=0;t<e.length;t++){var o=e[t],r=o.event;o=o.listeners;e:{var l=void 0;if(a)for(var n=o.length-1;0<=n;n--){var s=o[n],i=s.instance,u=s.currentTarget;if(s=s.listener,i!==l&&r.isPropagationStopped())break e;l=s,r.currentTarget=u;try{l(r)}catch(d){iu(d)}r.currentTarget=null,l=i}else for(n=0;n<o.length;n++){if(s=o[n],i=s.instance,u=s.currentTarget,s=s.listener,i!==l&&r.isPropagationStopped())break e;l=s,r.currentTarget=u;try{l(r)}catch(d){iu(d)}r.currentTarget=null,l=i}}}}function ae(e,a){var t=a[Sc];t===void 0&&(t=a[Sc]=new Set);var o=e+"__bubble";t.has(o)||(gv(a,e,2,!1),t.add(o))}function fc(e,a,t){var o=0;a&&(o|=4),gv(t,e,o,a)}var qi="_reactListening"+Math.random().toString(36).slice(2);function am(e){if(!e[qi]){e[qi]=!0,nh.forEach(function(t){t!=="selectionchange"&&(D0.has(t)||fc(t,!1,e),fc(t,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[qi]||(a[qi]=!0,fc("selectionchange",!1,a))}}function gv(e,a,t,o){switch(Mv(a)){case 2:var r=rL;break;case 8:r=lL;break;default:r=lm}t=r.bind(null,a,t,e),r=void 0,!Ac||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(a,t,{capture:!0,passive:r}):e.addEventListener(a,t,!0):r!==void 0?e.addEventListener(a,t,{passive:r}):e.addEventListener(a,t,!1)}function mc(e,a,t,o,r){var l=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var n=o.tag;if(n===3||n===4){var s=o.stateNode.containerInfo;if(s===r)break;if(n===4)for(n=o.return;n!==null;){var i=n.tag;if((i===3||i===4)&&n.stateNode.containerInfo===r)return;n=n.return}for(;s!==null;){if(n=Dl(s),n===null)return;if(i=n.tag,i===5||i===6||i===26||i===27){o=l=n;continue e}s=s.parentNode}}o=o.return}ph(function(){var u=l,d=xf(t),m=[];e:{var c=Ah.get(e);if(c!==void 0){var g=Bu,v=e;switch(e){case"keypress":if(Xi(t)===0)break e;case"keydown":case"keyup":g=Iy;break;case"focusin":v="focus",g=Xd;break;case"focusout":v="blur",g=Xd;break;case"beforeblur":case"afterblur":g=Xd;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Np;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=my;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=My;break;case Ih:case Th:case kh:g=hy;break;case Mh:g=Dy;break;case"scroll":case"scrollend":g=cy;break;case"wheel":g=zy;break;case"copy":case"cut":case"paste":g=vy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Bp;break;case"toggle":case"beforetoggle":g=Ry}var w=(a&4)!==0,D=!w&&(e==="scroll"||e==="scrollend"),p=w?c!==null?c+"Capture":null:c;w=[];for(var f=u,b;f!==null;){var x=f;if(b=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||b===null||p===null||(x=rs(f,p),x!=null&&w.push(ms(f,x,b))),D)break;f=f.return}0<w.length&&(c=new g(c,v,null,t,d),m.push({event:c,listeners:w}))}}if((a&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",c&&t!==Mc&&(v=t.relatedTarget||t.fromElement)&&(Dl(v)||v[rn]))break e;if((g||c)&&(c=d.window===d?d:(c=d.ownerDocument)?c.defaultView||c.parentWindow:window,g?(v=t.relatedTarget||t.toElement,g=u,v=v?Dl(v):null,v!==null&&(D=bs(v),w=v.tag,v!==D||w!==5&&w!==27&&w!==6)&&(v=null)):(g=null,v=u),g!==v)){if(w=Np,x="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=Bp,x="onPointerLeave",p="onPointerEnter",f="pointer"),D=g==null?c:Fn(g),b=v==null?c:Fn(v),c=new w(x,f+"leave",g,t,d),c.target=D,c.relatedTarget=b,x=null,Dl(d)===u&&(w=new w(p,f+"enter",v,t,d),w.target=b,w.relatedTarget=D,x=w),D=x,g&&v)a:{for(w=N0,p=g,f=v,b=0,x=p;x;x=w(x))b++;x=0;for(var N=f;N;N=w(N))x++;for(;0<b-x;)p=w(p),b--;for(;0<x-b;)f=w(f),x--;for(;b--;){if(p===f||f!==null&&p===f.alternate){w=p;break a}p=w(p),f=w(f)}w=null}else w=null;g!==null&&Ig(m,c,g,w,!1),v!==null&&D!==null&&Ig(m,D,v,w,!0)}}e:{if(c=u?Fn(u):window,g=c.nodeName&&c.nodeName.toLowerCase(),g==="select"||g==="input"&&c.type==="file")var R=Hp;else if(Ep(c))if(wh)R=Vy;else{R=Gy;var z=Fy}else g=c.nodeName,!g||g.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?u&&vf(u.elementType)&&(R=Hp):R=_y;if(R&&(R=R(e,u))){xh(m,R,t,d);break e}z&&z(e,c,u),e==="focusout"&&u&&c.type==="number"&&u.memoizedProps.value!=null&&kc(c,"number",c.value)}switch(z=u?Fn(u):window,e){case"focusin":(Ep(z)||z.contentEditable==="true")&&(Bl=z,Dc=u,Zn=null);break;case"focusout":Zn=Dc=Bl=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,Fp(m,t,d);break;case"selectionchange":if(Zy)break;case"keydown":case"keyup":Fp(m,t,d)}var E;if(Lf)e:{switch(e){case"compositionstart":var q="onCompositionStart";break e;case"compositionend":q="onCompositionEnd";break e;case"compositionupdate":q="onCompositionUpdate";break e}q=void 0}else zl?bh(e,t)&&(q="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(q="onCompositionStart");q&&(hh&&t.locale!=="ko"&&(zl||q!=="onCompositionStart"?q==="onCompositionEnd"&&zl&&(E=gh()):(Jo=d,wf="value"in Jo?Jo.value:Jo.textContent,zl=!0)),z=Iu(u,q),0<z.length&&(q=new zp(q,e,null,t,d),m.push({event:q,listeners:z}),E?q.data=E:(E=vh(t),E!==null&&(q.data=E)))),(E=Ey?Hy(e,t):Py(e,t))&&(q=Iu(u,"onBeforeInput"),0<q.length&&(z=new zp("onBeforeInput","beforeinput",null,t,d),m.push({event:z,listeners:q}),z.data=E)),A0(m,e,u,t,d)}pv(m,a)})}function ms(e,a,t){return{instance:e,listener:a,currentTarget:t}}function Iu(e,a){for(var t=a+"Capture",o=[];e!==null;){var r=e,l=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||l===null||(r=rs(e,t),r!=null&&o.unshift(ms(e,r,l)),r=rs(e,a),r!=null&&o.push(ms(e,r,l))),e.tag===3)return o;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ig(e,a,t,o,r){for(var l=a._reactName,n=[];t!==null&&t!==o;){var s=t,i=s.alternate,u=s.stateNode;if(s=s.tag,i!==null&&i===o)break;s!==5&&s!==26&&s!==27||u===null||(i=u,r?(u=rs(t,l),u!=null&&n.unshift(ms(t,u,i))):r||(u=rs(t,l),u!=null&&n.push(ms(t,u,i)))),t=t.return}n.length!==0&&e.push({event:a,listeners:n})}var z0=/\r\n?/g,B0=/\u0000|\uFFFD/g;function Tg(e){return(typeof e=="string"?e:""+e).replace(z0,`
9
+ `).replace(B0,"")}function hv(e,a){return a=Tg(a),Tg(e)===a}function ye(e,a,t,o,r,l){switch(t){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Kl(e,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Kl(e,""+o);break;case"className":Mi(e,"class",o);break;case"tabIndex":Mi(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Mi(e,t,o);break;case"style":mh(e,o,l);break;case"data":if(a!=="object"){Mi(e,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||t!=="href")){e.removeAttribute(t);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=_i(""+o),e.setAttribute(t,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(t,"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 l=="function"&&(t==="formAction"?(a!=="input"&&ye(e,a,"name",r.name,r,null),ye(e,a,"formEncType",r.formEncType,r,null),ye(e,a,"formMethod",r.formMethod,r,null),ye(e,a,"formTarget",r.formTarget,r,null)):(ye(e,a,"encType",r.encType,r,null),ye(e,a,"method",r.method,r,null),ye(e,a,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=_i(""+o),e.setAttribute(t,o);break;case"onClick":o!=null&&(e.onclick=So);break;case"onScroll":o!=null&&ae("scroll",e);break;case"onScrollEnd":o!=null&&ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(L(61));if(t=o.__html,t!=null){if(r.children!=null)throw Error(L(60));e.innerHTML=t}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}t=_i(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""+o):e.removeAttribute(t);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":o===!0?e.setAttribute(t,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,o):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(t,o):e.removeAttribute(t);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(t):e.setAttribute(t,o);break;case"popover":ae("beforetoggle",e),ae("toggle",e),Gi(e,"popover",o);break;case"xlinkActuate":ho(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ho(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ho(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ho(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ho(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ho(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ho(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ho(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ho(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Gi(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=uy.get(t)||t,Gi(e,t,o))}}function af(e,a,t,o,r,l){switch(t){case"style":mh(e,o,l);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(L(61));if(t=o.__html,t!=null){if(r.children!=null)throw Error(L(60));e.innerHTML=t}}break;case"children":typeof o=="string"?Kl(e,o):(typeof o=="number"||typeof o=="bigint")&&Kl(e,""+o);break;case"onScroll":o!=null&&ae("scroll",e);break;case"onScrollEnd":o!=null&&ae("scrollend",e);break;case"onClick":o!=null&&(e.onclick=So);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sh.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(r=t.endsWith("Capture"),a=t.slice(2,r?t.length-7:void 0),l=e[Qa]||null,l=l!=null?l[t]:null,typeof l=="function"&&e.removeEventListener(a,l,r),typeof o=="function")){typeof l!="function"&&l!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,o,r);break e}t in e?e[t]=o:o===!0?e.setAttribute(t,""):Gi(e,t,o)}}}function Ma(e,a,t){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ae("error",e),ae("load",e);var o=!1,r=!1,l;for(l in t)if(t.hasOwnProperty(l)){var n=t[l];if(n!=null)switch(l){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(L(137,a));default:ye(e,a,l,n,t,null)}}r&&ye(e,a,"srcSet",t.srcSet,t,null),o&&ye(e,a,"src",t.src,t,null);return;case"input":ae("invalid",e);var s=l=n=r=null,i=null,u=null;for(o in t)if(t.hasOwnProperty(o)){var d=t[o];if(d!=null)switch(o){case"name":r=d;break;case"type":n=d;break;case"checked":i=d;break;case"defaultChecked":u=d;break;case"value":l=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(L(137,a));break;default:ye(e,a,o,d,t,null)}}dh(e,l,s,i,u,n,r,!1);return;case"select":ae("invalid",e),o=n=l=null;for(r in t)if(t.hasOwnProperty(r)&&(s=t[r],s!=null))switch(r){case"value":l=s;break;case"defaultValue":n=s;break;case"multiple":o=s;default:ye(e,a,r,s,t,null)}a=l,t=n,e.multiple=!!o,a!=null?Fl(e,!!o,a,!1):t!=null&&Fl(e,!!o,t,!0);return;case"textarea":ae("invalid",e),l=r=o=null;for(n in t)if(t.hasOwnProperty(n)&&(s=t[n],s!=null))switch(n){case"value":o=s;break;case"defaultValue":r=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(L(91));break;default:ye(e,a,n,s,t,null)}fh(e,o,r,l);return;case"option":for(i in t)t.hasOwnProperty(i)&&(o=t[i],o!=null)&&(i==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":ye(e,a,i,o,t,null));return;case"dialog":ae("beforetoggle",e),ae("toggle",e),ae("cancel",e),ae("close",e);break;case"iframe":case"object":ae("load",e);break;case"video":case"audio":for(o=0;o<fs.length;o++)ae(fs[o],e);break;case"image":ae("error",e),ae("load",e);break;case"details":ae("toggle",e);break;case"embed":case"source":case"link":ae("error",e),ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in t)if(t.hasOwnProperty(u)&&(o=t[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(L(137,a));default:ye(e,a,u,o,t,null)}return;default:if(vf(a)){for(d in t)t.hasOwnProperty(d)&&(o=t[d],o!==void 0&&af(e,a,d,o,t,void 0));return}}for(s in t)t.hasOwnProperty(s)&&(o=t[s],o!=null&&ye(e,a,s,o,t,null))}function R0(e,a,t,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,l=null,n=null,s=null,i=null,u=null,d=null;for(g in t){var m=t[g];if(t.hasOwnProperty(g)&&m!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":i=m;default:o.hasOwnProperty(g)||ye(e,a,g,null,o,m)}}for(var c in o){var g=o[c];if(m=t[c],o.hasOwnProperty(c)&&(g!=null||m!=null))switch(c){case"type":l=g;break;case"name":r=g;break;case"checked":u=g;break;case"defaultChecked":d=g;break;case"value":n=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(L(137,a));break;default:g!==m&&ye(e,a,c,g,o,m)}}Tc(e,n,s,i,u,d,l,r);return;case"select":g=n=s=c=null;for(l in t)if(i=t[l],t.hasOwnProperty(l)&&i!=null)switch(l){case"value":break;case"multiple":g=i;default:o.hasOwnProperty(l)||ye(e,a,l,null,o,i)}for(r in o)if(l=o[r],i=t[r],o.hasOwnProperty(r)&&(l!=null||i!=null))switch(r){case"value":c=l;break;case"defaultValue":s=l;break;case"multiple":n=l;default:l!==i&&ye(e,a,r,l,o,i)}a=s,t=n,o=g,c!=null?Fl(e,!!t,c,!1):!!o!=!!t&&(a!=null?Fl(e,!!t,a,!0):Fl(e,!!t,t?[]:"",!1));return;case"textarea":g=c=null;for(s in t)if(r=t[s],t.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ye(e,a,s,null,o,r)}for(n in o)if(r=o[n],l=t[n],o.hasOwnProperty(n)&&(r!=null||l!=null))switch(n){case"value":c=r;break;case"defaultValue":g=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(L(91));break;default:r!==l&&ye(e,a,n,r,o,l)}ch(e,c,g);return;case"option":for(var v in t)c=t[v],t.hasOwnProperty(v)&&c!=null&&!o.hasOwnProperty(v)&&(v==="selected"?e.selected=!1:ye(e,a,v,null,o,c));for(i in o)c=o[i],g=t[i],o.hasOwnProperty(i)&&c!==g&&(c!=null||g!=null)&&(i==="selected"?e.selected=c&&typeof c!="function"&&typeof c!="symbol":ye(e,a,i,c,o,g));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w in t)c=t[w],t.hasOwnProperty(w)&&c!=null&&!o.hasOwnProperty(w)&&ye(e,a,w,null,o,c);for(u in o)if(c=o[u],g=t[u],o.hasOwnProperty(u)&&c!==g&&(c!=null||g!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(L(137,a));break;default:ye(e,a,u,c,o,g)}return;default:if(vf(a)){for(var D in t)c=t[D],t.hasOwnProperty(D)&&c!==void 0&&!o.hasOwnProperty(D)&&af(e,a,D,void 0,o,c);for(d in o)c=o[d],g=t[d],!o.hasOwnProperty(d)||c===g||c===void 0&&g===void 0||af(e,a,d,c,o,g);return}}for(var p in t)c=t[p],t.hasOwnProperty(p)&&c!=null&&!o.hasOwnProperty(p)&&ye(e,a,p,null,o,c);for(m in o)c=o[m],g=t[m],!o.hasOwnProperty(m)||c===g||c==null&&g==null||ye(e,a,m,c,o,g)}function kg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,t=performance.getEntriesByType("resource"),o=0;o<t.length;o++){var r=t[o],l=r.transferSize,n=r.initiatorType,s=r.duration;if(l&&s&&kg(n)){for(n=0,s=r.responseEnd,o+=1;o<t.length;o++){var i=t[o],u=i.startTime;if(u>s)break;var d=i.transferSize,m=i.initiatorType;d&&kg(m)&&(i=i.responseEnd,n+=d*(i<s?1:(s-u)/(i-u)))}if(--o,a+=8*(l+n)/(r.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var tf=null,of=null;function Tu(e){return e.nodeType===9?e:e.ownerDocument}function Mg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bv(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function rf(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var pc=null;function E0(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var vv=typeof setTimeout=="function"?setTimeout:void 0,H0=typeof clearTimeout=="function"?clearTimeout:void 0,Ag=typeof Promise=="function"?Promise:void 0,P0=typeof queueMicrotask=="function"?queueMicrotask:typeof Ag<"u"?function(e){return Ag.resolve(null).then(e).catch(q0)}:vv;function q0(e){setTimeout(function(){throw e})}function hr(e){return e==="head"}function Dg(e,a){var t=a,o=0;do{var r=t.nextSibling;if(e.removeChild(t),r&&r.nodeType===8)if(t=r.data,t==="/$"||t==="/&"){if(o===0){e.removeChild(r),on(a);return}o--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")o++;else if(t==="html")ts(e.ownerDocument.documentElement);else if(t==="head"){t=e.ownerDocument.head,ts(t);for(var l=t.firstChild;l;){var n=l.nextSibling,s=l.nodeName;l[ys]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&l.rel.toLowerCase()==="stylesheet"||t.removeChild(l),l=n}}else t==="body"&&ts(e.ownerDocument.body);t=r}while(t);on(a)}function Ng(e,a){var t=e;e=0;do{var o=t.nextSibling;if(t.nodeType===1?a?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(a?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),o&&o.nodeType===8)if(t=o.data,t==="/$"){if(e===0)break;e--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||e++;t=o}while(t)}function lf(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var t=a;switch(a=a.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":lf(t),bf(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function U0(e,a,t,o){for(;e.nodeType===1;){var r=t;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ys])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var l=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function F0(e,a,t){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function xv(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=kt(e.nextSibling),e===null))return null;return e}function nf(e){return e.data==="$?"||e.data==="$~"}function sf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function G0(e,a){var t=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||t.readyState!=="loading")a();else{var o=function(){a(),t.removeEventListener("DOMContentLoaded",o)};t.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function kt(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var uf=null;function zg(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"||t==="/&"){if(a===0)return kt(e.nextSibling);a--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||a++}e=e.nextSibling}return null}function Bg(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(a===0)return e;a--}else t!=="/$"&&t!=="/&"||a++}e=e.previousSibling}return null}function wv(e,a,t){switch(a=Tu(t),e){case"html":if(e=a.documentElement,!e)throw Error(L(452));return e;case"head":if(e=a.head,!e)throw Error(L(453));return e;case"body":if(e=a.body,!e)throw Error(L(454));return e;default:throw Error(L(451))}}function ts(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);bf(e)}var Mt=new Map,Rg=new Set;function ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ro=ge.d;ge.d={f:_0,r:V0,D:X0,C:Z0,L:Y0,m:Q0,X:j0,S:K0,M:W0};function _0(){var e=Ro.f(),a=Vu();return e||a}function V0(e){var a=ln(e);a!==null&&a.tag===5&&a.type==="form"?mb(a):Ro.r(e)}var dn=typeof document>"u"?null:document;function yv(e,a,t){var o=dn;if(o&&typeof a=="string"&&a){var r=Ct(a);r='link[rel="'+e+'"][href="'+r+'"]',typeof t=="string"&&(r+='[crossorigin="'+t+'"]'),Rg.has(r)||(Rg.add(r),e={rel:e,crossOrigin:t,href:a},o.querySelector(r)===null&&(a=o.createElement("link"),Ma(a,"link",e),ha(a),o.head.appendChild(a)))}}function X0(e){Ro.D(e),yv("dns-prefetch",e,null)}function Z0(e,a){Ro.C(e,a),yv("preconnect",e,a)}function Y0(e,a,t){Ro.L(e,a,t);var o=dn;if(o&&e&&a){var r='link[rel="preload"][as="'+Ct(a)+'"]';a==="image"&&t&&t.imageSrcSet?(r+='[imagesrcset="'+Ct(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(r+='[imagesizes="'+Ct(t.imageSizes)+'"]')):r+='[href="'+Ct(e)+'"]';var l=r;switch(a){case"style":l=tn(e);break;case"script":l=cn(e)}Mt.has(l)||(e=Re({rel:"preload",href:a==="image"&&t&&t.imageSrcSet?void 0:e,as:a},t),Mt.set(l,e),o.querySelector(r)!==null||a==="style"&&o.querySelector(ks(l))||a==="script"&&o.querySelector(Ms(l))||(a=o.createElement("link"),Ma(a,"link",e),ha(a),o.head.appendChild(a)))}}function Q0(e,a){Ro.m(e,a);var t=dn;if(t&&e){var o=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+Ct(o)+'"][href="'+Ct(e)+'"]',l=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=cn(e)}if(!Mt.has(l)&&(e=Re({rel:"modulepreload",href:e},a),Mt.set(l,e),t.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(Ms(l)))return}o=t.createElement("link"),Ma(o,"link",e),ha(o),t.head.appendChild(o)}}}function K0(e,a,t){Ro.S(e,a,t);var o=dn;if(o&&e){var r=Ul(o).hoistableStyles,l=tn(e);a=a||"default";var n=r.get(l);if(!n){var s={loading:0,preload:null};if(n=o.querySelector(ks(l)))s.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":a},t),(t=Mt.get(l))&&tm(e,t);var i=n=o.createElement("link");ha(i),Ma(i,"link",e),i._p=new Promise(function(u,d){i.onload=u,i.onerror=d}),i.addEventListener("load",function(){s.loading|=1}),i.addEventListener("error",function(){s.loading|=2}),s.loading|=4,$i(n,a,o)}n={type:"stylesheet",instance:n,count:1,state:s},r.set(l,n)}}}function j0(e,a){Ro.X(e,a);var t=dn;if(t&&e){var o=Ul(t).hoistableScripts,r=cn(e),l=o.get(r);l||(l=t.querySelector(Ms(r)),l||(e=Re({src:e,async:!0},a),(a=Mt.get(r))&&om(e,a),l=t.createElement("script"),ha(l),Ma(l,"link",e),t.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function W0(e,a){Ro.M(e,a);var t=dn;if(t&&e){var o=Ul(t).hoistableScripts,r=cn(e),l=o.get(r);l||(l=t.querySelector(Ms(r)),l||(e=Re({src:e,async:!0,type:"module"},a),(a=Mt.get(r))&&om(e,a),l=t.createElement("script"),ha(l),Ma(l,"link",e),t.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function Og(e,a,t,o){var r=(r=tr.current)?ku(r):null;if(!r)throw Error(L(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(a=tn(t.href),t=Ul(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=tn(t.href);var l=Ul(r).hoistableStyles,n=l.get(e);if(n||(r=r.ownerDocument||r,n={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,n),(l=r.querySelector(ks(e)))&&!l._p&&(n.instance=l,n.state.loading=5),Mt.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Mt.set(e,t),l||J0(r,e,t,n.state))),a&&o===null)throw Error(L(528,""));return n}if(a&&o!==null)throw Error(L(529,""));return null;case"script":return a=t.async,t=t.src,typeof t=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=cn(t),t=Ul(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(L(444,e))}}function tn(e){return'href="'+Ct(e)+'"'}function ks(e){return'link[rel="stylesheet"]['+e+"]"}function Lv(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function J0(e,a,t,o){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=e.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Ma(a,"link",t),ha(a),e.head.appendChild(a))}function cn(e){return'[src="'+Ct(e)+'"]'}function Ms(e){return"script[async]"+e}function Eg(e,a,t){if(a.count++,a.instance===null)switch(a.type){case"style":var o=e.querySelector('style[data-href~="'+Ct(t.href)+'"]');if(o)return a.instance=o,ha(o),o;var r=Re({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ha(o),Ma(o,"style",r),$i(o,t.precedence,e),a.instance=o;case"stylesheet":r=tn(t.href);var l=e.querySelector(ks(r));if(l)return a.state.loading|=4,a.instance=l,ha(l),l;o=Lv(t),(r=Mt.get(r))&&tm(o,r),l=(e.ownerDocument||e).createElement("link"),ha(l);var n=l;return n._p=new Promise(function(s,i){n.onload=s,n.onerror=i}),Ma(l,"link",o),a.state.loading|=4,$i(l,t.precedence,e),a.instance=l;case"script":return l=cn(t.src),(r=e.querySelector(Ms(l)))?(a.instance=r,ha(r),r):(o=t,(r=Mt.get(l))&&(o=Re({},t),om(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),ha(r),Ma(r,"link",o),e.head.appendChild(r),a.instance=r);case"void":return null;default:throw Error(L(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,$i(o,t.precedence,e));return a.instance}function $i(e,a,t){for(var o=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,l=r,n=0;n<o.length;n++){var s=o[n];if(s.dataset.precedence===a)l=s;else if(l!==r)break}l?l.parentNode.insertBefore(e,l.nextSibling):(a=t.nodeType===9?t.head:t,a.insertBefore(e,a.firstChild))}function tm(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function om(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var eu=null;function Hg(e,a,t){if(eu===null){var o=new Map,r=eu=new Map;r.set(t,o)}else r=eu,o=r.get(t),o||(o=new Map,r.set(t,o));if(o.has(e))return o;for(o.set(e,null),t=t.getElementsByTagName(e),r=0;r<t.length;r++){var l=t[r];if(!(l[ys]||l[Ia]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var n=l.getAttribute(a)||"";n=e+n;var s=o.get(n);s?s.push(l):o.set(n,[l])}}return o}function Pg(e,a,t){e=e.ownerDocument||e,e.head.insertBefore(t,a==="title"?e.querySelector("head > title"):null)}function $0(e,a,t){if(t===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(e=a.disabled,typeof a.precedence=="string"&&e==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Cv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function eL(e,a,t,o){if(t.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var r=tn(o.href),l=a.querySelector(ks(r));if(l){a=l._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=Mu.bind(e),a.then(e,e)),t.state.loading|=4,t.instance=l,ha(l);return}l=a.ownerDocument||a,o=Lv(o),(r=Mt.get(r))&&tm(o,r),l=l.createElement("link"),ha(l);var n=l;n._p=new Promise(function(s,i){n.onload=s,n.onerror=i}),Ma(l,"link",o),t.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(t,a),(a=t.state.preload)&&(t.state.loading&3)===0&&(e.count++,t=Mu.bind(e),a.addEventListener("load",t),a.addEventListener("error",t))}}var gc=0;function aL(e,a){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(t){var o=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+a);0<e.imgBytes&&gc===0&&(gc=62500*O0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>gc?50:800)+a);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function Mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Au=null;function au(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Au=new Map,a.forEach(tL,e),Au=null,Mu.call(e))}function tL(e,a){if(!(a.state.loading&4)){var t=Au.get(e);if(t)var o=t.get(null);else{t=new Map,Au.set(e,t);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<r.length;l++){var n=r[l];(n.nodeName==="LINK"||n.getAttribute("media")!=="not all")&&(t.set(n.dataset.precedence,n),o=n)}o&&t.set(null,o)}r=a.instance,n=r.getAttribute("data-precedence"),l=t.get(n)||o,l===o&&t.set(null,r),t.set(n,r),this.count++,o=Mu.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),l?l.parentNode.insertBefore(r,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),a.state.loading|=4}}var ps={$$typeof:Co,Provider:null,Consumer:null,_currentValue:_r,_currentValue2:_r,_threadCount:0};function oL(e,a,t,o,r,l,n,s,i){this.tag=1,this.containerInfo=e,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=Fd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fd(0),this.hiddenUpdates=Fd(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=l,this.onRecoverableError=n,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=i,this.incompleteTransitions=new Map}function Sv(e,a,t,o,r,l,n,s,i,u,d,m){return e=new oL(e,a,t,n,i,u,d,m,s),a=1,l===!0&&(a|=24),l=ot(3,null,null,a),e.current=l,l.stateNode=e,a=Af(),a.refCount++,e.pooledCache=a,a.refCount++,l.memoizedState={element:o,isDehydrated:t,cache:a},zf(l),e}function Iv(e){return e?(e=El,e):El}function Tv(e,a,t,o,r,l){r=Iv(r),o.context===null?o.context=r:o.pendingContext=r,o=rr(a),o.payload={element:t},l=l===void 0?null:l,l!==null&&(o.callback=l),t=lr(e,o,a),t!==null&&(Ya(t,e,a),Qn(t,e,a))}function qg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function rm(e,a){qg(e,a),(e=e.alternate)&&qg(e,a)}function kv(e){if(e.tag===13||e.tag===31){var a=tl(e,67108864);a!==null&&Ya(a,e,67108864),rm(e,67108864)}}function Ug(e){if(e.tag===13||e.tag===31){var a=it();a=gf(a);var t=tl(e,a);t!==null&&Ya(t,e,a),rm(e,a)}}var Du=!0;function rL(e,a,t,o){var r=_.T;_.T=null;var l=ge.p;try{ge.p=2,lm(e,a,t,o)}finally{ge.p=l,_.T=r}}function lL(e,a,t,o){var r=_.T;_.T=null;var l=ge.p;try{ge.p=8,lm(e,a,t,o)}finally{ge.p=l,_.T=r}}function lm(e,a,t,o){if(Du){var r=df(o);if(r===null)mc(e,a,o,Nu,t),Fg(e,o);else if(sL(r,e,a,t,o))o.stopPropagation();else if(Fg(e,o),a&4&&-1<nL.indexOf(e)){for(;r!==null;){var l=ln(r);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var n=Ur(l.pendingLanes);if(n!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;n;){var i=1<<31-st(n);s.entanglements[1]|=i,n&=~i}lo(l),(pe&6)===0&&(wu=lt()+500,Ts(0,!1))}}break;case 31:case 13:s=tl(l,2),s!==null&&Ya(s,l,2),Vu(),rm(l,2)}if(l=df(o),l===null&&mc(e,a,o,Nu,t),l===r)break;r=l}r!==null&&o.stopPropagation()}else mc(e,a,o,null,t)}}function df(e){return e=xf(e),nm(e)}var Nu=null;function nm(e){if(Nu=null,e=Dl(e),e!==null){var a=bs(e);if(a===null)e=null;else{var t=a.tag;if(t===13){if(e=Yg(a),e!==null)return e;e=null}else if(t===31){if(e=Qg(a),e!==null)return e;e=null}else if(t===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return Nu=e,null}function Mv(e){switch(e){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(Yw()){case Jg:return 2;case $g:return 8;case nu:case Qw:return 32;case eh:return 268435456;default:return 32}default:return 32}}var cf=!1,ir=null,ur=null,dr=null,gs=new Map,hs=new Map,jo=[],nL="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 Fg(e,a){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":ur=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":gs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(a.pointerId)}}function Hn(e,a,t,o,r,l){return e===null||e.nativeEvent!==l?(e={blockedOn:a,domEventName:t,eventSystemFlags:o,nativeEvent:l,targetContainers:[r]},a!==null&&(a=ln(a),a!==null&&kv(a)),e):(e.eventSystemFlags|=o,a=e.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),e)}function sL(e,a,t,o,r){switch(a){case"focusin":return ir=Hn(ir,e,a,t,o,r),!0;case"dragenter":return ur=Hn(ur,e,a,t,o,r),!0;case"mouseover":return dr=Hn(dr,e,a,t,o,r),!0;case"pointerover":var l=r.pointerId;return gs.set(l,Hn(gs.get(l)||null,e,a,t,o,r)),!0;case"gotpointercapture":return l=r.pointerId,hs.set(l,Hn(hs.get(l)||null,e,a,t,o,r)),!0}return!1}function Av(e){var a=Dl(e.target);if(a!==null){var t=bs(a);if(t!==null){if(a=t.tag,a===13){if(a=Yg(t),a!==null){e.blockedOn=a,Sp(e.priority,function(){Ug(t)});return}}else if(a===31){if(a=Qg(t),a!==null){e.blockedOn=a,Sp(e.priority,function(){Ug(t)});return}}else if(a===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tu(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var t=df(e.nativeEvent);if(t===null){t=e.nativeEvent;var o=new t.constructor(t.type,t);Mc=o,t.target.dispatchEvent(o),Mc=null}else return a=ln(t),a!==null&&kv(a),e.blockedOn=t,!1;a.shift()}return!0}function Gg(e,a,t){tu(e)&&t.delete(a)}function iL(){cf=!1,ir!==null&&tu(ir)&&(ir=null),ur!==null&&tu(ur)&&(ur=null),dr!==null&&tu(dr)&&(dr=null),gs.forEach(Gg),hs.forEach(Gg)}function Ui(e,a){e.blockedOn===a&&(e.blockedOn=null,cf||(cf=!0,ia.unstable_scheduleCallback(ia.unstable_NormalPriority,iL)))}var Fi=null;function _g(e){Fi!==e&&(Fi=e,ia.unstable_scheduleCallback(ia.unstable_NormalPriority,function(){Fi===e&&(Fi=null);for(var a=0;a<e.length;a+=3){var t=e[a],o=e[a+1],r=e[a+2];if(typeof o!="function"){if(nm(o||t)===null)continue;break}var l=ln(t);l!==null&&(e.splice(a,3),a-=3,Vc(l,{pending:!0,data:r,method:t.method,action:o},o,r))}}))}function on(e){function a(i){return Ui(i,e)}ir!==null&&Ui(ir,e),ur!==null&&Ui(ur,e),dr!==null&&Ui(dr,e),gs.forEach(a),hs.forEach(a);for(var t=0;t<jo.length;t++){var o=jo[t];o.blockedOn===e&&(o.blockedOn=null)}for(;0<jo.length&&(t=jo[0],t.blockedOn===null);)Av(t),t.blockedOn===null&&jo.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(o=0;o<t.length;o+=3){var r=t[o],l=t[o+1],n=r[Qa]||null;if(typeof l=="function")n||_g(t);else if(n){var s=null;if(l&&l.hasAttribute("formAction")){if(r=l,n=l[Qa]||null)s=n.formAction;else if(nm(r)!==null)continue}else s=n.action;typeof s=="function"?t[o+1]=s:(t.splice(o,3),o-=3),_g(t)}}}function Dv(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(n){return r=n})},focusReset:"manual",scroll:"manual"})}function a(){r!==null&&(r(),r=null),o||setTimeout(t,20)}function t(){if(!o&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(t,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),r!==null&&(r(),r=null)}}}function sm(e){this._internalRoot=e}Yu.prototype.render=sm.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(L(409));var t=a.current,o=it();Tv(t,o,e,a,null,null)};Yu.prototype.unmount=sm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Tv(e.current,2,null,e,null,null),Vu(),a[rn]=null}};function Yu(e){this._internalRoot=e}Yu.prototype.unstable_scheduleHydration=function(e){if(e){var a=lh();e={blockedOn:null,target:e,priority:a};for(var t=0;t<jo.length&&a!==0&&a<jo[t].priority;t++);jo.splice(t,0,e),t===0&&Av(e)}};var Vg=Xg.version;if(Vg!=="19.2.4")throw Error(L(527,Vg,"19.2.4"));ge.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Uw(a),e=e!==null?Kg(e):null,e=e===null?null:e.stateNode,e};var uL={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pn.isDisabled&&Pn.supportsFiber))try{vs=Pn.inject(uL),nt=Pn}catch{}var Pn;Qu.createRoot=function(e,a){if(!Zg(e))throw Error(L(299));var t=!1,o="",r=yb,l=Lb,n=Cb;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(l=a.onCaughtError),a.onRecoverableError!==void 0&&(n=a.onRecoverableError)),a=Sv(e,1,!1,null,null,t,o,null,r,l,n,Dv),e[rn]=a.current,am(e),new sm(a)};Qu.hydrateRoot=function(e,a,t){if(!Zg(e))throw Error(L(299));var o=!1,r="",l=yb,n=Lb,s=Cb,i=null;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.formState!==void 0&&(i=t.formState)),a=Sv(e,1,!0,a,t??null,o,r,i,l,n,s,Dv),a.context=Iv(null),t=a.current,o=it(),o=gf(o),r=rr(o),r.callback=null,lr(t,r,o),t=o,a.current.lanes=t,ws(a,t),lo(a),e[rn]=a.current,am(e),new Yu(a)};Qu.version="19.2.4"});var Rv=Jt((iI,Bv)=>{"use strict";function zv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zv)}catch(e){console.error(e)}}zv(),Bv.exports=Nv()});var _v=Jt(Wu=>{"use strict";var mC=Symbol.for("react.transitional.element"),pC=Symbol.for("react.fragment");function Gv(e,a,t){var o=null;if(t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),"key"in a){t={};for(var r in a)r!=="key"&&(t[r]=a[r])}else t=a;return a=t.ref,{$$typeof:mC,type:e,key:o,ref:a!==void 0?a:null,props:t}}Wu.Fragment=pC;Wu.jsx=Gv;Wu.jsxs=Gv});var T=Jt((Ok,Vv)=>{"use strict";Vv.exports=_v()});var iw=y(ve(),1),uw=y(Rv(),1);var ju=y(ve());var Ku=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var Ov=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Ev=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase());var im=e=>{let a=Ev(e);return a.charAt(0).toUpperCase()+a.slice(1)};var As=y(ve());var Hv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Pv=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var qv=(0,As.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:n,...s},i)=>(0,As.createElement)("svg",{ref:i,...Hv,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Ku("lucide",r),...!l&&!Pv(s)&&{"aria-hidden":"true"},...s},[...n.map(([u,d])=>(0,As.createElement)(u,d)),...Array.isArray(l)?l:[l]]));var S=(e,a)=>{let t=(0,ju.forwardRef)(({className:o,...r},l)=>(0,ju.createElement)(qv,{ref:l,iconNode:a,className:Ku(`lucide-${Ov(im(e))}`,`lucide-${e}`,o),...r}));return t.displayName=im(e),t};var dL=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],Ds=S("app-window",dL);var cL=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],br=S("arrow-right",cL);var fL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ns=S("bell",fL);var mL=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],zs=S("bookmark",mL);var pL=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],vr=S("chart-column",pL);var gL=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rl=S("check",gL);var hL=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ua=S("chevron-down",hL);var bL=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ft=S("chevron-right",bL);var vL=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Bs=S("chevrons-up-down",vL);var xL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Gt=S("circle-alert",xL);var wL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],xr=S("circle-check",wL);var yL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_t=S("circle-question-mark",yL);var LL=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wr=S("circle-user-round",LL);var CL=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],ll=S("clipboard",CL);var SL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],fn=S("clock",SL);var IL=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],yr=S("code-xml",IL);var TL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Lr=S("columns-2",TL);var kL=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Rs=S("credit-card",kL);var ML=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Cr=S("ellipsis",ML);var AL=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Os=S("external-link",AL);var DL=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],Es=S("fold-vertical",DL);var NL=[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]],Hs=S("gallery-horizontal-end",NL);var zL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ps=S("globe",zL);var BL=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],qs=S("heart",BL);var RL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Sr=S("info",RL);var OL=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Us=S("layout-template",OL);var EL=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Fs=S("loader",EL);var HL=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Gs=S("menu",HL);var PL=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ir=S("message-circle-question-mark",PL);var qL=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],_s=S("message-square",qL);var UL=[["path",{d:"M5 12h14",key:"1ays0h"}]],Vs=S("minus",UL);var FL=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],nl=S("moon",FL);var GL=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],mn=S("mouse-pointer-click",GL);var _L=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Tr=S("panel-left-open",_L);var VL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Xs=S("panel-right",VL);var XL=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],no=S("plus",XL);var ZL=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],kr=S("rectangle-ellipsis",ZL);var YL=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],sl=S("refresh-cw",YL);var QL=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],il=S("search",QL);var KL=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Aa=S("settings",KL);var jL=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Zs=S("share-2",jL);var WL=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Ys=S("sliders-horizontal",WL);var JL=[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],Mr=S("square-dashed",JL);var $L=[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]],Qs=S("square-stack",$L);var eC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ks=S("square",eC);var aC=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ul=S("sun",aC);var tC=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],js=S("tag",tC);var oC=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],pn=S("text-cursor-input",oC);var rC=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],Ar=S("text-wrap",rC);var lC=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Ws=S("toggle-left",lC);var nC=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Js=S("trash-2",nC);var sC=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],$s=S("trending-down",sC);var iC=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Vt=S("triangle-alert",iC);var uC=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],gn=S("users",uC);var dC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],At=S("x",dC);var cC=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ei=S("zap",cC);function Uv(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=Uv(e[a]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function I(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=Uv(e))&&(o&&(o+=" "),o+=a);return o}var Fv={};var J=y(T(),1),gC={xs:12,sm:14,md:16,lg:24};function hC({px:e}){let t=Math.PI*2*9;return(0,J.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[(0,J.jsx)("circle",{cx:"12",cy:"12",r:9,stroke:"currentColor",strokeWidth:"3",opacity:"0.2"}),(0,J.jsx)("circle",{cx:"12",cy:"12",r:9,stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:`${t*.28} ${t*.72}`})]})}function bC({px:e}){return(0,J.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,J.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",opacity:"0.9"}),(0,J.jsx)("path",{d:"M12 2a10 10 0 0 0-7.07 2.93",opacity:"0.2"}),(0,J.jsx)("path",{d:"M4.93 4.93A10 10 0 0 0 2 12",opacity:"0.2"}),(0,J.jsx)("path",{d:"M2 12a10 10 0 0 0 2.93 7.07",opacity:"0.2"}),(0,J.jsx)("path",{d:"M4.93 19.07A10 10 0 0 0 12 22",opacity:"0.2"}),(0,J.jsx)("path",{d:"M12 22a10 10 0 0 0 7.07-2.93",opacity:"0.2"}),(0,J.jsx)("path",{d:"M19.07 19.07A10 10 0 0 0 22 12",opacity:"0.2"})]})}function vC({px:e}){return(0,J.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[0,1,2,3,4,5,6,7].map(t=>{let o=t/8*360,r=.15+t/8*.85;return(0,J.jsx)("circle",{cx:"12",cy:"3.5",r:"1.8",fill:"currentColor",opacity:r,transform:`rotate(${o} 12 12)`},t)})})}function xC({px:e}){return(0,J.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[0,1,2,3].map(a=>(0,J.jsxs)("rect",{x:3+a*5.5,y:"4",width:"3",height:"16",rx:"1.5",fill:"currentColor",opacity:"0.3",children:[(0,J.jsx)("animate",{attributeName:"opacity",values:"0.3;1;0.3",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"}),(0,J.jsx)("animate",{attributeName:"height",values:"16;8;16",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"}),(0,J.jsx)("animate",{attributeName:"y",values:"4;8;4",dur:"1s",begin:`${a*.15}s`,repeatCount:"indefinite"})]},a))})}function wC({px:e}){let a=e*.14,t=e*.33,o=e/2-t,r=e/2,l=e/2+t,n=e/2;return(0,J.jsx)("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,children:[o,r,l].map((s,i)=>(0,J.jsxs)("circle",{cx:s,cy:n,r:a,fill:"currentColor",opacity:"0.4",children:[(0,J.jsx)("animate",{attributeName:"cy",values:`${n};${n-e*.25};${n}`,dur:"0.6s",begin:`${i*.12}s`,repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.2 1;0.4 0 0.2 1"}),(0,J.jsx)("animate",{attributeName:"opacity",values:"0.4;1;0.4",dur:"0.6s",begin:`${i*.12}s`,repeatCount:"indefinite"})]},i))})}function yC({px:e}){return(0,J.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[(0,J.jsxs)("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",opacity:"0",children:[(0,J.jsx)("animate",{attributeName:"r",values:"4;10;4",dur:"1.2s",repeatCount:"indefinite"}),(0,J.jsx)("animate",{attributeName:"opacity",values:"0.8;0.1;0.8",dur:"1.2s",repeatCount:"indefinite"})]}),(0,J.jsx)("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",opacity:"0.7"})]})}function LC({px:e}){return(0,J.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",children:[(0,J.jsx)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.15"}),(0,J.jsx)("circle",{cx:"12",cy:"4",r:"2.2",fill:"currentColor",children:(0,J.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"0.9s",repeatCount:"indefinite"})}),(0,J.jsx)("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor",opacity:"0.5",children:(0,J.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"-360 12 12",dur:"0.9s",repeatCount:"indefinite"})})]})}function CC({px:e}){let a=e*.14,t=e*.33,o=e/2-t,r=e/2,l=e/2+t,n=e/2;return(0,J.jsx)("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,children:[o,r,l].map((s,i)=>(0,J.jsx)("circle",{cx:s,cy:n,r:a,fill:"currentColor",opacity:"0.25",children:(0,J.jsx)("animate",{attributeName:"opacity",values:"0.25;1;0.25",dur:"0.9s",begin:`${i*.2}s`,repeatCount:"indefinite"})},i))})}var SC={ring:hC,arc:bC,dots:vC,bars:xC,bounce:wC,pulse:yC,orbit:LC,flow:CC},IC=new Set(["ring","arc","dots"]);function qa({variant:e="ring",size:a="md",className:t,label:o}){let r=typeof a=="number"?a:gC[a],l=SC[e];return(0,J.jsx)("span",{"aria-hidden":!o,"aria-label":o,role:o?"img":void 0,"data-animate":IC.has(e)?"spin":void 0,className:I("owo-spinner",Fv.root,t),children:(0,J.jsx)(l,{px:r})})}var hn={};var Dt=y(T(),1);function kC({className:e}){return I("owo-button",hn.root,e)}function B(e){let{variant:a="secondary",size:t="md",loading:o=!1,leadingIcon:r,trailingIcon:l,className:n,children:s,...i}=e,u=(0,Dt.jsxs)(Dt.Fragment,{children:[o?(0,Dt.jsx)("span",{className:hn.icon,children:(0,Dt.jsx)(qa,{size:t==="xs"?"xs":t==="sm"?"sm":t==="xl"?"lg":"md"})}):r?(0,Dt.jsx)("span",{className:hn.icon,children:r}):null,(0,Dt.jsx)("span",{className:hn.label,children:s}),!o&&l?(0,Dt.jsx)("span",{className:hn.icon,children:l}):null]}),d=kC({variant:a,size:t,loading:o,className:n});if("href"in e&&e.href){let{href:c,...g}=i;return(0,Dt.jsx)("a",{href:c,"data-variant":a,"data-size":t,"data-loading":o?"true":void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,className:d,onClick:o?v=>v.preventDefault():void 0,...g,children:u})}let m=i;return(0,Dt.jsx)("button",{type:m.type??"button","data-variant":a,"data-size":t,"data-loading":o?"true":void 0,disabled:m.disabled||o,className:d,...m,children:u})}var um=[],dm=[{group:"actions",componentId:"button"},{group:"actions",componentId:"dropdown-menu"},{group:"actions",componentId:"icon-button"},{group:"forms",componentId:"input"},{group:"forms",componentId:"field"},{group:"forms",componentId:"select"},{group:"forms",componentId:"segmented-control"},{group:"forms",componentId:"switch"},{group:"forms",componentId:"textarea"},{group:"forms",componentId:"collapsible"},{group:"forms",componentId:"tabs"},{group:"feedback",componentId:"badge"},{group:"feedback",componentId:"status-notice"},{group:"feedback",componentId:"empty-state"},{group:"feedback",componentId:"spinner"},{group:"feedback",componentId:"skeleton"},{group:"feedback",componentId:"dialog"},{group:"feedback",componentId:"toast"},{group:"feedback",componentId:"avatar"},{group:"feedback",componentId:"tooltip"},{group:"layout",componentId:"drawer"},{group:"layout",componentId:"panel"}];function Y(e){um.push(e)}function cm(e,a){return um.find(t=>t.group===e&&t.componentId===a)}function dl(){let e={actions:[],forms:[],feedback:[],layout:[]};for(let a of um)e[a.group].push(a);return e}var ai={actions:"Actions",forms:"Forms",feedback:"Feedback",layout:"Layout"},cl=["actions","forms","feedback","layout"];var va={};var fe=y(T(),1);Y({group:"actions",componentId:"button",componentName:"Button",description:"Primary action trigger. Supports variants, sizes, icons, loading, and disabled states.",defaultScale:1.25,props:[{name:"variant",type:"'primary' | 'secondary' | 'ghost' | 'danger'",default:"'primary'",description:"Visual style variant."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Button size."},{name:"loading",type:"boolean",default:"false",description:"Shows loading state and sets cursor-wait."},{name:"disabled",type:"boolean",default:"false",description:"Disables the button."},{name:"children",type:"string",default:"'Get Started'",description:"Button label text."},{name:"leadingIcon",type:"ReactNode",description:"Icon rendered before children."},{name:"trailingIcon",type:"ReactNode",description:"Icon rendered after children."},{name:"href",type:"string",description:"When set, renders as a Next.js Link."}],renderPlayground:e=>(0,fe.jsx)(B,{variant:e.variant,size:e.size,loading:!!e.loading,disabled:!!e.disabled,children:e.children||"Get Started"}),stories:[{id:"variants",title:"Variants",description:"primary / secondary / ghost / danger",source:`<Button variant="primary">Primary</Button>
10
10
  <Button variant="secondary">Secondary</Button>
11
11
  <Button variant="ghost">Ghost</Button>
12
- <Button variant="danger">Danger</Button>`,render:()=>(0,ue.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ue.jsx)(M,{variant:"primary",children:"Primary"}),(0,ue.jsx)(M,{variant:"secondary",children:"Secondary"}),(0,ue.jsx)(M,{variant:"ghost",children:"Ghost"}),(0,ue.jsx)(M,{variant:"danger",children:"Danger"})]})},{id:"sizes",title:"Sizes",description:"sm / md",render:()=>(0,ue.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ue.jsx)(M,{size:"sm",children:"Small"}),(0,ue.jsx)(M,{size:"md",children:"Medium"})]})},{id:"with-icons",title:"With Icons",description:"leadingIcon / trailingIcon",render:()=>(0,ue.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ue.jsx)(M,{variant:"primary",leadingIcon:(0,ue.jsx)(Ht,{size:16}),children:"Create"}),(0,ue.jsx)(M,{variant:"secondary",trailingIcon:(0,ue.jsx)(jo,{size:16}),children:"Next"}),(0,ue.jsx)(M,{variant:"ghost",leadingIcon:(0,ue.jsx)(Ht,{size:16}),trailingIcon:(0,ue.jsx)(jo,{size:16}),children:"Both"})]})},{id:"loading-disabled",title:"Loading & Disabled",render:()=>(0,ue.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ue.jsx)(M,{variant:"primary",loading:!0,children:"Saving\u2026"}),(0,ue.jsx)(M,{variant:"secondary",loading:!0,children:"Loading"}),(0,ue.jsx)(M,{variant:"secondary",disabled:!0,children:"Disabled"}),(0,ue.jsx)(M,{variant:"danger",disabled:!0,children:"Disabled Danger"})]})},{id:"all-variants-sm",title:"All Variants (sm)",render:()=>(0,ue.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,ue.jsx)(M,{variant:"primary",size:"sm",children:"Primary"}),(0,ue.jsx)(M,{variant:"secondary",size:"sm",children:"Secondary"}),(0,ue.jsx)(M,{variant:"ghost",size:"sm",children:"Ghost"}),(0,ue.jsx)(M,{variant:"danger",size:"sm",children:"Danger"})]})}]});var Ff=y(C(),1);function ee({variant:e="ghost",size:a="md",label:t,icon:o,className:r,...s}){let l=D("owo-icon-button","inline-flex items-center justify-center rounded-[var(--owo-cmp-control-radius-md)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",a==="sm"?"h-7 w-7":"h-8 w-8",r);if("href"in s&&s.href){let{href:i,...u}=s;return(0,Ff.jsx)("a",{href:i,"aria-label":t,title:u.title??t,"data-variant":e,"data-size":a,className:l,...u,children:o})}let n=s;return(0,Ff.jsx)("button",{type:n.type??"button","aria-label":t,title:n.title??t,"data-variant":e,"data-size":a,className:l,...n,children:o})}var me=y(C(),1);q({group:"actions",componentId:"icon-button",componentName:"IconButton",description:"Icon-only action button. Supports ghost/subtle variants, sm/md sizes.",props:[{name:"variant",type:"'ghost' | 'subtle'",default:"'ghost'",description:"Visual style variant."},{name:"size",type:"'sm' | 'md'",default:"'md'",description:"Button size."},{name:"label",type:"string",description:"Accessible label used for aria-label and title fallback."},{name:"icon",type:"ReactNode",description:"Icon content rendered inside the button."},{name:"href",type:"string",description:"When set, renders as a Next.js Link instead of a button."},{name:"disabled",type:"boolean",default:"false",description:"Disables button interaction when rendered as a button."}],renderPlayground:e=>(0,me.jsx)(ee,{variant:e.variant,size:e.size,disabled:!!e.disabled,label:"Settings",icon:(0,me.jsx)(za,{size:e.size==="sm"?14:16})}),stories:[{id:"variants",title:"Variants",description:"ghost / subtle",render:()=>(0,me.jsxs)("div",{className:"flex items-center gap-3",children:[(0,me.jsx)(ee,{variant:"ghost",label:"Close",icon:(0,me.jsx)(po,{size:16})}),(0,me.jsx)(ee,{variant:"subtle",label:"Settings",icon:(0,me.jsx)(za,{size:16})})]})},{id:"sizes",title:"Sizes",description:"sm / md",render:()=>(0,me.jsxs)("div",{className:"flex items-center gap-3",children:[(0,me.jsx)(ee,{size:"sm",label:"Small",icon:(0,me.jsx)(po,{size:14})}),(0,me.jsx)(ee,{size:"md",label:"Medium",icon:(0,me.jsx)(po,{size:16})})]})},{id:"use-cases",title:"Use Cases",render:()=>(0,me.jsxs)("div",{className:"flex items-center gap-3",children:[(0,me.jsx)(ee,{label:"Close",icon:(0,me.jsx)(po,{size:16})}),(0,me.jsx)(ee,{label:"Settings",icon:(0,me.jsx)(za,{size:16})}),(0,me.jsx)(ee,{label:"Delete",icon:(0,me.jsx)(zn,{size:16})}),(0,me.jsx)(ee,{label:"Navigate",icon:(0,me.jsx)(Er,{size:16})})]})},{id:"disabled",title:"Disabled",render:()=>(0,me.jsxs)("div",{className:"flex items-center gap-3",children:[(0,me.jsx)(ee,{label:"Disabled ghost",icon:(0,me.jsx)(po,{size:16}),disabled:!0}),(0,me.jsx)(ee,{variant:"subtle",label:"Disabled subtle",icon:(0,me.jsx)(za,{size:16}),disabled:!0})]})}]});var Gf=y(C(),1);function Du(e){return D("owo-input w-full rounded-[var(--owo-cmp-control-radius-lg)] px-3 py-2 text-sm placeholder:text-[var(--field-placeholder)] focus:outline-none focus:ring-1",e)}function Ye(e){let{className:a,tone:t="default",...o}=e;return e.as==="textarea"?(0,Gf.jsx)("textarea",{"data-tone":t,className:Du(a),...o}):(0,Gf.jsx)("input",{"data-tone":t,className:Du(a),...o})}var pt=y(C(),1);q({group:"forms",componentId:"input",componentName:"Input",description:'Single-line text input. Legacy `as="textarea"` support remains available, but new multiline usage should prefer the dedicated Textarea primitive.',props:[{name:"as",type:"'input' | 'textarea'",default:"'input'",description:"Chooses which native form element to render."},{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone for neutral or warning emphasis."},{name:"className",type:"string",description:"Additional CSS classes for the rendered element."},{name:"placeholder",type:"string",description:"Placeholder text for input or textarea variants."},{name:"rows",type:"number",description:'Textarea row count when `as="textarea"`.'}],renderPlayground:e=>(0,pt.jsx)("div",{className:"max-w-xs",children:(0,pt.jsx)(Ye,{as:e.as,tone:e.tone,placeholder:"Type something\u2026"})}),stories:[{id:"text-input",title:"Text Input",render:()=>(0,pt.jsxs)("div",{className:"max-w-xs space-y-3",children:[(0,pt.jsx)(Ye,{"aria-label":"Default input",name:"demo-default",autoComplete:"off",placeholder:"e.g., hello world\u2026"}),(0,pt.jsx)(Ye,{"aria-label":"With value",name:"demo-value",autoComplete:"off",placeholder:"e.g., hello world\u2026",defaultValue:"Hello world"})]})},{id:"textarea",title:"Textarea",render:()=>(0,pt.jsx)("div",{className:"max-w-sm",children:(0,pt.jsx)(Ye,{as:"textarea","aria-label":"Textarea",placeholder:"Write something\u2026",rows:3})})},{id:"tones",title:"Tones",description:"default / warning",render:()=>(0,pt.jsxs)("div",{className:"max-w-xs space-y-3",children:[(0,pt.jsx)(Ye,{tone:"default","aria-label":"Default tone",name:"demo-tone-default",autoComplete:"off",placeholder:"Default tone\u2026"}),(0,pt.jsx)(Ye,{tone:"warning","aria-label":"Warning tone",name:"demo-tone-warning",autoComplete:"off",placeholder:"Warning tone\u2026"})]})}]});var hb=y(de(),1);var Pn=y(C(),1);function mt({label:e,help:a,htmlFor:t,children:o,className:r,...s}){return(0,Pn.jsxs)("div",{className:D("owo-field block",r),...s,children:[(0,Pn.jsx)("label",{htmlFor:t,className:"owo-field__label mb-1 block text-xs",children:e}),o,a?(0,Pn.jsx)("span",{className:"owo-field__help mt-1 block text-xs",children:a}):null]})}var ma=y(de(),1),mo=y(C(),1);function Je({value:e,onChange:a,options:t,placeholder:o="Select\u2026",size:r="md",tone:s="default",disabled:l=!1,className:n,ariaLabel:i,renderValue:u,renderOption:c}){let[d,p]=(0,ma.useState)(!1),[f,b]=(0,ma.useState)(-1),x=(0,ma.useRef)(null),k=(0,ma.useRef)(null),m=(0,ma.useId)(),g=t.find(A=>A.value===e),w=(0,ma.useMemo)(()=>t.reduce((A,P,Re)=>(P.disabled||A.push(Re),A),[]),[t]),v=(0,ma.useCallback)(()=>{if(l||t.length===0)return;p(!0);let A=t.findIndex(P=>P.value===e);b(A>=0?A:w[0]??-1)},[l,t,e,w]),I=(0,ma.useCallback)(()=>{p(!1),b(-1)},[]),N=(0,ma.useCallback)(A=>{A.disabled||(a(A.value),I())},[a,I]);(0,ma.useEffect)(()=>{if(!d)return;function A(P){x.current&&!x.current.contains(P.target)&&I()}return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[d,I]),(0,ma.useEffect)(()=>{if(!d||f<0)return;k.current?.children[f]?.scrollIntoView({block:"nearest"})},[d,f]);function T(A){if(!l)switch(A.key){case"Enter":case" ":{A.preventDefault(),d?f>=0&&t[f]&&!t[f].disabled&&N(t[f]):v();break}case"ArrowDown":{if(A.preventDefault(),!d)v();else{let P=w.indexOf(f),Re=w[P+1];Re!==void 0&&b(Re)}break}case"ArrowUp":{if(A.preventDefault(),!d)v();else{let P=w.indexOf(f),Re=w[P-1];Re!==void 0&&b(Re)}break}case"Escape":{d&&(A.preventDefault(),I());break}case"Tab":{d&&I();break}}}let R=e!==""&&g,O=u?u({open:d,placeholder:o,selectedOption:g}):(0,mo.jsx)("span",{className:D("truncate",!R&&"owo-select__placeholder"),children:R?g.label:o});return(0,mo.jsxs)("div",{ref:x,"data-state":d?"open":"closed","data-disabled":l||void 0,"data-size":r,"data-tone":s,className:D("owo-select relative inline-block",n),children:[(0,mo.jsxs)("button",{type:"button",role:"combobox","aria-expanded":d,"aria-haspopup":"listbox","aria-controls":m,"aria-label":i,"aria-activedescendant":d&&f>=0?`${m}-opt-${f}`:void 0,"data-state":d?"open":"closed","data-disabled":l||void 0,"data-tone":s,"data-size":r,"data-open":d||void 0,"data-has-value":R||void 0,disabled:l,className:D("owo-select__trigger flex w-full items-center justify-between gap-2 rounded-[var(--owo-cmp-control-radius-lg)] text-left transition-colors focus:outline-none",r==="sm"?"min-h-7 px-2 py-1 text-xs":"min-h-9 px-3 py-2 text-sm"),onClick:()=>d?I():v(),onKeyDown:T,children:[O,(0,mo.jsx)("svg",{"aria-hidden":"true",className:D("owo-select__chevron h-3.5 w-3.5 shrink-0 transition-transform",d&&"rotate-180"),viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,mo.jsx)("path",{d:"M4 6l4 4 4-4"})})]}),d&&(0,mo.jsx)("ul",{ref:k,id:m,role:"listbox","aria-label":i,"data-state":"open",className:D("owo-select__dropdown absolute z-[var(--owo-cmp-z-dropdown)] mt-1 max-h-60 w-full overflow-auto rounded-[var(--owo-cmp-control-radius-lg)] py-1 ring-1",r==="sm"?"text-xs":"text-sm"),children:t.map((A,P)=>(0,mo.jsx)("li",{id:`${m}-opt-${P}`,role:"option","aria-selected":A.value===e,"aria-disabled":A.disabled||void 0,"data-state":A.value===e?"selected":P===f?"highlighted":"idle","data-focused":P===f||void 0,"data-selected":A.value===e||void 0,"data-disabled":A.disabled||void 0,"data-highlighted":P===f||void 0,className:D("owo-select__option cursor-default select-none px-3 py-1.5 transition-colors",A.disabled&&"cursor-not-allowed opacity-50"),onClick:()=>N(A),onMouseEnter:()=>!A.disabled&&b(P),children:c?c({option:A,index:P,selected:A.value===e,highlighted:P===f}):A.label},A.value))})]})}var Oa=y(C(),1);function XL(){let[e,a]=(0,hb.useState)("");return(0,Oa.jsx)("div",{className:"max-w-xs pb-36",children:(0,Oa.jsx)(mt,{label:"Category",htmlFor:"sb-category",children:(0,Oa.jsx)(Je,{value:e,onChange:a,options:[{value:"tech",label:"Technology"},{value:"design",label:"Design"},{value:"other",label:"Other"}],placeholder:"Select a category",ariaLabel:"Category"})})})}q({group:"forms",componentId:"field",componentName:"Field",description:"Form field wrapper with label and optional help text.",props:[{name:"label",type:"ReactNode",description:"Visible field label rendered above the control."},{name:"help",type:"ReactNode",description:"Optional helper text rendered below the control."},{name:"htmlFor",type:"string",description:"Associates the label with the inner form control id."},{name:"children",type:"ReactNode",description:"Form control content, such as Input or Select."}],stories:[{id:"basic",title:"Basic Field",render:()=>(0,Oa.jsx)("div",{className:"max-w-xs",children:(0,Oa.jsx)(mt,{label:"Username",htmlFor:"sb-username",children:(0,Oa.jsx)(Ye,{id:"sb-username",name:"username",autoComplete:"username",placeholder:"Enter username"})})})},{id:"with-help",title:"With Help Text",render:()=>(0,Oa.jsx)("div",{className:"max-w-xs",children:(0,Oa.jsx)(mt,{label:"Email",htmlFor:"sb-email",help:"We'll never share your email.",children:(0,Oa.jsx)(Ye,{id:"sb-email",type:"email",name:"email",autoComplete:"email",spellCheck:!1,placeholder:"you@example.com"})})})},{id:"with-textarea",title:"With Textarea",render:()=>(0,Oa.jsx)("div",{className:"max-w-sm",children:(0,Oa.jsx)(mt,{label:"Bio",htmlFor:"sb-bio",help:"Brief description about yourself.",children:(0,Oa.jsx)(Ye,{as:"textarea",id:"sb-bio",name:"bio",autoComplete:"off",placeholder:"Tell us about yourself\u2026",rows:3})})})},{id:"with-select",title:"With Select",render:()=>(0,Oa.jsx)(XL,{})}]});var Ks=y(de(),1);var $e=y(C(),1);function ZL(){let[e,a]=(0,Ks.useState)("");return(0,$e.jsx)("div",{className:"max-w-xs pb-44",children:(0,$e.jsx)(Je,{value:e,onChange:a,options:[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"},{value:"dragonfruit",label:"Dragonfruit"}],placeholder:"Choose a fruit\u2026",ariaLabel:"Fruit select"})})}function YL(){let[e,a]=(0,Ks.useState)("apple"),[t,o]=(0,Ks.useState)("apple"),r=[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"}];return(0,$e.jsxs)("div",{className:"flex max-w-xs flex-col gap-3 pb-36",children:[(0,$e.jsx)(Je,{value:e,onChange:a,options:[...r],size:"sm",ariaLabel:"Small select"}),(0,$e.jsx)(Je,{value:t,onChange:o,options:[...r],size:"md",ariaLabel:"Medium select"})]})}function jL(){let[e,a]=(0,Ks.useState)("a"),[t,o]=(0,Ks.useState)("a"),r=[{value:"a",label:"Option A"},{value:"b",label:"Option B"}];return(0,$e.jsxs)("div",{className:"flex max-w-xs flex-col gap-3 pb-28",children:[(0,$e.jsx)(Je,{value:e,onChange:a,options:[...r],tone:"default",ariaLabel:"Default tone"}),(0,$e.jsx)(Je,{value:t,onChange:o,options:[...r],tone:"warning",ariaLabel:"Warning tone"})]})}function QL(){return(0,$e.jsxs)("div",{className:"flex max-w-xs flex-col gap-3 pb-28",children:[(0,$e.jsx)(Je,{value:"",onChange:()=>{},options:[{value:"a",label:"Option A"}],disabled:!0,placeholder:"Disabled",ariaLabel:"Disabled select"}),(0,$e.jsx)(Je,{value:"",onChange:()=>{},options:[{value:"a",label:"Enabled"},{value:"b",label:"Disabled option",disabled:!0},{value:"c",label:"Also enabled"}],placeholder:"Has disabled option",ariaLabel:"Disabled option select"})]})}q({group:"forms",componentId:"select",componentName:"Select",description:"Custom dropdown select with keyboard navigation and design-system styling.",props:[{name:"value",type:"string",description:"Currently selected value."},{name:"onChange",type:"(value: T) => void",description:"Callback when selection changes."},{name:"options",type:"SelectOption<T>[]",description:"Array of { value, label, disabled? }."},{name:"placeholder",type:"string",default:"'Select\u2026'",description:"Placeholder text when no value is selected."},{name:"size",type:"'sm' | 'md'",default:"'md'",description:"Trigger size."},{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone."},{name:"disabled",type:"boolean",default:"false",description:"Disables the entire select."},{name:"ariaLabel",type:"string",description:"Accessible label for the trigger button."}],renderPlayground:(e,a)=>(0,$e.jsx)("div",{className:"max-w-xs pb-36",children:(0,$e.jsx)(Je,{value:String(e.value??""),onChange:t=>a("value",t),options:[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"}],size:e.size,tone:e.tone,disabled:!!e.disabled,ariaLabel:"Playground select"})}),stories:[{id:"default",title:"Default",render:()=>(0,$e.jsx)(ZL,{})},{id:"sizes",title:"Sizes",description:"sm / md",render:()=>(0,$e.jsx)(YL,{})},{id:"tones",title:"Tones",description:"default / warning",render:()=>(0,$e.jsx)(jL,{})},{id:"disabled",title:"Disabled",description:"Whole component disabled & individual option disabled.",render:()=>(0,$e.jsx)(QL,{})}]});var Xf=y(de(),1);var Vf=y(C(),1);function Ws({value:e,onChange:a,options:t,size:o="sm",className:r,ariaLabel:s}){return(0,Vf.jsx)("div",{role:"tablist","aria-label":s,className:D("owo-segmented-control inline-flex rounded-[var(--owo-cmp-control-radius-md)] p-0.5 ring-1",o==="sm"?"text-xs":"text-sm",r),children:t.map(l=>{let n=l.value===e;return(0,Vf.jsx)("button",{type:"button",role:"tab","aria-selected":n,disabled:l.disabled,"data-active":n?"true":void 0,className:D("owo-segmented-control__item rounded-[var(--owo-cmp-control-radius-sm)] font-medium transition-colors focus:outline-none focus-visible:ring-1 focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",o==="sm"?"px-2.5 py-1":"px-3 py-1.5"),onClick:()=>a(l.value),children:l.label},l.value)})})}var lr=y(C(),1);function wb({size:e,label:a}){let[t,o]=(0,Xf.useState)("a");return(0,lr.jsx)(Ws,{value:t,onChange:o,options:[{value:"a",label:"Alpha"},{value:"b",label:"Beta"},{value:"c",label:"Gamma"}],size:e,ariaLabel:a})}function KL(){let[e,a]=(0,Xf.useState)("on");return(0,lr.jsx)(Ws,{value:e,onChange:a,options:[{value:"on",label:"On"},{value:"off",label:"Off"},{value:"auto",label:"Auto",disabled:!0}],ariaLabel:"Mode with disabled"})}q({group:"forms",componentId:"segmented-control",componentName:"SegmentedControl",description:"Tab-like toggle for mutually exclusive options.",props:[{name:"value",type:"T extends string",description:"Currently selected option value."},{name:"onChange",type:"(value: T) => void",description:"Called when a new option is selected."},{name:"options",type:"Array<{ value: T; label: string; disabled?: boolean }>",description:"Selectable option list."},{name:"size",type:"'sm' | 'md'",default:"'sm'",description:"Control size."},{name:"ariaLabel",type:"string",description:"Accessible label for the tablist."}],stories:[{id:"sizes",title:"Sizes",description:"sm / md",render:()=>(0,lr.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,lr.jsx)(wb,{size:"sm",label:"Small"}),(0,lr.jsx)(wb,{size:"md",label:"Medium"})]})},{id:"with-disabled",title:"With Disabled Option",render:()=>(0,lr.jsx)(KL,{})}]});var Un=y(de(),1);var Zf=y(C(),1),WL={sm:"h-5 w-9",md:"h-6 w-11"},JL={sm:"h-3.5 w-3.5",md:"h-4.5 w-4.5"},$L={sm:"translate-x-4",md:"translate-x-5"};function Ea({checked:e,onChange:a,size:t="md",disabled:o=!1,className:r,ariaLabel:s}){return(0,Zf.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":s,disabled:o,"data-size":t,className:D("owo-switch relative inline-flex shrink-0 cursor-pointer items-center rounded-[var(--owo-cmp-control-radius-full)] border-2 border-transparent transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",WL[t],o&&"cursor-not-allowed opacity-50",r),onClick:()=>a(!e),children:(0,Zf.jsx)("span",{"aria-hidden":"true",className:D("owo-switch__thumb pointer-events-none inline-block rounded-[var(--owo-cmp-control-radius-full)] bg-white shadow transition-transform",JL[t],e?$L[t]:"translate-x-0.5")})})}var Ca=y(C(),1);function e1(){let[e,a]=(0,Un.useState)(!1);return(0,Ca.jsx)(Ea,{checked:e,onChange:a,ariaLabel:"Demo toggle"})}function a1(){let[e,a]=(0,Un.useState)(!0),[t,o]=(0,Un.useState)(!0);return(0,Ca.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Ca.jsx)(Ea,{checked:e,onChange:a,size:"sm",ariaLabel:"Small switch"}),(0,Ca.jsx)(Ea,{checked:t,onChange:o,size:"md",ariaLabel:"Medium switch"})]})}function t1(){let[e,a]=(0,Un.useState)(!1);return(0,Ca.jsxs)("label",{className:"inline-flex items-center gap-2 text-sm text-[var(--owo-ref-color-neutral-800)]",children:[(0,Ca.jsx)(Ea,{checked:e,onChange:a,ariaLabel:"Notifications"}),"Enable notifications"]})}q({group:"forms",componentId:"switch",componentName:"Switch",description:"Toggle switch for boolean settings.",props:[{name:"checked",type:"boolean",description:"Controlled checked state."},{name:"onChange",type:"(checked: boolean) => void",description:"Callback when toggled."},{name:"size",type:"'sm' | 'md'",default:"'md'",description:"Switch size."},{name:"disabled",type:"boolean",default:"false",description:"Disables the switch."},{name:"ariaLabel",type:"string",description:"Accessible label."}],renderPlayground:(e,a)=>(0,Ca.jsx)(Ea,{checked:!!e.checked,onChange:t=>a("checked",t),size:e.size,disabled:!!e.disabled,ariaLabel:"Playground switch"}),stories:[{id:"default",title:"Default",render:()=>(0,Ca.jsx)(e1,{})},{id:"sizes",title:"Sizes",description:"sm / md",render:()=>(0,Ca.jsx)(a1,{})},{id:"with-label",title:"With Label",render:()=>(0,Ca.jsx)(t1,{})},{id:"disabled",title:"Disabled",render:()=>(0,Ca.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Ca.jsx)(Ea,{checked:!1,onChange:()=>{},disabled:!0,ariaLabel:"Disabled off"}),(0,Ca.jsx)(Ea,{checked:!0,onChange:()=>{},disabled:!0,ariaLabel:"Disabled on"})]})}]});var Js=y(de(),1);var bb=y(C(),1);function Vr({className:e,tone:a="default",resize:t="vertical",autoResize:o=!1,style:r,onInput:s,rows:l=3,...n}){let i=(0,Js.useRef)(null),u=s,c=(0,Js.useCallback)(()=>{if(!o||!i.current)return;let f=i.current;f.style.height="auto",f.style.height=`${f.scrollHeight}px`},[o]);(0,Js.useEffect)(()=>{c()},[c,n.value,n.defaultValue,l]);function d(f){c(),u?.(f)}let p={...r,resize:o?"none":t};return(0,bb.jsx)("textarea",{...n,ref:i,rows:l,"data-tone":a,"data-auto-resize":o||void 0,className:Du(`owo-textarea ${e??""}`),style:p,onInput:d})}var gt=y(C(),1);q({group:"forms",componentId:"textarea",componentName:"Textarea",description:"Dedicated multiline text input that matches the Input token contract while supporting resize and auto-resize behavior.",props:[{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone for neutral or warning emphasis."},{name:"rows",type:"number",default:"3",description:"Initial row count before any auto-resize behavior."},{name:"resize",type:"'none' | 'vertical' | 'both'",default:"'vertical'",description:"Controls native resize affordance."},{name:"autoResize",type:"boolean",default:"false",description:"Automatically grows height to fit content."}],renderPlayground:e=>(0,gt.jsx)("div",{className:"max-w-sm",children:(0,gt.jsx)(Vr,{tone:e.tone,rows:Number(e.rows??3),resize:e.resize??"vertical",autoResize:!!e.autoResize,placeholder:"Write something longer\u2026"})}),stories:[{id:"default",title:"Default",render:()=>(0,gt.jsx)("div",{className:"max-w-sm",children:(0,gt.jsx)(Vr,{"aria-label":"Default textarea",placeholder:"Write something longer\u2026",rows:4})})},{id:"tones-and-resize",title:"Tones And Resize",render:()=>(0,gt.jsxs)("div",{className:"max-w-sm space-y-3",children:[(0,gt.jsx)(Vr,{"aria-label":"Default tone textarea",rows:3,placeholder:"Default tone\u2026",resize:"vertical"}),(0,gt.jsx)(Vr,{"aria-label":"Warning tone textarea",rows:3,placeholder:"Warning tone\u2026",tone:"warning",resize:"both"})]})},{id:"with-field",title:"With Field",render:()=>(0,gt.jsx)("div",{className:"max-w-sm",children:(0,gt.jsx)(mt,{label:"System Prompt",help:"Supports the same visual contract as Input.",children:(0,gt.jsx)(Vr,{"aria-label":"System prompt",rows:5,autoResize:!0,defaultValue:`You are a concise assistant.
13
- Keep responses short.`})})})}]});var ba=y(de(),1),$s=y(C(),1),xb=(0,ba.createContext)(null);function yb(e){let a=(0,ba.useContext)(xb);if(!a)throw new Error(`${e} must be used within Collapsible.Root`);return a}function o1({open:e,defaultOpen:a,onOpenChange:t}){let[o,r]=(0,ba.useState)(a??!1),s=e!==void 0,l=s?e:o;function n(i){s||r(i),t?.(i)}return[l,n]}function vb({children:e,open:a,defaultOpen:t,onOpenChange:o,className:r,...s}){let[l,n]=o1({open:a,defaultOpen:t,onOpenChange:o}),i=(0,ba.useId)(),u=(0,ba.useMemo)(()=>({open:l,setOpen:n,contentId:i}),[i,l,n]);return(0,$s.jsx)(xb.Provider,{value:u,children:(0,$s.jsx)("div",{"data-state":l?"open":"closed",className:D("owo-collapsible",r),...s,children:e})})}function r1({children:e,className:a,onClick:t,...o}){let{open:r,setOpen:s,contentId:l}=yb("Collapsible.Trigger");return(0,$s.jsx)("button",{type:"button","aria-expanded":r,"aria-controls":l,"data-state":r?"open":"closed",className:D("owo-collapsible__trigger",a),onClick:n=>{t?.(n),n.defaultPrevented||s(!r)},...o,children:e})}function s1({children:e,className:a,...t}){let{open:o,contentId:r}=yb("Collapsible.Content"),[s,l]=(0,ba.useState)(o),n=(0,ba.useRef)(null),i=(0,ba.useRef)(null);return(0,ba.useEffect)(()=>{let u=n.current,c=i.current;if(!u||!c)return;let d=0,p=0,f=()=>{u.style.height="auto",u.style.overflow="visible"};if(o&&l(!0),!s&&!o)return;let b=k=>{k.target!==u||k.propertyName!=="height"||(u.removeEventListener("transitionend",b),o?f():l(!1))};return(()=>{let k=c.scrollHeight;if(u.style.overflow="hidden",o){u.style.height="0px",d=window.requestAnimationFrame(()=>{u.addEventListener("transitionend",b),u.style.height=`${k}px`}),p=window.setTimeout(f,240);return}u.style.height=`${k}px`,d=window.requestAnimationFrame(()=>{u.addEventListener("transitionend",b),u.style.height="0px"}),p=window.setTimeout(()=>l(!1),240)})(),()=>{window.cancelAnimationFrame(d),window.clearTimeout(p),u.removeEventListener("transitionend",b)}},[o,s]),!s&&!o?null:(0,$s.jsx)("div",{id:r,ref:n,"data-state":o?"open":"closed","aria-hidden":!o,className:D("owo-collapsible__content",a),...t,children:(0,$s.jsx)("div",{ref:i,className:"owo-collapsible__content-inner",children:e})})}var l1=Object.assign(vb,{Root:vb,Trigger:r1,Content:s1}),nr=l1;var ir=y(C(),1);q({group:"forms",componentId:"collapsible",componentName:"Collapsible",description:"Composable primitive for disclosure sections, reasoning panels, and settings details blocks.",props:[{name:"open",type:"boolean",description:"Controlled open state."},{name:"defaultOpen",type:"boolean",default:"false",description:"Initial open state for uncontrolled usage."},{name:"onOpenChange",type:"(open: boolean) => void",description:"Change callback for controlled or uncontrolled state updates."}],stories:[{id:"default",title:"Default",render:()=>(0,ir.jsx)("div",{className:"max-w-lg rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] p-3",children:(0,ir.jsxs)(nr,{defaultOpen:!0,children:[(0,ir.jsxs)(nr.Trigger,{className:"flex w-full items-center justify-between gap-3 rounded-lg px-2 py-2 text-left text-sm font-medium",children:[(0,ir.jsx)("span",{children:"Reasoning"}),(0,ir.jsx)(Or,{className:"h-4 w-4"})]}),(0,ir.jsx)(nr.Content,{className:"px-2 pb-2 pt-1 text-sm text-[var(--owo-cmp-text-secondary)]",children:"This area can hold AI reasoning, debug detail, or an advanced configuration section."})]})})}]});var Pt=y(de(),1),el=y(C(),1),Sb=(0,Pt.createContext)(null);function Cb(e){let a=(0,Pt.useContext)(Sb);if(!a)throw new Error(`${e} must be used within Tabs.Root`);return a}function Bu(e){return e.replace(/[^a-zA-Z0-9_-]+/g,"-")}function n1({value:e,defaultValue:a,onValueChange:t}){let[o,r]=(0,Pt.useState)(a??""),s=e!==void 0,l=s?e:o;function n(i){s||r(i),t?.(i)}return[l,n]}function Lb({children:e,value:a,defaultValue:t,onValueChange:o,className:r,...s}){let[l,n]=n1({value:a,defaultValue:t,onValueChange:o}),i=(0,Pt.useId)(),u=(0,Pt.useMemo)(()=>({value:l,setValue:n,baseId:i}),[i,l,n]);return(0,el.jsx)(Sb.Provider,{value:u,children:(0,el.jsx)("div",{className:D("owo-tabs",r),...s,children:e})})}function i1({children:e,className:a,ariaLabel:t,...o}){return(0,el.jsx)("div",{role:"tablist","aria-label":t,className:D("owo-tabs__list flex items-end gap-1 border-b",a),...o,children:e})}function u1({children:e,className:a,value:t,disabled:o,onClick:r,onKeyDown:s,...l}){let{value:n,setValue:i,baseId:u}=Cb("Tabs.Trigger"),c=n===t,d=`${u}-trigger-${Bu(t)}`,p=`${u}-panel-${Bu(t)}`;function f(b,x){let k=b.closest('[role="tablist"]');if(!k)return;let m=Array.from(k.querySelectorAll('[role="tab"]:not([disabled])')),g=m.indexOf(b);if(g<0)return;let w;x==="first"&&(w=m[0]),x==="last"&&(w=m[m.length-1]),x==="next"&&(w=m[(g+1)%m.length]),x==="prev"&&(w=m[(g-1+m.length)%m.length]),w&&(w.focus(),w.click())}return(0,el.jsx)("button",{type:"button",id:d,role:"tab","aria-selected":c,"aria-controls":p,tabIndex:c?0:-1,"data-state":c?"active":"inactive",disabled:o,className:D("owo-tabs__trigger relative -mb-px inline-flex min-h-9 items-center justify-center rounded-t-[var(--owo-cmp-control-radius-md)] border-b-2 px-3 py-2 text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",a),onClick:b=>{r?.(b),!b.defaultPrevented&&!o&&i(t)},onKeyDown:b=>{if(s?.(b),b.defaultPrevented||o)return;let x=b.currentTarget;switch(b.key){case"ArrowRight":b.preventDefault(),f(x,"next");break;case"ArrowLeft":b.preventDefault(),f(x,"prev");break;case"Home":b.preventDefault(),f(x,"first");break;case"End":b.preventDefault(),f(x,"last");break}},...l,children:e})}function c1({children:e,className:a,value:t,...o}){let{value:r,baseId:s}=Cb("Tabs.Content"),l=r===t,n=`${s}-trigger-${Bu(t)}`,i=`${s}-panel-${Bu(t)}`;return l?(0,el.jsx)("div",{id:i,role:"tabpanel","aria-labelledby":n,"data-state":"active",className:D("owo-tabs__content pt-4",a),...o,children:e}):null}var d1=Object.assign(Lb,{Root:Lb,List:i1,Trigger:u1,Content:c1}),Ka=d1;var Ha=y(C(),1);q({group:"forms",componentId:"tabs",componentName:"Tabs",description:"Navigation-grade tab primitive with keyboard support and linked tab panels.",props:[{name:"value",type:"string",description:"Controlled active tab value."},{name:"defaultValue",type:"string",description:"Initial tab value for uncontrolled usage."},{name:"onValueChange",type:"(value: string) => void",description:"Change callback when the active tab changes."}],stories:[{id:"settings-tabs",title:"Settings Tabs",render:()=>(0,Ha.jsx)("div",{className:"max-w-2xl",children:(0,Ha.jsxs)(Ka,{defaultValue:"settings",children:[(0,Ha.jsxs)(Ka.List,{ariaLabel:"Settings sections",children:[(0,Ha.jsx)(Ka.Trigger,{value:"settings",children:"Settings"}),(0,Ha.jsx)(Ka.Trigger,{value:"account",children:"Account"}),(0,Ha.jsx)(Ka.Trigger,{value:"admin",disabled:!0,children:"Admin"})]}),(0,Ha.jsx)(Ka.Content,{value:"settings",children:(0,Ha.jsx)("div",{className:"rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] p-4 text-sm text-[var(--owo-cmp-text-secondary)]",children:"Settings panel content."})}),(0,Ha.jsx)(Ka.Content,{value:"account",children:(0,Ha.jsx)("div",{className:"rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] p-4 text-sm text-[var(--owo-cmp-text-secondary)]",children:"Account panel content."})}),(0,Ha.jsx)(Ka.Content,{value:"admin",children:(0,Ha.jsx)("div",{className:"rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] p-4 text-sm text-[var(--owo-cmp-text-secondary)]",children:"Admin panel content."})})]})})}]});var Ib=y(C(),1);function ge({tone:e="neutral",variant:a="soft",size:t="xs",className:o,children:r,...s}){return(0,Ib.jsx)("span",{"data-tone":e,"data-variant":a,"data-size":t,className:D("owo-badge inline-flex items-center rounded-[var(--owo-cmp-control-radius-full)] border text-[var(--badge-text)]",t==="xs"?"px-2.5 py-1 text-[11px]":"px-3 py-1 text-xs font-medium",o),...s,children:r})}var Pe=y(C(),1);q({group:"feedback",componentId:"badge",componentName:"Badge",description:"Inline label for status, categories, or counts. Token-driven: --badge-bg, --badge-text, --badge-border.",props:[{name:"tone",type:"'neutral' | 'info' | 'success' | 'warning' | 'danger'",default:"'neutral'",description:"Semantic color tone."},{name:"variant",type:"'soft' | 'outline'",default:"'soft'",description:"Fill style. Soft uses tinted background; outline uses transparent bg with visible border."},{name:"size",type:"'xs' | 'sm'",default:"'xs'",description:"Compact or slightly larger badge size."},{name:"children",type:"ReactNode",description:"Badge content."}],renderPlayground:e=>(0,Pe.jsx)(ge,{tone:e.tone,variant:e.variant,size:e.size,children:"Badge"}),stories:[{id:"tones-soft",title:"Tones (Soft)",description:"neutral / info / success / warning / danger \u2014 soft variant",render:()=>(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(ge,{tone:"neutral",children:"Neutral"}),(0,Pe.jsx)(ge,{tone:"info",children:"Info"}),(0,Pe.jsx)(ge,{tone:"success",children:"Success"}),(0,Pe.jsx)(ge,{tone:"warning",children:"Warning"}),(0,Pe.jsx)(ge,{tone:"danger",children:"Danger"})]})},{id:"tones-outline",title:"Tones (Outline)",description:"Same tones with outline variant \u2014 transparent bg, colored border.",render:()=>(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(ge,{tone:"neutral",variant:"outline",children:"Neutral"}),(0,Pe.jsx)(ge,{tone:"info",variant:"outline",children:"Info"}),(0,Pe.jsx)(ge,{tone:"success",variant:"outline",children:"Success"}),(0,Pe.jsx)(ge,{tone:"warning",variant:"outline",children:"Warning"}),(0,Pe.jsx)(ge,{tone:"danger",variant:"outline",children:"Danger"})]})},{id:"sizes",title:"Sizes",description:"xs / sm",render:()=>(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(ge,{size:"xs",tone:"info",children:"XS Badge"}),(0,Pe.jsx)(ge,{size:"sm",tone:"info",children:"SM Badge"})]})},{id:"variant-comparison",title:"Variant Comparison",description:"Soft vs outline side by side for each tone.",render:()=>(0,Pe.jsx)("div",{className:"space-y-3",children:["neutral","info","success","warning","danger"].map(e=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)(ge,{size:"sm",tone:e,variant:"soft",children:[e," soft"]}),(0,Pe.jsxs)(ge,{size:"sm",tone:e,variant:"outline",children:[e," outline"]})]},e))})}]});var ra=y(C(),1);function Be({tone:e="neutral",layout:a="horizontal",icon:t,title:o,description:r,action:s,className:l,children:n,...i}){if(a==="vertical"){let u=t||o||r||s;return(0,ra.jsx)("div",{"data-tone":e,"data-layout":"vertical",className:D("owo-status-notice rounded-[var(--owo-cmp-control-radius-lg)] border px-4 py-3 text-sm",l),...i,children:u?(0,ra.jsxs)("div",{className:"flex flex-col items-center gap-2 py-4 text-center",children:[t&&(0,ra.jsx)("div",{className:"owo-status-notice__icon text-lg",children:t}),o&&(0,ra.jsx)("div",{className:"owo-status-notice__title font-medium",children:o}),r&&(0,ra.jsx)("div",{className:"owo-status-notice__description",children:r}),s&&(0,ra.jsx)("div",{className:"mt-2",children:s})]}):n})}return(0,ra.jsx)("div",{"data-tone":e,className:D("owo-status-notice rounded-[var(--owo-cmp-control-radius-md)] border px-4 py-3 text-sm",t&&"owo-status-notice--with-icon grid grid-cols-[auto_minmax(0,1fr)] gap-3",l),...i,children:t?(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)("span",{className:"owo-status-notice__icon mt-0.5 shrink-0","aria-hidden":"true",children:t}),(0,ra.jsxs)("div",{className:"min-w-0",children:[o&&(0,ra.jsx)("div",{className:"owo-status-notice__title font-medium",children:o}),n]})]}):(0,ra.jsxs)(ra.Fragment,{children:[o&&(0,ra.jsx)("div",{className:"owo-status-notice__title font-medium",children:o}),n]})})}var ae=y(C(),1);q({group:"feedback",componentId:"status-notice",componentName:"StatusNotice",description:"Block-level feedback banner. Supports horizontal (default) and vertical layouts, with optional icon, title, description, and action slots.",props:[{name:"tone",type:"'neutral' | 'info' | 'success' | 'warning' | 'danger'",default:"'success'",description:"Semantic message tone."},{name:"layout",type:"'horizontal' | 'vertical'",default:"'horizontal'",description:"Layout direction. Vertical centers content for empty states."},{name:"children",type:"string",default:"'Operation completed successfully.'",description:"Notice content."},{name:"icon",type:"ReactNode",description:"Optional icon slot."},{name:"title",type:"ReactNode",description:"Optional bold title above content."},{name:"description",type:"ReactNode",description:"Description text (vertical layout)."},{name:"action",type:"ReactNode",description:"Action slot, e.g. a button (vertical layout)."},{name:"className",type:"string",description:"Additional classes for layout or spacing."}],renderPlayground:e=>(0,ae.jsx)(Be,{tone:e.tone,layout:e.layout,children:e.children||"Operation completed successfully."}),stories:[{id:"tones",title:"Tones",description:"info / success / warning / danger",render:()=>(0,ae.jsxs)("div",{className:"space-y-3",children:[(0,ae.jsx)(Be,{tone:"neutral",children:"General system guidance without a semantic alert state."}),(0,ae.jsx)(Be,{tone:"info",children:"This is an informational notice."}),(0,ae.jsx)(Be,{tone:"success",children:"Operation completed successfully."}),(0,ae.jsx)(Be,{tone:"warning",children:"Please review before continuing."}),(0,ae.jsx)(Be,{tone:"danger",children:"Something went wrong. Please try again."})]})},{id:"with-icons",title:"With Icons",render:()=>(0,ae.jsxs)("div",{className:"space-y-3",children:[(0,ae.jsx)(Be,{tone:"info",icon:(0,ae.jsx)(Zs,{size:16}),children:"Background indexing is still in progress."}),(0,ae.jsx)(Be,{tone:"success",icon:(0,ae.jsx)(Ko,{size:16}),children:"Draft and main are fully aligned."}),(0,ae.jsx)(Be,{tone:"warning",icon:(0,ae.jsx)(fo,{size:16}),children:"One route conflict still needs manual review."}),(0,ae.jsx)(Be,{tone:"danger",icon:(0,ae.jsx)(Lt,{size:16}),children:"Publishing failed. Retry after refreshing the snapshot."})]})},{id:"with-title",title:"With Title",description:"Horizontal layout with bold title above children.",render:()=>(0,ae.jsxs)("div",{className:"space-y-3",children:[(0,ae.jsx)(Be,{tone:"info",icon:(0,ae.jsx)(Zs,{size:16}),title:"New feature available",children:"Workspace analytics are now in beta. Enable them in your project settings."}),(0,ae.jsx)(Be,{tone:"warning",icon:(0,ae.jsx)(fo,{size:16}),title:"Action required",children:"Your API key expires in 3 days. Regenerate it from Settings."})]})},{id:"vertical-empty",title:"Vertical Layout (Empty State)",description:"Centered layout for empty lists or missing content.",render:()=>(0,ae.jsxs)("div",{className:"space-y-4",children:[(0,ae.jsx)(Be,{layout:"vertical",children:"No items found."}),(0,ae.jsx)(Be,{layout:"vertical",title:"No posts yet",description:"Create your first post to get started.",action:(0,ae.jsx)(M,{variant:"primary",size:"sm",children:"Create Post"})}),(0,ae.jsx)(Be,{layout:"vertical",icon:(0,ae.jsx)("span",{className:"text-2xl",children:"\u{1F4ED}"}),title:"Inbox empty",description:"You have no new messages."})]})},{id:"vertical-tones",title:"Vertical Tones",description:"Vertical layout with semantic tones.",render:()=>(0,ae.jsxs)("div",{className:"space-y-4",children:[(0,ae.jsx)(Be,{layout:"vertical",tone:"neutral",title:"Neutral",description:"Default empty state."}),(0,ae.jsx)(Be,{layout:"vertical",tone:"info",title:"Info",description:"Informational empty state."}),(0,ae.jsx)(Be,{layout:"vertical",tone:"warning",title:"Warning",description:"Attention-drawing empty state."})]})}]});var Ue=y(C(),1);q({group:"feedback",componentId:"spinner",componentName:"Spinner",description:"Animated loading indicator with multiple icon styles. Used standalone or composed into other components (e.g. Button loading state).",defaultScale:5,props:[{name:"variant",type:"'ring' | 'arc' | 'dots' | 'bars' | 'bounce' | 'pulse' | 'orbit' | 'flow'",default:"'ring'",description:"Spinner icon style."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg'",default:"'md'",description:"Preset size, or pass a number for custom pixel size."},{name:"label",type:"string",description:"Accessible label. When set, spinner is announced to screen readers."},{name:"className",type:"string",description:"Additional CSS classes."}],renderPlayground:e=>(0,Ue.jsx)(Sa,{variant:e.variant,size:e.size}),stories:[{id:"variants",title:"Variants",description:"ring / arc / dots / bars / bounce / pulse / orbit / flow",render:()=>(0,Ue.jsx)("div",{className:"flex flex-wrap items-center gap-8",children:["ring","arc","dots","bars","bounce","pulse","orbit","flow"].map(e=>(0,Ue.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,Ue.jsx)(Sa,{variant:e,size:"lg"}),(0,Ue.jsx)("span",{className:"text-[11px] text-[var(--owo-ref-color-neutral-500)]",children:e})]},e))})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg",render:()=>(0,Ue.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Ue.jsx)(Sa,{size:"xs"}),(0,Ue.jsx)(Sa,{size:"sm"}),(0,Ue.jsx)(Sa,{size:"md"}),(0,Ue.jsx)(Sa,{size:"lg"})]})},{id:"with-text",title:"Inline with Text",render:()=>(0,Ue.jsxs)("div",{className:"space-y-3",children:[(0,Ue.jsxs)("div",{className:"flex items-center gap-2 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,Ue.jsx)(Sa,{variant:"ring",size:"sm"}),(0,Ue.jsx)("span",{children:"Loading data\u2026"})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-2 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,Ue.jsx)(Sa,{variant:"flow",size:"sm"}),(0,Ue.jsx)("span",{children:"Processing\u2026"})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-2 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,Ue.jsx)(Sa,{variant:"bounce",size:"sm"}),(0,Ue.jsx)("span",{children:"Waiting for response\u2026"})]})]})}]});var kb=y(C(),1),f1={slow:"4s",default:"3s",fast:"2s"};function he({className:e,animation:a="scan",tone:t="default",speed:o="default",style:r,...s}){let l=t==="warm"?"emphasis":t,n={...r,"--_owo-skeleton-scan-duration":f1[o]};return(0,kb.jsx)("div",{className:D("owo-skeleton rounded-[var(--owo-cmp-control-radius-sm)]",e),"data-animation":a,"data-tone":l,"aria-hidden":"true",style:n,...s})}var V=y(C(),1);q({group:"feedback",componentId:"skeleton",componentName:"Skeleton",description:"Loading placeholder with `scan` or `pulse` animation and configurable speed.",props:[{name:"animation",type:"'pulse' | 'scan'",default:"'scan'",description:"Chooses the loading motion style."},{name:"tone",type:"'default' | 'emphasis'",default:"'default'",description:"Semantic emphasis level of the placeholder."},{name:"speed",type:"'slow' | 'default' | 'fast'",default:"'default'",description:"Scan animation speed: slow (4s), default (3s), fast (2s)."},{name:"className",type:"string",description:"Controls skeleton shape and dimensions."}],renderPlayground:e=>(0,V.jsxs)("div",{className:"space-y-3",children:[(0,V.jsx)(he,{animation:e.animation,tone:e.tone,speed:e.speed,className:"h-4 w-48"}),(0,V.jsx)(he,{animation:e.animation,tone:e.tone,speed:e.speed,className:"h-4 w-64"})]}),stories:[{id:"scan",title:"Scan",render:()=>(0,V.jsxs)("div",{className:"space-y-4",children:[(0,V.jsx)(he,{className:"h-4 w-48"}),(0,V.jsx)(he,{className:"h-4 w-64"}),(0,V.jsx)(he,{className:"h-4 w-32"})]})},{id:"scan-speed",title:"Scan Speed",render:()=>(0,V.jsxs)("div",{className:"space-y-4",children:[(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)("div",{className:"text-xs font-medium text-[var(--owo-ref-color-neutral-500)]",children:"Slow \xB7 4s"}),(0,V.jsx)(he,{speed:"slow",className:"h-4 w-64"})]}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)("div",{className:"text-xs font-medium text-[var(--owo-ref-color-neutral-500)]",children:"Default \xB7 3s"}),(0,V.jsx)(he,{className:"h-4 w-64"})]}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)("div",{className:"text-xs font-medium text-[var(--owo-ref-color-neutral-500)]",children:"Fast \xB7 2s"}),(0,V.jsx)(he,{speed:"fast",className:"h-4 w-64"})]})]})},{id:"pulse",title:"Pulse",render:()=>(0,V.jsxs)("div",{className:"space-y-4",children:[(0,V.jsx)(he,{animation:"pulse",className:"h-4 w-48"}),(0,V.jsx)(he,{animation:"pulse",className:"h-4 w-64"}),(0,V.jsx)(he,{animation:"pulse",className:"h-4 w-32"})]})},{id:"on-surfaces",title:"On Different Surfaces",description:"Verifies shimmer visibility against various backgrounds.",render:()=>(0,V.jsx)("div",{className:"grid gap-4 sm:grid-cols-3",children:[{label:"Canvas",bg:"var(--owo-ref-color-surface-canvas)"},{label:"Base",bg:"var(--owo-ref-color-surface-base)"},{label:"Inset",bg:"var(--owo-ref-color-surface-inset)"}].map(({label:e,bg:a})=>(0,V.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:a},children:[(0,V.jsx)("p",{className:"mb-2 text-[11px] font-medium text-[var(--owo-ref-color-neutral-500)]",children:e}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)(he,{className:"h-4 w-full"}),(0,V.jsx)(he,{className:"h-4 w-3/4"})]})]},e))})},{id:"card-placeholder",title:"Card Placeholder",render:()=>(0,V.jsxs)("div",{className:"max-w-sm space-y-3 rounded-lg border border-[var(--owo-ref-color-surface-border)] p-4",children:[(0,V.jsx)(he,{className:"h-5 w-3/4"}),(0,V.jsx)(he,{className:"h-4 w-full"}),(0,V.jsx)(he,{className:"h-4 w-5/6"}),(0,V.jsxs)("div",{className:"flex gap-2 pt-2",children:[(0,V.jsx)(he,{animation:"pulse",className:"h-8 w-20 rounded-md"}),(0,V.jsx)(he,{animation:"pulse",className:"h-8 w-20 rounded-md"})]})]})},{id:"avatar-line",title:"Avatar + Lines",render:()=>(0,V.jsxs)("div",{className:"flex items-start gap-3",children:[(0,V.jsx)(he,{className:"h-10 w-10 shrink-0 rounded-full"}),(0,V.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,V.jsx)(he,{animation:"pulse",className:"h-4 w-32"}),(0,V.jsx)(he,{className:"h-3 w-48"})]})]})}]});var qn=y(de(),1);var Xr=y(de(),1),ur=y(C(),1);function p1({className:e,children:a,...t}){return(0,ur.jsx)("div",{className:D("owo-dialog__header px-5 pt-5 pb-1 text-base font-semibold",e),...t,children:a})}function m1({className:e,children:a,...t}){return(0,ur.jsx)("div",{className:D("owo-dialog__body px-5 py-3 text-sm",e),...t,children:a})}function g1({className:e,children:a,...t}){return(0,ur.jsx)("div",{className:D("owo-dialog__footer flex items-center justify-end gap-2 px-5 pt-3 pb-5",e),...t,children:a})}function J({open:e,onClose:a,size:t="sm",children:o,className:r,overlayClassName:s,panelClassName:l,...n}){let i=(0,Xr.useRef)(null),u=(0,Xr.useRef)(null),c=(0,Xr.useCallback)(d=>{d.key==="Escape"&&(d.stopPropagation(),a())},[a]);return(0,Xr.useEffect)(()=>(e?(u.current=document.activeElement,document.body.style.overflow="hidden",requestAnimationFrame(()=>{let d=i.current;if(!d)return;let p=d.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');p?p.focus():d.focus()}),document.addEventListener("keydown",c)):(document.body.style.overflow="",u.current?.focus()),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}),[e,c]),e?(0,ur.jsxs)("div",{"data-state":"open",className:"owo-dialog-overlay fixed inset-0 z-[var(--owo-cmp-z-modal)] flex items-center justify-center",children:[(0,ur.jsx)("button",{type:"button","aria-label":"Close dialog","data-state":"open",className:D("owo-dialog-backdrop absolute inset-0 bg-[var(--owo-cmp-overlay-bg)]",s),onClick:a}),(0,ur.jsx)("div",{ref:i,role:"dialog","aria-modal":"true",tabIndex:-1,"data-state":"open","data-size":t,className:D("owo-dialog relative z-10 w-full rounded-[var(--owo-cmp-control-radius-xl)] shadow-xl","animate-[dialog-in_0.2s_var(--owo-cmp-motion-ease-standard)]",t==="sm"?"max-w-[26rem]":"max-w-[32rem]",l,r),...n,children:o})]}):null}J.Header=p1;J.Body=m1;J.Footer=g1;var Ct=y(de(),1);var Wa=y(C(),1),Tb=(0,Ct.createContext)(null);function Ab(){let e=(0,Ct.useContext)(Tb);if(!e)throw new Error("useConfirm must be used within <ConfirmProvider>");return e}function Nu({children:e}){let[a,t]=(0,Ct.useState)(null),o=(0,Ct.useRef)(null),r=(0,Ct.useCallback)(l=>(o.current&&o.current.resolve(!1),new Promise(n=>{let i={options:l,resolve:n};o.current=i,t(i)})),[]),s=(0,Ct.useCallback)(l=>{o.current&&(o.current.resolve(l),o.current=null),t(null)},[]);return(0,Wa.jsxs)(Tb.Provider,{value:r,children:[e,(0,Wa.jsx)(J,{open:a!==null,onClose:()=>s(!1),children:a&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)(J.Header,{children:a.options.title}),(0,Wa.jsx)(J.Body,{children:typeof a.options.description=="string"?(0,Wa.jsx)("p",{className:"whitespace-pre-wrap",children:a.options.description}):a.options.description}),(0,Wa.jsxs)(J.Footer,{children:[(0,Wa.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:a.options.cancelLabel??"\u53D6\u6D88"}),(0,Wa.jsx)(M,{variant:a.options.variant??"primary",size:"sm",onClick:()=>s(!0),children:a.options.confirmLabel??"\u786E\u8BA4"})]})]})})]})}var B=y(C(),1);function h1(){let[e,a]=(0,qn.useState)(!1);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(M,{variant:"primary",size:"sm",onClick:()=>a(!0),children:"Open Dialog"}),(0,B.jsxs)(J,{open:e,onClose:()=>a(!1),children:[(0,B.jsx)(J.Header,{children:"Basic Dialog"}),(0,B.jsx)(J.Body,{children:(0,B.jsx)("p",{children:"This is a basic dialog with header, body, and footer sections."})}),(0,B.jsxs)(J.Footer,{children:[(0,B.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,B.jsx)(M,{variant:"primary",size:"sm",onClick:()=>a(!1),children:"Confirm"})]})]})]})}function w1(){let[e,a]=(0,qn.useState)(!1);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(M,{variant:"danger",size:"sm",onClick:()=>a(!0),children:"Delete Item"}),(0,B.jsxs)(J,{open:e,onClose:()=>a(!1),children:[(0,B.jsx)(J.Header,{children:"Delete Draft"}),(0,B.jsxs)(J.Body,{children:[(0,B.jsx)("p",{children:"Are you sure you want to delete the ZH locale draft?"}),(0,B.jsxs)("p",{className:"mt-2",children:["Article ID: post-20260320-example",(0,B.jsx)("br",{}),"Category: post"]}),(0,B.jsx)("p",{className:"mt-2",children:"This action cannot be undone."})]}),(0,B.jsxs)(J.Footer,{children:[(0,B.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,B.jsx)(M,{variant:"danger",size:"sm",onClick:()=>a(!1),children:"Delete"})]})]})]})}function b1(){let[e,a]=(0,qn.useState)(!1);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(M,{variant:"secondary",size:"sm",onClick:()=>a(!0),children:"Open Medium Dialog"}),(0,B.jsxs)(J,{open:e,onClose:()=>a(!1),size:"md",children:[(0,B.jsx)(J.Header,{children:"Publish Confirmation"}),(0,B.jsxs)(J.Body,{children:[(0,B.jsx)("p",{children:"You are about to publish the current draft branch."}),(0,B.jsxs)("div",{className:"mt-3 rounded-lg border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-base)] p-3 text-sm",children:[(0,B.jsxs)("div",{className:"flex justify-between",children:[(0,B.jsx)("span",{children:"Articles:"}),(0,B.jsx)("span",{children:"3"})]}),(0,B.jsxs)("div",{className:"flex justify-between",children:[(0,B.jsx)("span",{children:"Languages:"}),(0,B.jsx)("span",{children:"ZH, EN"})]}),(0,B.jsxs)("div",{className:"flex justify-between",children:[(0,B.jsx)("span",{children:"Branch:"}),(0,B.jsx)("span",{children:"draft"})]})]}),(0,B.jsx)("p",{className:"mt-3",children:"This will trigger a Cloudflare deployment."})]}),(0,B.jsxs)(J.Footer,{children:[(0,B.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,B.jsx)(M,{variant:"primary",size:"sm",onClick:()=>a(!1),children:"Publish"})]})]})]})}function v1(){let e=Ab(),[a,t]=(0,qn.useState)("");return(0,B.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,B.jsxs)("div",{className:"flex gap-2",children:[(0,B.jsx)(M,{variant:"primary",size:"sm",onClick:async()=>{let s=await e({title:"Confirm Action",description:"This demonstrates the useConfirm() hook. Click confirm or cancel.",confirmLabel:"Do it",cancelLabel:"Nope"});t(s?"Confirmed!":"Cancelled.")},children:"useConfirm()"}),(0,B.jsx)(M,{variant:"danger",size:"sm",onClick:async()=>{let s=await e({title:"Delete Everything",description:"This is a danger variant confirm dialog.",confirmLabel:"Delete",variant:"danger"});t(s?"Deleted!":"Cancelled.")},children:"Danger Confirm"})]}),a&&(0,B.jsxs)("p",{className:"text-sm text-[var(--owo-ref-color-neutral-600)]",children:["Result: ",a]})]})}function x1(){return(0,B.jsx)(Nu,{children:(0,B.jsx)(v1,{})})}q({group:"feedback",componentId:"dialog",componentName:"Dialog",description:"Modal dialog for confirmations and focused tasks. Supports declarative usage via <Dialog> and imperative usage via `useConfirm()` hook. The imperative API requires `<ConfirmProvider>` in an ancestor (mounted in admin layout).",props:[{name:"open",type:"boolean",default:"false",description:"Controls dialog visibility."},{name:"size",type:"'sm' | 'md'",default:"'sm'",description:"Dialog width."},{name:"onClose",type:"() => void",description:"Called on backdrop click or Escape key."}],renderPlayground:(e,a)=>{let t=e.size||"sm",o=!!e.open;return(0,B.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,B.jsxs)(M,{variant:"primary",size:"sm",onClick:()=>a("open",!0),children:["Open Dialog (",t,")"]}),(0,B.jsxs)(J,{open:o,onClose:()=>a("open",!1),size:t,children:[(0,B.jsx)(J.Header,{children:"Playground Dialog"}),(0,B.jsx)(J.Body,{children:(0,B.jsxs)("p",{children:["Toggle the ",(0,B.jsx)("code",{className:"rounded bg-[var(--owo-ref-color-surface-subtle)] px-1 py-0.5 text-xs",children:"open"})," and ",(0,B.jsx)("code",{className:"rounded bg-[var(--owo-ref-color-surface-subtle)] px-1 py-0.5 text-xs",children:"size"})," controls below."]})}),(0,B.jsxs)(J.Footer,{children:[(0,B.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>a("open",!1),children:"Cancel"}),(0,B.jsx)(M,{variant:"primary",size:"sm",onClick:()=>a("open",!1),children:"Confirm"})]})]})]})},stories:[{id:"provider-setup",title:"Provider Setup",description:"useConfirm() requires <ConfirmProvider> in an ancestor. Mount it once in your layout \u2014 all descendant components can then call useConfirm().",source:`// src/app/qadmin/layout.tsx
12
+ <Button variant="danger">Danger</Button>`,render:()=>(0,fe.jsxs)("div",{className:va.row,children:[(0,fe.jsx)(B,{variant:"primary",children:"Primary"}),(0,fe.jsx)(B,{variant:"secondary",children:"Secondary"}),(0,fe.jsx)(B,{variant:"ghost",children:"Ghost"}),(0,fe.jsx)(B,{variant:"danger",children:"Danger"})]})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg / xl",render:()=>(0,fe.jsxs)("div",{className:va.row,children:[(0,fe.jsx)(B,{size:"xs",children:"Extra Small"}),(0,fe.jsx)(B,{size:"sm",children:"Small"}),(0,fe.jsx)(B,{size:"md",children:"Medium"}),(0,fe.jsx)(B,{size:"lg",children:"Large"}),(0,fe.jsx)(B,{size:"xl",children:"Extra Large"})]})},{id:"with-icons",title:"With Icons",description:"leadingIcon / trailingIcon",render:()=>(0,fe.jsxs)("div",{className:va.row,children:[(0,fe.jsx)(B,{variant:"primary",leadingIcon:(0,fe.jsx)(no,{size:16}),children:"Create"}),(0,fe.jsx)(B,{variant:"secondary",trailingIcon:(0,fe.jsx)(br,{size:16}),children:"Next"}),(0,fe.jsx)(B,{variant:"ghost",leadingIcon:(0,fe.jsx)(no,{size:16}),trailingIcon:(0,fe.jsx)(br,{size:16}),children:"Both"})]})},{id:"loading-disabled",title:"Loading & Disabled",render:()=>(0,fe.jsxs)("div",{className:va.row,children:[(0,fe.jsx)(B,{variant:"primary",loading:!0,children:"Saving\u2026"}),(0,fe.jsx)(B,{variant:"secondary",loading:!0,children:"Loading"}),(0,fe.jsx)(B,{variant:"secondary",disabled:!0,children:"Disabled"}),(0,fe.jsx)(B,{variant:"danger",disabled:!0,children:"Disabled Danger"})]})},{id:"all-variants-sm",title:"All Variants (sm)",render:()=>(0,fe.jsxs)("div",{className:va.row,children:[(0,fe.jsx)(B,{variant:"primary",size:"sm",children:"Primary"}),(0,fe.jsx)(B,{variant:"secondary",size:"sm",children:"Secondary"}),(0,fe.jsx)(B,{variant:"ghost",size:"sm",children:"Ghost"}),(0,fe.jsx)(B,{variant:"danger",size:"sm",children:"Danger"})]})}]});var Xv={};var fm=y(T(),1);function le({variant:e="ghost",size:a="md",label:t,icon:o,className:r,...l}){let n=I("owo-icon-button",Xv.root,r);if("href"in l&&l.href){let{href:i,...u}=l;return(0,fm.jsx)("a",{href:i,"aria-label":t,title:u.title??t,"data-variant":e,"data-size":a,className:n,...u,children:o})}let s=l;return(0,fm.jsx)("button",{type:s.type??"button","aria-label":t,title:s.title??t,"data-variant":e,"data-size":a,className:n,...s,children:o})}var ue=y(T(),1);function DC(e){switch(e){case"xs":return 12;case"sm":return 14;case"md":return 16;case"lg":return 18;case"xl":return 20}}Y({group:"actions",componentId:"icon-button",componentName:"IconButton",description:"Icon-only action button. Supports ghost/subtle variants, sm/md sizes.",props:[{name:"variant",type:"'ghost' | 'subtle'",default:"'ghost'",description:"Visual style variant."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Button size."},{name:"label",type:"string",description:"Accessible label used for aria-label and title fallback."},{name:"icon",type:"ReactNode",description:"Icon content rendered inside the button."},{name:"href",type:"string",description:"When set, renders as a Next.js Link instead of a button."},{name:"disabled",type:"boolean",default:"false",description:"Disables button interaction when rendered as a button."}],renderPlayground:e=>(0,ue.jsx)(le,{variant:e.variant,size:e.size,disabled:!!e.disabled,label:"Settings",icon:(0,ue.jsx)(Aa,{size:DC(e.size??"md")})}),stories:[{id:"variants",title:"Variants",description:"ghost / subtle",render:()=>(0,ue.jsxs)("div",{className:va.row,children:[(0,ue.jsx)(le,{variant:"ghost",label:"Close",icon:(0,ue.jsx)(At,{size:16})}),(0,ue.jsx)(le,{variant:"subtle",label:"Settings",icon:(0,ue.jsx)(Aa,{size:16})})]})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg / xl",render:()=>(0,ue.jsxs)("div",{className:va.row,children:[(0,ue.jsx)(le,{size:"xs",label:"Extra small",icon:(0,ue.jsx)(At,{size:12})}),(0,ue.jsx)(le,{size:"sm",label:"Small",icon:(0,ue.jsx)(At,{size:14})}),(0,ue.jsx)(le,{size:"md",label:"Medium",icon:(0,ue.jsx)(At,{size:16})}),(0,ue.jsx)(le,{size:"lg",label:"Large",icon:(0,ue.jsx)(At,{size:18})}),(0,ue.jsx)(le,{size:"xl",label:"Extra large",icon:(0,ue.jsx)(At,{size:20})})]})},{id:"use-cases",title:"Use Cases",render:()=>(0,ue.jsxs)("div",{className:va.row,children:[(0,ue.jsx)(le,{label:"Close",icon:(0,ue.jsx)(At,{size:16})}),(0,ue.jsx)(le,{label:"Settings",icon:(0,ue.jsx)(Aa,{size:16})}),(0,ue.jsx)(le,{label:"Delete",icon:(0,ue.jsx)(Js,{size:16})}),(0,ue.jsx)(le,{label:"Navigate",icon:(0,ue.jsx)(Ft,{size:16})})]})},{id:"disabled",title:"Disabled",render:()=>(0,ue.jsxs)("div",{className:va.row,children:[(0,ue.jsx)(le,{label:"Disabled ghost",icon:(0,ue.jsx)(At,{size:16}),disabled:!0}),(0,ue.jsx)(le,{variant:"subtle",label:"Disabled subtle",icon:(0,ue.jsx)(Aa,{size:16}),disabled:!0})]})}]});var ti={};var mm=y(T(),1);function Me(e){let{className:a,tone:t="default",size:o="md",...r}=e;return e.as==="textarea"?(0,mm.jsx)("textarea",{"data-tone":t,"data-size":o,className:I("owo-input",ti.root,a),...r}):(0,mm.jsx)("input",{"data-tone":t,"data-size":o,className:I("owo-input",ti.root,a),...r})}var C={};var da=y(T(),1);Y({group:"forms",componentId:"input",componentName:"Input",description:'Single-line text input. Legacy `as="textarea"` support remains available, but new multiline usage should prefer the dedicated Textarea primitive.',props:[{name:"as",type:"'input' | 'textarea'",default:"'input'",description:"Chooses which native form element to render."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Control size."},{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone for neutral or warning emphasis."},{name:"className",type:"string",description:"Additional CSS classes for the rendered element."},{name:"placeholder",type:"string",description:"Placeholder text for input or textarea variants."},{name:"rows",type:"number",description:'Textarea row count when `as="textarea"`.'}],renderPlayground:e=>{let a={size:e.size,tone:e.tone,placeholder:"Type something\u2026"};return(0,da.jsx)("div",{className:C.maxXs,children:e.as==="textarea"?(0,da.jsx)(Me,{as:"textarea",...a}):(0,da.jsx)(Me,{...a})})},stories:[{id:"text-input",title:"Text Input",render:()=>(0,da.jsxs)("div",{className:`${C.maxXs} ${C.stack}`,children:[(0,da.jsx)(Me,{"aria-label":"Default input",name:"demo-default",autoComplete:"off",placeholder:"e.g., hello world\u2026"}),(0,da.jsx)(Me,{"aria-label":"With value",name:"demo-value",autoComplete:"off",placeholder:"e.g., hello world\u2026",defaultValue:"Hello world"})]})},{id:"sizes",title:"Sizes",render:()=>(0,da.jsxs)("div",{className:`${C.maxSm} ${C.stack}`,children:[(0,da.jsx)(Me,{"aria-label":"Extra small input",size:"xs",placeholder:"Extra small\u2026"}),(0,da.jsx)(Me,{"aria-label":"Small input",size:"sm",placeholder:"Small\u2026"}),(0,da.jsx)(Me,{"aria-label":"Medium input",size:"md",placeholder:"Medium\u2026"}),(0,da.jsx)(Me,{"aria-label":"Large input",size:"lg",placeholder:"Large\u2026"}),(0,da.jsx)(Me,{"aria-label":"Extra large input",size:"xl",placeholder:"Extra large\u2026"})]})},{id:"textarea",title:"Textarea",render:()=>(0,da.jsx)("div",{className:C.maxSm,children:(0,da.jsx)(Me,{as:"textarea","aria-label":"Textarea",placeholder:"Write something\u2026",rows:3})})},{id:"tones",title:"Tones",description:"default / warning",render:()=>(0,da.jsxs)("div",{className:`${C.maxXs} ${C.stack}`,children:[(0,da.jsx)(Me,{tone:"default","aria-label":"Default tone",name:"demo-tone-default",autoComplete:"off",placeholder:"Default tone\u2026"}),(0,da.jsx)(Me,{tone:"warning","aria-label":"Warning tone",name:"demo-tone-warning",autoComplete:"off",placeholder:"Warning tone\u2026"})]})}]});var Zv=y(ve(),1);var Ju={};var oi=y(T(),1);function Nt({label:e,help:a,htmlFor:t,children:o,className:r,...l}){return(0,oi.jsxs)("div",{className:I("owo-field",Ju.root,r),...l,children:[(0,oi.jsx)("label",{htmlFor:t,className:Ju.label,children:e}),o,a?(0,oi.jsx)("span",{className:Ju.help,children:a}):null]})}var Da=y(ve(),1);var $u={};var Oo=y(T(),1);function Ye({value:e,onChange:a,options:t,placeholder:o="Select\u2026",size:r="md",tone:l="default",disabled:n=!1,className:s,ariaLabel:i,renderValue:u,renderOption:d,classNames:m}){let[c,g]=(0,Da.useState)(!1),[v,w]=(0,Da.useState)(-1),D=(0,Da.useRef)(null),p=(0,Da.useRef)(null),f=(0,Da.useId)(),b=t.find(P=>P.value===e),x=(0,Da.useMemo)(()=>t.reduce((P,$,fa)=>($.disabled||P.push(fa),P),[]),[t]),N=(0,Da.useCallback)(()=>{if(n||t.length===0)return;g(!0);let P=t.findIndex($=>$.value===e);w(P>=0?P:x[0]??-1)},[n,t,e,x]),R=(0,Da.useCallback)(()=>{g(!1),w(-1)},[]),z=(0,Da.useCallback)(P=>{P.disabled||(a(P.value),R())},[a,R]);(0,Da.useEffect)(()=>{if(!c)return;function P($){D.current&&!D.current.contains($.target)&&R()}return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[c,R]),(0,Da.useEffect)(()=>{if(!c||v<0)return;p.current?.children[v]?.scrollIntoView({block:"nearest"})},[c,v]);function E(P){if(!n)switch(P.key){case"Enter":case" ":{P.preventDefault(),c?v>=0&&t[v]&&!t[v].disabled&&z(t[v]):N();break}case"ArrowDown":{if(P.preventDefault(),!c)N();else{let $=x.indexOf(v),fa=x[$+1];fa!==void 0&&w(fa)}break}case"ArrowUp":{if(P.preventDefault(),!c)N();else{let $=x.indexOf(v),fa=x[$-1];fa!==void 0&&w(fa)}break}case"Escape":{c&&(P.preventDefault(),R());break}case"Tab":{c&&R();break}}}let q=e!==""&&b,U=u?u({open:c,placeholder:o,selectedOption:b}):(0,Oo.jsx)("span",{className:I($u.valueText,!q&&$u.placeholder),children:q?b.label:o});return(0,Oo.jsxs)("div",{ref:D,"data-state":c?"open":"closed","data-disabled":n||void 0,"data-size":r,"data-tone":l,"data-scope":"select",className:I("owo-select",$u.root,s),children:[(0,Oo.jsxs)("button",{type:"button",role:"combobox","aria-expanded":c,"aria-haspopup":"listbox","aria-controls":f,"aria-label":i,"aria-activedescendant":c&&v>=0?`${f}-opt-${v}`:void 0,"data-state":c?"open":"closed","data-disabled":n||void 0,"data-tone":l,"data-size":r,"data-has-value":q||void 0,"data-scope":"select","data-part":"trigger",disabled:n,className:I(m?.trigger),onClick:()=>c?R():N(),onKeyDown:E,children:[U,(0,Oo.jsx)("svg",{"aria-hidden":"true","data-state":c?"open":"closed","data-scope":"select","data-part":"chevron",className:I(m?.chevron),viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Oo.jsx)("path",{d:"M4 6l4 4 4-4"})})]}),c&&(0,Oo.jsx)("ul",{ref:p,id:f,role:"listbox","aria-label":i,"data-state":"open","data-size":r,"data-scope":"select","data-part":"dropdown",className:I(m?.dropdown),children:t.map((P,$)=>(0,Oo.jsx)("li",{id:`${f}-opt-${$}`,role:"option","aria-selected":P.value===e,"aria-disabled":P.disabled||void 0,"data-state":P.value===e?"selected":$===v?"highlighted":"idle","data-focused":$===v||void 0,"data-selected":P.value===e||void 0,"data-disabled":P.disabled||void 0,"data-highlighted":$===v||void 0,"data-scope":"select","data-part":"option",className:I(m?.option),onClick:()=>z(P),onMouseEnter:()=>!P.disabled&&w($),children:d?d({option:P,index:$,selected:P.value===e,highlighted:$===v}):P.label},P.value))})]})}var ja=y(T(),1);function OC(){let[e,a]=(0,Zv.useState)("");return(0,ja.jsx)("div",{className:`${C.maxXs} ${C.stageBottomMedium}`,children:(0,ja.jsx)(Nt,{label:"Category",htmlFor:"sb-category",children:(0,ja.jsx)(Ye,{value:e,onChange:a,options:[{value:"tech",label:"Technology"},{value:"design",label:"Design"},{value:"other",label:"Other"}],placeholder:"Select a category",ariaLabel:"Category"})})})}Y({group:"forms",componentId:"field",componentName:"Field",description:"Form field wrapper with label and optional help text.",props:[{name:"label",type:"ReactNode",description:"Visible field label rendered above the control."},{name:"help",type:"ReactNode",description:"Optional helper text rendered below the control."},{name:"htmlFor",type:"string",description:"Associates the label with the inner form control id."},{name:"children",type:"ReactNode",description:"Form control content, such as Input or Select."}],stories:[{id:"basic",title:"Basic Field",render:()=>(0,ja.jsx)("div",{className:C.maxXs,children:(0,ja.jsx)(Nt,{label:"Username",htmlFor:"sb-username",children:(0,ja.jsx)(Me,{id:"sb-username",name:"username",autoComplete:"username",placeholder:"Enter username"})})})},{id:"with-help",title:"With Help Text",render:()=>(0,ja.jsx)("div",{className:C.maxXs,children:(0,ja.jsx)(Nt,{label:"Email",htmlFor:"sb-email",help:"We'll never share your email.",children:(0,ja.jsx)(Me,{id:"sb-email",type:"email",name:"email",autoComplete:"email",spellCheck:!1,placeholder:"you@example.com"})})})},{id:"with-textarea",title:"With Textarea",render:()=>(0,ja.jsx)("div",{className:C.maxSm,children:(0,ja.jsx)(Nt,{label:"Bio",htmlFor:"sb-bio",help:"Brief description about yourself.",children:(0,ja.jsx)(Me,{as:"textarea",id:"sb-bio",name:"bio",autoComplete:"off",placeholder:"Tell us about yourself\u2026",rows:3})})})},{id:"with-select",title:"With Select",render:()=>(0,ja.jsx)(OC,{})}]});var Eo=y(ve(),1);var Qe=y(T(),1);function EC(){let[e,a]=(0,Eo.useState)("");return(0,Qe.jsx)("div",{className:`${C.maxXs} ${C.stageBottomLarge}`,children:(0,Qe.jsx)(Ye,{value:e,onChange:a,options:[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"},{value:"dragonfruit",label:"Dragonfruit"}],placeholder:"Choose a fruit\u2026",ariaLabel:"Fruit select"})})}function HC(){let[e,a]=(0,Eo.useState)("apple"),[t,o]=(0,Eo.useState)("apple"),[r,l]=(0,Eo.useState)("apple"),[n,s]=(0,Eo.useState)("apple"),[i,u]=(0,Eo.useState)("apple"),d=[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"}];return(0,Qe.jsxs)("div",{className:`${C.maxXs} ${C.stack} ${C.stageBottomMedium}`,children:[(0,Qe.jsx)(Ye,{value:e,onChange:a,options:[...d],size:"xs",ariaLabel:"Extra small select"}),(0,Qe.jsx)(Ye,{value:t,onChange:o,options:[...d],size:"sm",ariaLabel:"Small select"}),(0,Qe.jsx)(Ye,{value:r,onChange:l,options:[...d],size:"md",ariaLabel:"Medium select"}),(0,Qe.jsx)(Ye,{value:n,onChange:s,options:[...d],size:"lg",ariaLabel:"Large select"}),(0,Qe.jsx)(Ye,{value:i,onChange:u,options:[...d],size:"xl",ariaLabel:"Extra large select"})]})}function PC(){let[e,a]=(0,Eo.useState)("a"),[t,o]=(0,Eo.useState)("a"),r=[{value:"a",label:"Option A"},{value:"b",label:"Option B"}];return(0,Qe.jsxs)("div",{className:`${C.maxXs} ${C.stack}`,children:[(0,Qe.jsx)(Ye,{value:e,onChange:a,options:[...r],tone:"default",ariaLabel:"Default tone"}),(0,Qe.jsx)(Ye,{value:t,onChange:o,options:[...r],tone:"warning",ariaLabel:"Warning tone"})]})}function qC(){return(0,Qe.jsxs)("div",{className:`${C.maxXs} ${C.stack}`,children:[(0,Qe.jsx)(Ye,{value:"",onChange:()=>{},options:[{value:"a",label:"Option A"}],disabled:!0,placeholder:"Disabled",ariaLabel:"Disabled select"}),(0,Qe.jsx)(Ye,{value:"",onChange:()=>{},options:[{value:"a",label:"Enabled"},{value:"b",label:"Disabled option",disabled:!0},{value:"c",label:"Also enabled"}],placeholder:"Has disabled option",ariaLabel:"Disabled option select"})]})}Y({group:"forms",componentId:"select",componentName:"Select",description:"Custom dropdown select with keyboard navigation and design-system styling.",props:[{name:"value",type:"string",description:"Currently selected value."},{name:"onChange",type:"(value: T) => void",description:"Callback when selection changes."},{name:"options",type:"SelectOption<T>[]",description:"Array of { value, label, disabled? }."},{name:"placeholder",type:"string",default:"'Select\u2026'",description:"Placeholder text when no value is selected."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Trigger size."},{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone."},{name:"disabled",type:"boolean",default:"false",description:"Disables the entire select."},{name:"ariaLabel",type:"string",description:"Accessible label for the trigger button."}],renderPlayground:(e,a)=>(0,Qe.jsx)("div",{className:`${C.maxXs} ${C.stageBottomMedium}`,children:(0,Qe.jsx)(Ye,{value:String(e.value??""),onChange:t=>a("value",t),options:[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"}],size:e.size,tone:e.tone,disabled:!!e.disabled,ariaLabel:"Playground select"})}),stories:[{id:"default",title:"Default",render:()=>(0,Qe.jsx)(EC,{})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg / xl",render:()=>(0,Qe.jsx)(HC,{})},{id:"tones",title:"Tones",description:"default / warning",render:()=>(0,Qe.jsx)(PC,{})},{id:"disabled",title:"Disabled",description:"Whole component disabled & individual option disabled.",render:()=>(0,Qe.jsx)(qC,{})}]});var hm=y(ve(),1);var pm={};var gm=y(T(),1);function bn({value:e,onChange:a,options:t,size:o="md",className:r,ariaLabel:l}){return(0,gm.jsx)("div",{role:"tablist","aria-label":l,"data-size":o,className:I("owo-segmented-control",pm.root,r),children:t.map(n=>{let s=n.value===e;return(0,gm.jsx)("button",{type:"button",role:"tab","aria-selected":s,disabled:n.disabled,"data-active":s?"true":void 0,className:pm.item,onClick:()=>a(n.value),children:n.label},n.value)})})}var Xt=y(T(),1);function ri({size:e,label:a}){let[t,o]=(0,hm.useState)("a");return(0,Xt.jsx)(bn,{value:t,onChange:o,options:[{value:"a",label:"Alpha"},{value:"b",label:"Beta"},{value:"c",label:"Gamma"}],size:e,ariaLabel:a})}function FC(){let[e,a]=(0,hm.useState)("on");return(0,Xt.jsx)(bn,{value:e,onChange:a,options:[{value:"on",label:"On"},{value:"off",label:"Off"},{value:"auto",label:"Auto",disabled:!0}],ariaLabel:"Mode with disabled"})}Y({group:"forms",componentId:"segmented-control",componentName:"SegmentedControl",description:"Tab-like toggle for mutually exclusive options.",props:[{name:"value",type:"T extends string",description:"Currently selected option value."},{name:"onChange",type:"(value: T) => void",description:"Called when a new option is selected."},{name:"options",type:"Array<{ value: T; label: string; disabled?: boolean }>",description:"Selectable option list."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Control size."},{name:"ariaLabel",type:"string",description:"Accessible label for the tablist."}],stories:[{id:"sizes",title:"Sizes",description:"xs / sm / md / lg / xl",render:()=>(0,Xt.jsxs)("div",{className:C.rowWrapCenter,children:[(0,Xt.jsx)(ri,{size:"xs",label:"Extra small"}),(0,Xt.jsx)(ri,{size:"sm",label:"Small"}),(0,Xt.jsx)(ri,{size:"md",label:"Medium"}),(0,Xt.jsx)(ri,{size:"lg",label:"Large"}),(0,Xt.jsx)(ri,{size:"xl",label:"Extra large"})]})},{id:"with-disabled",title:"With Disabled Option",render:()=>(0,Xt.jsx)(FC,{})}]});var Dr=y(ve(),1);var bm={};var vm=y(T(),1);function Na({checked:e,onChange:a,size:t="md",disabled:o=!1,className:r,ariaLabel:l}){return(0,vm.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":l,disabled:o,"data-size":t,className:I("owo-switch",bm.root,r),onClick:()=>a(!e),children:(0,vm.jsx)("span",{"aria-hidden":"true",className:bm.thumb})})}var xa=y(T(),1);function _C(){let[e,a]=(0,Dr.useState)(!1);return(0,xa.jsx)(Na,{checked:e,onChange:a,ariaLabel:"Demo toggle"})}function VC(){let[e,a]=(0,Dr.useState)(!0),[t,o]=(0,Dr.useState)(!0),[r,l]=(0,Dr.useState)(!0),[n,s]=(0,Dr.useState)(!0),[i,u]=(0,Dr.useState)(!0);return(0,xa.jsxs)("div",{className:C.rowCenter,children:[(0,xa.jsx)(Na,{checked:e,onChange:a,size:"xs",ariaLabel:"Extra small switch"}),(0,xa.jsx)(Na,{checked:t,onChange:o,size:"sm",ariaLabel:"Small switch"}),(0,xa.jsx)(Na,{checked:r,onChange:l,size:"md",ariaLabel:"Medium switch"}),(0,xa.jsx)(Na,{checked:n,onChange:s,size:"lg",ariaLabel:"Large switch"}),(0,xa.jsx)(Na,{checked:i,onChange:u,size:"xl",ariaLabel:"Extra large switch"})]})}function XC(){let[e,a]=(0,Dr.useState)(!1);return(0,xa.jsxs)("label",{className:C.switchLabel,children:[(0,xa.jsx)(Na,{checked:e,onChange:a,ariaLabel:"Notifications"}),"Enable notifications"]})}Y({group:"forms",componentId:"switch",componentName:"Switch",description:"Toggle switch for boolean settings.",props:[{name:"checked",type:"boolean",description:"Controlled checked state."},{name:"onChange",type:"(checked: boolean) => void",description:"Callback when toggled."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Switch size."},{name:"disabled",type:"boolean",default:"false",description:"Disables the switch."},{name:"ariaLabel",type:"string",description:"Accessible label."}],renderPlayground:(e,a)=>(0,xa.jsx)(Na,{checked:!!e.checked,onChange:t=>a("checked",t),size:e.size,disabled:!!e.disabled,ariaLabel:"Playground switch"}),stories:[{id:"default",title:"Default",render:()=>(0,xa.jsx)(_C,{})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg / xl",render:()=>(0,xa.jsx)(VC,{})},{id:"with-label",title:"With Label",render:()=>(0,xa.jsx)(XC,{})},{id:"disabled",title:"Disabled",render:()=>(0,xa.jsxs)("div",{className:C.rowCenter,children:[(0,xa.jsx)(Na,{checked:!1,onChange:()=>{},disabled:!0,ariaLabel:"Disabled off"}),(0,xa.jsx)(Na,{checked:!0,onChange:()=>{},disabled:!0,ariaLabel:"Disabled on"})]})}]});var vn=y(ve(),1);var Yv={};var Qv=y(T(),1);function zt({className:e,tone:a="default",size:t="md",resize:o="vertical",autoResize:r=!1,style:l,onInput:n,rows:s=3,...i}){let u=(0,vn.useRef)(null),d=n,m=(0,vn.useCallback)(()=>{if(!r||!u.current)return;let v=u.current;v.style.height="auto",v.style.height=`${v.scrollHeight}px`},[r]);(0,vn.useEffect)(()=>{m()},[m,i.value,i.defaultValue,s]);function c(v){m(),d?.(v)}let g={...l,resize:r?"none":o};return(0,Qv.jsx)("textarea",{...i,ref:u,rows:s,"data-tone":a,"data-size":t,"data-auto-resize":r||void 0,className:I("owo-input",ti.root,"owo-textarea",Yv.root,e),style:g,onInput:c})}var wa=y(T(),1);Y({group:"forms",componentId:"textarea",componentName:"Textarea",description:"Dedicated multiline text input that matches the Input token contract while supporting resize and auto-resize behavior.",props:[{name:"size",type:"'xs' | 'sm' | 'md' | 'lg' | 'xl'",default:"'md'",description:"Control size."},{name:"tone",type:"'default' | 'warning'",default:"'default'",description:"Visual tone for neutral or warning emphasis."},{name:"rows",type:"number",default:"3",description:"Initial row count before any auto-resize behavior."},{name:"resize",type:"'none' | 'vertical' | 'both'",default:"'vertical'",description:"Controls native resize affordance."},{name:"autoResize",type:"boolean",default:"false",description:"Automatically grows height to fit content."}],renderPlayground:e=>(0,wa.jsx)("div",{className:C.maxSm,children:(0,wa.jsx)(zt,{size:e.size,tone:e.tone,rows:Number(e.rows??3),resize:e.resize??"vertical",autoResize:!!e.autoResize,placeholder:"Write something longer\u2026"})}),stories:[{id:"default",title:"Default",render:()=>(0,wa.jsx)("div",{className:C.maxSm,children:(0,wa.jsx)(zt,{"aria-label":"Default textarea",placeholder:"Write something longer\u2026",rows:4})})},{id:"sizes",title:"Sizes",render:()=>(0,wa.jsxs)("div",{className:I(C.maxSm,C.textareaGroup),children:[(0,wa.jsx)(zt,{"aria-label":"Extra small textarea",size:"xs",rows:3,placeholder:"Extra small\u2026"}),(0,wa.jsx)(zt,{"aria-label":"Small textarea",size:"sm",rows:3,placeholder:"Small\u2026"}),(0,wa.jsx)(zt,{"aria-label":"Medium textarea",size:"md",rows:3,placeholder:"Medium\u2026"}),(0,wa.jsx)(zt,{"aria-label":"Large textarea",size:"lg",rows:3,placeholder:"Large\u2026"}),(0,wa.jsx)(zt,{"aria-label":"Extra large textarea",size:"xl",rows:3,placeholder:"Extra large\u2026"})]})},{id:"tones-and-resize",title:"Tones And Resize",render:()=>(0,wa.jsxs)("div",{className:I(C.maxSm,C.textareaGroup),children:[(0,wa.jsx)(zt,{"aria-label":"Default tone textarea",rows:3,placeholder:"Default tone\u2026",resize:"vertical"}),(0,wa.jsx)(zt,{"aria-label":"Warning tone textarea",rows:3,placeholder:"Warning tone\u2026",tone:"warning",resize:"both"})]})},{id:"with-field",title:"With Field",render:()=>(0,wa.jsx)("div",{className:C.maxSm,children:(0,wa.jsx)(Nt,{label:"System Prompt",help:"Supports the same visual contract as Input.",children:(0,wa.jsx)(zt,{"aria-label":"System prompt",rows:5,autoResize:!0,defaultValue:`You are a concise assistant.
13
+ Keep responses short.`})})})}]});var Jv=y(ve(),1);var Ra=y(ve(),1);var Nr={};var Bt=y(T(),1),jv=(0,Ra.createContext)(null);function Wv(e){let a=(0,Ra.useContext)(jv);if(!a)throw new Error(`${e} must be used within Collapsible.Root`);return a}function QC({open:e,defaultOpen:a,onOpenChange:t}){let[o,r]=(0,Ra.useState)(a??!1),l=e!==void 0,n=l?e:o;function s(i){l||r(i),t?.(i)}return[n,s]}function Kv({children:e,open:a,defaultOpen:t,onOpenChange:o,classNames:r,className:l,...n}){let[s,i]=QC({open:a,defaultOpen:t,onOpenChange:o}),u=(0,Ra.useId)(),d=(0,Ra.useMemo)(()=>({open:s,setOpen:i,contentId:u,classNames:r}),[u,s,i,r]);return(0,Bt.jsx)(jv.Provider,{value:d,children:(0,Bt.jsx)("div",{"data-state":s?"open":"closed","data-scope":"collapsible",className:I("owo-collapsible",Nr.root,l),...n,children:e})})}function KC({children:e,icon:a,indicator:t,iconPosition:o="start",className:r,onClick:l,...n}){let{open:s,setOpen:i,contentId:u,classNames:d}=Wv("Collapsible.Trigger"),c=a!==void 0||t!==void 0?(0,Bt.jsxs)("span",{"data-part":"triggerInner",className:I(Nr.triggerInner,d?.triggerInner),children:[a&&o==="start"?(0,Bt.jsx)("span",{"data-part":"triggerIcon","aria-hidden":"true",className:I(Nr.triggerIcon,d?.triggerIcon),children:a}):null,(0,Bt.jsx)("span",{"data-part":"triggerLabel",className:I(Nr.triggerLabel,d?.triggerLabel),children:e}),a&&o==="end"?(0,Bt.jsx)("span",{"data-part":"triggerIcon","aria-hidden":"true",className:I(Nr.triggerIcon,d?.triggerIcon),children:a}):null,t?(0,Bt.jsx)("span",{"data-part":"triggerIndicator","aria-hidden":"true",className:I(Nr.triggerIndicator,d?.triggerIndicator),children:t}):null]}):e;return(0,Bt.jsx)("button",{type:"button","aria-expanded":s,"aria-controls":u,"data-state":s?"open":"closed","data-scope":"collapsible","data-part":"trigger",className:I(d?.trigger,r),onClick:g=>{l?.(g),g.defaultPrevented||i(!s)},...n,children:c})}function jC({children:e,className:a,...t}){let{open:o,contentId:r,classNames:l}=Wv("Collapsible.Content"),[n,s]=(0,Ra.useState)(o),i=(0,Ra.useRef)(null),u=(0,Ra.useRef)(null);return(0,Ra.useEffect)(()=>{let d=i.current,m=u.current;if(!d||!m)return;let c=0,g=0,v=()=>{d.style.height="auto",d.style.overflow="visible"};if(o&&s(!0),!n&&!o)return;let w=p=>{p.target!==d||p.propertyName!=="height"||(d.removeEventListener("transitionend",w),o?v():s(!1))};return(()=>{let p=m.scrollHeight;if(d.style.overflow="hidden",o){d.style.height="0px",c=window.requestAnimationFrame(()=>{d.addEventListener("transitionend",w),d.style.height=`${p}px`}),g=window.setTimeout(v,240);return}d.style.height=`${p}px`,c=window.requestAnimationFrame(()=>{d.addEventListener("transitionend",w),d.style.height="0px"}),g=window.setTimeout(()=>s(!1),240)})(),()=>{window.cancelAnimationFrame(c),window.clearTimeout(g),d.removeEventListener("transitionend",w)}},[o,n]),!n&&!o?null:(0,Bt.jsx)("div",{id:r,ref:i,"data-state":o?"open":"closed","data-scope":"collapsible","data-part":"content","aria-hidden":!o,className:I(l?.content,a),...t,children:(0,Bt.jsx)("div",{ref:u,"data-part":"contentInner",className:I(Nr.contentInner,l?.contentInner),children:e})})}var WC=Object.assign(Kv,{Root:Kv,Trigger:KC,Content:jC}),V=WC;var A=y(T(),1),xm={trigger:C.faqTrigger,content:C.faqContent};function JC(){return(0,A.jsxs)("div",{className:C.faqCard,children:[(0,A.jsxs)(V,{defaultOpen:!0,className:C.faqItem,classNames:xm,children:[(0,A.jsxs)(V.Trigger,{children:[(0,A.jsx)("span",{className:C.faqQuestion,children:"What is the difference between a primitive and a styled FAQ item?"}),(0,A.jsx)(ua,{size:16,className:C.faqChevron})]}),(0,A.jsxs)(V.Content,{children:[(0,A.jsx)("code",{children:"Collapsible"})," only provides disclosure behavior. A FAQ item is a composed pattern layered on top with its own spacing, borders, and typography."]})]}),(0,A.jsxs)(V,{className:C.faqItem,classNames:xm,children:[(0,A.jsxs)(V.Trigger,{children:[(0,A.jsx)("span",{className:C.faqQuestion,children:"Should Collapsible itself ship with card borders by default?"}),(0,A.jsx)(ua,{size:16,className:C.faqChevron})]}),(0,A.jsx)(V.Content,{children:"Usually no. The primitive should stay neutral, while FAQ, settings, and reasoning panels decide their own container styling."})]}),(0,A.jsxs)(V,{className:C.faqItem,classNames:xm,children:[(0,A.jsxs)(V.Trigger,{children:[(0,A.jsx)("span",{className:C.faqQuestion,children:"Can I use classNames to style all parts from the root?"}),(0,A.jsx)(ua,{size:16,className:C.faqChevron})]}),(0,A.jsxs)(V.Content,{children:["Yes. Pass a ",(0,A.jsx)("code",{children:"classNames"})," object with ",(0,A.jsx)("code",{children:"trigger"})," and ",(0,A.jsx)("code",{children:"content"})," keys. Each class is merged into the corresponding part, so you do not need to pass className on every child."]})]})]})}function $C(){let[e,a]=(0,Jv.useState)(!1);return(0,A.jsxs)("div",{className:C.collapsibleCard,children:[(0,A.jsx)("div",{className:C.collapsibleControlRow,children:(0,A.jsx)(B,{variant:"secondary",size:"sm",onClick:()=>a(!e),children:e?"Collapse":"Expand"})}),(0,A.jsxs)(V,{open:e,onOpenChange:a,children:[(0,A.jsxs)(V.Trigger,{className:C.collapsibleTrigger,children:[(0,A.jsx)("span",{children:"Controlled Section"}),(0,A.jsx)(ua,{size:16,className:C.collapsibleChevron})]}),(0,A.jsxs)(V.Content,{className:C.collapsibleCardText,children:["This section is controlled externally. The trigger still works, but state is owned by the parent via ",(0,A.jsx)("code",{children:"open"})," and ",(0,A.jsx)("code",{children:"onOpenChange"}),"."]})]})]})}function e1(){return(0,A.jsxs)("div",{className:C.settingsCard,children:[(0,A.jsxs)(V,{defaultOpen:!0,classNames:{trigger:C.settingsTrigger,content:C.settingsContent,triggerIcon:C.settingsIcon,triggerIndicator:C.settingsChevron},children:[(0,A.jsx)(V.Trigger,{icon:(0,A.jsx)(Aa,{size:14}),indicator:(0,A.jsx)(Ft,{size:14}),children:(0,A.jsx)("span",{className:C.settingsLabel,children:"General"})}),(0,A.jsx)(V.Content,{children:(0,A.jsx)("div",{className:C.settingsRow,children:"Display name, language, timezone"})})]}),(0,A.jsxs)(V,{classNames:{trigger:C.settingsTrigger,content:C.settingsContent,triggerIcon:C.settingsIcon,triggerIndicator:C.settingsChevron},children:[(0,A.jsx)(V.Trigger,{icon:(0,A.jsx)(Vt,{size:14}),indicator:(0,A.jsx)(Ft,{size:14}),children:(0,A.jsx)("span",{className:C.settingsLabel,children:"Danger Zone"})}),(0,A.jsx)(V.Content,{children:(0,A.jsx)("div",{className:C.settingsRow,children:"Delete account, export data, revoke tokens"})})]}),(0,A.jsxs)(V,{classNames:{trigger:C.settingsTrigger,content:C.settingsContent,triggerIcon:C.settingsIcon,triggerIndicator:C.settingsChevron},children:[(0,A.jsx)(V.Trigger,{icon:(0,A.jsx)(Sr,{size:14}),indicator:(0,A.jsx)(Ft,{size:14}),children:(0,A.jsx)("span",{className:C.settingsLabel,children:"About"})}),(0,A.jsx)(V.Content,{children:(0,A.jsx)("div",{className:C.settingsRow,children:"Version 0.1.6 \xB7 MIT License"})})]})]})}function a1(){return(0,A.jsx)("div",{className:C.collapsibleCard,children:(0,A.jsxs)(V,{defaultOpen:!0,children:[(0,A.jsxs)(V.Trigger,{className:C.collapsibleTrigger,children:[(0,A.jsx)("span",{children:"Parent Section"}),(0,A.jsx)(ua,{size:16,className:C.collapsibleChevron})]}),(0,A.jsxs)(V.Content,{className:C.collapsibleCardText,children:[(0,A.jsx)("p",{children:"This is the parent content. It contains a nested collapsible:"}),(0,A.jsx)("div",{className:C.nestedChild,children:(0,A.jsxs)(V,{children:[(0,A.jsxs)(V.Trigger,{className:C.collapsibleTriggerCompact,children:[(0,A.jsx)("span",{children:"Nested Detail"}),(0,A.jsx)(ua,{size:14,className:C.collapsibleChevron})]}),(0,A.jsx)(V.Content,{className:C.collapsibleCardText,children:"Each Collapsible instance manages its own independent open state. Nesting works without any special configuration."})]})})]})]})})}Y({group:"forms",componentId:"collapsible",componentName:"Collapsible",description:"Composable primitive for disclosure sections, reasoning panels, and settings details blocks.",props:[{name:"open",type:"boolean",description:"Controlled open state."},{name:"defaultOpen",type:"boolean (uncontrolled only)",default:"false",description:"Initial open state for uncontrolled usage. Ignored when open is provided."},{name:"onOpenChange",type:"(open: boolean) => void",description:"Change callback for controlled or uncontrolled state updates."},{name:"classNames",type:"Partial<Record<CollapsiblePart, string>>",description:"Slot classes injected into trigger, content, and internal wrappers."},{name:"Trigger.icon",type:"ReactNode",description:"Optional icon slot rendered inside the trigger."},{name:"Trigger.indicator",type:"ReactNode",description:"Optional trailing indicator rendered at the far edge of the trigger."},{name:"Trigger.iconPosition",type:"IconPosition ('start' | 'end')",default:"'start'",description:"Whether the trigger icon is rendered before or after the label."}],renderPlayground:(e,a)=>{let t=!!e.open;return(0,A.jsx)("div",{className:C.collapsibleCard,style:{alignSelf:"flex-start",width:"28rem"},children:(0,A.jsxs)(V,{open:t,onOpenChange:o=>a("open",o),classNames:{trigger:C.collapsibleTrigger,content:C.collapsibleCardText,triggerIndicator:C.collapsibleChevron},children:[(0,A.jsx)(V.Trigger,{indicator:(0,A.jsx)(ua,{size:16}),children:"Toggle this section"}),(0,A.jsx)(V.Content,{children:"Content visible when open. Try the controls below."})]})})},stories:[{id:"default",title:"Default (Open)",description:"Basic disclosure with defaultOpen. The primitive provides no visual styling \u2014 consumers own all appearance.",source:`<Collapsible defaultOpen>
14
+ <Collapsible.Trigger className="trigger">
15
+ <span>Reasoning</span>
16
+ <ChevronDown size={16} />
17
+ </Collapsible.Trigger>
18
+ <Collapsible.Content className="content">
19
+ This area can hold AI reasoning, debug detail,
20
+ or an advanced configuration section.
21
+ </Collapsible.Content>
22
+ </Collapsible>`,render:()=>(0,A.jsx)("div",{className:C.collapsibleCard,children:(0,A.jsxs)(V,{defaultOpen:!0,children:[(0,A.jsxs)(V.Trigger,{className:C.collapsibleTrigger,children:[(0,A.jsx)("span",{children:"Reasoning"}),(0,A.jsx)(ua,{size:16,className:C.collapsibleChevron})]}),(0,A.jsx)(V.Content,{className:C.collapsibleCardText,children:"This area can hold AI reasoning, debug detail, or an advanced configuration section."})]})})},{id:"closed",title:"Default (Closed)",description:"Starts collapsed. Click the trigger to expand.",render:()=>(0,A.jsx)("div",{className:C.collapsibleCard,children:(0,A.jsxs)(V,{children:[(0,A.jsxs)(V.Trigger,{className:C.collapsibleTrigger,children:[(0,A.jsx)("span",{children:"Click to reveal"}),(0,A.jsx)(ua,{size:16,className:C.collapsibleChevron})]}),(0,A.jsx)(V.Content,{className:C.collapsibleCardText,children:"Hidden by default. The open/close transition is animated via height."})]})})},{id:"controlled",title:"Controlled",description:"State owned by the parent via open + onOpenChange. An external button can also toggle the section.",source:`const [open, setOpen] = useState(false);
23
+
24
+ <Button onClick={() => setOpen(!open)}>
25
+ {open ? 'Collapse' : 'Expand'}
26
+ </Button>
27
+ <Collapsible open={open} onOpenChange={setOpen}>
28
+ <Collapsible.Trigger>\u2026</Collapsible.Trigger>
29
+ <Collapsible.Content>\u2026</Collapsible.Content>
30
+ </Collapsible>`,render:()=>(0,A.jsx)($C,{})},{id:"classnames-slot",title:"classNames Slot",description:"Pass classNames on the root to inject classes into trigger, content, and internal slot wrappers without touching children.",source:`<Collapsible
31
+ classNames={{
32
+ trigger: 'my-trigger',
33
+ content: 'my-content',
34
+ triggerIcon: 'my-trigger-icon',
35
+ triggerIndicator: 'my-trigger-indicator',
36
+ }}
37
+ >
38
+ <Collapsible.Trigger icon={<Info size={14} />} indicator={<ChevronDown size={16} />}>
39
+ Question
40
+ </Collapsible.Trigger>
41
+ <Collapsible.Content>
42
+ Answer \u2014 classes are merged automatically.
43
+ </Collapsible.Content>
44
+ </Collapsible>`,render:()=>(0,A.jsx)("div",{className:C.collapsibleCard,children:(0,A.jsxs)(V,{defaultOpen:!0,classNames:{trigger:C.collapsibleTrigger,content:C.collapsibleCardText,triggerIndicator:C.collapsibleChevron},children:[(0,A.jsx)(V.Trigger,{indicator:(0,A.jsx)(ua,{size:16}),children:"classNames demo"}),(0,A.jsxs)(V.Content,{children:["This trigger and content are styled via ",(0,A.jsx)("code",{children:"classNames"})," on the root, not via individual className props."]})]})})},{id:"icon-and-surface-theming",title:"Icon + Surface Theming",description:"Use trigger icon/indicator props plus root-level CSS variables to theme trigger and content backgrounds.",source:`<Collapsible
45
+ defaultOpen
46
+ className="my-collapsible"
47
+ classNames={{
48
+ trigger: 'my-trigger',
49
+ content: 'my-content',
50
+ triggerIcon: 'my-trigger-icon',
51
+ triggerIndicator: 'my-trigger-indicator',
52
+ }}
53
+ >
54
+ <Collapsible.Trigger
55
+ icon={<Settings size={14} />}
56
+ indicator={<ChevronDown size={16} />}
57
+ >
58
+ Publishing preferences
59
+ </Collapsible.Trigger>
60
+ <Collapsible.Content>
61
+ The root can define --collapsible-trigger-bg and --collapsible-content-bg.
62
+ </Collapsible.Content>
63
+ </Collapsible>`,render:()=>(0,A.jsx)("div",{className:C.themedCollapsible,children:(0,A.jsxs)(V,{defaultOpen:!0,classNames:{trigger:C.themedTrigger,content:C.themedContent,contentInner:C.themedContentInner,triggerIcon:C.themedTriggerIcon,triggerIndicator:C.themedTriggerIndicator},children:[(0,A.jsx)(V.Trigger,{icon:(0,A.jsx)(Aa,{size:14}),indicator:(0,A.jsx)(ua,{size:16}),children:"Publishing preferences"}),(0,A.jsxs)(V.Content,{children:["The primitive now exposes structured trigger slots, and the root can theme surfaces via"," ",(0,A.jsx)("code",{children:"--collapsible-trigger-bg"}),","," ",(0,A.jsx)("code",{children:"--collapsible-trigger-bg-hover"}),","," ",(0,A.jsx)("code",{children:"--collapsible-trigger-bg-open"}),","," ","and ",(0,A.jsx)("code",{children:"--collapsible-content-bg"}),"."]})]})})},{id:"nested",title:"Nested",description:"Collapsible inside another Collapsible. Each instance manages its own state independently.",render:()=>(0,A.jsx)(a1,{})},{id:"settings-pattern",title:"Settings Pattern",description:"Sidebar-style settings sections with icons and a right chevron indicator.",source:`<Collapsible classNames={{ trigger: 'settings-trigger', content: 'settings-body' }}>
64
+ <Collapsible.Trigger
65
+ icon={<Settings size={14} />}
66
+ indicator={<ChevronRight size={14} />}
67
+ >
68
+ General
69
+ </Collapsible.Trigger>
70
+ <Collapsible.Content>
71
+ Display name, language, timezone
72
+ </Collapsible.Content>
73
+ </Collapsible>`,render:()=>(0,A.jsx)(e1,{})},{id:"faq-pattern",title:"FAQ Pattern",description:"Bordered card with dividers. Uses classNames to inject FAQ-specific styling from the root.",source:`const faqSlots = {
74
+ trigger: 'faq-trigger',
75
+ content: 'faq-content',
76
+ };
77
+
78
+ <Collapsible className="faq-item" classNames={faqSlots}>
79
+ <Collapsible.Trigger>
80
+ <span>Question text</span>
81
+ <ChevronDown size={16} />
82
+ </Collapsible.Trigger>
83
+ <Collapsible.Content>
84
+ Answer \u2014 classNames injects into each part.
85
+ </Collapsible.Content>
86
+ </Collapsible>`,render:()=>(0,A.jsx)(JC,{})}]});var so=y(ve(),1);var $v={};var xn=y(T(),1),ax=(0,so.createContext)(null);function tx(e){let a=(0,so.useContext)(ax);if(!a)throw new Error(`${e} must be used within Tabs.Root`);return a}function ed(e){return e.replace(/[^a-zA-Z0-9_-]+/g,"-")}function o1({value:e,defaultValue:a,onValueChange:t}){let[o,r]=(0,so.useState)(a??""),l=e!==void 0,n=l?e:o;function s(i){l||r(i),t?.(i)}return[n,s]}function ex({children:e,value:a,defaultValue:t,onValueChange:o,className:r,...l}){let[n,s]=o1({value:a,defaultValue:t,onValueChange:o}),i=(0,so.useId)(),u=(0,so.useMemo)(()=>({value:n,setValue:s,baseId:i}),[i,n,s]);return(0,xn.jsx)(ax.Provider,{value:u,children:(0,xn.jsx)("div",{"data-scope":"tabs",className:I("owo-tabs",$v.root,r),...l,children:e})})}function r1({children:e,className:a,ariaLabel:t,...o}){return(0,xn.jsx)("div",{role:"tablist","aria-label":t,"data-scope":"tabs","data-part":"list",className:I(a),...o,children:e})}function l1({children:e,className:a,value:t,disabled:o,onClick:r,onKeyDown:l,...n}){let{value:s,setValue:i,baseId:u}=tx("Tabs.Trigger"),d=s===t,m=`${u}-trigger-${ed(t)}`,c=`${u}-panel-${ed(t)}`;function g(v,w){let D=v.closest('[role="tablist"]');if(!D)return;let p=Array.from(D.querySelectorAll('[role="tab"]:not([disabled])')),f=p.indexOf(v);if(f<0)return;let b;w==="first"&&(b=p[0]),w==="last"&&(b=p[p.length-1]),w==="next"&&(b=p[(f+1)%p.length]),w==="prev"&&(b=p[(f-1+p.length)%p.length]),b&&(b.focus(),b.click())}return(0,xn.jsx)("button",{type:"button",id:m,role:"tab","aria-selected":d,"aria-controls":c,tabIndex:d?0:-1,"data-state":d?"active":"inactive","data-scope":"tabs","data-part":"trigger",disabled:o,className:I(a),onClick:v=>{r?.(v),!v.defaultPrevented&&!o&&i(t)},onKeyDown:v=>{if(l?.(v),v.defaultPrevented||o)return;let w=v.currentTarget;switch(v.key){case"ArrowRight":v.preventDefault(),g(w,"next");break;case"ArrowLeft":v.preventDefault(),g(w,"prev");break;case"Home":v.preventDefault(),g(w,"first");break;case"End":v.preventDefault(),g(w,"last");break}},...n,children:e})}function n1({children:e,className:a,value:t,...o}){let{value:r,baseId:l}=tx("Tabs.Content"),n=r===t,s=`${l}-trigger-${ed(t)}`,i=`${l}-panel-${ed(t)}`;return n?(0,xn.jsx)("div",{id:i,role:"tabpanel","aria-labelledby":s,"data-state":"active","data-scope":"tabs","data-part":"content",className:I(a),...o,children:e}):null}var s1=Object.assign(ex,{Root:ex,List:r1,Trigger:l1,Content:n1}),ct=s1;var Wa=y(T(),1);Y({group:"forms",componentId:"tabs",componentName:"Tabs",description:"Navigation-grade tab primitive with keyboard support and linked tab panels.",props:[{name:"value",type:"string",description:"Controlled active tab value."},{name:"defaultValue",type:"string",description:"Initial tab value for uncontrolled usage."},{name:"onValueChange",type:"(value: string) => void",description:"Change callback when the active tab changes."}],stories:[{id:"settings-tabs",title:"Settings Tabs",render:()=>(0,Wa.jsx)("div",{className:C.max2xl,children:(0,Wa.jsxs)(ct,{defaultValue:"settings",children:[(0,Wa.jsxs)(ct.List,{ariaLabel:"Settings sections",children:[(0,Wa.jsx)(ct.Trigger,{value:"settings",children:"Settings"}),(0,Wa.jsx)(ct.Trigger,{value:"account",children:"Account"}),(0,Wa.jsx)(ct.Trigger,{value:"admin",disabled:!0,children:"Admin"})]}),(0,Wa.jsx)(ct.Content,{value:"settings",children:(0,Wa.jsx)("div",{className:C.tabsPanel,children:"Settings panel content."})}),(0,Wa.jsx)(ct.Content,{value:"account",children:(0,Wa.jsx)("div",{className:C.tabsPanel,children:"Account panel content."})}),(0,Wa.jsx)(ct.Content,{value:"admin",children:(0,Wa.jsx)("div",{className:C.tabsPanel,children:"Admin panel content."})})]})})}]});var ox={};var rx=y(T(),1);function Ce({tone:e="neutral",variant:a="soft",size:t="xs",className:o,children:r,...l}){return(0,rx.jsx)("span",{"data-tone":e,"data-variant":a,"data-size":t,className:I("owo-badge",ox.root,o),...l,children:r})}var k={};var Ke=y(T(),1);Y({group:"feedback",componentId:"badge",componentName:"Badge",description:"Inline label for status, categories, or counts. Token-driven: --badge-bg, --badge-text, --badge-border.",props:[{name:"tone",type:"'neutral' | 'info' | 'success' | 'warning' | 'danger'",default:"'neutral'",description:"Semantic color tone."},{name:"variant",type:"'soft' | 'outline'",default:"'soft'",description:"Fill style. Soft uses tinted background; outline uses transparent bg with visible border."},{name:"size",type:"'xs' | 'sm'",default:"'xs'",description:"Compact or slightly larger badge size."},{name:"children",type:"ReactNode",description:"Badge content."}],renderPlayground:e=>(0,Ke.jsx)(Ce,{tone:e.tone,variant:e.variant,size:e.size,children:"Badge"}),stories:[{id:"tones-soft",title:"Tones (Soft)",description:"neutral / info / success / warning / danger \u2014 soft variant",render:()=>(0,Ke.jsxs)("div",{className:k.row,children:[(0,Ke.jsx)(Ce,{tone:"neutral",children:"Neutral"}),(0,Ke.jsx)(Ce,{tone:"info",children:"Info"}),(0,Ke.jsx)(Ce,{tone:"success",children:"Success"}),(0,Ke.jsx)(Ce,{tone:"warning",children:"Warning"}),(0,Ke.jsx)(Ce,{tone:"danger",children:"Danger"})]})},{id:"tones-outline",title:"Tones (Outline)",description:"Same tones with outline variant \u2014 transparent bg, colored border.",render:()=>(0,Ke.jsxs)("div",{className:k.row,children:[(0,Ke.jsx)(Ce,{tone:"neutral",variant:"outline",children:"Neutral"}),(0,Ke.jsx)(Ce,{tone:"info",variant:"outline",children:"Info"}),(0,Ke.jsx)(Ce,{tone:"success",variant:"outline",children:"Success"}),(0,Ke.jsx)(Ce,{tone:"warning",variant:"outline",children:"Warning"}),(0,Ke.jsx)(Ce,{tone:"danger",variant:"outline",children:"Danger"})]})},{id:"sizes",title:"Sizes",description:"xs / sm",render:()=>(0,Ke.jsxs)("div",{className:k.row,children:[(0,Ke.jsx)(Ce,{size:"xs",tone:"info",children:"XS Badge"}),(0,Ke.jsx)(Ce,{size:"sm",tone:"info",children:"SM Badge"})]})},{id:"variant-comparison",title:"Variant Comparison",description:"Soft vs outline side by side for each tone.",render:()=>(0,Ke.jsx)("div",{className:k.stack,children:["neutral","info","success","warning","danger"].map(e=>(0,Ke.jsxs)("div",{className:k.row,children:[(0,Ke.jsxs)(Ce,{size:"sm",tone:e,variant:"soft",children:[e," soft"]}),(0,Ke.jsxs)(Ce,{size:"sm",tone:e,variant:"outline",children:[e," outline"]})]},e))})}]});var Rt={};var ya=y(T(),1);function Fe({tone:e="neutral",layout:a="horizontal",icon:t,title:o,description:r,action:l,className:n,children:s,...i}){if(a==="vertical"){let u=t||o||r||l;return(0,ya.jsx)("div",{"data-tone":e,"data-layout":"vertical",className:I("owo-status-notice",Rt.root,n),...i,children:u?(0,ya.jsxs)("div",{className:Rt.body,children:[t&&(0,ya.jsx)("div",{className:Rt.icon,children:t}),o&&(0,ya.jsx)("div",{className:Rt.title,children:o}),r&&(0,ya.jsx)("div",{children:r}),l&&(0,ya.jsx)("div",{className:Rt.action,children:l})]}):s})}return(0,ya.jsx)("div",{"data-tone":e,className:I("owo-status-notice",Rt.root,t&&Rt.withIcon,n),...i,children:t?(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.jsx)("span",{className:Rt.icon,"aria-hidden":"true",children:t}),(0,ya.jsxs)("div",{className:Rt.text,children:[o&&(0,ya.jsx)("div",{className:Rt.title,children:o}),s]})]}):(0,ya.jsxs)(ya.Fragment,{children:[o&&(0,ya.jsx)("div",{className:Rt.title,children:o}),s]})})}var de=y(T(),1);Y({group:"feedback",componentId:"status-notice",componentName:"StatusNotice",description:"Block-level feedback banner. Supports horizontal (default) and vertical layouts, with optional icon, title, description, and action slots.",props:[{name:"tone",type:"'neutral' | 'info' | 'success' | 'warning' | 'danger'",default:"'success'",description:"Semantic message tone."},{name:"layout",type:"'horizontal' | 'vertical'",default:"'horizontal'",description:"Layout direction. Vertical centers content for empty states."},{name:"children",type:"string",default:"'Operation completed successfully.'",description:"Notice content."},{name:"icon",type:"ReactNode",description:"Optional icon slot."},{name:"title",type:"ReactNode",description:"Optional bold title above content."},{name:"description",type:"ReactNode",description:"Description text (vertical layout)."},{name:"action",type:"ReactNode",description:"Action slot, e.g. a button (vertical layout)."},{name:"className",type:"string",description:"Additional classes for layout or spacing."}],renderPlayground:e=>(0,de.jsx)(Fe,{tone:e.tone,layout:e.layout,children:e.children||"Operation completed successfully."}),stories:[{id:"tones",title:"Tones",description:"info / success / warning / danger",render:()=>(0,de.jsxs)("div",{className:k.columnGap3,children:[(0,de.jsx)(Fe,{tone:"neutral",children:"General system guidance without a semantic alert state."}),(0,de.jsx)(Fe,{tone:"info",children:"This is an informational notice."}),(0,de.jsx)(Fe,{tone:"success",children:"Operation completed successfully."}),(0,de.jsx)(Fe,{tone:"warning",children:"Please review before continuing."}),(0,de.jsx)(Fe,{tone:"danger",children:"Something went wrong. Please try again."})]})},{id:"with-icons",title:"With Icons",render:()=>(0,de.jsxs)("div",{className:k.columnGap3,children:[(0,de.jsx)(Fe,{tone:"info",icon:(0,de.jsx)(Sr,{size:16}),children:"Background indexing is still in progress."}),(0,de.jsx)(Fe,{tone:"success",icon:(0,de.jsx)(xr,{size:16}),children:"Draft and main are fully aligned."}),(0,de.jsx)(Fe,{tone:"warning",icon:(0,de.jsx)(Vt,{size:16}),children:"One route conflict still needs manual review."}),(0,de.jsx)(Fe,{tone:"danger",icon:(0,de.jsx)(Gt,{size:16}),children:"Publishing failed. Retry after refreshing the snapshot."})]})},{id:"with-title",title:"With Title",description:"Horizontal layout with bold title above children.",render:()=>(0,de.jsxs)("div",{className:k.columnGap3,children:[(0,de.jsx)(Fe,{tone:"info",icon:(0,de.jsx)(Sr,{size:16}),title:"New feature available",children:"Workspace analytics are now in beta. Enable them in your project settings."}),(0,de.jsx)(Fe,{tone:"warning",icon:(0,de.jsx)(Vt,{size:16}),title:"Action required",children:"Your API key expires in 3 days. Regenerate it from Settings."})]})},{id:"vertical-empty",title:"Vertical Layout (Empty State)",description:"Centered layout for empty lists or missing content.",render:()=>(0,de.jsxs)("div",{className:k.columnGap4,children:[(0,de.jsx)(Fe,{layout:"vertical",children:"No items found."}),(0,de.jsx)(Fe,{layout:"vertical",title:"No posts yet",description:"Create your first post to get started.",action:(0,de.jsx)(B,{variant:"primary",size:"sm",children:"Create Post"})}),(0,de.jsx)(Fe,{layout:"vertical",icon:(0,de.jsx)("span",{className:k.text2xl,children:"\u{1F4ED}"}),title:"Inbox empty",description:"You have no new messages."})]})},{id:"vertical-tones",title:"Vertical Tones",description:"Vertical layout with semantic tones.",render:()=>(0,de.jsxs)("div",{className:k.columnGap4,children:[(0,de.jsx)(Fe,{layout:"vertical",tone:"neutral",title:"Neutral",description:"Default empty state."}),(0,de.jsx)(Fe,{layout:"vertical",tone:"info",title:"Info",description:"Informational empty state."}),(0,de.jsx)(Fe,{layout:"vertical",tone:"warning",title:"Warning",description:"Attention-drawing empty state."})]})}]});var je=y(T(),1);Y({group:"feedback",componentId:"spinner",componentName:"Spinner",description:"Animated loading indicator with multiple icon styles. Used standalone or composed into other components (e.g. Button loading state).",defaultScale:3,props:[{name:"variant",type:"'ring' | 'arc' | 'dots' | 'bars' | 'bounce' | 'pulse' | 'orbit' | 'flow'",default:"'ring'",description:"Spinner icon style."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg'",default:"'md'",description:"Preset size, or pass a number for custom pixel size."},{name:"label",type:"string",description:"Accessible label. When set, spinner is announced to screen readers."},{name:"className",type:"string",description:"Additional CSS classes."}],renderPlayground:e=>(0,je.jsx)(qa,{variant:e.variant,size:e.size}),stories:[{id:"variants",title:"Variants",description:"ring / arc / dots / bars / bounce / pulse / orbit / flow",render:()=>(0,je.jsx)("div",{className:k.spinnerVariantsRow,children:["ring","arc","dots","bars","bounce","pulse","orbit","flow"].map(e=>(0,je.jsxs)("div",{className:k.spinnerVariantCell,children:[(0,je.jsx)(qa,{variant:e,size:"lg"}),(0,je.jsx)("span",{className:k.text11Muted,children:e})]},e))})},{id:"sizes",title:"Sizes",description:"xs / sm / md / lg",render:()=>(0,je.jsxs)("div",{className:k.rowCenter,children:[(0,je.jsx)(qa,{size:"xs"}),(0,je.jsx)(qa,{size:"sm"}),(0,je.jsx)(qa,{size:"md"}),(0,je.jsx)(qa,{size:"lg"})]})},{id:"with-text",title:"Inline with Text",render:()=>(0,je.jsxs)("div",{className:k.columnGap3,children:[(0,je.jsxs)("div",{className:k.rowCenterSm,children:[(0,je.jsx)(qa,{variant:"ring",size:"sm"}),(0,je.jsx)("span",{className:k.mutedText,children:"Loading data\u2026"})]}),(0,je.jsxs)("div",{className:k.rowCenterSm,children:[(0,je.jsx)(qa,{variant:"flow",size:"sm"}),(0,je.jsx)("span",{className:k.mutedText,children:"Processing\u2026"})]}),(0,je.jsxs)("div",{className:k.rowCenterSm,children:[(0,je.jsx)(qa,{variant:"bounce",size:"sm"}),(0,je.jsx)("span",{className:k.mutedText,children:"Waiting for response\u2026"})]})]})}]});var lx={};var nx=y(T(),1),f1={slow:"4s",medium:"3s",fast:"2s"};function Se({className:e,animation:a="scan",tone:t="default",speed:o="medium",style:r,...l}){let n=t==="warm"?"emphasis":t,s={...r,"--_owo-skeleton-scan-duration":f1[o]};return(0,nx.jsx)("div",{className:I("owo-skeleton",lx.root,e),"data-animation":a,"data-tone":n,"aria-hidden":"true",style:s,...l})}var W=y(T(),1);Y({group:"feedback",componentId:"skeleton",componentName:"Skeleton",description:"Loading placeholder with `scan` or `pulse` animation and configurable speed.",props:[{name:"animation",type:"'pulse' | 'scan'",default:"'scan'",description:"Chooses the loading motion style."},{name:"tone",type:"'default' | 'emphasis'",default:"'default'",description:"Semantic emphasis level of the placeholder."},{name:"speed",type:"'slow' | 'medium' | 'fast'",default:"'medium'",description:"Scan animation speed: slow (4s), medium (3s), fast (2s)."},{name:"className",type:"string",description:"Controls skeleton shape and dimensions."}],renderPlayground:e=>(0,W.jsxs)("div",{className:k.columnGap3,children:[(0,W.jsx)(Se,{animation:e.animation,tone:e.tone,speed:e.speed,className:k.skeletonLineMd}),(0,W.jsx)(Se,{animation:e.animation,tone:e.tone,speed:e.speed,className:k.skeletonLineLg})]}),stories:[{id:"scan",title:"Scan",render:()=>(0,W.jsxs)("div",{className:k.columnGap4,children:[(0,W.jsx)(Se,{className:k.skeletonLineMd}),(0,W.jsx)(Se,{className:k.skeletonLineLg}),(0,W.jsx)(Se,{className:k.skeletonLineSm})]})},{id:"scan-speed",title:"Scan Speed",render:()=>(0,W.jsxs)("div",{className:k.columnGap4,children:[(0,W.jsxs)("div",{className:k.stack2,children:[(0,W.jsx)("div",{className:k.textXsMuted,children:"Slow \xB7 4s"}),(0,W.jsx)(Se,{speed:"slow",className:k.skeletonLineLg})]}),(0,W.jsxs)("div",{className:k.stack2,children:[(0,W.jsx)("div",{className:k.textXsMuted,children:"Medium \xB7 3s"}),(0,W.jsx)(Se,{speed:"medium",className:k.skeletonLineLg})]}),(0,W.jsxs)("div",{className:k.stack2,children:[(0,W.jsx)("div",{className:k.textXsMuted,children:"Fast \xB7 2s"}),(0,W.jsx)(Se,{speed:"fast",className:k.skeletonLineLg})]})]})},{id:"pulse",title:"Pulse",render:()=>(0,W.jsxs)("div",{className:k.columnGap4,children:[(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonLineMd}),(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonLineLg}),(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonLineSm})]})},{id:"on-surfaces",title:"On Different Surfaces",description:"Verifies shimmer visibility against various backgrounds.",render:()=>(0,W.jsx)("div",{className:k.surfaceGrid,children:[{label:"Canvas",bg:"var(--owo-ref-color-surface-canvas)"},{label:"Base",bg:"var(--owo-ref-color-surface-base)"},{label:"Inset",bg:"var(--owo-ref-color-surface-inset)"}].map(({label:e,bg:a})=>(0,W.jsxs)("div",{className:k.surfaceCard,style:{backgroundColor:a},children:[(0,W.jsx)("p",{className:k.surfaceLabel,children:e}),(0,W.jsxs)("div",{className:k.surfaceStack2,children:[(0,W.jsx)(Se,{className:k.skeletonLineFull}),(0,W.jsx)(Se,{className:k.skeletonLineThreeQuarter})]})]},e))})},{id:"card-placeholder",title:"Card Placeholder",render:()=>(0,W.jsxs)("div",{className:k.cardPlaceholder,children:[(0,W.jsx)(Se,{className:k.skeletonTitle}),(0,W.jsx)(Se,{className:k.skeletonLineFull}),(0,W.jsx)(Se,{className:k.skeletonLineFiveSixths}),(0,W.jsxs)("div",{className:k.actionsRow,children:[(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonButton}),(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonButton})]})]})},{id:"avatar-line",title:"Avatar + Lines",render:()=>(0,W.jsxs)("div",{className:k.rowStart,children:[(0,W.jsx)(Se,{className:k.skeletonAvatar}),(0,W.jsxs)("div",{className:k.avatarTextColumn,children:[(0,W.jsx)(Se,{animation:"pulse",className:k.skeletonLineSm}),(0,W.jsx)(Se,{className:k.skeletonLineMd})]})]})}]});var ni=y(ve(),1);var ft=y(ve(),1);var li={};var Ho=y(T(),1),ad=(0,ft.createContext)(void 0);function p1({className:e,children:a,...t}){let o=(0,ft.useContext)(ad);return(0,Ho.jsx)("div",{"data-scope":"dialog","data-part":"header",className:I(o?.header,e),...t,children:a})}function g1({className:e,children:a,...t}){let o=(0,ft.useContext)(ad);return(0,Ho.jsx)("div",{"data-scope":"dialog","data-part":"body",className:I(o?.body,e),...t,children:a})}function h1({className:e,children:a,...t}){let o=(0,ft.useContext)(ad);return(0,Ho.jsx)("div",{"data-scope":"dialog","data-part":"footer",className:I(o?.footer,e),...t,children:a})}function se({open:e,onClose:a,size:t="sm",children:o,className:r,overlayClassName:l,panelClassName:n,classNames:s,...i}){let u=(0,ft.useRef)(null),d=(0,ft.useRef)(null),m=(0,ft.useCallback)(c=>{c.key==="Escape"&&(c.stopPropagation(),a())},[a]);return(0,ft.useEffect)(()=>(e?(d.current=document.activeElement,document.body.style.overflow="hidden",requestAnimationFrame(()=>{let c=u.current;if(!c)return;let g=c.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');g?g.focus():c.focus()}),document.addEventListener("keydown",m)):(document.body.style.overflow="",d.current?.focus()),()=>{document.removeEventListener("keydown",m),document.body.style.overflow=""}),[e,m]),e?(0,Ho.jsx)(ad.Provider,{value:s,children:(0,Ho.jsxs)("div",{"data-state":"open","data-scope":"dialog","data-part":"overlay",className:I("owo-dialog-overlay",li.overlay,s?.overlay),children:[(0,Ho.jsx)("button",{type:"button","aria-label":"Close dialog","data-state":"open","data-scope":"dialog","data-part":"backdrop",className:I("owo-dialog-backdrop",l,s?.backdrop),onClick:a}),(0,Ho.jsx)("div",{ref:u,role:"dialog","aria-modal":"true",tabIndex:-1,"data-state":"open","data-size":t,className:I("owo-dialog",li.panel,n,r),...i,children:o})]})}):null}se.Header=p1;se.Body=g1;se.Footer=h1;var Zt=y(ve(),1);var mt=y(T(),1),sx=(0,Zt.createContext)(null);function ix(){let e=(0,Zt.useContext)(sx);if(!e)throw new Error("useConfirm must be used within <ConfirmProvider>");return e}function td({children:e}){let[a,t]=(0,Zt.useState)(null),o=(0,Zt.useRef)(null),r=(0,Zt.useCallback)(n=>(o.current&&o.current.resolve(!1),new Promise(s=>{let i={options:n,resolve:s};o.current=i,t(i)})),[]),l=(0,Zt.useCallback)(n=>{o.current&&(o.current.resolve(n),o.current=null),t(null)},[]);return(0,mt.jsxs)(sx.Provider,{value:r,children:[e,(0,mt.jsx)(se,{open:a!==null,onClose:()=>l(!1),children:a&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(se.Header,{children:a.options.title}),(0,mt.jsx)(se.Body,{children:typeof a.options.description=="string"?(0,mt.jsx)("p",{className:li.confirmDescription,children:a.options.description}):a.options.description}),(0,mt.jsxs)(se.Footer,{children:[(0,mt.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>l(!1),children:a.options.cancelLabel??"\u53D6\u6D88"}),(0,mt.jsx)(B,{variant:a.options.variant??"primary",size:"sm",onClick:()=>l(!0),children:a.options.confirmLabel??"\u786E\u8BA4"})]})]})})]})}var O=y(T(),1);function b1(){let[e,a]=(0,ni.useState)(!1);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(B,{variant:"primary",size:"sm",onClick:()=>a(!0),children:"Open Dialog"}),(0,O.jsxs)(se,{open:e,onClose:()=>a(!1),children:[(0,O.jsx)(se.Header,{children:"Basic Dialog"}),(0,O.jsx)(se.Body,{children:(0,O.jsx)("p",{children:"This is a basic dialog with header, body, and footer sections."})}),(0,O.jsxs)(se.Footer,{children:[(0,O.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,O.jsx)(B,{variant:"primary",size:"sm",onClick:()=>a(!1),children:"Confirm"})]})]})]})}function v1(){let[e,a]=(0,ni.useState)(!1);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(B,{variant:"danger",size:"sm",onClick:()=>a(!0),children:"Delete Item"}),(0,O.jsxs)(se,{open:e,onClose:()=>a(!1),children:[(0,O.jsx)(se.Header,{children:"Delete Draft"}),(0,O.jsxs)(se.Body,{children:[(0,O.jsx)("p",{children:"Are you sure you want to delete the ZH locale draft?"}),(0,O.jsxs)("p",{className:k.marginTop2,children:["Article ID: post-20260320-example",(0,O.jsx)("br",{}),"Category: post"]}),(0,O.jsx)("p",{className:k.marginTop2,children:"This action cannot be undone."})]}),(0,O.jsxs)(se.Footer,{children:[(0,O.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,O.jsx)(B,{variant:"danger",size:"sm",onClick:()=>a(!1),children:"Delete"})]})]})]})}function x1(){let[e,a]=(0,ni.useState)(!1);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(B,{variant:"secondary",size:"sm",onClick:()=>a(!0),children:"Open Medium Dialog"}),(0,O.jsxs)(se,{open:e,onClose:()=>a(!1),size:"md",children:[(0,O.jsx)(se.Header,{children:"Publish Confirmation"}),(0,O.jsxs)(se.Body,{children:[(0,O.jsx)("p",{children:"You are about to publish the current draft branch."}),(0,O.jsxs)("div",{className:k.dialogStatsCard,children:[(0,O.jsxs)("div",{className:k.dialogStatsRow,children:[(0,O.jsx)("span",{children:"Articles:"}),(0,O.jsx)("span",{children:"3"})]}),(0,O.jsxs)("div",{className:k.dialogStatsRow,children:[(0,O.jsx)("span",{children:"Languages:"}),(0,O.jsx)("span",{children:"ZH, EN"})]}),(0,O.jsxs)("div",{className:k.dialogStatsRow,children:[(0,O.jsx)("span",{children:"Branch:"}),(0,O.jsx)("span",{children:"draft"})]})]}),(0,O.jsx)("p",{className:k.marginTop3,children:"This will trigger a Cloudflare deployment."})]}),(0,O.jsxs)(se.Footer,{children:[(0,O.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,O.jsx)(B,{variant:"primary",size:"sm",onClick:()=>a(!1),children:"Publish"})]})]})]})}function w1(){let e=ix(),[a,t]=(0,ni.useState)(""),o=async()=>{let l=await e({title:"Confirm Action",description:"This demonstrates the useConfirm() hook. Click confirm or cancel.",confirmLabel:"Do it",cancelLabel:"Nope"});t(l?"Confirmed!":"Cancelled.")},r=async()=>{let l=await e({title:"Delete Everything",description:"This is a danger variant confirm dialog.",confirmLabel:"Delete",variant:"danger"});t(l?"Deleted!":"Cancelled.")};return(0,O.jsxs)("div",{className:k.columnGap3,children:[(0,O.jsxs)("div",{className:k.rowWrap,children:[(0,O.jsx)(B,{variant:"primary",size:"sm",onClick:o,children:"useConfirm()"}),(0,O.jsx)(B,{variant:"danger",size:"sm",onClick:r,children:"Danger Confirm"})]}),a&&(0,O.jsxs)("p",{className:k.resultText,children:["Result: ",a]})]})}function y1(){return(0,O.jsx)(td,{children:(0,O.jsx)(w1,{})})}Y({group:"feedback",componentId:"dialog",componentName:"Dialog",description:"Modal dialog for confirmations and focused tasks. Supports declarative usage via <Dialog> and imperative usage via `useConfirm()` hook. The imperative API requires `<ConfirmProvider>` in an ancestor (mounted in admin layout).",props:[{name:"open",type:"boolean",default:"false",description:"Controls dialog visibility."},{name:"size",type:"'sm' | 'md'",default:"'sm'",description:"Dialog width."},{name:"onClose",type:"() => void",description:"Called on backdrop click or Escape key."}],renderPlayground:(e,a)=>{let t=e.size||"sm",o=!!e.open;return(0,O.jsxs)("div",{className:k.centerRowLarge,children:[(0,O.jsxs)(B,{variant:"primary",size:"sm",onClick:()=>a("open",!0),children:["Open Dialog (",t,")"]}),(0,O.jsxs)(se,{open:o,onClose:()=>a("open",!1),size:t,children:[(0,O.jsx)(se.Header,{children:"Playground Dialog"}),(0,O.jsx)(se.Body,{children:(0,O.jsxs)("p",{children:["Toggle the ",(0,O.jsx)("code",{className:k.inlineCode,children:"open"})," and ",(0,O.jsx)("code",{className:k.inlineCode,children:"size"})," controls below."]})}),(0,O.jsxs)(se.Footer,{children:[(0,O.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>a("open",!1),children:"Cancel"}),(0,O.jsx)(B,{variant:"primary",size:"sm",onClick:()=>a("open",!1),children:"Confirm"})]})]})]})},stories:[{id:"provider-setup",title:"Provider Setup",description:"useConfirm() requires <ConfirmProvider> in an ancestor. Mount it once in your layout \u2014 all descendant components can then call useConfirm().",source:`// src/app/qadmin/layout.tsx
14
87
  import { ConfirmProvider } from '../../components/ConfirmDialog';
15
88
 
16
89
  export default function AdminLayout({ children }) {
@@ -39,19 +112,19 @@ function MyComponent() {
39
112
  if (!ok) return;
40
113
  // proceed with deletion
41
114
  };
42
- }`,render:()=>(0,B.jsxs)("div",{className:"rounded-lg border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-subtle)] px-4 py-3 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,B.jsx)("p",{className:"font-medium text-[var(--owo-ref-color-neutral-800)]",children:"Provider is already mounted in admin layout."}),(0,B.jsxs)("p",{className:"mt-1",children:["Click the ",(0,B.jsx)("strong",{children:"Code"})," button below to see the setup example."]})]})},{id:"basic",title:"Basic Dialog",description:"Standard confirmation dialog with header, body, and footer.",source:`<Dialog open={open} onClose={() => setOpen(false)}>
115
+ }`,render:()=>(0,O.jsxs)("div",{className:k.noteBox,children:[(0,O.jsx)("p",{className:k.fontStrong,children:"Provider is already mounted in admin layout."}),(0,O.jsxs)("p",{className:k.marginTop1,children:["Click the ",(0,O.jsx)("strong",{children:"Code"})," button below to see the setup example."]})]})},{id:"basic",title:"Basic Dialog",description:"Standard confirmation dialog with header, body, and footer.",source:`<Dialog open={open} onClose={() => setOpen(false)}>
43
116
  <Dialog.Header>Title</Dialog.Header>
44
117
  <Dialog.Body>Content here.</Dialog.Body>
45
118
  <Dialog.Footer>
46
119
  <Button variant="ghost" onClick={close}>Cancel</Button>
47
120
  <Button variant="primary" onClick={close}>Confirm</Button>
48
121
  </Dialog.Footer>
49
- </Dialog>`,render:()=>(0,B.jsx)(h1,{})},{id:"danger",title:"Danger Dialog",description:"Destructive action confirmation with danger-styled button.",render:()=>(0,B.jsx)(w1,{})},{id:"medium",title:"Medium Size",description:"Wider dialog for content-heavy confirmations.",render:()=>(0,B.jsx)(b1,{})},{id:"use-confirm",title:"useConfirm() Hook",description:"Imperative confirm API that returns a Promise<boolean>. Replaces window.confirm.",source:`const confirm = useConfirm();
122
+ </Dialog>`,render:()=>(0,O.jsx)(b1,{})},{id:"danger",title:"Danger Dialog",description:"Destructive action confirmation with danger-styled button.",render:()=>(0,O.jsx)(v1,{})},{id:"medium",title:"Medium Size",description:"Wider dialog for content-heavy confirmations.",render:()=>(0,O.jsx)(x1,{})},{id:"use-confirm",title:"useConfirm() Hook",description:"Imperative confirm API that returns a Promise<boolean>. Replaces window.confirm.",source:`const confirm = useConfirm();
50
123
  const ok = await confirm({
51
124
  title: 'Confirm',
52
125
  description: 'Are you sure?',
53
126
  variant: 'danger',
54
- });`,render:()=>(0,B.jsx)(x1,{})}]});var Pa=y(de(),1),Te=y(C(),1),Db=(0,Pa.createContext)(null),Yf=5,Mb=4e3;function _n(){let e=(0,Pa.useContext)(Db);if(!e)throw new Error("useToast must be used within <ToastProvider>");return e}function y1({tone:e}){let a={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"success":return(0,Te.jsx)("svg",{...a,children:(0,Te.jsx)("path",{d:"M3.5 8.5l3 3 6-7"})});case"warning":return(0,Te.jsxs)("svg",{...a,children:[(0,Te.jsx)("path",{d:"M8 5v4"}),(0,Te.jsx)("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor",stroke:"none"})]});case"danger":return(0,Te.jsx)("svg",{...a,children:(0,Te.jsx)("path",{d:"M4.5 4.5l7 7M11.5 4.5l-7 7"})});case"info":return(0,Te.jsxs)("svg",{...a,children:[(0,Te.jsx)("circle",{cx:"8",cy:"3.5",r:"1.2",fill:"currentColor",stroke:"none"}),(0,Te.jsx)("path",{d:"M8 7v5.5"})]})}}function L1(e,a){return typeof e=="string"?{message:e,duration:a??Mb}:{title:e.title,message:e.message,duration:e.duration??a??Mb}}function S1({item:e,onDismiss:a,renderToast:t}){let o=()=>a(e.id),r=(0,Te.jsx)(y1,{tone:e.tone});return t?(0,Te.jsx)("div",{role:"status","aria-live":"polite","data-state":"open","data-tone":e.tone,className:D("owo-toast pointer-events-auto rounded-[var(--owo-cmp-control-radius-lg)] border text-sm backdrop-blur-sm","animate-[toast-in_0.25s_var(--owo-cmp-motion-ease-standard)]"),children:t({item:e,dismiss:o,icon:r})}):(0,Te.jsxs)("div",{role:"status","aria-live":"polite","data-state":"open","data-tone":e.tone,className:D("owo-toast pointer-events-auto flex items-start gap-2 rounded-[var(--owo-cmp-control-radius-lg)] border px-4 py-3 text-sm backdrop-blur-sm","animate-[toast-in_0.25s_var(--owo-cmp-motion-ease-standard)]"),children:[(0,Te.jsx)("span",{className:"owo-toast__icon mt-0.5 shrink-0","aria-hidden":"true",children:r}),(0,Te.jsxs)("span",{className:"min-w-0 flex-1",children:[e.title?(0,Te.jsx)("span",{className:"owo-toast__title block font-medium",children:e.title}):null,(0,Te.jsx)("span",{className:"block",children:e.message})]}),(0,Te.jsx)("button",{type:"button",onClick:o,className:"owo-toast__close -mr-1 -mt-0.5 shrink-0 rounded-[var(--owo-cmp-control-radius-sm)] p-0.5 text-current opacity-50 transition-opacity hover:opacity-100","aria-label":"Dismiss",children:(0,Te.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,Te.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})})]})}function al({children:e,renderToast:a}){let[t,o]=(0,Pa.useState)([]),r=(0,Pa.useRef)(0),s=(0,Pa.useRef)(new Map),l=(0,Pa.useCallback)(u=>{let c=s.current.get(u);c&&clearTimeout(c),s.current.delete(u),o(d=>d.filter(p=>p.id!==u))},[]),n=(0,Pa.useCallback)((u,c,d)=>{let p=r.current++,f=L1(c,d),b={id:p,tone:u,...f};o(x=>{let k=[...x,b];if(k.length>Yf){let m=k.slice(0,k.length-Yf);for(let g of m){let w=s.current.get(g.id);w&&clearTimeout(w),s.current.delete(g.id)}return k.slice(-Yf)}return k}),b.duration>0&&s.current.set(p,setTimeout(()=>l(p),b.duration))},[l]),i=(0,Pa.useMemo)(()=>({success:(u,c)=>n("success",u,c),warning:(u,c)=>n("warning",u,c),danger:(u,c)=>n("danger",u,c),info:(u,c)=>n("info",u,c)}),[n]);return(0,Te.jsxs)(Db.Provider,{value:i,children:[e,(0,Te.jsx)("div",{"aria-label":"Notifications","data-state":t.length>0?"open":"closed",className:"pointer-events-none fixed bottom-4 right-4 z-[var(--owo-cmp-z-toast)] flex flex-col-reverse gap-2",children:t.map(u=>(0,Te.jsx)(S1,{item:u,onDismiss:l,renderToast:a},u.id))})]})}var je=y(C(),1);function C1(){let e=_n();return(0,je.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,je.jsx)(M,{size:"sm",variant:"secondary",onClick:()=>e.success("Changes saved successfully."),leadingIcon:(0,je.jsx)(ge,{tone:"success",children:"\u25CF"}),children:"Success"}),(0,je.jsx)(M,{size:"sm",variant:"secondary",onClick:()=>e.warning("Draft has unsaved changes."),leadingIcon:(0,je.jsx)(ge,{tone:"warning",children:"\u25CF"}),children:"Warning"}),(0,je.jsx)(M,{size:"sm",variant:"secondary",onClick:()=>e.danger("Failed to publish post."),leadingIcon:(0,je.jsx)(ge,{tone:"danger",children:"\u25CF"}),children:"Danger"}),(0,je.jsx)(M,{size:"sm",variant:"secondary",onClick:()=>e.info("New version available."),leadingIcon:(0,je.jsx)(ge,{tone:"info",children:"\u25CF"}),children:"Info"}),(0,je.jsx)(M,{size:"sm",variant:"secondary",onClick:()=>e.success({title:"Draft Saved",message:"All local changes are now synced to the draft branch."}),leadingIcon:(0,je.jsx)(ge,{tone:"success",children:"\u25CF"}),children:"With Title"})]})}function I1(){return(0,je.jsx)(al,{children:(0,je.jsx)(C1,{})})}q({group:"feedback",componentId:"toast",componentName:"Toast",description:"Transient notification messages triggered via `useToast()` hook. Requires `<ToastProvider>` wrapper.",props:[{name:"toast.success({ title, message, duration? })",type:"function",description:"Show a success toast with optional title."},{name:"toast.success(msg, duration?)",type:"function",description:"Show a success toast."},{name:"toast.warning(msg, duration?)",type:"function",description:"Show a warning toast."},{name:"toast.danger(msg, duration?)",type:"function",description:"Show a danger toast."},{name:"toast.info(msg, duration?)",type:"function",description:"Show an info toast."}],stories:[{id:"provider-setup",title:"Provider Setup",description:"useToast() requires <ToastProvider> in an ancestor. Mount it once in your layout \u2014 all descendant components can then call useToast().",source:`// src/app/qadmin/layout.tsx
127
+ });`,render:()=>(0,O.jsx)(y1,{})}]});var Ja=y(ve(),1);var si={};var Oe=y(T(),1),dx=(0,Ja.createContext)(null),wm=5,ux=4e3;function ii(){let e=(0,Ja.useContext)(dx);if(!e)throw new Error("useToast must be used within <ToastProvider>");return e}function C1({tone:e}){let a={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"success":return(0,Oe.jsx)("svg",{...a,children:(0,Oe.jsx)("path",{d:"M3.5 8.5l3 3 6-7"})});case"warning":return(0,Oe.jsxs)("svg",{...a,children:[(0,Oe.jsx)("path",{d:"M8 5v4"}),(0,Oe.jsx)("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor",stroke:"none"})]});case"danger":return(0,Oe.jsx)("svg",{...a,children:(0,Oe.jsx)("path",{d:"M4.5 4.5l7 7M11.5 4.5l-7 7"})});case"info":return(0,Oe.jsxs)("svg",{...a,children:[(0,Oe.jsx)("circle",{cx:"8",cy:"3.5",r:"1.2",fill:"currentColor",stroke:"none"}),(0,Oe.jsx)("path",{d:"M8 7v5.5"})]})}}function S1(e,a){return typeof e=="string"?{message:e,duration:a??ux}:{title:e.title,message:e.message,duration:e.duration??a??ux}}function I1({item:e,onDismiss:a,renderToast:t,classNames:o}){let r=()=>a(e.id),l=(0,Oe.jsx)(C1,{tone:e.tone});return t?(0,Oe.jsx)("div",{role:"status","aria-live":"polite","data-state":"open","data-tone":e.tone,"data-scope":"toast","data-part":"toast",className:I("owo-toast",si.toast,o?.toast),children:t({item:e,dismiss:r,icon:l})}):(0,Oe.jsxs)("div",{role:"status","aria-live":"polite","data-state":"open","data-tone":e.tone,"data-scope":"toast","data-part":"toast",className:I("owo-toast",si.toast,si.toastDefault,o?.toast),children:[(0,Oe.jsx)("span",{"data-scope":"toast","data-part":"icon",className:I(o?.icon),"aria-hidden":"true",children:l}),(0,Oe.jsxs)("span",{"data-scope":"toast","data-part":"content",className:I(o?.content),children:[e.title?(0,Oe.jsx)("span",{"data-scope":"toast","data-part":"title",className:I(o?.title),children:e.title}):null,(0,Oe.jsx)("span",{"data-scope":"toast","data-part":"message",className:I(o?.message),children:e.message})]}),(0,Oe.jsx)("button",{type:"button",onClick:r,"data-scope":"toast","data-part":"close",className:I(o?.close),"aria-label":"Dismiss",children:(0,Oe.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,Oe.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})})]})}function wn({children:e,renderToast:a,classNames:t}){let[o,r]=(0,Ja.useState)([]),l=(0,Ja.useRef)(0),n=(0,Ja.useRef)(new Map),s=(0,Ja.useCallback)(d=>{let m=n.current.get(d);m&&clearTimeout(m),n.current.delete(d),r(c=>c.filter(g=>g.id!==d))},[]),i=(0,Ja.useCallback)((d,m,c)=>{let g=l.current++,v=S1(m,c),w={id:g,tone:d,...v};r(D=>{let p=[...D,w];if(p.length>wm){let f=p.slice(0,p.length-wm);for(let b of f){let x=n.current.get(b.id);x&&clearTimeout(x),n.current.delete(b.id)}return p.slice(-wm)}return p}),w.duration>0&&n.current.set(g,setTimeout(()=>s(g),w.duration))},[s]),u=(0,Ja.useMemo)(()=>({success:(d,m)=>i("success",d,m),warning:(d,m)=>i("warning",d,m),danger:(d,m)=>i("danger",d,m),info:(d,m)=>i("info",d,m)}),[i]);return(0,Oe.jsxs)(dx.Provider,{value:u,children:[e,(0,Oe.jsx)("div",{"aria-label":"Notifications","data-state":o.length>0?"open":"closed","data-scope":"toast","data-part":"container",className:I("owo-toast-container",si.container,t?.container),children:o.map(d=>(0,Oe.jsx)(I1,{item:d,onDismiss:s,renderToast:a,classNames:t},d.id))})]})}var la=y(T(),1);function T1(){let e=ii();return(0,la.jsxs)("div",{className:k.rowWrap,children:[(0,la.jsx)(B,{size:"sm",variant:"secondary",onClick:()=>e.success("Changes saved successfully."),leadingIcon:(0,la.jsx)(Ce,{tone:"success",children:"\u25CF"}),children:"Success"}),(0,la.jsx)(B,{size:"sm",variant:"secondary",onClick:()=>e.warning("Draft has unsaved changes."),leadingIcon:(0,la.jsx)(Ce,{tone:"warning",children:"\u25CF"}),children:"Warning"}),(0,la.jsx)(B,{size:"sm",variant:"secondary",onClick:()=>e.danger("Failed to publish post."),leadingIcon:(0,la.jsx)(Ce,{tone:"danger",children:"\u25CF"}),children:"Danger"}),(0,la.jsx)(B,{size:"sm",variant:"secondary",onClick:()=>e.info("New version available."),leadingIcon:(0,la.jsx)(Ce,{tone:"info",children:"\u25CF"}),children:"Info"}),(0,la.jsx)(B,{size:"sm",variant:"secondary",onClick:()=>e.success({title:"Draft Saved",message:"All local changes are now synced to the draft branch."}),leadingIcon:(0,la.jsx)(Ce,{tone:"success",children:"\u25CF"}),children:"With Title"})]})}function k1(){return(0,la.jsx)(wn,{children:(0,la.jsx)(T1,{})})}Y({group:"feedback",componentId:"toast",componentName:"Toast",description:"Transient notification messages triggered via `useToast()` hook. Requires `<ToastProvider>` wrapper.",props:[{name:"toast.success({ title, message, duration? })",type:"function",description:"Show a success toast with optional title."},{name:"toast.success(msg, duration?)",type:"function",description:"Show a success toast."},{name:"toast.warning(msg, duration?)",type:"function",description:"Show a warning toast."},{name:"toast.danger(msg, duration?)",type:"function",description:"Show a danger toast."},{name:"toast.info(msg, duration?)",type:"function",description:"Show an info toast."}],stories:[{id:"provider-setup",title:"Provider Setup",description:"useToast() requires <ToastProvider> in an ancestor. Mount it once in your layout \u2014 all descendant components can then call useToast().",source:`// src/app/qadmin/layout.tsx
55
128
  import { ToastProvider } from '../../components/Toast';
56
129
 
57
130
  export default function AdminLayout({ children }) {
@@ -78,20 +151,20 @@ function MyComponent() {
78
151
  toast.danger('Failed to save draft.');
79
152
  }
80
153
  };
81
- }`,render:()=>(0,je.jsxs)("div",{className:"rounded-lg border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-subtle)] px-4 py-3 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,je.jsx)("p",{className:"font-medium text-[var(--owo-ref-color-neutral-800)]",children:"ToastProvider is not yet mounted in admin layout."}),(0,je.jsxs)("p",{className:"mt-1",children:["Add it to the layout before using useToast(). Click the ",(0,je.jsx)("strong",{children:"Code"})," button below to see the setup example."]})]})},{id:"all-tones",title:"All Tones",description:"Click buttons to trigger toasts, including the optional title layout.",render:()=>(0,je.jsx)(I1,{})}]});var Bb=y(de(),1),Ru=y(C(),1),k1={xs:"h-6 w-6 text-[10px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-14 w-14 text-lg"};function T1(e){let a=e.trim().split(/\s+/);return a.length>=2?(a[0][0]+a[a.length-1][0]).toUpperCase():e.slice(0,2).toUpperCase()}function sa({src:e,alt:a,name:t,size:o="md",tone:r="neutral",className:s}){let[l,n]=(0,Bb.useState)(!1),i=e&&!l,u=t?T1(t):"?";return(0,Ru.jsx)("span",{"data-tone":r,className:D("owo-avatar inline-flex shrink-0 items-center justify-center overflow-hidden rounded-[var(--owo-cmp-control-radius-full)] font-medium select-none",k1[o],s),children:i?(0,Ru.jsx)("img",{src:e,alt:a??t??"",className:"h-full w-full object-cover",onError:()=>n(!0)}):(0,Ru.jsx)("span",{"aria-label":a??t,children:u})})}var qe=y(C(),1);q({group:"feedback",componentId:"avatar",componentName:"Avatar",description:"User avatar with image or initials fallback. Token-driven: --avatar-bg, --avatar-text, --avatar-border.",props:[{name:"src",type:"string",description:"Image URL."},{name:"alt",type:"string",description:"Alt text for the image."},{name:"name",type:"string",description:"User name, used to derive initials fallback."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg'",default:"'md'",description:"Avatar size."},{name:"tone",type:"'neutral' | 'subtle'",default:"'neutral'",description:"Fallback background tone."}],renderPlayground:e=>(0,qe.jsx)(sa,{name:"Alice Bob",size:e.size,tone:e.tone}),stories:[{id:"sizes",title:"Sizes",description:"xs / sm / md / lg",render:()=>(0,qe.jsxs)("div",{className:"flex items-end gap-3",children:[(0,qe.jsx)(sa,{name:"Alice",size:"xs"}),(0,qe.jsx)(sa,{name:"Bob Chen",size:"sm"}),(0,qe.jsx)(sa,{name:"Carol Davis",size:"md"}),(0,qe.jsx)(sa,{name:"David",size:"lg"})]})},{id:"tones",title:"Tones",description:"neutral (default) vs subtle \u2014 applies to initials fallback.",render:()=>(0,qe.jsxs)("div",{className:"flex items-center gap-4",children:[(0,qe.jsxs)("div",{className:"text-center",children:[(0,qe.jsx)(sa,{name:"Neutral",size:"lg",tone:"neutral"}),(0,qe.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"neutral"})]}),(0,qe.jsxs)("div",{className:"text-center",children:[(0,qe.jsx)(sa,{name:"Subtle",size:"lg",tone:"subtle"}),(0,qe.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"subtle"})]})]})},{id:"with-image",title:"With Image",render:()=>(0,qe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,qe.jsx)(sa,{src:"https://api.dicebear.com/9.x/initials/svg?seed=QQ",name:"Q",size:"md"}),(0,qe.jsx)(sa,{src:"https://api.dicebear.com/9.x/initials/svg?seed=AB",name:"Alice Bob",size:"lg"})]})},{id:"fallback",title:"Fallback",description:"When image fails to load, initials are shown.",render:()=>(0,qe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,qe.jsx)(sa,{src:"/broken-url.jpg",name:"Fallback User",size:"md"}),(0,qe.jsx)(sa,{name:"No Image",size:"md"}),(0,qe.jsx)(sa,{size:"md"})]})}]});var cr=Math.min,go=Math.max,Gn=Math.round,Vn=Math.floor,It=e=>({x:e,y:e}),A1={left:"right",right:"left",bottom:"top",top:"bottom"};function Ou(e,a,t){return go(e,cr(a,t))}function tl(e,a){return typeof e=="function"?e(a):e}function dr(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function jf(e){return e==="x"?"y":"x"}function Eu(e){return e==="y"?"height":"width"}function ho(e){let a=e[0];return a==="t"||a==="b"?"y":"x"}function Hu(e){return jf(ho(e))}function zb(e,a,t){t===void 0&&(t=!1);let o=ol(e),r=Hu(e),s=Eu(r),l=r==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[s]>a.floating[s]&&(l=Fn(l)),[l,Fn(l)]}function Ob(e){let a=Fn(e);return[zu(e),a,zu(a)]}function zu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Nb=["left","right"],Rb=["right","left"],M1=["top","bottom"],D1=["bottom","top"];function B1(e,a,t){switch(e){case"top":case"bottom":return t?a?Rb:Nb:a?Nb:Rb;case"left":case"right":return a?M1:D1;default:return[]}}function Eb(e,a,t,o){let r=ol(e),s=B1(dr(e),t==="start",o);return r&&(s=s.map(l=>l+"-"+r),a&&(s=s.concat(s.map(zu)))),s}function Fn(e){let a=dr(e);return A1[a]+e.slice(a.length)}function N1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qf(e){return typeof e!="number"?N1(e):{top:e,right:e,bottom:e,left:e}}function Zr(e){let{x:a,y:t,width:o,height:r}=e;return{width:o,height:r,top:t,left:a,right:a+o,bottom:t+r,x:a,y:t}}function Hb(e,a,t){let{reference:o,floating:r}=e,s=ho(a),l=Hu(a),n=Eu(l),i=dr(a),u=s==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[n]/2-r[n]/2,f;switch(i){case"top":f={x:c,y:o.y-r.height};break;case"bottom":f={x:c,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(ol(a)){case"start":f[l]-=p*(t&&u?-1:1);break;case"end":f[l]+=p*(t&&u?-1:1);break}return f}async function Pb(e,a){var t;a===void 0&&(a={});let{x:o,y:r,platform:s,rects:l,elements:n,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=tl(a,e),b=Qf(f),k=n[p?d==="floating"?"reference":"floating":d],m=Zr(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(k)))==null||t?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:u,rootBoundary:c,strategy:i})),g=d==="floating"?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),v=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Zr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:g,offsetParent:w,strategy:i}):g);return{top:(m.top-I.top+b.top)/v.y,bottom:(I.bottom-m.bottom+b.bottom)/v.y,left:(m.left-I.left+b.left)/v.x,right:(I.right-m.right+b.right)/v.x}}var R1=50,Ub=async(e,a,t)=>{let{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:l}=t,n=l.detectOverflow?l:{...l,detectOverflow:Pb},i=await(l.isRTL==null?void 0:l.isRTL(a)),u=await l.getElementRects({reference:e,floating:a,strategy:r}),{x:c,y:d}=Hb(u,o,i),p=o,f=0,b={};for(let x=0;x<s.length;x++){let k=s[x];if(!k)continue;let{name:m,fn:g}=k,{x:w,y:v,data:I,reset:N}=await g({x:c,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:b,rects:u,platform:n,elements:{reference:e,floating:a}});c=w??c,d=v??d,b[m]={...b[m],...I},N&&f<R1&&(f++,typeof N=="object"&&(N.placement&&(p=N.placement),N.rects&&(u=N.rects===!0?await l.getElementRects({reference:e,floating:a,strategy:r}):N.rects),{x:c,y:d}=Hb(u,p,i)),x=-1)}return{x:c,y:d,placement:p,strategy:r,middlewareData:b}},qb=e=>({name:"arrow",options:e,async fn(a){let{x:t,y:o,placement:r,rects:s,platform:l,elements:n,middlewareData:i}=a,{element:u,padding:c=0}=tl(e,a)||{};if(u==null)return{};let d=Qf(c),p={x:t,y:o},f=Hu(r),b=Eu(f),x=await l.getDimensions(u),k=f==="y",m=k?"top":"left",g=k?"bottom":"right",w=k?"clientHeight":"clientWidth",v=s.reference[b]+s.reference[f]-p[f]-s.floating[b],I=p[f]-s.reference[f],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u)),T=N?N[w]:0;(!T||!await(l.isElement==null?void 0:l.isElement(N)))&&(T=n.floating[w]||s.floating[b]);let R=v/2-I/2,O=T/2-x[b]/2-1,A=cr(d[m],O),P=cr(d[g],O),Re=A,Ia=T-x[b]-P,ce=T/2-x[b]/2+R,ga=Ou(Re,ce,Ia),ze=!i.arrow&&ol(r)!=null&&ce!==ga&&s.reference[b]/2-(ce<Re?A:P)-x[b]/2<0,ka=ze?ce<Re?ce-Re:ce-Ia:0;return{[f]:p[f]+ka,data:{[f]:ga,centerOffset:ce-ga-ka,...ze&&{alignmentOffset:ka}},reset:ze}}});var _b=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(a){var t,o;let{placement:r,middlewareData:s,rects:l,initialPlacement:n,platform:i,elements:u}=a,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...k}=tl(e,a);if((t=s.arrow)!=null&&t.alignmentOffset)return{};let m=dr(r),g=ho(n),w=dr(n)===n,v=await(i.isRTL==null?void 0:i.isRTL(u.floating)),I=p||(w||!x?[Fn(n)]:Ob(n)),N=b!=="none";!p&&N&&I.push(...Eb(n,x,b,v));let T=[n,...I],R=await i.detectOverflow(a,k),O=[],A=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&O.push(R[m]),d){let ce=zb(r,l,v);O.push(R[ce[0]],R[ce[1]])}if(A=[...A,{placement:r,overflows:O}],!O.every(ce=>ce<=0)){var P,Re;let ce=(((P=s.flip)==null?void 0:P.index)||0)+1,ga=T[ce];if(ga&&(!(d==="alignment"?g!==ho(ga):!1)||A.every(na=>ho(na.placement)===g?na.overflows[0]>0:!0)))return{data:{index:ce,overflows:A},reset:{placement:ga}};let ze=(Re=A.filter(ka=>ka.overflows[0]<=0).sort((ka,na)=>ka.overflows[1]-na.overflows[1])[0])==null?void 0:Re.placement;if(!ze)switch(f){case"bestFit":{var Ia;let ka=(Ia=A.filter(na=>{if(N){let ia=ho(na.placement);return ia===g||ia==="y"}return!0}).map(na=>[na.placement,na.overflows.filter(ia=>ia>0).reduce((ia,Jr)=>ia+Jr,0)]).sort((na,ia)=>na[1]-ia[1])[0])==null?void 0:Ia[0];ka&&(ze=ka);break}case"initialPlacement":ze=n;break}if(r!==ze)return{reset:{placement:ze}}}return{}}}};var z1=new Set(["left","top"]);async function O1(e,a){let{placement:t,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),l=dr(t),n=ol(t),i=ho(t)==="y",u=z1.has(l)?-1:1,c=s&&i?-1:1,d=tl(a,e),{mainAxis:p,crossAxis:f,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof b=="number"&&(f=n==="end"?b*-1:b),i?{x:f*c,y:p*u}:{x:p*u,y:f*c}}var Fb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(a){var t,o;let{x:r,y:s,placement:l,middlewareData:n}=a,i=await O1(a,e);return l===((t=n.offset)==null?void 0:t.placement)&&(o=n.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:s+i.y,data:{...i,placement:l}}}}},Gb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(a){let{x:t,y:o,placement:r,platform:s}=a,{mainAxis:l=!0,crossAxis:n=!1,limiter:i={fn:m=>{let{x:g,y:w}=m;return{x:g,y:w}}},...u}=tl(e,a),c={x:t,y:o},d=await s.detectOverflow(a,u),p=ho(dr(r)),f=jf(p),b=c[f],x=c[p];if(l){let m=f==="y"?"top":"left",g=f==="y"?"bottom":"right",w=b+d[m],v=b-d[g];b=Ou(w,b,v)}if(n){let m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",w=x+d[m],v=x-d[g];x=Ou(w,x,v)}let k=i.fn({...a,[f]:b,[p]:x});return{...k,data:{x:k.x-t,y:k.y-o,enabled:{[f]:l,[p]:n}}}}}};function Pu(){return typeof window<"u"}function jr(e){return Xb(e)?(e.nodeName||"").toLowerCase():"#document"}function Ua(e){var a;return(e==null||(a=e.ownerDocument)==null?void 0:a.defaultView)||window}function kt(e){var a;return(a=(Xb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:a.documentElement}function Xb(e){return Pu()?e instanceof Node||e instanceof Ua(e).Node:!1}function ht(e){return Pu()?e instanceof Element||e instanceof Ua(e).Element:!1}function Ut(e){return Pu()?e instanceof HTMLElement||e instanceof Ua(e).HTMLElement:!1}function Vb(e){return!Pu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ua(e).ShadowRoot}function sl(e){let{overflow:a,overflowX:t,overflowY:o,display:r}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(a+o+t)&&r!=="inline"&&r!=="contents"}function Zb(e){return/^(table|td|th)$/.test(jr(e))}function Xn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var E1=/transform|translate|scale|rotate|perspective|filter/,H1=/paint|layout|strict|content/,Yr=e=>!!e&&e!=="none",Kf;function Uu(e){let a=ht(e)?wt(e):e;return Yr(a.transform)||Yr(a.translate)||Yr(a.scale)||Yr(a.rotate)||Yr(a.perspective)||!qu()&&(Yr(a.backdropFilter)||Yr(a.filter))||E1.test(a.willChange||"")||H1.test(a.contain||"")}function Yb(e){let a=wo(e);for(;Ut(a)&&!Qr(a);){if(Uu(a))return a;if(Xn(a))return null;a=wo(a)}return null}function qu(){return Kf==null&&(Kf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kf}function Qr(e){return/^(html|body|#document)$/.test(jr(e))}function wt(e){return Ua(e).getComputedStyle(e)}function Zn(e){return ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wo(e){if(jr(e)==="html")return e;let a=e.assignedSlot||e.parentNode||Vb(e)&&e.host||kt(e);return Vb(a)?a.host:a}function jb(e){let a=wo(e);return Qr(a)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(a)&&sl(a)?a:jb(a)}function rl(e,a,t){var o;a===void 0&&(a=[]),t===void 0&&(t=!0);let r=jb(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),l=Ua(r);if(s){let n=_u(l);return a.concat(l,l.visualViewport||[],sl(r)?r:[],n&&t?rl(n):[])}else return a.concat(r,rl(r,[],t))}function _u(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jb(e){let a=wt(e),t=parseFloat(a.width)||0,o=parseFloat(a.height)||0,r=Ut(e),s=r?e.offsetWidth:t,l=r?e.offsetHeight:o,n=Gn(t)!==s||Gn(o)!==l;return n&&(t=s,o=l),{width:t,height:o,$:n}}function Jf(e){return ht(e)?e:e.contextElement}function ll(e){let a=Jf(e);if(!Ut(a))return It(1);let t=a.getBoundingClientRect(),{width:o,height:r,$:s}=Jb(a),l=(s?Gn(t.width):t.width)/o,n=(s?Gn(t.height):t.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!n||!Number.isFinite(n))&&(n=1),{x:l,y:n}}var P1=It(0);function $b(e){let a=Ua(e);return!qu()||!a.visualViewport?P1:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function U1(e,a,t){return a===void 0&&(a=!1),!t||a&&t!==Ua(e)?!1:a}function Kr(e,a,t,o){a===void 0&&(a=!1),t===void 0&&(t=!1);let r=e.getBoundingClientRect(),s=Jf(e),l=It(1);a&&(o?ht(o)&&(l=ll(o)):l=ll(e));let n=U1(s,t,o)?$b(s):It(0),i=(r.left+n.x)/l.x,u=(r.top+n.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(s){let p=Ua(s),f=o&&ht(o)?Ua(o):o,b=p,x=_u(b);for(;x&&o&&f!==b;){let k=ll(x),m=x.getBoundingClientRect(),g=wt(x),w=m.left+(x.clientLeft+parseFloat(g.paddingLeft))*k.x,v=m.top+(x.clientTop+parseFloat(g.paddingTop))*k.y;i*=k.x,u*=k.y,c*=k.x,d*=k.y,i+=w,u+=v,b=Ua(x),x=_u(b)}}return Zr({width:c,height:d,x:i,y:u})}function Fu(e,a){let t=Zn(e).scrollLeft;return a?a.left+t:Kr(kt(e)).left+t}function ev(e,a){let t=e.getBoundingClientRect(),o=t.left+a.scrollLeft-Fu(e,t),r=t.top+a.scrollTop;return{x:o,y:r}}function q1(e){let{elements:a,rect:t,offsetParent:o,strategy:r}=e,s=r==="fixed",l=kt(o),n=a?Xn(a.floating):!1;if(o===l||n&&s)return t;let i={scrollLeft:0,scrollTop:0},u=It(1),c=It(0),d=Ut(o);if((d||!d&&!s)&&((jr(o)!=="body"||sl(l))&&(i=Zn(o)),d)){let f=Kr(o);u=ll(o),c.x=f.x+o.clientLeft,c.y=f.y+o.clientTop}let p=l&&!d&&!s?ev(l,i):It(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-i.scrollLeft*u.x+c.x+p.x,y:t.y*u.y-i.scrollTop*u.y+c.y+p.y}}function _1(e){return Array.from(e.getClientRects())}function F1(e){let a=kt(e),t=Zn(e),o=e.ownerDocument.body,r=go(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),s=go(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight),l=-t.scrollLeft+Fu(e),n=-t.scrollTop;return wt(o).direction==="rtl"&&(l+=go(a.clientWidth,o.clientWidth)-r),{width:r,height:s,x:l,y:n}}var Qb=25;function G1(e,a){let t=Ua(e),o=kt(e),r=t.visualViewport,s=o.clientWidth,l=o.clientHeight,n=0,i=0;if(r){s=r.width,l=r.height;let c=qu();(!c||c&&a==="fixed")&&(n=r.offsetLeft,i=r.offsetTop)}let u=Fu(o);if(u<=0){let c=o.ownerDocument,d=c.body,p=getComputedStyle(d),f=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(o.clientWidth-d.clientWidth-f);b<=Qb&&(s-=b)}else u<=Qb&&(s+=u);return{width:s,height:l,x:n,y:i}}function V1(e,a){let t=Kr(e,!0,a==="fixed"),o=t.top+e.clientTop,r=t.left+e.clientLeft,s=Ut(e)?ll(e):It(1),l=e.clientWidth*s.x,n=e.clientHeight*s.y,i=r*s.x,u=o*s.y;return{width:l,height:n,x:i,y:u}}function Kb(e,a,t){let o;if(a==="viewport")o=G1(e,t);else if(a==="document")o=F1(kt(e));else if(ht(a))o=V1(a,t);else{let r=$b(e);o={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return Zr(o)}function av(e,a){let t=wo(e);return t===a||!ht(t)||Qr(t)?!1:wt(t).position==="fixed"||av(t,a)}function X1(e,a){let t=a.get(e);if(t)return t;let o=rl(e,[],!1).filter(n=>ht(n)&&jr(n)!=="body"),r=null,s=wt(e).position==="fixed",l=s?wo(e):e;for(;ht(l)&&!Qr(l);){let n=wt(l),i=Uu(l);!i&&n.position==="fixed"&&(r=null),(s?!i&&!r:!i&&n.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||sl(l)&&!i&&av(e,l))?o=o.filter(c=>c!==l):r=n,l=wo(l)}return a.set(e,o),o}function Z1(e){let{element:a,boundary:t,rootBoundary:o,strategy:r}=e,l=[...t==="clippingAncestors"?Xn(a)?[]:X1(a,this._c):[].concat(t),o],n=Kb(a,l[0],r),i=n.top,u=n.right,c=n.bottom,d=n.left;for(let p=1;p<l.length;p++){let f=Kb(a,l[p],r);i=go(f.top,i),u=cr(f.right,u),c=cr(f.bottom,c),d=go(f.left,d)}return{width:u-d,height:c-i,x:d,y:i}}function Y1(e){let{width:a,height:t}=Jb(e);return{width:a,height:t}}function j1(e,a,t){let o=Ut(a),r=kt(a),s=t==="fixed",l=Kr(e,!0,s,a),n={scrollLeft:0,scrollTop:0},i=It(0);function u(){i.x=Fu(r)}if(o||!o&&!s)if((jr(a)!=="body"||sl(r))&&(n=Zn(a)),o){let f=Kr(a,!0,s,a);i.x=f.x+a.clientLeft,i.y=f.y+a.clientTop}else r&&u();s&&!o&&r&&u();let c=r&&!o&&!s?ev(r,n):It(0),d=l.left+n.scrollLeft-i.x-c.x,p=l.top+n.scrollTop-i.y-c.y;return{x:d,y:p,width:l.width,height:l.height}}function Wf(e){return wt(e).position==="static"}function Wb(e,a){if(!Ut(e)||wt(e).position==="fixed")return null;if(a)return a(e);let t=e.offsetParent;return kt(e)===t&&(t=t.ownerDocument.body),t}function tv(e,a){let t=Ua(e);if(Xn(e))return t;if(!Ut(e)){let r=wo(e);for(;r&&!Qr(r);){if(ht(r)&&!Wf(r))return r;r=wo(r)}return t}let o=Wb(e,a);for(;o&&Zb(o)&&Wf(o);)o=Wb(o,a);return o&&Qr(o)&&Wf(o)&&!Uu(o)?t:o||Yb(e)||t}var Q1=async function(e){let a=this.getOffsetParent||tv,t=this.getDimensions,o=await t(e.floating);return{reference:j1(e.reference,await a(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function K1(e){return wt(e).direction==="rtl"}var W1={convertOffsetParentRelativeRectToViewportRelativeRect:q1,getDocumentElement:kt,getClippingRect:Z1,getOffsetParent:tv,getElementRects:Q1,getClientRects:_1,getDimensions:Y1,getScale:ll,isElement:ht,isRTL:K1};function ov(e,a){return e.x===a.x&&e.y===a.y&&e.width===a.width&&e.height===a.height}function J1(e,a){let t=null,o,r=kt(e);function s(){var n;clearTimeout(o),(n=t)==null||n.disconnect(),t=null}function l(n,i){n===void 0&&(n=!1),i===void 0&&(i=1),s();let u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(n||a(),!p||!f)return;let b=Vn(d),x=Vn(r.clientWidth-(c+p)),k=Vn(r.clientHeight-(d+f)),m=Vn(c),w={rootMargin:-b+"px "+-x+"px "+-k+"px "+-m+"px",threshold:go(0,cr(1,i))||1},v=!0;function I(N){let T=N[0].intersectionRatio;if(T!==i){if(!v)return l();T?l(!1,T):o=setTimeout(()=>{l(!1,1e-7)},1e3)}T===1&&!ov(u,e.getBoundingClientRect())&&l(),v=!1}try{t=new IntersectionObserver(I,{...w,root:r.ownerDocument})}catch{t=new IntersectionObserver(I,w)}t.observe(e)}return l(!0),s}function Gu(e,a,t,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=Jf(e),c=r||s?[...u?rl(u):[],...a?rl(a):[]]:[];c.forEach(m=>{r&&m.addEventListener("scroll",t,{passive:!0}),s&&m.addEventListener("resize",t)});let d=u&&n?J1(u,t):null,p=-1,f=null;l&&(f=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&f&&a&&(f.unobserve(a),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(a)})),t()}),u&&!i&&f.observe(u),a&&f.observe(a));let b,x=i?Kr(e):null;i&&k();function k(){let m=Kr(e);x&&!ov(x,m)&&t(),x=m,b=requestAnimationFrame(k)}return t(),()=>{var m;c.forEach(g=>{r&&g.removeEventListener("scroll",t),s&&g.removeEventListener("resize",t)}),d?.(),(m=f)==null||m.disconnect(),f=null,i&&cancelAnimationFrame(b)}}var Vu=Fb;var Xu=Gb,Zu=_b;var rv=qb;var Yu=(e,a,t)=>{let o=new Map,r={platform:W1,...t},s={...r.platform,_c:o};return Ub(e,a,{...r,platform:s})};var xe=y(de(),1),iv=y(ai(),1),qt=y(C(),1),Yn=6,sv=8,lv=4,$1={compact:"px-2 py-1 text-[11px] max-w-[200px]",default:"px-3 py-2 text-xs max-w-xs"};function eS(e){return e.split("-")[0]}var nv={top:"",bottom:"rotate(180deg)",left:"rotate(-90deg)",right:"rotate(90deg)"};function Qe({content:e,placement:a="top",density:t="default",showDelay:o=300,hideDelay:r=150,arrow:s=!0,renderArrow:l,className:n,children:i}){let[u,c]=(0,xe.useState)(!1),[d,p]=(0,xe.useState)(null),[f,b]=(0,xe.useState)(a),[x,k]=(0,xe.useState)({}),m=(0,xe.useRef)(null),g=(0,xe.useRef)(null),w=(0,xe.useRef)(null),v=(0,xe.useRef)(void 0),I=(0,xe.useRef)(void 0),N=(0,xe.useId)(),T=(0,xe.useCallback)(()=>{clearTimeout(v.current),clearTimeout(I.current)},[]),R=(0,xe.useCallback)(()=>{T(),v.current=setTimeout(()=>c(!0),o)},[T,o]),O=(0,xe.useCallback)(()=>{T(),c(!0)},[T]),A=(0,xe.useCallback)(()=>{T(),I.current=setTimeout(()=>c(!1),r)},[T,r]),P=(0,xe.useCallback)(ze=>{if(ze.target===m.current){R();return}O()},[R,O]),Re=(0,xe.useCallback)(ze=>{ze.pointerType!=="mouse"&&O()},[O]),Ia=(0,xe.useCallback)(ze=>{ze.key==="Escape"&&u&&c(!1)},[u]);(0,xe.useLayoutEffect)(()=>{if(!u||!m.current||!g.current)return;let ze=[Vu(s?sv+Yn:sv),Zu({padding:lv}),Xu({padding:lv})];return s&&w.current&&ze.push(rv({element:w.current})),Gu(m.current,g.current,()=>{!m.current||!g.current||Yu(m.current,g.current,{placement:a,strategy:"fixed",middleware:ze}).then(({x:na,y:ia,placement:Jr,middlewareData:ha})=>{p({top:ia,left:na}),b(eS(Jr)),ha.arrow&&k({x:ha.arrow.x,y:ha.arrow.y})})})},[u,a,s]),(0,xe.useEffect)(()=>{if(u)return document.addEventListener("keydown",Ia),()=>document.removeEventListener("keydown",Ia)},[u,Ia]),(0,xe.useEffect)(()=>T,[T]);let ce={position:"absolute"},ga=f;return ga==="top"||ga==="bottom"?(ce.left=x.x??0,ce[ga==="top"?"bottom":"top"]=-Yn,ce.transform=nv[ga]||void 0):(ce.top=x.y??0,ce[ga==="left"?"right":"left"]=-Yn,ce.transform=nv[ga]),(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{ref:m,"data-state":u?"open":"closed",className:"owo-tooltip-trigger inline-flex",onMouseEnter:R,onMouseLeave:A,onFocus:P,onBlur:A,onPointerDown:Re,"aria-describedby":u?N:void 0,children:i}),u&&(0,iv.createPortal)((0,qt.jsxs)("div",{ref:g,id:N,role:"tooltip","data-state":u?"open":"closed","data-placement":f,"data-density":t,className:D("owo-tooltip fixed z-[var(--owo-cmp-z-toast)] rounded-[var(--owo-cmp-control-radius-lg)] leading-relaxed",$1[t],"animate-[tooltip-in_0.15s_var(--owo-cmp-motion-ease-standard)]",n),style:d?{top:d.top,left:d.left}:{visibility:"hidden"},onMouseEnter:R,onMouseLeave:A,children:[e,s&&(0,qt.jsx)("span",{ref:w,className:"owo-tooltip__arrow absolute",style:ce,children:l?l({placement:f}):(0,qt.jsx)("svg",{width:Yn*2,height:Yn,viewBox:"0 0 12 6",children:(0,qt.jsx)("path",{d:"M0 0l6 6 6-6z",fill:"currentColor"})})})]}),document.body)]})}var le=y(C(),1);q({group:"feedback",componentId:"tooltip",componentName:"Tooltip",description:"Hover/focus-triggered floating label. Token-driven: --tooltip-bg, --tooltip-border, --tooltip-text, --tooltip-shadow, --tooltip-arrow-color.",props:[{name:"content",type:"ReactNode",description:"Tooltip content shown on hover/focus."},{name:"placement",type:"'top' | 'bottom' | 'left' | 'right'",default:"'top'",description:"Preferred placement. Auto-flips if clipped by viewport."},{name:"density",type:"'compact' | 'default'",default:"'default'",description:"Controls padding and max-width. Compact is tighter for icon labels."},{name:"showDelay",type:"number",default:"300",description:"Delay in ms before showing."},{name:"hideDelay",type:"number",default:"150",description:"Delay in ms before hiding."},{name:"arrow",type:"boolean",default:"true",description:"Whether to show the directional arrow."},{name:"children",type:"ReactElement",description:"Trigger element."}],stories:[{id:"placements",title:"Placements",description:"top / bottom / left / right \u2014 hover each button.",render:()=>(0,le.jsxs)("div",{className:"flex flex-col items-center gap-2 py-12",children:[(0,le.jsx)(Qe,{content:"Placed on top",placement:"top",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Top"})}),(0,le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,le.jsx)(Qe,{content:"Placed on left",placement:"left",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Left"})}),(0,le.jsx)("div",{className:"w-6"}),(0,le.jsx)(Qe,{content:"Placed on right",placement:"right",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Right"})})]}),(0,le.jsx)(Qe,{content:"Placed on bottom",placement:"bottom",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Bottom"})})]})},{id:"density",title:"Density",description:"compact vs default \u2014 compact is tighter for icon labels.",render:()=>(0,le.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-6 py-12",children:[(0,le.jsx)(Qe,{content:"Compact tooltip",density:"compact",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Compact"})}),(0,le.jsx)(Qe,{content:"Default density tooltip with more room for content",density:"default",children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Default"})})]})},{id:"rich-content",title:"Rich Content",description:"Tooltip supports ReactNode content.",render:()=>(0,le.jsx)("div",{className:"flex justify-center py-8",children:(0,le.jsx)(Qe,{content:(0,le.jsxs)("div",{children:[(0,le.jsx)("p",{className:"font-medium",children:"Keyboard shortcut"}),(0,le.jsx)("p",{className:"mt-1 opacity-80",children:"Press Ctrl+S to save your work."})]}),children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Hover for shortcut"})})})},{id:"on-icon-button",title:"On IconButton",description:"Common pattern: tooltip on icon-only buttons.",render:()=>(0,le.jsx)("div",{className:"flex justify-center py-8",children:(0,le.jsx)(Qe,{content:"Settings",density:"compact",children:(0,le.jsx)(ee,{label:"Settings",icon:(0,le.jsx)(za,{size:16})})})})},{id:"no-arrow",title:"Without Arrow",render:()=>(0,le.jsx)("div",{className:"flex justify-center py-8",children:(0,le.jsx)(Qe,{content:"No arrow variant",arrow:!1,children:(0,le.jsx)(M,{variant:"secondary",size:"sm",children:"Hover me"})})})}]});var mv=y(de(),1);var z=y(de(),1),uv=y(ai(),1),la=y(C(),1),cv=(0,z.createContext)(null),$f=(0,z.createContext)(null);function ep(e){let a=(0,z.useContext)(cv);if(!a)throw new Error(`${e} must be used within DropdownMenu.`);return a}function dv(e){let a=(0,z.useContext)($f);if(!a)throw new Error(`${e} must be used within DropdownMenu.Content.`);return a}function nl(e,a){return t=>{e?.(t),a(t)}}function fv(...e){return a=>{for(let t of e)t&&(typeof t=="function"?t(a):t.current=a)}}function ju(e){return typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(ju).join(" "):!e||typeof e=="boolean"?"":(0,z.isValidElement)(e)?ju(e.props.children):""}function aS(e){return[...e].sort((a,t)=>{let o=a.ref.current,r=t.ref.current;if(!o||!r)return 0;let s=o.compareDocumentPosition(r);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tS(e,a){return a==="center"?e:`${e}-${a}`}function oS(e){let a=e.split("-");return{side:a[0],align:a[1]??"center"}}function pv({open:e,defaultOpen:a=!1,onOpenChange:t,side:o="bottom",align:r="start",sideOffset:s=8,alignOffset:l=0,collisionPadding:n=8,portal:i=!0,contentRole:u="menu",children:c}){let d=(0,z.useContext)($f),[p,f]=(0,z.useState)(a),b=e!==void 0,x=b?e:p,k=(0,z.useRef)(null),m=(0,z.useRef)(null),g=(0,z.useRef)("selected"),w=(0,z.useId)(),v=(0,z.useId)(),I=(0,z.useCallback)(P=>{b||f(P),t?.(P)},[b,t]),N=(0,z.useCallback)(()=>{I(!1)},[I]),T=(0,z.useCallback)(()=>{I(!1),d?.closeTree()},[d,I]),R=(0,z.useCallback)(()=>{I(!x)},[x,I]),O=(0,z.useCallback)(()=>{k.current?.focus()},[]),A=(0,z.useMemo)(()=>({open:x,setOpen:I,toggleOpen:R,triggerRef:k,contentRef:m,side:o,align:r,sideOffset:s,alignOffset:l,collisionPadding:n,portal:i,contentRole:u,triggerId:w,contentId:v,focusIntentRef:g,parentList:d,isSubmenu:!!d,closeSelf:N,closeTree:T,focusTrigger:O}),[x,r,l,N,T,n,u,d,i,I,o,s,R,w,v,O]);return(0,la.jsx)(cv.Provider,{value:A,children:c})}function rS({asChild:e=!1,disabled:a=!1,className:t,children:o}){let{open:r,setOpen:s,toggleOpen:l,triggerRef:n,contentRole:i,triggerId:u,contentId:c,focusIntentRef:d,isSubmenu:p}=ep("DropdownMenu.Trigger"),f=z.Children.only(o),b=f.props??{},x=typeof b.className=="string"?b.className:void 0,k={id:u,"data-state":r?"open":"closed","aria-expanded":r,"aria-haspopup":i,"aria-controls":r?c:void 0,onClick:nl(b.onClick,m=>{if(a){m.preventDefault();return}d.current="selected",l()}),onKeyDown:nl(b.onKeyDown,m=>{a||(m.key==="ArrowDown"?(m.preventDefault(),d.current="first",s(!0)):m.key==="ArrowUp"?(m.preventDefault(),d.current="last",s(!0)):!p&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),d.current="selected",l()))})};return e?(0,z.cloneElement)(f,{...k,ref:fv(n,b.ref),className:D(t,x),type:f.type==="button"?b.type??"button":b.type}):(0,la.jsx)("button",{ref:n,disabled:a,type:"button",className:D("owo-dropdown-menu__trigger",t),...k,children:f})}function sS({className:e,children:a,style:t,matchTriggerWidth:o=!1,maxHeight:r=320,...s}){let{open:l,setOpen:n,triggerRef:i,contentRef:u,side:c,align:d,sideOffset:p,alignOffset:f,collisionPadding:b,portal:x,contentRole:k,triggerId:m,contentId:g,focusIntentRef:w,parentList:v,isSubmenu:I,closeSelf:N,closeTree:T,focusTrigger:R}=ep("DropdownMenu.Content"),O=(0,z.useRef)([]),[A,P]=(0,z.useState)(null),[Re,Ia]=(0,z.useState)(null),[ce,ga]=(0,z.useState)(null),[ze,ka]=(0,z.useState)(!1),na=(0,z.useRef)(""),ia=(0,z.useRef)(null),Jr=(0,z.useCallback)(Q=>(O.current=[...O.current.filter(Oe=>Oe.id!==Q.id),Q],()=>{O.current=O.current.filter(Oe=>Oe.id!==Q.id)}),[]),ha=(0,z.useCallback)(()=>aS(O.current),[]),mp=(0,z.useCallback)(Q=>{w.current=Q},[w]);(0,z.useEffect)(()=>{ka(!0)},[]);let Mv=(0,z.useMemo)(()=>({role:k,highlightedId:A,setHighlightedId:P,registerItem:Jr,getItems:ha,requestFocusIntent:mp,closeTree:T,closeSelf:N,focusTrigger:R,activeSubmenuId:Re,setActiveSubmenuId:Ia,contentRef:u}),[Re,N,T,u,k,R,ha,A,Jr,mp]);(0,z.useLayoutEffect)(()=>!l||!ze||!i.current||!u.current?void 0:Gu(i.current,u.current,()=>{!i.current||!u.current||Yu(i.current,u.current,{placement:tS(c,d),strategy:"fixed",middleware:[Vu({mainAxis:p,crossAxis:f}),Zu({padding:b}),Xu({padding:b})]}).then(({x:Oe,y:te,placement:ea})=>{let et=oS(ea);ga({top:te,left:Oe,side:et.side,align:et.align})})}),[d,f,b,u,ze,l,c,p,i]),(0,z.useEffect)(()=>{if(!l){P(null),Ia(null);return}let Q=ha().filter(te=>!te.disabled);if(Q.length===0)return;let Oe=Q[0];w.current==="last"?Oe=Q[Q.length-1]:w.current==="selected"&&(Oe=Q.find(te=>te.selected)??Q[0]),P(Oe.id),requestAnimationFrame(()=>{u.current?.focus(),Oe.ref.current?.scrollIntoView({block:"nearest"})})},[u,w,ha,l]),(0,z.useEffect)(()=>{if(!l)return;function Q(Oe){let te=Oe.target,ea=i.current?.contains(te),et=u.current?.contains(te);if(!ea&&!et){let At=v?.contentRef.current?.contains(te);if(I&&At){N(),v?.setActiveSubmenuId(null);return}T()}}return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[N,T,u,I,l,v,i]),(0,z.useEffect)(()=>{if(l)return()=>{ia.current&&clearTimeout(ia.current)}},[l]);let vo=(0,z.useCallback)(Q=>{if(P(Q),!Q){Ia(null);return}ha().find(te=>te.id===Q)?.submenu||Ia(null)},[ha]),Wu=(0,z.useCallback)((Q,Oe="first")=>{let te=ha().filter(Vt=>!Vt.disabled);if(te.length===0)return;let ea=te.findIndex(Vt=>Vt.id===A);if(ea===-1){vo(Oe==="last"?te[te.length-1].id:te[0].id);return}let et=(ea+Q+te.length)%te.length,At=te[et];vo(At.id),At.ref.current?.scrollIntoView({block:"nearest"})},[ha,A,vo]),gp=(0,z.useCallback)(Q=>{let Oe=Q.length===1?Q.toLowerCase():"";if(!Oe)return;ia.current&&clearTimeout(ia.current),na.current+=Oe,ia.current=setTimeout(()=>{na.current="",ia.current=null},350);let te=ha().filter(Vt=>!Vt.disabled);if(te.length===0)return;let ea=te.findIndex(Vt=>Vt.id===A),At=(ea>=0?[...te.slice(ea+1),...te.slice(0,ea+1)]:te).find(Vt=>Vt.textValue.toLowerCase().startsWith(na.current));At&&(vo(At.id),At.ref.current?.scrollIntoView({block:"nearest"}))},[ha,A,vo]),Dv=(0,z.useCallback)(Q=>{let Oe=ha(),te=Oe.find(ea=>ea.id===A)??null;switch(Q.key){case"ArrowDown":Q.preventDefault(),Wu(1);break;case"ArrowUp":Q.preventDefault(),Wu(-1,"last");break;case"Home":Q.preventDefault();{let ea=Oe.find(et=>!et.disabled);ea&&vo(ea.id)}break;case"End":Q.preventDefault();{let ea=Oe.filter(At=>!At.disabled),et=ea[ea.length-1];et&&vo(et.id)}break;case"Enter":case" ":te&&!te.disabled&&(Q.preventDefault(),te.click());break;case"ArrowRight":te?.submenu&&(Q.preventDefault(),te.openSubmenu?.());break;case"ArrowLeft":I&&(Q.preventDefault(),N(),R(),v?.setActiveSubmenuId(null));break;case"Tab":T();break;case"Escape":Q.preventDefault(),N(),R(),I&&v?.setActiveSubmenuId(null);break;default:gp(Q.key)}},[N,T,R,ha,gp,A,vo,I,Wu,v]);if(!l||!ze)return null;let hp=(0,la.jsx)($f.Provider,{value:Mv,children:(0,la.jsx)("div",{ref:u,id:g,role:k,tabIndex:-1,"aria-labelledby":k==="menu"?m:void 0,"data-state":"open","data-side":ce?.side??c,"data-align":ce?.align??d,className:D("owo-dropdown-menu__content",I&&"owo-dropdown-menu__content--submenu",e),style:{...t,position:"fixed",top:ce?.top??0,left:ce?.left??0,maxHeight:r,minWidth:o?i.current?.getBoundingClientRect().width:void 0},onKeyDown:Dv,...s,children:a})});return x?(0,uv.createPortal)(hp,document.body):hp}function lS({className:e,children:a,...t}){return(0,la.jsx)("div",{className:D("owo-dropdown-menu__group",e),...t,children:a})}function nS({className:e,children:a,...t}){return(0,la.jsx)("div",{className:D("owo-dropdown-menu__label",e),...t,children:a})}function iS({className:e,...a}){return(0,la.jsx)("div",{role:"separator",className:D("owo-dropdown-menu__separator",e),...a})}function uS({className:e,children:a,inset:t=!1,disabled:o=!1,selected:r=!1,destructive:s=!1,closeOnSelect:l=!0,shortcut:n,indicator:i,onSelect:u,onMouseEnter:c,onClick:d,...p}){let f=(0,z.useId)(),b=(0,z.useRef)(null),{role:x,highlightedId:k,setHighlightedId:m,registerItem:g,closeTree:w,setActiveSubmenuId:v}=dv("DropdownMenu.Item"),I=(0,z.useMemo)(()=>ju(a),[a]),N=k===f,T=(0,z.useCallback)(()=>{o||(u?.(),l&&w())},[l,w,o,u]);return(0,z.useEffect)(()=>g({id:f,ref:b,disabled:o,submenu:!1,selected:r,textValue:I,closeOnSelect:l,click:T}),[l,o,T,f,g,r,I]),(0,la.jsxs)("button",{ref:b,id:f,type:"button",role:x==="listbox"?"option":"menuitem",tabIndex:-1,disabled:o,"aria-selected":x==="listbox"?r:void 0,"data-highlighted":N||void 0,"data-selected":r||void 0,"data-disabled":o||void 0,"data-destructive":s||void 0,className:D("owo-dropdown-menu__item",t&&"owo-dropdown-menu__item--inset",e),onMouseEnter:nl(c,()=>{o||(m(f),v(null))}),onClick:nl(d,R=>{R.preventDefault(),T()}),...p,children:[(0,la.jsx)("span",{className:"owo-dropdown-menu__item-main",children:a}),n?(0,la.jsx)("span",{className:"owo-dropdown-menu__shortcut",children:n}):null,r?(0,la.jsx)("span",{className:"owo-dropdown-menu__indicator",children:i??"\u2713"}):null]})}function cS(e){return(0,la.jsx)(pv,{side:"right",align:"start",sideOffset:6,...e,contentRole:"menu"})}function dS({className:e,children:a,inset:t=!1,disabled:o=!1,destructive:r=!1,shortcut:s,onSelect:l,onMouseEnter:n,onClick:i,...u}){let c=(0,z.useId)(),d=(0,z.useRef)(null),p=ep("DropdownMenu.SubTrigger"),{highlightedId:f,setHighlightedId:b,registerItem:x,setActiveSubmenuId:k,activeSubmenuId:m}=dv("DropdownMenu.SubTrigger"),g=(0,z.useMemo)(()=>ju(a),[a]),w=f===c,v=p.open&&m===c,I=(0,z.useCallback)(()=>{o||(p.focusIntentRef.current="first",b(c),k(c),p.setOpen(!0))},[o,c,k,b,p]);return(0,z.useEffect)(()=>x({id:c,ref:d,disabled:o,submenu:!0,selected:!1,textValue:g,closeOnSelect:!1,click:I,openSubmenu:I}),[o,c,I,x,g]),(0,z.useEffect)(()=>{m!==c&&p.open&&p.setOpen(!1)},[m,c,p]),(0,la.jsxs)("button",{ref:fv(d,p.triggerRef),id:p.triggerId,type:"button",role:"menuitem",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p.open,"aria-controls":p.open?p.contentId:void 0,"data-highlighted":w||void 0,"data-state":v?"open":"closed","data-disabled":o||void 0,"data-destructive":r||void 0,className:D("owo-dropdown-menu__item owo-dropdown-menu__sub-trigger",t&&"owo-dropdown-menu__item--inset",e),onMouseEnter:nl(n,()=>{I()}),onClick:nl(i,N=>{N.preventDefault(),I(),l?.()}),...u,children:[(0,la.jsx)("span",{className:"owo-dropdown-menu__item-main",children:a}),s?(0,la.jsx)("span",{className:"owo-dropdown-menu__shortcut",children:s}):null,(0,la.jsx)("span",{className:"owo-dropdown-menu__submenu-indicator","aria-hidden":"true",children:"\u203A"})]})}var fS=Object.assign(pv,{Trigger:rS,Content:sS,Group:lS,Label:nS,Item:uS,Separator:iS,Submenu:cS,SubTrigger:dS}),Z=fS;var $=y(C(),1);function pS(){return(0,$.jsx)("div",{className:"flex min-h-52 items-start justify-start pb-48",children:(0,$.jsxs)(Z,{align:"start",children:[(0,$.jsx)(Z.Trigger,{asChild:!0,children:(0,$.jsx)("button",{className:"rounded-lg border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] px-3 py-2 text-sm font-medium text-[var(--owo-cmp-text-primary)]",children:"Workspace"})}),(0,$.jsxs)(Z.Content,{children:[(0,$.jsxs)(Z.Group,{children:[(0,$.jsx)(Z.Item,{children:"Open settings"}),(0,$.jsx)(Z.Item,{children:"Duplicate workspace"})]}),(0,$.jsx)(Z.Separator,{}),(0,$.jsxs)(Z.Submenu,{children:[(0,$.jsx)(Z.SubTrigger,{children:"Theme"}),(0,$.jsxs)(Z.Content,{children:[(0,$.jsx)(Z.Item,{children:"Light"}),(0,$.jsx)(Z.Item,{selected:!0,children:"Elevated"}),(0,$.jsx)(Z.Item,{children:"Glass"})]})]}),(0,$.jsx)(Z.Separator,{}),(0,$.jsx)(Z.Item,{destructive:!0,children:"Delete workspace"})]})]})})}function mS(){let[e,a]=(0,mv.useState)("gpt-4.1-mini");return(0,$.jsx)("div",{className:"flex min-h-64 items-end pb-44",children:(0,$.jsxs)(Z,{contentRole:"listbox",side:"top",align:"end",children:[(0,$.jsx)(Z.Trigger,{asChild:!0,children:(0,$.jsxs)("button",{className:"inline-flex items-center gap-2 rounded-lg border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] px-3 py-2 text-sm text-[var(--owo-cmp-text-primary)]",children:[(0,$.jsx)("span",{children:e}),(0,$.jsx)("span",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:"\u25BC"})]})}),(0,$.jsxs)(Z.Content,{className:"w-64",children:[(0,$.jsxs)(Z.Group,{children:[(0,$.jsx)(Z.Label,{children:"OpenAI"}),["gpt-4.1-mini","gpt-4.1","o4-mini"].map(t=>(0,$.jsx)(Z.Item,{selected:t===e,onSelect:()=>a(t),children:t},t))]}),(0,$.jsxs)(Z.Group,{children:[(0,$.jsx)(Z.Label,{children:"Custom"}),["claude-sonnet-4","gemini-2.5-pro"].map(t=>(0,$.jsx)(Z.Item,{selected:t===e,onSelect:()=>a(t),children:t},t))]})]})]})})}q({group:"actions",componentId:"dropdown-menu",componentName:"DropdownMenu",description:"Industrial dropdown primitive for action menus, grouped pickers, and nested submenus.",props:[{name:"open",type:"boolean",description:"Controlled open state."},{name:"defaultOpen",type:"boolean",description:"Initial open state for uncontrolled usage."},{name:"onOpenChange",type:"(open: boolean) => void",description:"Open-state change callback."},{name:"side",type:"'top' | 'bottom' | 'left' | 'right'",default:"'bottom'",description:"Preferred content side."},{name:"align",type:"'start' | 'center' | 'end'",default:"'start'",description:"Alignment relative to trigger."},{name:"contentRole",type:"'menu' | 'listbox'",default:"'menu'",description:"Semantic role for action menus vs pickers."}],stories:[{id:"actions",title:"Action Menu",description:"Standard action menu with submenu and destructive item.",render:()=>(0,$.jsx)(pS,{})},{id:"picker",title:"Grouped Picker",description:"Model-picker style listbox with selected state.",render:()=>(0,$.jsx)(mS,{})}]});var gv=y(de(),1);var Wr=y(C(),1);function ap({as:e="aside",open:a,children:t,side:o="right",position:r="fixed",showBackdrop:s=!0,onClose:l,closeLabel:n="\u5173\u95ED\u62BD\u5C49",backdropClassName:i,className:u,...c}){let d=o==="left"?"-translate-x-full":"translate-x-full",p=o==="left"?"left-0 top-0":"right-0 top-0",f=r==="fixed"?"fixed":"absolute";return(0,Wr.jsxs)(Wr.Fragment,{children:[s&&a&&l&&(0,Wr.jsx)("button",{type:"button","aria-label":n,"data-state":"open",className:D("owo-drawer-backdrop inset-0 z-[var(--owo-cmp-z-modal)]",f,i),onClick:l}),(0,Wr.jsx)(e,{"aria-hidden":!a,"data-state":a?"open":"closed","data-side":o,className:D("owo-drawer",f,p,"z-[calc(var(--owo-cmp-z-modal)+1)] flex max-w-full transform flex-col transition-transform duration-[var(--owo-cmp-motion-duration-default)] ease-[var(--owo-cmp-motion-ease-standard)]",a?"pointer-events-auto visible translate-x-0":`pointer-events-none invisible ${d}`,u),...c,children:t})]})}var we=y(C(),1);function tp({side:e="right",showBackdrop:a=!0}){let[t,o]=(0,gv.useState)(!1);return(0,we.jsxs)("div",{className:"relative h-[26rem] overflow-hidden rounded-xl border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-canvas)]",children:[(0,we.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,we.jsx)(M,{variant:"primary",size:"sm",onClick:()=>o(!0),children:"Open Drawer"})}),(0,we.jsx)(ap,{open:t,onClose:()=>o(!1),side:e,position:"absolute",showBackdrop:a,"aria-label":"Post settings",className:"h-full w-80 max-w-full border-l",children:(0,we.jsxs)("div",{className:"flex h-full flex-col",children:[(0,we.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--panel-section-border,var(--owo-ref-color-surface-border))] px-4 py-3",children:[(0,we.jsx)("span",{className:"text-sm font-semibold text-n800",children:"Post Settings"}),(0,we.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:"Close"})]}),(0,we.jsxs)("div",{className:"flex-1 space-y-3 overflow-y-auto p-4",children:[(0,we.jsx)("p",{className:"text-sm text-n600",children:"Drawer now uses --drawer-surface, --drawer-border, and --drawer-shadow tokens from CSS."}),(0,we.jsx)("div",{className:"rounded-lg border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-base)] p-3 text-sm text-n700",children:"Forms, filters, or settings can go here."})]}),(0,we.jsxs)("div",{className:"flex justify-end gap-2 border-t border-[var(--panel-section-border,var(--owo-ref-color-surface-border))] px-4 py-3",children:[(0,we.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:"Cancel"}),(0,we.jsx)(M,{variant:"primary",size:"sm",onClick:()=>o(!1),children:"Save"})]})]})})]})}q({group:"layout",componentId:"drawer",componentName:"Drawer",description:"Sliding overlay container for left/right drawers with optional backdrop. Token-driven: --drawer-surface, --drawer-border, --drawer-shadow, --drawer-backdrop.",props:[{name:"open",type:"boolean",default:"false",description:"Controls whether the drawer is visible."},{name:"side",type:"'left' | 'right'",default:"'right'",description:"Slide-in edge."},{name:"position",type:"'fixed' | 'absolute'",default:"'fixed'",description:"Positioning mode for app shell or local preview containers."},{name:"showBackdrop",type:"boolean",default:"true",description:"Whether to render a clickable backdrop when open."},{name:"onClose",type:"() => void",description:"Called when the backdrop is clicked."}],stories:[{id:"right",title:"Right Drawer",description:"Standard right-side drawer with backdrop.",source:`<Drawer
154
+ }`,render:()=>(0,la.jsxs)("div",{className:k.noteBox,children:[(0,la.jsx)("p",{className:k.fontStrong,children:"ToastProvider is not yet mounted in admin layout."}),(0,la.jsxs)("p",{className:k.marginTop1,children:["Add it to the layout before using useToast(). Click the ",(0,la.jsx)("strong",{children:"Code"})," button below to see the setup example."]})]})},{id:"all-tones",title:"All Tones",description:"Click buttons to trigger toasts, including the optional title layout.",render:()=>(0,la.jsx)(k1,{})}]});var fx=y(ve(),1);var cx={};var od=y(T(),1);function A1(e){let a=e.trim().split(/\s+/);return a.length>=2?(a[0][0]+a[a.length-1][0]).toUpperCase():e.slice(0,2).toUpperCase()}function La({src:e,alt:a,name:t,size:o="md",tone:r="neutral",className:l}){let[n,s]=(0,fx.useState)(!1),i=e&&!n,u=t?A1(t):"?";return(0,od.jsx)("span",{"data-tone":r,"data-size":o,className:I("owo-avatar",cx.root,l),children:i?(0,od.jsx)("img",{src:e,alt:a??t??"",onError:()=>s(!0)}):(0,od.jsx)("span",{"aria-label":a??t,children:u})})}var We=y(T(),1);Y({group:"feedback",componentId:"avatar",componentName:"Avatar",description:"User avatar with image or initials fallback. Token-driven: --avatar-bg, --avatar-text, --avatar-border.",props:[{name:"src",type:"string",description:"Image URL."},{name:"alt",type:"string",description:"Alt text for the image."},{name:"name",type:"string",description:"User name, used to derive initials fallback."},{name:"size",type:"'xs' | 'sm' | 'md' | 'lg'",default:"'md'",description:"Avatar size."},{name:"tone",type:"'neutral' | 'subtle'",default:"'neutral'",description:"Fallback background tone."}],renderPlayground:e=>(0,We.jsx)(La,{name:"Alice Bob",size:e.size,tone:e.tone}),stories:[{id:"sizes",title:"Sizes",description:"xs / sm / md / lg",render:()=>(0,We.jsxs)("div",{className:k.rowEnd,children:[(0,We.jsx)(La,{name:"Alice",size:"xs"}),(0,We.jsx)(La,{name:"Bob Chen",size:"sm"}),(0,We.jsx)(La,{name:"Carol Davis",size:"md"}),(0,We.jsx)(La,{name:"David",size:"lg"})]})},{id:"tones",title:"Tones",description:"neutral (default) vs subtle \u2014 applies to initials fallback.",render:()=>(0,We.jsxs)("div",{className:k.rowCenter,children:[(0,We.jsxs)("div",{className:k.centerText,children:[(0,We.jsx)(La,{name:"Neutral",size:"lg",tone:"neutral"}),(0,We.jsx)("p",{className:k.toneLabel,children:"neutral"})]}),(0,We.jsxs)("div",{className:k.centerText,children:[(0,We.jsx)(La,{name:"Subtle",size:"lg",tone:"subtle"}),(0,We.jsx)("p",{className:k.toneLabel,children:"subtle"})]})]})},{id:"with-image",title:"With Image",render:()=>(0,We.jsxs)("div",{className:k.rowCenterSm,children:[(0,We.jsx)(La,{src:"https://api.dicebear.com/9.x/initials/svg?seed=HW",name:"HW",size:"md"}),(0,We.jsx)(La,{src:"https://api.dicebear.com/9.x/initials/svg?seed=AB",name:"Alice Bob",size:"lg"})]})},{id:"fallback",title:"Fallback",description:"When image fails to load, initials are shown.",render:()=>(0,We.jsxs)("div",{className:k.rowCenterSm,children:[(0,We.jsx)(La,{src:"/broken-url.jpg",name:"Fallback User",size:"md"}),(0,We.jsx)(La,{name:"No Image",size:"md"}),(0,We.jsx)(La,{size:"md"})]})}]});var zr=Math.min,Po=Math.max,di=Math.round,ci=Math.floor,Yt=e=>({x:e,y:e}),D1={left:"right",right:"left",bottom:"top",top:"bottom"};function ld(e,a,t){return Po(e,zr(a,t))}function yn(e,a){return typeof e=="function"?e(a):e}function Br(e){return e.split("-")[0]}function Ln(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function nd(e){return e==="y"?"height":"width"}function qo(e){let a=e[0];return a==="t"||a==="b"?"y":"x"}function sd(e){return ym(qo(e))}function gx(e,a,t){t===void 0&&(t=!1);let o=Ln(e),r=sd(e),l=nd(r),n=r==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[l]>a.floating[l]&&(n=ui(n)),[n,ui(n)]}function hx(e){let a=ui(e);return[rd(e),a,rd(a)]}function rd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var mx=["left","right"],px=["right","left"],N1=["top","bottom"],z1=["bottom","top"];function B1(e,a,t){switch(e){case"top":case"bottom":return t?a?px:mx:a?mx:px;case"left":case"right":return a?N1:z1;default:return[]}}function bx(e,a,t,o){let r=Ln(e),l=B1(Br(e),t==="start",o);return r&&(l=l.map(n=>n+"-"+r),a&&(l=l.concat(l.map(rd)))),l}function ui(e){let a=Br(e);return D1[a]+e.slice(a.length)}function R1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lm(e){return typeof e!="number"?R1(e):{top:e,right:e,bottom:e,left:e}}function fl(e){let{x:a,y:t,width:o,height:r}=e;return{width:o,height:r,top:t,left:a,right:a+o,bottom:t+r,x:a,y:t}}function vx(e,a,t){let{reference:o,floating:r}=e,l=qo(a),n=sd(a),s=nd(n),i=Br(a),u=l==="y",d=o.x+o.width/2-r.width/2,m=o.y+o.height/2-r.height/2,c=o[s]/2-r[s]/2,g;switch(i){case"top":g={x:d,y:o.y-r.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:m};break;case"left":g={x:o.x-r.width,y:m};break;default:g={x:o.x,y:o.y}}switch(Ln(a)){case"start":g[n]-=c*(t&&u?-1:1);break;case"end":g[n]+=c*(t&&u?-1:1);break}return g}async function xx(e,a){var t;a===void 0&&(a={});let{x:o,y:r,platform:l,rects:n,elements:s,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:c=!1,padding:g=0}=yn(a,e),v=Lm(g),D=s[c?m==="floating"?"reference":"floating":m],p=fl(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(D)))==null||t?D:D.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:i})),f=m==="floating"?{x:o,y:r,width:n.floating.width,height:n.floating.height}:n.reference,b=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),x=await(l.isElement==null?void 0:l.isElement(b))?await(l.getScale==null?void 0:l.getScale(b))||{x:1,y:1}:{x:1,y:1},N=fl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:f,offsetParent:b,strategy:i}):f);return{top:(p.top-N.top+v.top)/x.y,bottom:(N.bottom-p.bottom+v.bottom)/x.y,left:(p.left-N.left+v.left)/x.x,right:(N.right-p.right+v.right)/x.x}}var O1=50,wx=async(e,a,t)=>{let{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:n}=t,s=n.detectOverflow?n:{...n,detectOverflow:xx},i=await(n.isRTL==null?void 0:n.isRTL(a)),u=await n.getElementRects({reference:e,floating:a,strategy:r}),{x:d,y:m}=vx(u,o,i),c=o,g=0,v={};for(let w=0;w<l.length;w++){let D=l[w];if(!D)continue;let{name:p,fn:f}=D,{x:b,y:x,data:N,reset:R}=await f({x:d,y:m,initialPlacement:o,placement:c,strategy:r,middlewareData:v,rects:u,platform:s,elements:{reference:e,floating:a}});d=b??d,m=x??m,v[p]={...v[p],...N},R&&g<O1&&(g++,typeof R=="object"&&(R.placement&&(c=R.placement),R.rects&&(u=R.rects===!0?await n.getElementRects({reference:e,floating:a,strategy:r}):R.rects),{x:d,y:m}=vx(u,c,i)),w=-1)}return{x:d,y:m,placement:c,strategy:r,middlewareData:v}},yx=e=>({name:"arrow",options:e,async fn(a){let{x:t,y:o,placement:r,rects:l,platform:n,elements:s,middlewareData:i}=a,{element:u,padding:d=0}=yn(e,a)||{};if(u==null)return{};let m=Lm(d),c={x:t,y:o},g=sd(r),v=nd(g),w=await n.getDimensions(u),D=g==="y",p=D?"top":"left",f=D?"bottom":"right",b=D?"clientHeight":"clientWidth",x=l.reference[v]+l.reference[g]-c[g]-l.floating[v],N=c[g]-l.reference[g],R=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),z=R?R[b]:0;(!z||!await(n.isElement==null?void 0:n.isElement(R)))&&(z=s.floating[b]||l.floating[v]);let E=x/2-N/2,q=z/2-w[v]/2-1,U=zr(m[p],q),P=zr(m[f],q),$=U,fa=z-w[v]-P,He=z/2-w[v]/2+E,ea=ld($,He,fa),ma=!i.arrow&&Ln(r)!=null&&He!==ea&&l.reference[v]/2-(He<$?U:P)-w[v]/2<0,Pe=ma?He<$?He-$:He-fa:0;return{[g]:c[g]+Pe,data:{[g]:ea,centerOffset:He-ea-Pe,...ma&&{alignmentOffset:Pe}},reset:ma}}});var Lx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(a){var t,o;let{placement:r,middlewareData:l,rects:n,initialPlacement:s,platform:i,elements:u}=a,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:c,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...D}=yn(e,a);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let p=Br(r),f=qo(s),b=Br(s)===s,x=await(i.isRTL==null?void 0:i.isRTL(u.floating)),N=c||(b||!w?[ui(s)]:hx(s)),R=v!=="none";!c&&R&&N.push(...bx(s,w,v,x));let z=[s,...N],E=await i.detectOverflow(a,D),q=[],U=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&q.push(E[p]),m){let He=gx(r,n,x);q.push(E[He[0]],E[He[1]])}if(U=[...U,{placement:r,overflows:q}],!q.every(He=>He<=0)){var P,$;let He=(((P=l.flip)==null?void 0:P.index)||0)+1,ea=z[He];if(ea&&(!(m==="alignment"?f!==qo(ea):!1)||U.every(Fa=>qo(Fa.placement)===f?Fa.overflows[0]>0:!0)))return{data:{index:He,overflows:U},reset:{placement:ea}};let ma=($=U.filter(Pe=>Pe.overflows[0]<=0).sort((Pe,Fa)=>Pe.overflows[1]-Fa.overflows[1])[0])==null?void 0:$.placement;if(!ma)switch(g){case"bestFit":{var fa;let Pe=(fa=U.filter(Fa=>{if(R){let Ga=qo(Fa.placement);return Ga===f||Ga==="y"}return!0}).map(Fa=>[Fa.placement,Fa.overflows.filter(Ga=>Ga>0).reduce((Ga,jt)=>Ga+jt,0)]).sort((Fa,Ga)=>Fa[1]-Ga[1])[0])==null?void 0:fa[0];Pe&&(ma=Pe);break}case"initialPlacement":ma=s;break}if(r!==ma)return{reset:{placement:ma}}}return{}}}};var E1=new Set(["left","top"]);async function H1(e,a){let{placement:t,platform:o,elements:r}=e,l=await(o.isRTL==null?void 0:o.isRTL(r.floating)),n=Br(t),s=Ln(t),i=qo(t)==="y",u=E1.has(n)?-1:1,d=l&&i?-1:1,m=yn(a,e),{mainAxis:c,crossAxis:g,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v=="number"&&(g=s==="end"?v*-1:v),i?{x:g*d,y:c*u}:{x:c*u,y:g*d}}var Cx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(a){var t,o;let{x:r,y:l,placement:n,middlewareData:s}=a,i=await H1(a,e);return n===((t=s.offset)==null?void 0:t.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:l+i.y,data:{...i,placement:n}}}}},Sx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(a){let{x:t,y:o,placement:r,platform:l}=a,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:p=>{let{x:f,y:b}=p;return{x:f,y:b}}},...u}=yn(e,a),d={x:t,y:o},m=await l.detectOverflow(a,u),c=qo(Br(r)),g=ym(c),v=d[g],w=d[c];if(n){let p=g==="y"?"top":"left",f=g==="y"?"bottom":"right",b=v+m[p],x=v-m[f];v=ld(b,v,x)}if(s){let p=c==="y"?"top":"left",f=c==="y"?"bottom":"right",b=w+m[p],x=w-m[f];w=ld(b,w,x)}let D=i.fn({...a,[g]:v,[c]:w});return{...D,data:{x:D.x-t,y:D.y-o,enabled:{[g]:n,[c]:s}}}}}};function id(){return typeof window<"u"}function pl(e){return Tx(e)?(e.nodeName||"").toLowerCase():"#document"}function $a(e){var a;return(e==null||(a=e.ownerDocument)==null?void 0:a.defaultView)||window}function Qt(e){var a;return(a=(Tx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:a.documentElement}function Tx(e){return id()?e instanceof Node||e instanceof $a(e).Node:!1}function Ot(e){return id()?e instanceof Element||e instanceof $a(e).Element:!1}function io(e){return id()?e instanceof HTMLElement||e instanceof $a(e).HTMLElement:!1}function Ix(e){return!id()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $a(e).ShadowRoot}function Sn(e){let{overflow:a,overflowX:t,overflowY:o,display:r}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(a+o+t)&&r!=="inline"&&r!=="contents"}function kx(e){return/^(table|td|th)$/.test(pl(e))}function fi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var P1=/transform|translate|scale|rotate|perspective|filter/,q1=/paint|layout|strict|content/,ml=e=>!!e&&e!=="none",Cm;function ud(e){let a=Ot(e)?Et(e):e;return ml(a.transform)||ml(a.translate)||ml(a.scale)||ml(a.rotate)||ml(a.perspective)||!dd()&&(ml(a.backdropFilter)||ml(a.filter))||P1.test(a.willChange||"")||q1.test(a.contain||"")}function Mx(e){let a=Uo(e);for(;io(a)&&!gl(a);){if(ud(a))return a;if(fi(a))return null;a=Uo(a)}return null}function dd(){return Cm==null&&(Cm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cm}function gl(e){return/^(html|body|#document)$/.test(pl(e))}function Et(e){return $a(e).getComputedStyle(e)}function mi(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uo(e){if(pl(e)==="html")return e;let a=e.assignedSlot||e.parentNode||Ix(e)&&e.host||Qt(e);return Ix(a)?a.host:a}function Ax(e){let a=Uo(e);return gl(a)?e.ownerDocument?e.ownerDocument.body:e.body:io(a)&&Sn(a)?a:Ax(a)}function Cn(e,a,t){var o;a===void 0&&(a=[]),t===void 0&&(t=!0);let r=Ax(e),l=r===((o=e.ownerDocument)==null?void 0:o.body),n=$a(r);if(l){let s=cd(n);return a.concat(n,n.visualViewport||[],Sn(r)?r:[],s&&t?Cn(s):[])}else return a.concat(r,Cn(r,[],t))}function cd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bx(e){let a=Et(e),t=parseFloat(a.width)||0,o=parseFloat(a.height)||0,r=io(e),l=r?e.offsetWidth:t,n=r?e.offsetHeight:o,s=di(t)!==l||di(o)!==n;return s&&(t=l,o=n),{width:t,height:o,$:s}}function Im(e){return Ot(e)?e:e.contextElement}function In(e){let a=Im(e);if(!io(a))return Yt(1);let t=a.getBoundingClientRect(),{width:o,height:r,$:l}=Bx(a),n=(l?di(t.width):t.width)/o,s=(l?di(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var U1=Yt(0);function Rx(e){let a=$a(e);return!dd()||!a.visualViewport?U1:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function F1(e,a,t){return a===void 0&&(a=!1),!t||a&&t!==$a(e)?!1:a}function hl(e,a,t,o){a===void 0&&(a=!1),t===void 0&&(t=!1);let r=e.getBoundingClientRect(),l=Im(e),n=Yt(1);a&&(o?Ot(o)&&(n=In(o)):n=In(e));let s=F1(l,t,o)?Rx(l):Yt(0),i=(r.left+s.x)/n.x,u=(r.top+s.y)/n.y,d=r.width/n.x,m=r.height/n.y;if(l){let c=$a(l),g=o&&Ot(o)?$a(o):o,v=c,w=cd(v);for(;w&&o&&g!==v;){let D=In(w),p=w.getBoundingClientRect(),f=Et(w),b=p.left+(w.clientLeft+parseFloat(f.paddingLeft))*D.x,x=p.top+(w.clientTop+parseFloat(f.paddingTop))*D.y;i*=D.x,u*=D.y,d*=D.x,m*=D.y,i+=b,u+=x,v=$a(w),w=cd(v)}}return fl({width:d,height:m,x:i,y:u})}function fd(e,a){let t=mi(e).scrollLeft;return a?a.left+t:hl(Qt(e)).left+t}function Ox(e,a){let t=e.getBoundingClientRect(),o=t.left+a.scrollLeft-fd(e,t),r=t.top+a.scrollTop;return{x:o,y:r}}function G1(e){let{elements:a,rect:t,offsetParent:o,strategy:r}=e,l=r==="fixed",n=Qt(o),s=a?fi(a.floating):!1;if(o===n||s&&l)return t;let i={scrollLeft:0,scrollTop:0},u=Yt(1),d=Yt(0),m=io(o);if((m||!m&&!l)&&((pl(o)!=="body"||Sn(n))&&(i=mi(o)),m)){let g=hl(o);u=In(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}let c=n&&!m&&!l?Ox(n,i):Yt(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-i.scrollLeft*u.x+d.x+c.x,y:t.y*u.y-i.scrollTop*u.y+d.y+c.y}}function _1(e){return Array.from(e.getClientRects())}function V1(e){let a=Qt(e),t=mi(e),o=e.ownerDocument.body,r=Po(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),l=Po(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight),n=-t.scrollLeft+fd(e),s=-t.scrollTop;return Et(o).direction==="rtl"&&(n+=Po(a.clientWidth,o.clientWidth)-r),{width:r,height:l,x:n,y:s}}var Dx=25;function X1(e,a){let t=$a(e),o=Qt(e),r=t.visualViewport,l=o.clientWidth,n=o.clientHeight,s=0,i=0;if(r){l=r.width,n=r.height;let d=dd();(!d||d&&a==="fixed")&&(s=r.offsetLeft,i=r.offsetTop)}let u=fd(o);if(u<=0){let d=o.ownerDocument,m=d.body,c=getComputedStyle(m),g=d.compatMode==="CSS1Compat"&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,v=Math.abs(o.clientWidth-m.clientWidth-g);v<=Dx&&(l-=v)}else u<=Dx&&(l+=u);return{width:l,height:n,x:s,y:i}}function Z1(e,a){let t=hl(e,!0,a==="fixed"),o=t.top+e.clientTop,r=t.left+e.clientLeft,l=io(e)?In(e):Yt(1),n=e.clientWidth*l.x,s=e.clientHeight*l.y,i=r*l.x,u=o*l.y;return{width:n,height:s,x:i,y:u}}function Nx(e,a,t){let o;if(a==="viewport")o=X1(e,t);else if(a==="document")o=V1(Qt(e));else if(Ot(a))o=Z1(a,t);else{let r=Rx(e);o={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return fl(o)}function Ex(e,a){let t=Uo(e);return t===a||!Ot(t)||gl(t)?!1:Et(t).position==="fixed"||Ex(t,a)}function Y1(e,a){let t=a.get(e);if(t)return t;let o=Cn(e,[],!1).filter(s=>Ot(s)&&pl(s)!=="body"),r=null,l=Et(e).position==="fixed",n=l?Uo(e):e;for(;Ot(n)&&!gl(n);){let s=Et(n),i=ud(n);!i&&s.position==="fixed"&&(r=null),(l?!i&&!r:!i&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Sn(n)&&!i&&Ex(e,n))?o=o.filter(d=>d!==n):r=s,n=Uo(n)}return a.set(e,o),o}function Q1(e){let{element:a,boundary:t,rootBoundary:o,strategy:r}=e,n=[...t==="clippingAncestors"?fi(a)?[]:Y1(a,this._c):[].concat(t),o],s=Nx(a,n[0],r),i=s.top,u=s.right,d=s.bottom,m=s.left;for(let c=1;c<n.length;c++){let g=Nx(a,n[c],r);i=Po(g.top,i),u=zr(g.right,u),d=zr(g.bottom,d),m=Po(g.left,m)}return{width:u-m,height:d-i,x:m,y:i}}function K1(e){let{width:a,height:t}=Bx(e);return{width:a,height:t}}function j1(e,a,t){let o=io(a),r=Qt(a),l=t==="fixed",n=hl(e,!0,l,a),s={scrollLeft:0,scrollTop:0},i=Yt(0);function u(){i.x=fd(r)}if(o||!o&&!l)if((pl(a)!=="body"||Sn(r))&&(s=mi(a)),o){let g=hl(a,!0,l,a);i.x=g.x+a.clientLeft,i.y=g.y+a.clientTop}else r&&u();l&&!o&&r&&u();let d=r&&!o&&!l?Ox(r,s):Yt(0),m=n.left+s.scrollLeft-i.x-d.x,c=n.top+s.scrollTop-i.y-d.y;return{x:m,y:c,width:n.width,height:n.height}}function Sm(e){return Et(e).position==="static"}function zx(e,a){if(!io(e)||Et(e).position==="fixed")return null;if(a)return a(e);let t=e.offsetParent;return Qt(e)===t&&(t=t.ownerDocument.body),t}function Hx(e,a){let t=$a(e);if(fi(e))return t;if(!io(e)){let r=Uo(e);for(;r&&!gl(r);){if(Ot(r)&&!Sm(r))return r;r=Uo(r)}return t}let o=zx(e,a);for(;o&&kx(o)&&Sm(o);)o=zx(o,a);return o&&gl(o)&&Sm(o)&&!ud(o)?t:o||Mx(e)||t}var W1=async function(e){let a=this.getOffsetParent||Hx,t=this.getDimensions,o=await t(e.floating);return{reference:j1(e.reference,await a(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function J1(e){return Et(e).direction==="rtl"}var $1={convertOffsetParentRelativeRectToViewportRelativeRect:G1,getDocumentElement:Qt,getClippingRect:Q1,getOffsetParent:Hx,getElementRects:W1,getClientRects:_1,getDimensions:K1,getScale:In,isElement:Ot,isRTL:J1};function Px(e,a){return e.x===a.x&&e.y===a.y&&e.width===a.width&&e.height===a.height}function eS(e,a){let t=null,o,r=Qt(e);function l(){var s;clearTimeout(o),(s=t)==null||s.disconnect(),t=null}function n(s,i){s===void 0&&(s=!1),i===void 0&&(i=1),l();let u=e.getBoundingClientRect(),{left:d,top:m,width:c,height:g}=u;if(s||a(),!c||!g)return;let v=ci(m),w=ci(r.clientWidth-(d+c)),D=ci(r.clientHeight-(m+g)),p=ci(d),b={rootMargin:-v+"px "+-w+"px "+-D+"px "+-p+"px",threshold:Po(0,zr(1,i))||1},x=!0;function N(R){let z=R[0].intersectionRatio;if(z!==i){if(!x)return n();z?n(!1,z):o=setTimeout(()=>{n(!1,1e-7)},1e3)}z===1&&!Px(u,e.getBoundingClientRect())&&n(),x=!1}try{t=new IntersectionObserver(N,{...b,root:r.ownerDocument})}catch{t=new IntersectionObserver(N,b)}t.observe(e)}return n(!0),l}function md(e,a,t,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=Im(e),d=r||l?[...u?Cn(u):[],...a?Cn(a):[]]:[];d.forEach(p=>{r&&p.addEventListener("scroll",t,{passive:!0}),l&&p.addEventListener("resize",t)});let m=u&&s?eS(u,t):null,c=-1,g=null;n&&(g=new ResizeObserver(p=>{let[f]=p;f&&f.target===u&&g&&a&&(g.unobserve(a),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(a)})),t()}),u&&!i&&g.observe(u),a&&g.observe(a));let v,w=i?hl(e):null;i&&D();function D(){let p=hl(e);w&&!Px(w,p)&&t(),w=p,v=requestAnimationFrame(D)}return t(),()=>{var p;d.forEach(f=>{r&&f.removeEventListener("scroll",t),l&&f.removeEventListener("resize",t)}),m?.(),(p=g)==null||p.disconnect(),g=null,i&&cancelAnimationFrame(v)}}var pd=Cx;var gd=Sx,hd=Lx;var qx=yx;var bd=(e,a,t)=>{let o=new Map,r={platform:$1,...t},l={...r.platform,_c:o};return wx(e,a,{...r,platform:l})};var Ae=y(ve(),1),_x=y(Ci(),1);var Tm={};var uo=y(T(),1),pi=6,Ux=8,Fx=4;function tS(e){return e.split("-")[0]}var Gx={top:"",bottom:"rotate(180deg)",left:"rotate(-90deg)",right:"rotate(90deg)"};function na({content:e,placement:a="top",density:t="default",showDelay:o=300,hideDelay:r=150,arrow:l=!0,renderArrow:n,className:s,children:i,classNames:u}){let[d,m]=(0,Ae.useState)(!1),[c,g]=(0,Ae.useState)(null),[v,w]=(0,Ae.useState)(a),[D,p]=(0,Ae.useState)({}),f=(0,Ae.useRef)(null),b=(0,Ae.useRef)(null),x=(0,Ae.useRef)(null),N=(0,Ae.useRef)(void 0),R=(0,Ae.useRef)(void 0),z=(0,Ae.useId)(),E=(0,Ae.useCallback)(()=>{clearTimeout(N.current),clearTimeout(R.current)},[]),q=(0,Ae.useCallback)(()=>{E(),N.current=setTimeout(()=>m(!0),o)},[E,o]),U=(0,Ae.useCallback)(()=>{E(),m(!0)},[E]),P=(0,Ae.useCallback)(()=>{E(),R.current=setTimeout(()=>m(!1),r)},[E,r]),$=(0,Ae.useCallback)(Pe=>{if(Pe.target===f.current){q();return}U()},[q,U]),fa=(0,Ae.useCallback)(Pe=>{Pe.pointerType!=="mouse"&&U()},[U]),He=(0,Ae.useCallback)(Pe=>{Pe.key==="Escape"&&d&&m(!1)},[d]);(0,Ae.useLayoutEffect)(()=>{if(!d||!f.current||!b.current)return;let Pe=[pd(l?Ux+pi:Ux),hd({padding:Fx}),gd({padding:Fx})];return l&&x.current&&Pe.push(qx({element:x.current})),md(f.current,b.current,()=>{!f.current||!b.current||bd(f.current,b.current,{placement:a,strategy:"fixed",middleware:Pe}).then(({x:Ga,y:jt,placement:bi,middlewareData:za})=>{g({top:jt,left:Ga}),w(tS(bi)),za.arrow&&p({x:za.arrow.x,y:za.arrow.y})})})},[d,a,l]),(0,Ae.useEffect)(()=>{if(d)return document.addEventListener("keydown",He),()=>document.removeEventListener("keydown",He)},[d,He]),(0,Ae.useEffect)(()=>E,[E]);let ea={position:"absolute"},ma=v;return ma==="top"||ma==="bottom"?(ea.left=D.x??0,ea[ma==="top"?"bottom":"top"]=-pi,ea.transform=Gx[ma]||void 0):(ea.top=D.y??0,ea[ma==="left"?"right":"left"]=-pi,ea.transform=Gx[ma]),(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)("span",{ref:f,"data-state":d?"open":"closed","data-scope":"tooltip","data-part":"trigger",className:I("owo-tooltip-trigger",Tm.trigger,u?.trigger),onMouseEnter:q,onMouseLeave:P,onFocus:$,onBlur:P,onPointerDown:fa,"aria-describedby":d?z:void 0,children:i}),d&&(0,_x.createPortal)((0,uo.jsxs)("div",{ref:b,id:z,role:"tooltip","data-state":d?"open":"closed","data-placement":v,"data-density":t,"data-scope":"tooltip","data-part":"content",className:I("owo-tooltip",Tm.content,u?.content,s),style:c?{top:c.top,left:c.left}:{visibility:"hidden"},onMouseEnter:q,onMouseLeave:P,children:[e,l&&(0,uo.jsx)("span",{ref:x,"data-scope":"tooltip","data-part":"arrow",className:I(u?.arrow),style:ea,children:n?n({placement:v}):(0,uo.jsx)("svg",{width:pi*2,height:pi,viewBox:"0 0 12 6",children:(0,uo.jsx)("path",{d:"M0 0l6 6 6-6z",fill:"currentColor"})})})]}),document.body)]})}var he=y(T(),1);Y({group:"feedback",componentId:"tooltip",componentName:"Tooltip",description:"Hover/focus-triggered floating label. Token-driven: --tooltip-bg, --tooltip-border, --tooltip-text, --tooltip-shadow, --tooltip-arrow-color.",props:[{name:"content",type:"ReactNode",description:"Tooltip content shown on hover/focus."},{name:"placement",type:"'top' | 'bottom' | 'left' | 'right'",default:"'top'",description:"Preferred placement. Auto-flips if clipped by viewport."},{name:"density",type:"'compact' | 'default'",default:"'default'",description:"Controls padding and max-width. Compact is tighter for icon labels."},{name:"showDelay",type:"number",default:"300",description:"Delay in ms before showing."},{name:"hideDelay",type:"number",default:"150",description:"Delay in ms before hiding."},{name:"arrow",type:"boolean",default:"true",description:"Whether to show the directional arrow."},{name:"children",type:"ReactElement",description:"Trigger element."}],stories:[{id:"placements",title:"Placements",description:"top / bottom / left / right \u2014 hover each button.",render:()=>(0,he.jsxs)("div",{className:k.placementColumn,children:[(0,he.jsx)(na,{content:"Placed on top",placement:"top",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Top"})}),(0,he.jsxs)("div",{className:k.placementRow,children:[(0,he.jsx)(na,{content:"Placed on left",placement:"left",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Left"})}),(0,he.jsx)("div",{className:k.placementSpacer}),(0,he.jsx)(na,{content:"Placed on right",placement:"right",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Right"})})]}),(0,he.jsx)(na,{content:"Placed on bottom",placement:"bottom",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Bottom"})})]})},{id:"density",title:"Density",description:"compact vs default \u2014 compact is tighter for icon labels.",render:()=>(0,he.jsxs)("div",{className:k.centerRowLarge,children:[(0,he.jsx)(na,{content:"Compact tooltip",density:"compact",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Compact"})}),(0,he.jsx)(na,{content:"Default density tooltip with more room for content",density:"default",children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Default"})})]})},{id:"rich-content",title:"Rich Content",description:"Tooltip supports ReactNode content.",render:()=>(0,he.jsx)("div",{className:k.centerRowLarge,children:(0,he.jsx)(na,{content:(0,he.jsxs)("div",{children:[(0,he.jsx)("p",{className:k.richTooltipTitle,children:"Keyboard shortcut"}),(0,he.jsx)("p",{className:k.richTooltipBody,children:"Press Ctrl+S to save your work."})]}),children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Hover for shortcut"})})})},{id:"on-icon-button",title:"On IconButton",description:"Common pattern: tooltip on icon-only buttons.",render:()=>(0,he.jsx)("div",{className:k.centerRowLarge,children:(0,he.jsx)(na,{content:"Settings",density:"compact",children:(0,he.jsx)(le,{label:"Settings",icon:(0,he.jsx)(Aa,{size:16})})})})},{id:"no-arrow",title:"Without Arrow",render:()=>(0,he.jsx)("div",{className:k.centerRowLarge,children:(0,he.jsx)(na,{content:"No arrow variant",arrow:!1,children:(0,he.jsx)(B,{variant:"secondary",size:"sm",children:"Hover me"})})})}]});var Kx=y(ve(),1);var H=y(ve(),1),Vx=y(Ci(),1);var pt={};var Ca=y(T(),1),Xx=(0,H.createContext)(null),km=(0,H.createContext)(null);function bl(e){let a=(0,H.useContext)(Xx);if(!a)throw new Error(`${e} must be used within DropdownMenu.`);return a}function Zx(e){let a=(0,H.useContext)(km);if(!a)throw new Error(`${e} must be used within DropdownMenu.Content.`);return a}function Tn(e,a){return t=>{e?.(t),a(t)}}function Yx(...e){return a=>{for(let t of e)t&&(typeof t=="function"?t(a):t.current=a)}}function vd(e){return typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(vd).join(" "):!e||typeof e=="boolean"?"":(0,H.isValidElement)(e)?vd(e.props.children):""}function rS(e){return[...e].sort((a,t)=>{let o=a.ref.current,r=t.ref.current;if(!o||!r)return 0;let l=o.compareDocumentPosition(r);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lS(e,a){return a==="center"?e:`${e}-${a}`}function nS(e){let a=e.split("-");return{side:a[0],align:a[1]??"center"}}function Qx({open:e,defaultOpen:a=!1,onOpenChange:t,side:o="bottom",align:r="start",sideOffset:l=8,alignOffset:n=0,collisionPadding:s=8,portal:i=!0,contentRole:u="menu",classNames:d,children:m}){let c=(0,H.useContext)(km),[g,v]=(0,H.useState)(a),w=e!==void 0,D=w?e:g,p=(0,H.useRef)(null),f=(0,H.useRef)(null),b=(0,H.useRef)("selected"),x=(0,H.useId)(),N=(0,H.useId)(),R=(0,H.useCallback)($=>{w||v($),t?.($)},[w,t]),z=(0,H.useCallback)(()=>{R(!1)},[R]),E=(0,H.useCallback)(()=>{R(!1),c?.closeTree()},[c,R]),q=(0,H.useCallback)(()=>{R(!D)},[D,R]),U=(0,H.useCallback)(()=>{p.current?.focus()},[]),P=(0,H.useMemo)(()=>({open:D,setOpen:R,toggleOpen:q,triggerRef:p,contentRef:f,side:o,align:r,sideOffset:l,alignOffset:n,collisionPadding:s,portal:i,contentRole:u,triggerId:x,contentId:N,focusIntentRef:b,parentList:c,isSubmenu:!!c,closeSelf:z,closeTree:E,focusTrigger:U,classNames:d}),[D,r,n,d,z,E,s,u,c,i,R,o,l,q,x,N,U]);return(0,Ca.jsx)(Xx.Provider,{value:P,children:m})}function sS({asChild:e=!1,disabled:a=!1,className:t,children:o}){let{open:r,setOpen:l,toggleOpen:n,triggerRef:s,contentRole:i,triggerId:u,contentId:d,focusIntentRef:m,isSubmenu:c,classNames:g}=bl("DropdownMenu.Trigger"),v=H.Children.only(o),w=v.props??{},D=typeof w.className=="string"?w.className:void 0,p={id:u,"data-state":r?"open":"closed","aria-expanded":r,"aria-haspopup":i,"aria-controls":r?d:void 0,onClick:Tn(w.onClick,f=>{if(a){f.preventDefault();return}m.current="selected",n()}),onKeyDown:Tn(w.onKeyDown,f=>{a||(f.key==="ArrowDown"?(f.preventDefault(),m.current="first",l(!0)):f.key==="ArrowUp"?(f.preventDefault(),m.current="last",l(!0)):!c&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),m.current="selected",n()))})};return e?(0,H.cloneElement)(v,{...p,ref:Yx(s,w.ref),className:I(pt.trigger,g?.trigger,t,D),type:v.type==="button"?w.type??"button":w.type}):(0,Ca.jsx)("button",{ref:s,disabled:a,type:"button","data-scope":"dropdown-menu","data-part":"trigger",className:I(pt.trigger,g?.trigger,t),...p,children:v})}function iS({className:e,children:a,style:t,matchTriggerWidth:o=!1,maxHeight:r=320,...l}){let{open:n,setOpen:s,triggerRef:i,contentRef:u,side:d,align:m,sideOffset:c,alignOffset:g,collisionPadding:v,portal:w,contentRole:D,triggerId:p,contentId:f,focusIntentRef:b,parentList:x,isSubmenu:N,closeSelf:R,closeTree:z,focusTrigger:E,classNames:q}=bl("DropdownMenu.Content"),U=(0,H.useRef)([]),[P,$]=(0,H.useState)(null),[fa,He]=(0,H.useState)(null),[ea,ma]=(0,H.useState)(null),[Pe,Fa]=(0,H.useState)(!1),Ga=(0,H.useRef)(""),jt=(0,H.useRef)(null),bi=(0,H.useCallback)(oe=>(U.current=[...U.current.filter(Ve=>Ve.id!==oe.id),oe],()=>{U.current=U.current.filter(Ve=>Ve.id!==oe.id)}),[]),za=(0,H.useCallback)(()=>rS(U.current),[]),Gm=(0,H.useCallback)(oe=>{b.current=oe},[b]);(0,H.useEffect)(()=>{Fa(!0)},[]);let cw=(0,H.useMemo)(()=>({role:D,highlightedId:P,setHighlightedId:$,registerItem:bi,getItems:za,requestFocusIntent:Gm,closeTree:z,closeSelf:R,focusTrigger:E,activeSubmenuId:fa,setActiveSubmenuId:He,contentRef:u}),[fa,R,z,u,D,E,za,P,bi,Gm]);(0,H.useLayoutEffect)(()=>!n||!Pe||!i.current||!u.current?void 0:md(i.current,u.current,()=>{!i.current||!u.current||bd(i.current,u.current,{placement:lS(d,m),strategy:"fixed",middleware:[pd({mainAxis:c,crossAxis:g}),hd({padding:v}),gd({padding:v})]}).then(({x:Ve,y:ce,placement:pa})=>{let bt=nS(pa);ma({top:ce,left:Ve,side:bt.side,align:bt.align})})}),[m,g,v,u,Pe,n,d,c,i]),(0,H.useEffect)(()=>{if(!n){$(null),He(null);return}let oe=za().filter(ce=>!ce.disabled);if(oe.length===0)return;let Ve=oe[0];b.current==="last"?Ve=oe[oe.length-1]:b.current==="selected"&&(Ve=oe.find(ce=>ce.selected)??oe[0]),$(Ve.id),requestAnimationFrame(()=>{u.current?.focus(),Ve.ref.current?.scrollIntoView({block:"nearest"})})},[u,b,za,n]),(0,H.useEffect)(()=>{if(!n)return;function oe(Ve){let ce=Ve.target,pa=i.current?.contains(ce),bt=u.current?.contains(ce);if(!pa&&!bt){let Wt=x?.contentRef.current?.contains(ce);if(N&&Wt){R(),x?.setActiveSubmenuId(null);return}z()}}return document.addEventListener("mousedown",oe),()=>document.removeEventListener("mousedown",oe)},[R,z,u,N,n,x,i]),(0,H.useEffect)(()=>{if(n)return()=>{jt.current&&clearTimeout(jt.current)}},[n]);let Go=(0,H.useCallback)(oe=>{if($(oe),!oe){He(null);return}za().find(ce=>ce.id===oe)?.submenu||He(null)},[za]),yd=(0,H.useCallback)((oe,Ve="first")=>{let ce=za().filter(po=>!po.disabled);if(ce.length===0)return;let pa=ce.findIndex(po=>po.id===P);if(pa===-1){Go(Ve==="last"?ce[ce.length-1].id:ce[0].id);return}let bt=(pa+oe+ce.length)%ce.length,Wt=ce[bt];Go(Wt.id),Wt.ref.current?.scrollIntoView({block:"nearest"})},[za,P,Go]),_m=(0,H.useCallback)(oe=>{let Ve=oe.length===1?oe.toLowerCase():"";if(!Ve)return;jt.current&&clearTimeout(jt.current),Ga.current+=Ve,jt.current=setTimeout(()=>{Ga.current="",jt.current=null},350);let ce=za().filter(po=>!po.disabled);if(ce.length===0)return;let pa=ce.findIndex(po=>po.id===P),Wt=(pa>=0?[...ce.slice(pa+1),...ce.slice(0,pa+1)]:ce).find(po=>po.textValue.toLowerCase().startsWith(Ga.current));Wt&&(Go(Wt.id),Wt.ref.current?.scrollIntoView({block:"nearest"}))},[za,P,Go]),fw=(0,H.useCallback)(oe=>{let Ve=za(),ce=Ve.find(pa=>pa.id===P)??null;switch(oe.key){case"ArrowDown":oe.preventDefault(),yd(1);break;case"ArrowUp":oe.preventDefault(),yd(-1,"last");break;case"Home":oe.preventDefault();{let pa=Ve.find(bt=>!bt.disabled);pa&&Go(pa.id)}break;case"End":oe.preventDefault();{let pa=Ve.filter(Wt=>!Wt.disabled),bt=pa[pa.length-1];bt&&Go(bt.id)}break;case"Enter":case" ":ce&&!ce.disabled&&(oe.preventDefault(),ce.click());break;case"ArrowRight":ce?.submenu&&(oe.preventDefault(),ce.openSubmenu?.());break;case"ArrowLeft":N&&(oe.preventDefault(),R(),E(),x?.setActiveSubmenuId(null));break;case"Tab":z();break;case"Escape":oe.preventDefault(),R(),E(),N&&x?.setActiveSubmenuId(null);break;default:_m(oe.key)}},[R,z,E,za,_m,P,Go,N,yd,x]);if(!n||!Pe)return null;let Vm=(0,Ca.jsx)(km.Provider,{value:cw,children:(0,Ca.jsx)("div",{ref:u,id:f,role:D,tabIndex:-1,"aria-labelledby":D==="menu"?p:void 0,"data-state":"open","data-side":ea?.side??d,"data-align":ea?.align??m,"data-scope":"dropdown-menu","data-part":"content",className:I(pt.content,q?.content,e),style:{...t,position:"fixed",top:ea?.top??0,left:ea?.left??0,maxHeight:r,minWidth:o?i.current?.getBoundingClientRect().width:void 0},onKeyDown:fw,...l,children:a})});return w?(0,Vx.createPortal)(Vm,document.body):Vm}function uS({className:e,children:a,...t}){let{classNames:o}=bl("DropdownMenu.Group");return(0,Ca.jsx)("div",{"data-scope":"dropdown-menu","data-part":"group",className:I(o?.group,e),...t,children:a})}function dS({className:e,children:a,...t}){let{classNames:o}=bl("DropdownMenu.Label");return(0,Ca.jsx)("div",{"data-scope":"dropdown-menu","data-part":"label",className:I(o?.label,e),...t,children:a})}function cS({className:e,...a}){let{classNames:t}=bl("DropdownMenu.Separator");return(0,Ca.jsx)("div",{role:"separator","data-scope":"dropdown-menu","data-part":"separator",className:I(t?.separator,e),...a})}function fS({className:e,children:a,inset:t=!1,disabled:o=!1,selected:r=!1,destructive:l=!1,closeOnSelect:n=!0,shortcut:s,indicator:i,onSelect:u,onMouseEnter:d,onClick:m,...c}){let g=(0,H.useId)(),v=(0,H.useRef)(null),{role:w,highlightedId:D,setHighlightedId:p,registerItem:f,closeTree:b,setActiveSubmenuId:x}=Zx("DropdownMenu.Item"),{classNames:N}=bl("DropdownMenu.Item"),R=(0,H.useMemo)(()=>vd(a),[a]),z=D===g,E=(0,H.useCallback)(()=>{o||(u?.(),n&&b())},[n,b,o,u]);return(0,H.useEffect)(()=>f({id:g,ref:v,disabled:o,submenu:!1,selected:r,textValue:R,closeOnSelect:n,click:E}),[n,o,E,g,f,r,R]),(0,Ca.jsxs)("button",{ref:v,id:g,type:"button",role:w==="listbox"?"option":"menuitem",tabIndex:-1,disabled:o,"aria-selected":w==="listbox"?r:void 0,"data-highlighted":z||void 0,"data-selected":r||void 0,"data-disabled":o||void 0,"data-destructive":l||void 0,"data-scope":"dropdown-menu","data-part":"item",className:I(t&&pt.itemInset,N?.item,e),onMouseEnter:Tn(d,()=>{o||(p(g),x(null))}),onClick:Tn(m,q=>{q.preventDefault(),E()}),...c,children:[(0,Ca.jsx)("span",{className:pt.itemMain,children:a}),s?(0,Ca.jsx)("span",{className:pt.shortcut,children:s}):null,r?(0,Ca.jsx)("span",{className:pt.indicator,children:i??"\u2713"}):null]})}function mS(e){return(0,Ca.jsx)(Qx,{side:"right",align:"start",sideOffset:6,...e,contentRole:"menu"})}function pS({className:e,children:a,inset:t=!1,disabled:o=!1,destructive:r=!1,shortcut:l,onSelect:n,onMouseEnter:s,onClick:i,...u}){let d=(0,H.useId)(),m=(0,H.useRef)(null),c=bl("DropdownMenu.SubTrigger"),{highlightedId:g,setHighlightedId:v,registerItem:w,setActiveSubmenuId:D,activeSubmenuId:p}=Zx("DropdownMenu.SubTrigger"),f=(0,H.useMemo)(()=>vd(a),[a]),b=g===d,x=c.open&&p===d,N=(0,H.useCallback)(()=>{o||(c.focusIntentRef.current="first",v(d),D(d),c.setOpen(!0))},[o,d,D,v,c]);return(0,H.useEffect)(()=>w({id:d,ref:m,disabled:o,submenu:!0,selected:!1,textValue:f,closeOnSelect:!1,click:N,openSubmenu:N}),[o,d,N,w,f]),(0,H.useEffect)(()=>{p!==d&&c.open&&c.setOpen(!1)},[p,d,c]),(0,Ca.jsxs)("button",{ref:Yx(m,c.triggerRef),id:c.triggerId,type:"button",role:"menuitem",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-highlighted":b||void 0,"data-state":x?"open":"closed","data-disabled":o||void 0,"data-destructive":r||void 0,className:I(pt.subTrigger,t&&pt.itemInset,e),onMouseEnter:Tn(s,()=>{N()}),onClick:Tn(i,R=>{R.preventDefault(),N(),n?.()}),...u,children:[(0,Ca.jsx)("span",{className:pt.itemMain,children:a}),l?(0,Ca.jsx)("span",{className:pt.shortcut,children:l}):null,(0,Ca.jsx)("span",{className:pt.submenuIndicator,"aria-hidden":"true",children:"\u203A"})]})}var gS=Object.assign(Qx,{Trigger:sS,Content:iS,Group:uS,Label:dS,Item:fS,Separator:cS,Submenu:mS,SubTrigger:pS}),ee=gS;var ie=y(T(),1);function hS(){return(0,ie.jsx)("div",{className:va.menuStage,children:(0,ie.jsxs)(ee,{align:"start",children:[(0,ie.jsx)(ee.Trigger,{asChild:!0,children:(0,ie.jsx)("button",{className:va.triggerButton,children:"Workspace"})}),(0,ie.jsxs)(ee.Content,{children:[(0,ie.jsxs)(ee.Group,{children:[(0,ie.jsx)(ee.Item,{children:"Open settings"}),(0,ie.jsx)(ee.Item,{children:"Duplicate workspace"})]}),(0,ie.jsx)(ee.Separator,{}),(0,ie.jsxs)(ee.Submenu,{children:[(0,ie.jsx)(ee.SubTrigger,{children:"Theme"}),(0,ie.jsxs)(ee.Content,{children:[(0,ie.jsx)(ee.Item,{children:"Light"}),(0,ie.jsx)(ee.Item,{selected:!0,children:"Elevated"}),(0,ie.jsx)(ee.Item,{children:"Glass"})]})]}),(0,ie.jsx)(ee.Separator,{}),(0,ie.jsx)(ee.Item,{destructive:!0,children:"Delete workspace"})]})]})})}function bS(){let[e,a]=(0,Kx.useState)("gpt-4.1-mini");return(0,ie.jsx)("div",{className:va.pickerStage,children:(0,ie.jsxs)(ee,{contentRole:"listbox",side:"top",align:"end",children:[(0,ie.jsx)(ee.Trigger,{asChild:!0,children:(0,ie.jsxs)("button",{className:va.pickerTrigger,children:[(0,ie.jsx)("span",{children:e}),(0,ie.jsx)("span",{className:va.pickerCaret,"aria-hidden":"true",children:(0,ie.jsx)(ua,{size:14,strokeWidth:1.75})})]})}),(0,ie.jsxs)(ee.Content,{className:va.pickerMenu,children:[(0,ie.jsxs)(ee.Group,{children:[(0,ie.jsx)(ee.Label,{children:"OpenAI"}),["gpt-4.1-mini","gpt-4.1","o4-mini"].map(t=>(0,ie.jsx)(ee.Item,{selected:t===e,onSelect:()=>a(t),children:t},t))]}),(0,ie.jsxs)(ee.Group,{children:[(0,ie.jsx)(ee.Label,{children:"Custom"}),["claude-sonnet-4","gemini-2.5-pro"].map(t=>(0,ie.jsx)(ee.Item,{selected:t===e,onSelect:()=>a(t),children:t},t))]})]})]})})}Y({group:"actions",componentId:"dropdown-menu",componentName:"DropdownMenu",description:"Industrial dropdown primitive for action menus, grouped pickers, and nested submenus.",props:[{name:"open",type:"boolean",description:"Controlled open state."},{name:"defaultOpen",type:"boolean",description:"Initial open state for uncontrolled usage."},{name:"onOpenChange",type:"(open: boolean) => void",description:"Open-state change callback."},{name:"side",type:"'top' | 'bottom' | 'left' | 'right'",default:"'bottom'",description:"Preferred content side."},{name:"align",type:"'start' | 'center' | 'end'",default:"'start'",description:"Alignment relative to trigger."},{name:"contentRole",type:"'menu' | 'listbox'",default:"'menu'",description:"Semantic role for action menus vs pickers."}],stories:[{id:"actions",title:"Action Menu",description:"Standard action menu with submenu and destructive item.",render:()=>(0,ie.jsx)(hS,{})},{id:"picker",title:"Grouped Picker",description:"Model-picker style listbox with selected state.",render:()=>(0,ie.jsx)(bS,{})}]});var jx=y(ve(),1);var Mm={};var vl=y(T(),1);function Am({as:e="aside",open:a,children:t,side:o="right",position:r="fixed",showBackdrop:l=!0,onClose:n,closeLabel:s="\u5173\u95ED\u62BD\u5C49",backdropClassName:i,className:u,classNames:d,...m}){return(0,vl.jsxs)(vl.Fragment,{children:[l&&a&&n&&(0,vl.jsx)("button",{type:"button","aria-label":s,"data-state":"open","data-scope":"drawer","data-part":"backdrop","data-position":r,className:I("owo-drawer-backdrop",Mm.backdrop,i,d?.backdrop),onClick:n}),(0,vl.jsx)(e,{"aria-hidden":!a,"data-state":a?"open":"closed","data-side":o,"data-position":r,"data-scope":"drawer","data-part":"panel",className:I("owo-drawer",Mm.panel,u,d?.panel),...m,children:t})]})}var X={};var be=y(T(),1);function Dm({side:e="right",showBackdrop:a=!0}){let[t,o]=(0,jx.useState)(!1);return(0,be.jsxs)("div",{className:X.drawerFrame,children:[(0,be.jsx)("div",{className:X.drawerCenter,children:(0,be.jsx)(B,{variant:"primary",size:"sm",onClick:()=>o(!0),children:"Open Drawer"})}),(0,be.jsx)(Am,{open:t,onClose:()=>o(!1),side:e,position:"absolute",showBackdrop:a,"aria-label":"Post settings",className:X.drawerPanel,children:(0,be.jsxs)("div",{className:X.drawerColumn,children:[(0,be.jsxs)("div",{className:X.drawerHeader,children:[(0,be.jsx)("span",{className:X.drawerHeaderTitle,children:"Post Settings"}),(0,be.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:"Close"})]}),(0,be.jsx)("div",{className:X.drawerBody,children:(0,be.jsxs)("div",{className:X.drawerBodyStack,children:[(0,be.jsx)("p",{className:X.drawerBodyText,children:"Drawer now uses --drawer-surface, --drawer-border, and --drawer-shadow tokens from CSS."}),(0,be.jsx)("div",{className:X.drawerInnerCard,children:"Forms, filters, or settings can go here."})]})}),(0,be.jsxs)("div",{className:X.drawerFooter,children:[(0,be.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:"Cancel"}),(0,be.jsx)(B,{variant:"primary",size:"sm",onClick:()=>o(!1),children:"Save"})]})]})})]})}Y({group:"layout",componentId:"drawer",componentName:"Drawer",description:"Sliding overlay container for left/right drawers with optional backdrop. Token-driven: --drawer-surface, --drawer-border, --drawer-shadow, --drawer-backdrop.",props:[{name:"open",type:"boolean",default:"false",description:"Controls whether the drawer is visible."},{name:"side",type:"'left' | 'right'",default:"'right'",description:"Slide-in edge."},{name:"position",type:"'fixed' | 'absolute'",default:"'fixed'",description:"Positioning mode for app shell or local preview containers."},{name:"showBackdrop",type:"boolean",default:"true",description:"Whether to render a clickable backdrop when open."},{name:"onClose",type:"() => void",description:"Called when the backdrop is clicked."}],stories:[{id:"right",title:"Right Drawer",description:"Standard right-side drawer with backdrop.",source:`<Drawer
82
155
  open={open}
83
156
  onClose={() => setOpen(false)}
84
157
  side="right"
85
158
  position="absolute"
86
159
  aria-label="Post settings"
87
- className="h-full w-80 border-l"
160
+ className={styles.drawerPanel}
88
161
  >
89
- <div className="flex h-full flex-col">
90
- <div className="border-b px-4 py-3">Header</div>
91
- <div className="flex-1 overflow-y-auto p-4">Body</div>
92
- <div className="border-t px-4 py-3">Footer</div>
162
+ <div className={styles.drawerColumn}>
163
+ <div className={styles.drawerHeader}>Header</div>
164
+ <div className={styles.drawerBody}>Body</div>
165
+ <div className={styles.drawerFooter}>Footer</div>
93
166
  </div>
94
- </Drawer>`,render:()=>(0,we.jsx)(tp,{side:"right"})},{id:"left",title:"Left Drawer",description:"Left-side variant for navigation or contextual tools.",render:()=>(0,we.jsx)(tp,{side:"left"})},{id:"without-backdrop",title:"Without Backdrop",description:"Useful inside bounded shells where overlay dimming is not desired.",render:()=>(0,we.jsx)(tp,{side:"right",showBackdrop:!1})},{id:"floating-hierarchy",title:"Floating Hierarchy",description:"Drawers belong to the floating layer: backdrop separates context, surface defines body, shadow lifts the panel above the page.",render:()=>(0,we.jsx)("div",{className:"rounded-xl bg-[var(--owo-ref-color-surface-subtle)] p-5",children:(0,we.jsxs)("div",{className:"relative h-[20rem] overflow-hidden rounded-xl border border-[var(--owo-ref-color-surface-border)] bg-[var(--owo-ref-color-surface-canvas)]",children:[(0,we.jsx)("div",{className:"absolute inset-0 bg-[var(--owo-cmp-overlay-bg)]"}),(0,we.jsxs)("div",{className:"owo-drawer absolute inset-y-0 right-0 flex w-80 max-w-full flex-col border-l",children:[(0,we.jsx)("div",{className:"border-b border-[var(--drawer-border)] px-4 py-3 text-sm font-semibold text-[var(--owo-ref-color-neutral-800)]",children:"Drawer Surface"}),(0,we.jsxs)("div",{className:"flex-1 space-y-3 p-4 text-sm text-[var(--owo-ref-color-neutral-600)]",children:[(0,we.jsx)("p",{children:"Backdrop handles separation from the page."}),(0,we.jsx)("p",{children:"Surface defines the drawer body."}),(0,we.jsx)("p",{children:"Shadow confirms it is a floating layer, not a static card."})]})]})]})})}]});var jn=y(C(),1);function gS(e){switch(e){case"none":return"";case"sm":return"p-4";case"lg":return"p-6";default:return"p-5"}}function Ne({as:e="section",variant:a="default",padding:t="none",className:o,children:r,...s}){return(0,jn.jsx)(e,{"data-variant":a,className:D("owo-panel rounded-[var(--owo-cmp-control-radius-lg)] border",gS(t),o),...s,children:r})}function hv({className:e,children:a,...t}){return(0,jn.jsx)("div",{className:D("owo-panel-header border-b px-6 py-5",e),...t,children:a})}function bt({className:e,children:a,...t}){return(0,jn.jsx)("div",{className:D("px-6 py-5",e),...t,children:a})}function wv({className:e,children:a,...t}){return(0,jn.jsx)("div",{className:D("owo-panel-footer border-t px-6 py-4",e),...t,children:a})}var G=y(C(),1);q({group:"layout",componentId:"panel",componentName:"Panel",description:"Container card driven by surface hierarchy and structured sections (header/body/footer), not by blanket shadow elevation.",props:[{name:"as",type:"ElementType",default:"'section'",description:"Root element tag."},{name:"variant",type:"'default' | 'subtle' | 'raised'",default:"'default'",description:"Surface hierarchy variant. `raised` includes shadow."},{name:"padding",type:"'none' | 'sm' | 'md' | 'lg'",default:"'none'",description:"Inner padding size."}],renderPlayground:e=>(0,G.jsx)(Ne,{variant:e.variant,padding:e.padding,children:(0,G.jsx)("p",{className:"text-sm",children:"Panel content"})}),stories:[{id:"variants",title:"Variants",description:"default / subtle / raised \u2014 semantic feedback should use StatusNotice instead of overloading panel surface variants.",render:()=>(0,G.jsxs)("div",{className:"grid gap-4 sm:grid-cols-3",children:[(0,G.jsxs)(Ne,{variant:"default",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Default"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"Standard container."})]}),(0,G.jsxs)(Ne,{variant:"subtle",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Subtle"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"Reduced emphasis."})]}),(0,G.jsxs)(Ne,{variant:"raised",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Raised"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"Elevated surface with shadow."})]})]})},{id:"with-sections",title:"With Sections",description:"PanelHeader + PanelBody + PanelFooter",source:`<Panel variant="default">
167
+ </Drawer>`,render:()=>(0,be.jsx)(Dm,{side:"right"})},{id:"left",title:"Left Drawer",description:"Left-side variant for navigation or contextual tools.",render:()=>(0,be.jsx)(Dm,{side:"left"})},{id:"without-backdrop",title:"Without Backdrop",description:"Useful inside bounded shells where overlay dimming is not desired.",render:()=>(0,be.jsx)(Dm,{side:"right",showBackdrop:!1})},{id:"floating-hierarchy",title:"Floating Hierarchy",description:"Drawers belong to the floating layer: backdrop separates context, surface defines body, shadow lifts the panel above the page.",render:()=>(0,be.jsx)("div",{className:X.drawerSurfaceStage,children:(0,be.jsxs)("div",{className:X.drawerSurfaceFrame,children:[(0,be.jsx)("div",{className:X.drawerOverlay}),(0,be.jsxs)("div",{className:X.drawerPanelDemo,children:[(0,be.jsx)("div",{className:X.drawerSurfaceHeader,children:"Drawer Surface"}),(0,be.jsx)("div",{className:X.drawerBody,children:(0,be.jsxs)("div",{className:X.drawerBodyStack,children:[(0,be.jsx)("p",{children:"Backdrop handles separation from the page."}),(0,be.jsx)("p",{children:"Surface defines the drawer body."}),(0,be.jsx)("p",{children:"Shadow confirms it is a floating layer, not a static card."})]})})]})]})})}]});var Wx={};var gi=y(T(),1);function Ge({as:e="section",variant:a="default",padding:t="none",className:o,children:r,...l}){return(0,gi.jsx)(e,{"data-variant":a,"data-padding":t!=="none"?t:void 0,"data-scope":"panel",className:I("owo-panel",Wx.root,o),...l,children:r})}function Jx({className:e,children:a,...t}){return(0,gi.jsx)("div",{"data-scope":"panel","data-part":"header",className:I(e),...t,children:a})}function Ht({className:e,children:a,...t}){return(0,gi.jsx)("div",{"data-scope":"panel","data-part":"body",className:I(e),...t,children:a})}function $x({className:e,children:a,...t}){return(0,gi.jsx)("div",{"data-scope":"panel","data-part":"footer",className:I(e),...t,children:a})}var j=y(T(),1);Y({group:"layout",componentId:"panel",componentName:"Panel",description:"Container card driven by surface hierarchy and structured sections (header/body/footer), not by blanket shadow elevation.",props:[{name:"as",type:"ElementType",default:"'section'",description:"Root element tag."},{name:"variant",type:"'default' | 'subtle' | 'raised'",default:"'default'",description:"Surface hierarchy variant. `raised` includes shadow."},{name:"padding",type:"'none' | 'sm' | 'md' | 'lg'",default:"'none'",description:"Inner padding size."}],renderPlayground:e=>(0,j.jsx)(Ge,{variant:e.variant,padding:e.padding,children:(0,j.jsx)("p",{className:X.panelTextSm,children:"Panel content"})}),stories:[{id:"variants",title:"Variants",description:"default / subtle / raised \u2014 semantic feedback should use StatusNotice instead of overloading panel surface variants.",render:()=>(0,j.jsxs)("div",{className:X.panelGrid,children:[(0,j.jsxs)(Ge,{variant:"default",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Default"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"Standard container."})]}),(0,j.jsxs)(Ge,{variant:"subtle",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Subtle"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"Reduced emphasis."})]}),(0,j.jsxs)(Ge,{variant:"raised",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Raised"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"Elevated surface with shadow."})]})]})},{id:"with-sections",title:"With Sections",description:"PanelHeader + PanelBody + PanelFooter",source:`<Panel variant="default">
95
168
  <PanelHeader>
96
169
  <h3>Panel Title</h3>
97
170
  </PanelHeader>
@@ -102,7 +175,7 @@ function MyComponent() {
102
175
  <Button variant="ghost" size="sm">Cancel</Button>
103
176
  <Button variant="primary" size="sm">Confirm</Button>
104
177
  </PanelFooter>
105
- </Panel>`,render:()=>(0,G.jsxs)(Ne,{variant:"default",className:"max-w-md",children:[(0,G.jsx)(hv,{children:(0,G.jsx)("h3",{className:"text-sm font-semibold",children:"Panel Title"})}),(0,G.jsx)(bt,{children:(0,G.jsx)("p",{className:"text-sm text-[var(--owo-ref-color-neutral-600)]",children:"This is the body content of the panel. It can contain any elements."})}),(0,G.jsx)(wv,{children:(0,G.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,G.jsx)(M,{variant:"ghost",size:"sm",children:"Cancel"}),(0,G.jsx)(M,{variant:"primary",size:"sm",children:"Confirm"})]})})]})},{id:"on-surfaces",title:"On Different Surfaces",description:"Verifies panel contrast against canvas, subtle, and inset backgrounds.",render:()=>(0,G.jsx)("div",{className:"grid gap-4 sm:grid-cols-3",children:[{label:"Canvas",bg:"var(--owo-ref-color-surface-canvas)"},{label:"Subtle",bg:"var(--owo-ref-color-surface-subtle)"},{label:"Inset",bg:"var(--owo-ref-color-surface-inset)"}].map(({label:e,bg:a})=>(0,G.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:a},children:[(0,G.jsx)("p",{className:"mb-2 text-[11px] font-medium text-[var(--owo-ref-color-neutral-500)]",children:e}),(0,G.jsx)(Ne,{variant:"default",padding:"md",children:(0,G.jsx)("p",{className:"text-sm",children:"Default panel"})})]},e))})},{id:"surface-not-shadow",title:"Surface, Not Shadow",description:"Dashboard-style panels should build depth with surface tokens first. The panel itself stays border-led instead of floating like a popover.",render:()=>(0,G.jsx)("div",{className:"rounded-xl bg-[var(--owo-ref-color-surface-subtle)] p-5",children:(0,G.jsxs)("div",{className:"grid gap-4 lg:grid-cols-3",children:[(0,G.jsxs)(Ne,{variant:"default",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Default"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"Primary reading card."})]}),(0,G.jsxs)(Ne,{variant:"subtle",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Subtle"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"Secondary summary area."})]}),(0,G.jsxs)(Ne,{variant:"raised",padding:"md",children:[(0,G.jsx)("p",{className:"text-sm font-medium",children:"Raised"}),(0,G.jsx)("p",{className:"mt-1 text-xs text-[var(--owo-ref-color-neutral-500)]",children:"A slightly lifted surface with --panel-shadow."})]})]})})},{id:"padding",title:"Padding Sizes",description:"none / sm / md / lg",render:()=>(0,G.jsx)("div",{className:"space-y-3",children:["none","sm","md","lg"].map(e=>(0,G.jsx)(Ne,{variant:"default",padding:e,children:(0,G.jsxs)("span",{className:"text-xs",children:["padding=","\u201C",e,"\u201D"]})},e))})}]});var $a=y(de(),1);var fr=["light","dark"];var pr=["default","flat","elevated","glass"];var _t=y(C(),1),hS=[{id:"components",label:"Components",hash:"#/"},{id:"foundations",label:"Foundations",hash:"#/foundations"},{id:"showcase",label:"Showcase",hash:"#/showcase"}];function op({activePage:e="components"}){return(0,_t.jsxs)("nav",{className:"fixed left-0 right-0 top-0 z-50 flex h-16 items-center justify-between border-b border-[var(--owo-cmp-surface-border)] px-8 font-[family-name:var(--font-headline)] text-sm tracking-tight",style:{backgroundColor:"var(--owo-cmp-surface-bg)",color:"var(--owo-cmp-text-primary)"},children:[(0,_t.jsxs)("div",{className:"flex items-center gap-8",children:[(0,_t.jsx)("a",{href:"#/",className:"text-lg font-bold tracking-tighter text-[var(--owo-cmp-text-primary)]",children:"owoui"}),(0,_t.jsx)("div",{className:"hidden items-center gap-6 md:flex",children:hS.map(a=>(0,_t.jsx)("a",{href:a.hash,className:D("flex h-16 items-center transition-colors",a.id===e?"border-b-2 border-[var(--owo-cmp-text-primary)] font-semibold text-[var(--owo-cmp-text-primary)]":"cursor-pointer text-[var(--owo-cmp-text-muted)] hover:text-[var(--owo-cmp-text-primary)]"),children:a.label},a.id))})]}),(0,_t.jsx)("div",{className:"flex items-center gap-4",children:(0,_t.jsx)(ee,{variant:"ghost",size:"md",label:"Settings",icon:(0,_t.jsx)(za,{size:20})})})]})}var ye=y(C(),1),Ae=18,Qu={button:(0,ye.jsx)(Ys,{size:Ae}),"icon-button":(0,ye.jsx)(Bn,{size:Ae}),"dropdown-menu":(0,ye.jsx)(Cn,{size:Ae}),input:(0,ye.jsx)(js,{size:Ae}),field:(0,ye.jsx)(or,{size:Ae}),select:(0,ye.jsx)(mn,{size:Ae}),"segmented-control":(0,ye.jsx)($o,{size:Ae}),switch:(0,ye.jsx)(Rn,{size:Ae}),textarea:(0,ye.jsx)(sr,{size:Ae}),collapsible:(0,ye.jsx)(bn,{size:Ae}),tabs:(0,ye.jsx)(vn,{size:Ae}),badge:(0,ye.jsx)(Nn,{size:Ae}),"status-notice":(0,ye.jsx)(Lt,{size:Ae}),spinner:(0,ye.jsx)(Sn,{size:Ae}),skeleton:(0,ye.jsx)(rr,{size:Ae}),dialog:(0,ye.jsx)(dn,{size:Ae}),toast:(0,ye.jsx)(Dn,{size:Ae}),avatar:(0,ye.jsx)(Wo,{size:Ae}),tooltip:(0,ye.jsx)(ar,{size:Ae}),drawer:(0,ye.jsx)(tr,{size:Ae}),panel:(0,ye.jsx)(Ln,{size:Ae})},Ku={actions:(0,ye.jsx)(Ys,{size:Ae}),forms:(0,ye.jsx)(js,{size:Ae}),feedback:(0,ye.jsx)(Lt,{size:Ae}),layout:(0,ye.jsx)(Tn,{size:Ae})};var bo=y(de(),1);var Ft=y(C(),1);function rp({onSelect:e}){let[a,t]=(0,bo.useState)(""),o=(0,bo.useRef)(null),r=(0,bo.useMemo)(()=>Fr(),[]),s=(0,bo.useMemo)(()=>{if(!a.trim())return[];let l=a.toLowerCase(),n=[];for(let i of Gr)for(let u of r[i])(u.componentName.toLowerCase().includes(l)||u.componentId.includes(l))&&n.push(u);return n},[a,r]);return(0,bo.useEffect)(()=>{let l=n=>{(n.metaKey||n.ctrlKey)&&n.key==="k"&&(n.preventDefault(),o.current?.querySelector("input")?.focus())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[]),(0,Ft.jsxs)("div",{ref:o,className:"relative",children:[(0,Ft.jsx)(qr,{size:14,className:"absolute left-2.5 top-1/2 z-10 -translate-y-1/2 text-[var(--owo-cmp-text-muted)]"}),(0,Ft.jsx)(Ye,{type:"text",value:a,onChange:l=>t(l.target.value),placeholder:"Quick search...",className:"sb-search-input pl-8 text-xs"}),a.trim()&&s.length>0?(0,Ft.jsx)("div",{className:"absolute left-0 right-0 top-full z-50 mt-1 max-h-52 overflow-y-auto rounded-lg border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] shadow-lg",children:s.map(l=>(0,Ft.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2.5 px-3 py-2 text-left text-xs text-[var(--owo-cmp-text-muted)] transition-colors hover:bg-[var(--owo-cmp-surface-bg-inset)] hover:text-[var(--owo-cmp-text-primary)]",onClick:()=>{e(l.group,l.componentId),t("")},children:[(0,Ft.jsx)("span",{children:Qu[l.componentId]??Ku[l.group]}),(0,Ft.jsx)("span",{className:"font-medium",children:l.componentName}),(0,Ft.jsx)("span",{className:"ml-auto text-[10px]",children:Hn[l.group]})]},`${l.group}-${l.componentId}`))}):null]})}var Le=y(C(),1);function wS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function sp({activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,onNavigate:s,onCycleTheme:l,onSetPreset:n}){let i=Fr();return(0,Le.jsxs)("aside",{className:"sb-sidebar fixed left-0 top-16 z-40 flex w-64 flex-col overflow-y-auto border-r border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg-subtle)]",style:{height:"calc(100dvh - 4rem)"},children:[(0,Le.jsxs)("div",{className:"mb-4 space-y-3 px-5 pt-4",children:[(0,Le.jsx)(rp,{onSelect:s}),(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(ee,{variant:"subtle",size:"sm",label:`Switch to ${o==="light"?"dark":"light"} theme`,icon:o==="light"?(0,Le.jsx)(_r,{size:14}):(0,Le.jsx)(Pr,{size:14}),onClick:l,className:"sb-theme-toggle"}),(0,Le.jsx)(Je,{value:r,onChange:u=>n(u),options:pr.map(u=>({value:u,label:wS(u)})),size:"sm",ariaLabel:"Preset",className:"sb-sidebar-select flex-1"})]})]}),e==="foundations"?(0,Le.jsx)("div",{className:"flex-1 px-4 py-6",children:(0,Le.jsx)("p",{className:"text-xs leading-relaxed text-[var(--owo-cmp-text-muted)]",children:"Switch theme and preset above to see how design tokens adapt across contexts."})}):(0,Le.jsx)("div",{className:"flex-1 space-y-6 px-4",children:Gr.map(u=>(0,Le.jsxs)("div",{children:[(0,Le.jsx)("span",{className:"px-3 text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-primary)] opacity-60",children:Hn[u]}),(0,Le.jsx)("div",{className:"mt-2 space-y-1",children:i[u].map(c=>{let d=c.group===a&&c.componentId===t;return(0,Le.jsxs)("a",{href:`#/${c.group}/${c.componentId}`,onClick:p=>{p.preventDefault(),s(c.group,c.componentId)},title:c.componentName,className:D("flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-all duration-200",d?"border border-[var(--owo-cmp-surface-border-muted)] bg-[var(--owo-cmp-surface-bg)] font-medium text-[var(--owo-cmp-text-primary)] shadow-sm":"text-[var(--owo-cmp-text-secondary)] hover:bg-[var(--owo-cmp-surface-container-highest)]"),children:[(0,Le.jsx)("span",{className:"shrink-0",children:Qu[c.componentId]??Ku[u]}),(0,Le.jsx)("span",{className:"truncate",children:c.componentName})]},c.componentId)})})]},u))}),(0,Le.jsxs)("div",{className:"mt-auto space-y-1 border-t border-[var(--owo-cmp-surface-border)] px-4 pb-4 pt-4",children:[(0,Le.jsxs)("a",{href:"#",className:"flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-[var(--owo-cmp-text-secondary)] transition-all duration-200 hover:bg-[var(--owo-cmp-surface-container-highest)]",children:[(0,Le.jsx)(wn,{size:18}),(0,Le.jsx)("span",{children:"Documentation"})]}),(0,Le.jsxs)("a",{href:"#",className:"flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-[var(--owo-cmp-text-secondary)] transition-all duration-200 hover:bg-[var(--owo-cmp-surface-container-highest)]",children:[(0,Le.jsx)(St,{size:18}),(0,Le.jsx)("span",{children:"Support"})]})]})]})}var Qn=y(de(),1);var Ja=y(C(),1);function lp({story:e}){let[a,t]=(0,Qn.useState)(!1),[o,r]=(0,Qn.useState)(!1);(0,Qn.useEffect)(()=>{if(!o)return;let l=setTimeout(()=>r(!1),1500);return()=>clearTimeout(l)},[o]);let s=!!e.source;return(0,Ja.jsxs)("div",{className:"overflow-hidden rounded-xl border border-[var(--owo-cmp-surface-border)]",children:[(0,Ja.jsx)("div",{className:"sb-dot-grid relative overflow-x-auto bg-[var(--owo-cmp-surface-bg)] p-8",style:{minHeight:120},children:(0,Ja.jsx)("div",{className:"relative z-10 min-w-0",children:e.render()})}),s?(0,Ja.jsxs)("div",{className:"flex items-center justify-between border-t border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg-subtle)] px-4 py-2",children:[(0,Ja.jsx)(M,{variant:a?"secondary":"ghost",size:"sm",leadingIcon:(0,Ja.jsx)(Jo,{size:12}),onClick:()=>t(l=>!l),className:"sb-code-toggle",children:"Code"}),a?(0,Ja.jsx)(M,{variant:"ghost",size:"sm",leadingIcon:o?(0,Ja.jsx)(zr,{size:12}):(0,Ja.jsx)(Hr,{size:12}),onClick:async()=>{e.source&&(await navigator.clipboard.writeText(e.source),r(!0))},className:"sb-code-toggle",children:o?"Copied":"Copy"}):null]}):null,s&&a?(0,Ja.jsx)("pre",{className:"overflow-x-auto border-t border-[var(--owo-cmp-surface-border)] bg-[var(--owo-ref-color-code-block-bg)] p-4 text-xs leading-relaxed text-[var(--owo-ref-color-neutral-700)]",children:(0,Ja.jsx)("code",{children:e.source})}):null]})}var Tt=y(de(),1);var oe=y(C(),1),bS=/^'[^']+'\s*(\s*\|\s*'[^']+')+$/;function vS(e){let a=e.trim();return bS.test(a)?{controlType:"select",options:[...a.matchAll(/'([^']+)'/g)].map(t=>t[1])}:a==="boolean"?{controlType:"boolean"}:a==="string"?{controlType:"string"}:a==="number"?{controlType:"number"}:{controlType:"skip"}}function xS(e,a,t){if(e===void 0||e==="")return a==="boolean"?!1:a==="select"&&t?.length?t[0]:a==="number"?0:"";let o=e.trim();return a==="boolean"?o==="true":a==="number"?Number(o)||0:/^['"].*['"]$/.test(o)?o.slice(1,-1):o}function yS(e){return e.flatMap(a=>{let{controlType:t,options:o}=vS(a.type);return t==="skip"?[]:[{name:a.name,controlType:t,options:o,defaultValue:xS(a.default,t,o),description:a.description}]})}function Lv(e){return e.charAt(0).toUpperCase()+e.slice(1)}function LS(e){let a=[];for(let t of e)if(t.controlType==="boolean"){let o=a[a.length-1];if(o?.type==="boolean"){o.controls.push(t);continue}a.push({type:"boolean",controls:[t]})}else a.push({type:"other",controls:[t]});return a}function bv({control:e,value:a,onChange:t}){switch(e.controlType){case"select":return(0,oe.jsx)(Je,{value:String(a),onChange:o=>t(o),options:(e.options??[]).map(o=>({value:o,label:Lv(o)})),size:"md",ariaLabel:e.name,className:"w-full"});case"boolean":return(0,oe.jsx)(Ea,{checked:!!a,onChange:o=>t(o),size:"sm",ariaLabel:e.name});case"string":return(0,oe.jsx)(Ye,{type:"text",value:String(a??""),onChange:o=>t(o.target.value),placeholder:e.name});case"number":return(0,oe.jsx)(Ye,{type:"number",value:Number(a)||0,onChange:o=>t(Number(o.target.value)||0),className:"w-24"});default:return null}}var vv=.25,xv=.5,yv=5;function np({props:e,renderPlayground:a,componentName:t,defaultScale:o=1}){let r=(0,Tt.useMemo)(()=>yS(e),[e]),s=(0,Tt.useMemo)(()=>{let b={};for(let x of r)b[x.name]=x.defaultValue;return b},[r]),[l,n]=(0,Tt.useState)(s),[i,u]=(0,Tt.useState)(o),[c,d]=(0,Tt.useState)(!1);(0,Tt.useEffect)(()=>{n(s)},[s]),(0,Tt.useEffect)(()=>{if(!c)return;let b=setTimeout(()=>d(!1),1500);return()=>clearTimeout(b)},[c]);let p=(b,x)=>n(k=>({...k,[b]:x})),f=(0,Tt.useMemo)(()=>{let b=Object.entries(l).filter(([,x])=>x!==""&&x!==!1&&x!==void 0).map(([x,k])=>typeof k=="boolean"?k?x:null:typeof k=="number"?`${x}={${k}}`:`${x}="${k}"`).filter(Boolean).join(" ");return`<${t}${b?` ${b}`:""} />`},[l,t]);return(0,oe.jsxs)("section",{className:"grid grid-cols-1 gap-8 xl:grid-cols-3",children:[(0,oe.jsx)("div",{className:"relative xl:col-span-2",children:(0,oe.jsxs)("div",{className:"sb-dot-grid relative flex items-center justify-center overflow-hidden rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] shadow-lg",style:{height:500},children:[(0,oe.jsx)("div",{className:"relative z-10 p-12 text-center transition-transform duration-200",style:{transform:`scale(${i})`},children:a(l,p)}),(0,oe.jsxs)("div",{className:"absolute bottom-4 left-4 z-10 flex items-center gap-2",children:[(0,oe.jsx)(ee,{variant:"ghost",size:"sm",label:"Zoom out",icon:(0,oe.jsx)(kn,{size:16}),className:"sb-glass-btn",disabled:i<=xv,onClick:()=>u(b=>Math.max(xv,+(b-vv).toFixed(2)))}),(0,oe.jsxs)("span",{className:"min-w-[3ch] text-center font-mono text-[11px] text-[var(--owo-cmp-text-muted)]",children:[Math.round(i*100),"%"]}),(0,oe.jsx)(ee,{variant:"ghost",size:"sm",label:"Zoom in",icon:(0,oe.jsx)(Ht,{size:16}),className:"sb-glass-btn",disabled:i>=yv,onClick:()=>u(b=>Math.min(yv,+(b+vv).toFixed(2)))}),(0,oe.jsx)(ee,{variant:"ghost",size:"sm",label:"Reset",icon:(0,oe.jsx)(Ur,{size:16}),className:"sb-glass-btn",onClick:()=>{n(s),u(o)}})]})]})}),(0,oe.jsxs)("div",{className:"sb-controls flex flex-col gap-6 rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg-subtle)] p-6",children:[(0,oe.jsxs)("h3",{className:"flex items-center gap-2 font-[family-name:var(--font-headline)] text-sm font-bold tracking-wider text-[var(--owo-cmp-text-primary)]",children:[(0,oe.jsx)(Mn,{size:14,className:"text-[var(--owo-cmp-text-muted)]"}),"CONTROLS"]}),(0,oe.jsx)("div",{className:"space-y-5",children:LS(r).map(b=>b.type==="boolean"?(0,oe.jsx)("div",{className:"space-y-4 pt-2",children:b.controls.map(x=>(0,oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oe.jsx)("span",{className:"text-sm text-[var(--owo-cmp-text-primary)]",children:Lv(x.name)}),(0,oe.jsx)(bv,{control:x,value:l[x.name],onChange:k=>p(x.name,k)})]},x.name))},b.controls[0].name):(0,oe.jsxs)("div",{className:"space-y-2",children:[(0,oe.jsx)("label",{className:"block text-[11px] leading-tight font-bold uppercase tracking-widest text-[var(--owo-cmp-text-secondary)]",children:b.controls[0].name}),(0,oe.jsx)(bv,{control:b.controls[0],value:l[b.controls[0].name],onChange:x=>p(b.controls[0].name,x)})]},b.controls[0].name))}),(0,oe.jsx)(M,{variant:"primary",size:"md",leadingIcon:c?(0,oe.jsx)(zr,{size:14}):(0,oe.jsx)(Hr,{size:14}),onClick:async()=>{await navigator.clipboard.writeText(f),d(!0)},className:"sb-copy-btn mt-auto w-full uppercase tracking-widest",children:c?"Copied!":"Copy Code"})]})]})}var va=y(C(),1);function ip({props:e}){return(0,va.jsx)("div",{className:"overflow-hidden rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)]",children:(0,va.jsxs)("table",{className:"w-full border-collapse text-left text-sm",children:[(0,va.jsx)("thead",{children:(0,va.jsxs)("tr",{className:"text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:[(0,va.jsx)("th",{className:"border-b border-[var(--owo-cmp-surface-border)] px-6 py-4",children:"Property"}),(0,va.jsx)("th",{className:"border-b border-[var(--owo-cmp-surface-border)] px-6 py-4",children:"Type"}),(0,va.jsx)("th",{className:"border-b border-[var(--owo-cmp-surface-border)] px-6 py-4",children:"Default"}),(0,va.jsx)("th",{className:"border-b border-[var(--owo-cmp-surface-border)] px-6 py-4",children:"Description"})]})}),(0,va.jsx)("tbody",{className:"divide-y divide-[var(--owo-cmp-surface-border)] text-[var(--owo-cmp-text-primary)]",children:e.map(a=>(0,va.jsxs)("tr",{className:"transition-colors hover:bg-[var(--owo-cmp-surface-bg-inset)]",children:[(0,va.jsx)("td",{className:"px-6 py-4 font-mono text-xs font-semibold text-[var(--owo-cmp-text-primary)]",children:a.name}),(0,va.jsx)("td",{className:"px-6 py-4 italic text-[var(--owo-cmp-text-muted)]",children:a.type}),(0,va.jsx)("td",{className:"px-6 py-4 text-[var(--owo-cmp-text-muted)]",children:a.default??"\u2014"}),(0,va.jsx)("td",{className:"px-6 py-4",children:a.description??""})]},a.name))})]})})}var E=y(C(),1),SS=[{label:"Canvas & Surface",tokens:[{name:"canvas-bg",var:"--owo-cmp-canvas-bg"},{name:"canvas-bg-subtle",var:"--owo-cmp-canvas-bg-subtle"},{name:"surface-bg",var:"--owo-cmp-surface-bg"},{name:"surface-bg-subtle",var:"--owo-cmp-surface-bg-subtle"},{name:"surface-bg-raised",var:"--owo-cmp-surface-bg-raised"},{name:"surface-bg-inset",var:"--owo-cmp-surface-bg-inset"},{name:"surface-container",var:"--owo-cmp-surface-container"},{name:"surface-container-high",var:"--owo-cmp-surface-container-high"},{name:"surface-container-highest",var:"--owo-cmp-surface-container-highest"}]},{label:"Border",tokens:[{name:"surface-border",var:"--owo-cmp-surface-border"},{name:"surface-border-muted",var:"--owo-cmp-surface-border-muted"},{name:"surface-border-strong",var:"--owo-cmp-surface-border-strong"}]},{label:"Text",tokens:[{name:"text-primary",var:"--owo-cmp-text-primary"},{name:"text-secondary",var:"--owo-cmp-text-secondary"},{name:"text-muted",var:"--owo-cmp-text-muted"},{name:"text-on-accent",var:"--owo-cmp-text-on-accent"}]},{label:"Accent",tokens:[{name:"accent-bg",var:"--owo-cmp-accent-bg"},{name:"accent-bg-hover",var:"--owo-cmp-accent-bg-hover"},{name:"accent-bg-muted",var:"--owo-cmp-accent-bg-muted"},{name:"accent-border",var:"--owo-cmp-accent-border"}]},{label:"Status",tokens:[{name:"success-bg",var:"--owo-cmp-success-bg"},{name:"success-border",var:"--owo-cmp-success-border"},{name:"success-text",var:"--owo-cmp-success-text"},{name:"warning-bg",var:"--owo-cmp-warning-bg"},{name:"warning-border",var:"--owo-cmp-warning-border"},{name:"warning-text",var:"--owo-cmp-warning-text"},{name:"danger-bg",var:"--owo-cmp-danger-bg"},{name:"danger-border",var:"--owo-cmp-danger-border"},{name:"danger-text",var:"--owo-cmp-danger-text"},{name:"info-bg",var:"--owo-cmp-info-bg"},{name:"info-border",var:"--owo-cmp-info-border"},{name:"info-text",var:"--owo-cmp-info-text"}]}],CS=[{name:"sm",var:"--owo-cmp-control-radius-sm"},{name:"md",var:"--owo-cmp-control-radius-md"},{name:"lg",var:"--owo-cmp-control-radius-lg"},{name:"xl",var:"--owo-cmp-control-radius-xl"},{name:"2xl",var:"--owo-cmp-control-radius-2xl"},{name:"full",var:"--owo-cmp-control-radius-full"}],IS=[{name:"raised",var:"--owo-cmp-surface-shadow"},{name:"popover",var:"--owo-cmp-surface-shadow-strong"}];function kS({name:e,cssVar:a}){return(0,E.jsxs)("div",{className:"flex items-center gap-3",children:[(0,E.jsx)("div",{className:"h-10 w-10 shrink-0 rounded-lg border border-[var(--owo-cmp-surface-border)]",style:{backgroundColor:`var(${a})`}}),(0,E.jsxs)("div",{className:"min-w-0",children:[(0,E.jsx)("div",{className:"truncate text-xs font-medium text-[var(--owo-cmp-text-primary)]",children:e}),(0,E.jsx)("div",{className:"truncate font-mono text-[10px] text-[var(--owo-cmp-text-muted)]",children:a})]})]})}function up(){return(0,E.jsxs)("div",{className:"space-y-12",children:[(0,E.jsxs)("header",{className:"space-y-4",children:[(0,E.jsx)("h1",{className:"text-4xl font-extrabold tracking-tight text-[var(--owo-cmp-text-primary)]",children:"Foundations"}),(0,E.jsx)("p",{className:"max-w-2xl text-lg leading-relaxed text-[var(--owo-cmp-text-muted)]",children:"Design tokens that define the visual language. Switch theme and preset to see how values adapt across contexts."})]}),(0,E.jsxs)("section",{className:"space-y-8",children:[(0,E.jsx)("h2",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"Colors"}),SS.map(e=>(0,E.jsxs)("div",{children:[(0,E.jsx)("h3",{className:"mb-4 text-xs font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:e.label}),(0,E.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",children:e.tokens.map(a=>(0,E.jsx)(kS,{name:a.name,cssVar:a.var},a.var))})]},e.label))]}),(0,E.jsxs)("section",{className:"space-y-6",children:[(0,E.jsx)("h2",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"Typography"}),(0,E.jsxs)("div",{className:"space-y-6 rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] p-8",children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"mb-1 text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:"Sans (--owo-ref-font-sans)"}),(0,E.jsx)("p",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",style:{fontFamily:"var(--owo-ref-font-sans)"},children:"The quick brown fox jumps over the lazy dog"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"mb-1 text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:"Heading (--owo-ref-font-heading)"}),(0,E.jsx)("p",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",style:{fontFamily:"var(--owo-ref-font-heading)"},children:"The quick brown fox jumps over the lazy dog"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"mb-1 text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:"Mono (--owo-ref-font-mono)"}),(0,E.jsx)("p",{className:"text-lg text-[var(--owo-cmp-text-primary)]",style:{fontFamily:"var(--owo-ref-font-mono)"},children:"const token = 'design-system';"})]}),(0,E.jsxs)("div",{className:"border-t border-[var(--owo-cmp-surface-border)] pt-6",children:[(0,E.jsx)("div",{className:"mb-3 text-[10px] font-bold uppercase tracking-widest text-[var(--owo-cmp-text-muted)]",children:"Scale"}),(0,E.jsx)("div",{className:"space-y-3",children:[{label:"text-xs",size:"0.75rem"},{label:"text-sm",size:"0.875rem"},{label:"text-base",size:"1rem"},{label:"text-lg",size:"1.125rem"},{label:"text-xl",size:"1.25rem"},{label:"text-2xl",size:"1.5rem"},{label:"text-3xl",size:"1.875rem"},{label:"text-4xl",size:"2.25rem"}].map(e=>(0,E.jsxs)("div",{className:"flex items-baseline gap-4",children:[(0,E.jsx)("span",{className:"w-20 shrink-0 font-mono text-[10px] text-[var(--owo-cmp-text-muted)]",children:e.label}),(0,E.jsx)("span",{className:"text-[var(--owo-cmp-text-primary)]",style:{fontSize:e.size},children:"Aa"})]},e.label))})]})]})]}),(0,E.jsxs)("section",{className:"space-y-6",children:[(0,E.jsx)("h2",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"Border Radius"}),(0,E.jsx)("div",{className:"flex flex-wrap gap-6",children:CS.map(e=>(0,E.jsxs)("div",{className:"text-center",children:[(0,E.jsx)("div",{className:"mx-auto mb-2 h-16 w-16 border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg-subtle)]",style:{borderRadius:`var(${e.var})`}}),(0,E.jsx)("div",{className:"text-xs font-medium text-[var(--owo-cmp-text-primary)]",children:e.name}),(0,E.jsx)("div",{className:"font-mono text-[10px] text-[var(--owo-cmp-text-muted)]",children:e.var})]},e.var))})]}),(0,E.jsxs)("section",{className:"space-y-6",children:[(0,E.jsx)("h2",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"Shadows"}),(0,E.jsx)("div",{className:"flex flex-wrap gap-8",children:IS.map(e=>(0,E.jsxs)("div",{className:"text-center",children:[(0,E.jsx)("div",{className:"mx-auto mb-3 h-24 w-36 rounded-xl border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)]",style:{boxShadow:`var(${e.var})`}}),(0,E.jsx)("div",{className:"text-xs font-medium text-[var(--owo-cmp-text-primary)]",children:e.name}),(0,E.jsx)("div",{className:"font-mono text-[10px] text-[var(--owo-cmp-text-muted)]",children:e.var})]},e.var))})]})]})}var Gt=y(de(),1);var h=y(C(),1),TS=[{id:"news",label:"News Portal"},{id:"dashboard",label:"Analytics Dashboard"}],AS=[{id:1,category:"Technology",title:"AI-Powered Code Assistants Are Reshaping How Teams Build Software",excerpt:"A look at how development teams are integrating AI tools into their daily workflows, and what it means for productivity and code quality.",author:"Sarah Chen",date:"Mar 25, 2026",readTime:"8 min read",comments:42,likes:187,image:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"},{id:2,category:"Design",title:"The Rise of Design Tokens: Building Consistent UI at Scale",excerpt:"Design tokens are becoming the foundation of modern design systems. Here is why your team should adopt them.",author:"Marcus Webb",date:"Mar 24, 2026",readTime:"5 min read",comments:18,likes:94,image:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"},{id:3,category:"Engineering",title:"Zero-Downtime Deployments: Lessons From Running 10K Services",excerpt:"Practical strategies for achieving zero-downtime deployments at scale, drawn from real production incidents.",author:"Priya Patel",date:"Mar 23, 2026",readTime:"12 min read",comments:67,likes:312,image:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)"},{id:4,category:"Open Source",title:"How Small Teams Maintain Popular Open Source Projects",excerpt:"Interviews with maintainers of widely-used libraries about sustainable open source practices.",author:"Tom\xE1s Rivera",date:"Mar 22, 2026",readTime:"6 min read",comments:23,likes:156,image:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)"}],MS=[{title:"WebAssembly 3.0 Proposal Reaches Stage 3",comments:89},{title:"React 20 Introduces Server-First Architecture",comments:234},{title:"TypeScript 6.0 Adds Pattern Matching",comments:156},{title:"Rust Overtakes Java in Stack Overflow Survey",comments:312},{title:"GitHub Copilot X Now Free for Open Source",comments:178}];function DS(){let[e,a]=(0,Gt.useState)("latest"),[t,o]=(0,Gt.useState)(new Set),[r,s]=(0,Gt.useState)(!1),l=_n(),n=i=>{o(u=>{let c=new Set(u);return c.has(i)?(c.delete(i),l.info("Removed from bookmarks")):(c.add(i),l.success("Saved to bookmarks")),c})};return(0,h.jsxs)("div",{className:"space-y-8",children:[(0,h.jsxs)("header",{className:"flex items-center justify-between border-b border-[var(--owo-cmp-surface-border)] pb-6",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:"font-[family-name:var(--font-headline)] text-3xl font-extrabold tracking-tight",children:"The Daily Byte"}),(0,h.jsx)("p",{className:"mt-1 text-sm text-[var(--owo-cmp-text-muted)]",children:"Your curated tech news, every morning."})]}),(0,h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,h.jsx)(Qe,{content:"Search articles",children:(0,h.jsx)(ee,{variant:"subtle",size:"md",label:"Search",icon:(0,h.jsx)(qr,{size:18}),onClick:()=>s(!0)})}),(0,h.jsx)(Qe,{content:"Notifications",children:(0,h.jsx)(ee,{variant:"subtle",size:"md",label:"Notifications",icon:(0,h.jsx)(fn,{size:18})})}),(0,h.jsxs)(Z,{children:[(0,h.jsx)(Z.Trigger,{children:(0,h.jsxs)("button",{type:"button",className:"flex items-center gap-2 rounded-lg px-2 py-1 transition-colors hover:bg-[var(--owo-cmp-surface-bg-inset)]",children:[(0,h.jsx)(sa,{name:"Alex Chen",size:"sm"}),(0,h.jsx)(Or,{size:14,className:"text-[var(--owo-cmp-text-muted)]"})]})}),(0,h.jsxs)(Z.Content,{children:[(0,h.jsx)(Z.Item,{onSelect:()=>{},children:"Profile"}),(0,h.jsx)(Z.Item,{onSelect:()=>{},children:"Settings"}),(0,h.jsx)(Z.Separator,{}),(0,h.jsx)(Z.Item,{destructive:!0,onSelect:()=>{},children:"Sign out"})]})]})]})]}),(0,h.jsxs)(J,{open:r,onClose:()=>s(!1),children:[(0,h.jsx)(J.Header,{children:"Search Articles"}),(0,h.jsx)(J.Body,{children:(0,h.jsx)(mt,{label:"Keywords",children:(0,h.jsx)(Ye,{type:"text",placeholder:"Search by title, author, or topic..."})})}),(0,h.jsxs)(J.Footer,{children:[(0,h.jsx)(M,{variant:"ghost",onClick:()=>s(!1),children:"Cancel"}),(0,h.jsx)(M,{variant:"primary",onClick:()=>s(!1),children:"Search"})]})]}),(0,h.jsx)(Be,{tone:"info",title:"Breaking",children:"React 20 just dropped with a brand-new server-first architecture. Read the announcement \u2192"}),(0,h.jsxs)("div",{className:"grid grid-cols-1 gap-8 xl:grid-cols-3",children:[(0,h.jsxs)("div",{className:"space-y-6 xl:col-span-2",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsx)(Ws,{value:e,onChange:i=>a(i),options:[{value:"latest",label:"Latest"},{value:"popular",label:"Popular"}],ariaLabel:"Feed type"}),(0,h.jsx)(M,{variant:"ghost",size:"sm",leadingIcon:(0,h.jsx)(Ur,{size:14}),children:"Refresh"})]}),(0,h.jsx)("div",{className:"space-y-5",children:AS.map(i=>(0,h.jsx)(Ne,{children:(0,h.jsxs)("div",{className:"flex gap-5 p-5",children:[(0,h.jsx)("div",{className:"hidden h-28 w-44 shrink-0 rounded-lg sm:block",style:{background:i.image}}),(0,h.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)(ge,{tone:"info",children:i.category}),(0,h.jsx)("span",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:i.date})]}),(0,h.jsx)("h3",{className:"mt-2 font-[family-name:var(--font-headline)] text-base font-bold leading-snug",children:i.title}),(0,h.jsx)("p",{className:"mt-1 line-clamp-2 text-sm text-[var(--owo-cmp-text-muted)]",children:i.excerpt}),(0,h.jsxs)("div",{className:"mt-auto flex items-center justify-between pt-3",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3 text-xs text-[var(--owo-cmp-text-muted)]",children:[(0,h.jsxs)("span",{className:"flex items-center gap-1",children:[(0,h.jsx)(sa,{name:i.author,size:"xs"}),i.author]}),(0,h.jsxs)("span",{className:"flex items-center gap-1",children:[(0,h.jsx)(Xs,{size:12}),i.readTime]})]}),(0,h.jsxs)("div",{className:"flex items-center gap-1",children:[(0,h.jsx)(Qe,{content:`${i.likes} likes`,children:(0,h.jsx)(ee,{variant:"ghost",size:"sm",label:"Like",icon:(0,h.jsx)(yn,{size:14})})}),(0,h.jsx)(Qe,{content:`${i.comments} comments`,children:(0,h.jsx)(ee,{variant:"ghost",size:"sm",label:"Comments",icon:(0,h.jsx)(In,{size:14})})}),(0,h.jsx)(Qe,{content:t.has(i.id)?"Remove bookmark":"Bookmark",children:(0,h.jsx)(ee,{variant:t.has(i.id)?"subtle":"ghost",size:"sm",label:"Bookmark",icon:(0,h.jsx)(pn,{size:14}),onClick:()=>n(i.id)})}),(0,h.jsx)(Qe,{content:"Share",children:(0,h.jsx)(ee,{variant:"ghost",size:"sm",label:"Share",icon:(0,h.jsx)(An,{size:14})})})]})]})]})]})},i.id))}),(0,h.jsx)("div",{className:"flex justify-center",children:(0,h.jsx)(M,{variant:"secondary",trailingIcon:(0,h.jsx)(jo,{size:14}),children:"Load More Articles"})})]}),(0,h.jsxs)("aside",{className:"space-y-6",children:[(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{children:[(0,h.jsx)("h3",{className:"mb-4 font-[family-name:var(--font-headline)] text-sm font-bold uppercase tracking-wider",children:"Trending Now"}),(0,h.jsx)("div",{className:"space-y-3",children:MS.map((i,u)=>(0,h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,h.jsx)("span",{className:"mt-0.5 font-[family-name:var(--font-headline)] text-lg font-extrabold text-[var(--owo-cmp-text-muted)]",children:String(u+1).padStart(2,"0")}),(0,h.jsxs)("div",{className:"min-w-0",children:[(0,h.jsx)("p",{className:"text-sm font-medium leading-snug",children:i.title}),(0,h.jsxs)("span",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:[i.comments," comments"]})]})]},i.title))})]})}),(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{className:"space-y-4",children:[(0,h.jsx)("h3",{className:"font-[family-name:var(--font-headline)] text-sm font-bold",children:"Subscribe to Newsletter"}),(0,h.jsx)("p",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:"Get the top stories delivered to your inbox every morning."}),(0,h.jsx)(mt,{label:"Email",children:(0,h.jsx)(Ye,{type:"email",placeholder:"you@example.com"})}),(0,h.jsx)(M,{variant:"primary",className:"w-full",children:"Subscribe"})]})}),(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{children:[(0,h.jsx)("h3",{className:"mb-3 font-[family-name:var(--font-headline)] text-sm font-bold",children:"Popular Topics"}),(0,h.jsx)("div",{className:"flex flex-wrap gap-2",children:["React","TypeScript","Rust","AI/ML","DevOps","Open Source","Web3","Design Systems"].map(i=>(0,h.jsx)(ge,{tone:"neutral",children:i},i))})]})})]})]})]})}var BS=[{label:"Total Revenue",value:"$84,230",change:"+12.5%",up:!0,icon:(0,h.jsx)(gn,{size:16})},{label:"Active Users",value:"14,892",change:"+8.1%",up:!0,icon:(0,h.jsx)(Qs,{size:16})},{label:"Conversion Rate",value:"3.24%",change:"-0.4%",up:!1,icon:(0,h.jsx)(On,{size:16})},{label:"Avg. Session",value:"4m 32s",change:"+18.2%",up:!0,icon:(0,h.jsx)(Xs,{size:16})}],NS=[{user:"Emma Wilson",action:"completed onboarding",time:"2 min ago"},{user:"Liam Zhang",action:"upgraded to Pro plan",time:"15 min ago"},{user:"Olivia Brown",action:"submitted a support ticket",time:"32 min ago"},{user:"Noah Garcia",action:"exported analytics report",time:"1 hr ago"},{user:"Ava Martinez",action:"invited 3 team members",time:"2 hr ago"}],RS=[{name:"API Gateway",status:"healthy",latency:"23ms",uptime:"99.98%"},{name:"Auth Service",status:"healthy",latency:"12ms",uptime:"99.99%"},{name:"Payment Service",status:"degraded",latency:"340ms",uptime:"99.87%"},{name:"Search Engine",status:"healthy",latency:"45ms",uptime:"99.95%"},{name:"Email Worker",status:"healthy",latency:"89ms",uptime:"99.92%"}];function zS(){let[e,a]=(0,Gt.useState)("7d"),[t,o]=(0,Gt.useState)(!1),[r,s]=(0,Gt.useState)(!1),[l,n]=(0,Gt.useState)(!0),[i,u]=(0,Gt.useState)("30"),c=_n();return(0,h.jsxs)("div",{className:"space-y-8",children:[(0,h.jsxs)("header",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:"font-[family-name:var(--font-headline)] text-3xl font-extrabold tracking-tight",children:"Dashboard"}),(0,h.jsxs)("p",{className:"mt-1 text-sm text-[var(--owo-cmp-text-muted)]",children:["Last updated 2 minutes ago",(0,h.jsx)(Sa,{variant:"arc",size:"xs",className:"ml-2 text-[var(--owo-cmp-text-muted)]"})]})]}),(0,h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,h.jsx)(Je,{value:e,onChange:a,options:[{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"},{value:"90d",label:"Last 90 days"}],ariaLabel:"Time period",size:"sm"}),(0,h.jsx)(Qe,{content:"Dashboard settings",children:(0,h.jsx)(ee,{variant:"subtle",size:"md",label:"Settings",icon:(0,h.jsx)(za,{size:18}),onClick:()=>o(!0)})}),(0,h.jsx)(M,{variant:"primary",size:"sm",leadingIcon:(0,h.jsx)(Ht,{size:14}),children:"New Report"})]})]}),(0,h.jsxs)(J,{open:t,onClose:()=>o(!1),children:[(0,h.jsx)(J.Header,{children:"Dashboard Settings"}),(0,h.jsx)(J.Body,{children:(0,h.jsxs)("div",{className:"space-y-5",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"text-sm font-medium",children:"Auto-refresh"}),(0,h.jsx)("div",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:"Automatically refresh data"})]}),(0,h.jsx)(Ea,{checked:l,onChange:n,ariaLabel:"Auto refresh"})]}),(0,h.jsx)(mt,{label:"Refresh Interval",children:(0,h.jsx)(Je,{value:i,onChange:u,options:[{value:"10",label:"Every 10 seconds"},{value:"30",label:"Every 30 seconds"},{value:"60",label:"Every minute"}],ariaLabel:"Refresh interval"})}),(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"text-sm font-medium",children:"Dark Charts"}),(0,h.jsx)("div",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:"Use dark palette for chart fills"})]}),(0,h.jsx)(Ea,{checked:r,onChange:s,ariaLabel:"Dark charts"})]})]})}),(0,h.jsxs)(J.Footer,{children:[(0,h.jsx)(M,{variant:"ghost",onClick:()=>o(!1),children:"Cancel"}),(0,h.jsx)(M,{variant:"primary",onClick:()=>{o(!1),c.success("Settings saved")},children:"Save"})]})]}),(0,h.jsx)(Be,{tone:"warning",title:"Service degradation detected",children:"Payment Service latency is elevated (340ms avg). The team is investigating."}),(0,h.jsx)("section",{className:"grid grid-cols-2 gap-4 xl:grid-cols-4",children:BS.map(d=>(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{className:"space-y-2",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsx)("span",{className:"text-xs font-medium text-[var(--owo-cmp-text-muted)]",children:d.label}),(0,h.jsx)("span",{className:"text-[var(--owo-cmp-text-muted)]",children:d.icon})]}),(0,h.jsxs)("div",{className:"flex items-end gap-2",children:[(0,h.jsx)("span",{className:"font-[family-name:var(--font-headline)] text-2xl font-bold",children:d.value}),(0,h.jsx)(ge,{tone:d.up?"success":"danger",children:d.change})]})]})},d.label))}),(0,h.jsxs)("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-3",children:[(0,h.jsxs)("div",{className:"space-y-6 xl:col-span-2",children:[(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{className:"space-y-4",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsx)("h2",{className:"font-[family-name:var(--font-headline)] text-base font-bold",children:"Revenue Overview"}),(0,h.jsxs)(Z,{children:[(0,h.jsx)(Z.Trigger,{children:(0,h.jsx)(ee,{variant:"ghost",size:"sm",label:"Chart options",icon:(0,h.jsx)(er,{size:14})})}),(0,h.jsxs)(Z.Content,{children:[(0,h.jsx)(Z.Item,{onSelect:()=>c.success("Report exported"),children:"Export CSV"}),(0,h.jsx)(Z.Item,{onSelect:()=>{},children:"Full screen"})]})]})]}),(0,h.jsx)("div",{className:"flex h-48 items-end gap-2 rounded-lg bg-[var(--owo-cmp-surface-bg-inset)] p-4",children:[40,65,45,80,55,90,70,95,60,85,75,88].map((d,p)=>(0,h.jsx)("div",{className:"flex-1 rounded-t transition-all hover:opacity-80",style:{height:`${d}%`,background:"var(--owo-cmp-accent-bg)",opacity:.3+d/100*.7}},p))}),(0,h.jsxs)("div",{className:"flex justify-between text-[10px] text-[var(--owo-cmp-text-muted)]",children:[(0,h.jsx)("span",{children:"Jan"}),(0,h.jsx)("span",{children:"Feb"}),(0,h.jsx)("span",{children:"Mar"}),(0,h.jsx)("span",{children:"Apr"}),(0,h.jsx)("span",{children:"May"}),(0,h.jsx)("span",{children:"Jun"}),(0,h.jsx)("span",{children:"Jul"}),(0,h.jsx)("span",{children:"Aug"}),(0,h.jsx)("span",{children:"Sep"}),(0,h.jsx)("span",{children:"Oct"}),(0,h.jsx)("span",{children:"Nov"}),(0,h.jsx)("span",{children:"Dec"})]})]})}),(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{children:[(0,h.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,h.jsx)("h2",{className:"font-[family-name:var(--font-headline)] text-base font-bold",children:"Service Health"}),(0,h.jsx)(M,{variant:"ghost",size:"sm",leadingIcon:(0,h.jsx)(hn,{size:12}),children:"Status Page"})]}),(0,h.jsx)("div",{className:"divide-y divide-[var(--owo-cmp-surface-border)]",children:RS.map(d=>(0,h.jsxs)("div",{className:"flex items-center justify-between py-3",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,h.jsx)("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:d.status==="healthy"?"var(--owo-cmp-success-bg)":"var(--owo-cmp-warning-bg)"}}),(0,h.jsx)("span",{className:"text-sm font-medium",children:d.name})]}),(0,h.jsxs)("div",{className:"flex items-center gap-6 text-xs text-[var(--owo-cmp-text-muted)]",children:[(0,h.jsx)("span",{children:d.latency}),(0,h.jsx)("span",{children:d.uptime}),(0,h.jsx)(ge,{tone:d.status==="healthy"?"success":"warning",children:d.status})]})]},d.name))})]})})]}),(0,h.jsxs)("aside",{className:"space-y-6",children:[(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{children:[(0,h.jsx)("h3",{className:"mb-4 font-[family-name:var(--font-headline)] text-sm font-bold",children:"Recent Activity"}),(0,h.jsx)("div",{className:"space-y-4",children:NS.map((d,p)=>(0,h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,h.jsx)(sa,{name:d.user,size:"sm"}),(0,h.jsxs)("div",{className:"min-w-0",children:[(0,h.jsxs)("p",{className:"text-sm",children:[(0,h.jsx)("span",{className:"font-medium",children:d.user})," ",(0,h.jsx)("span",{className:"text-[var(--owo-cmp-text-muted)]",children:d.action})]}),(0,h.jsx)("span",{className:"text-xs text-[var(--owo-cmp-text-muted)]",children:d.time})]})]},p))})]})}),(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{className:"space-y-3",children:[(0,h.jsx)("h3",{className:"font-[family-name:var(--font-headline)] text-sm font-bold",children:"Quick Actions"}),(0,h.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,h.jsx)(M,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(Qo,{size:14}),className:"justify-start",children:"Reports"}),(0,h.jsx)(M,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(Qs,{size:14}),className:"justify-start",children:"Users"}),(0,h.jsx)(M,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(En,{size:14}),className:"justify-start",children:"Alerts"}),(0,h.jsx)(M,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(xn,{size:14}),className:"justify-start",children:"Regions"})]})]})}),(0,h.jsxs)(nr,{children:[(0,h.jsx)(nr.Trigger,{className:"w-full rounded-lg border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg)] px-4 py-3 text-left text-sm font-medium transition-colors hover:bg-[var(--owo-cmp-surface-bg-subtle)]",children:"Need help with the dashboard?"}),(0,h.jsx)(nr.Content,{children:(0,h.jsxs)("div",{className:"px-4 pb-3 pt-1 text-sm text-[var(--owo-cmp-text-muted)]",children:["Check out our ",(0,h.jsx)("span",{className:"font-medium text-[var(--owo-cmp-accent-bg)]",children:"documentation"})," or reach out to support. We typically respond within 2 hours during business hours."]})})]})]})]}),(0,h.jsx)(Ne,{children:(0,h.jsxs)(bt,{children:[(0,h.jsx)("h3",{className:"mb-4 font-[family-name:var(--font-headline)] text-sm font-bold",children:"Loading State Preview"}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(he,{className:"h-10 w-10 rounded-full"}),(0,h.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,h.jsx)(he,{className:"h-4 w-3/5 rounded"}),(0,h.jsx)(he,{className:"h-3 w-2/5 rounded"})]}),(0,h.jsx)(he,{className:"h-8 w-24 rounded"})]})]})})]})}function cp({theme:e,onCycleTheme:a}){let[t,o]=(0,Gt.useState)("news");return(0,h.jsx)(al,{children:(0,h.jsxs)("div",{className:"space-y-8",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--owo-cmp-surface-border)] pb-6",children:[(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)("h1",{className:"font-[family-name:var(--font-headline)] text-2xl font-extrabold tracking-tight",children:"Showcase"}),(0,h.jsx)(Qe,{content:`Switch to ${e==="light"?"dark":"light"} mode`,children:(0,h.jsx)(ee,{variant:"subtle",size:"sm",label:"Toggle theme",icon:e==="light"?(0,h.jsx)(_r,{size:16}):(0,h.jsx)(Pr,{size:16}),onClick:a})})]}),(0,h.jsx)("p",{className:"mt-1 text-sm text-[var(--owo-cmp-text-muted)]",children:"Real-world product pages built entirely with owoui components."})]}),(0,h.jsx)(Ka,{value:t,onValueChange:r=>o(r),children:(0,h.jsx)(Ka.List,{children:TS.map(r=>(0,h.jsx)(Ka.Trigger,{value:r.id,children:r.label},r.id))})})]}),t==="news"?(0,h.jsx)(DS,{}):(0,h.jsx)(zS,{})]})})}var _=y(C(),1),Sv="owoui-storybook-theme",Cv="owoui-storybook-preset";function OS(){return window.localStorage.getItem(Sv)==="dark"?"dark":"light"}function ES(){let e=window.localStorage.getItem(Cv);return pr.includes(e)?e:"default"}function HS(){let[e,a]=(0,$a.useState)(()=>window.location.hash);return(0,$a.useEffect)(()=>{let t=()=>a(window.location.hash);return window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)},[]),(0,$a.useMemo)(()=>{let t=e.replace(/^#\/?/,"");if(t==="foundations")return{page:"foundations",group:"",component:""};if(t==="showcase")return{page:"showcase",group:"",component:""};let[o="",r=""]=t.split("/");return{page:"components",group:o,component:r}},[e])}function Iv(e,a){window.location.hash=`#/${e}/${a}`}function PS({activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,setTheme:s,setPreset:l,children:n}){let i=()=>{let c=fr.indexOf(o);s(fr[(c+1)%fr.length])},u=()=>{let c=pr.indexOf(r);l(pr[(c+1)%pr.length])};return(0,_.jsxs)("div",{"data-theme":o,"data-preset":r,className:D(`owoui-theme-${o}`,`owoui-preset-${r}`,"min-h-dvh bg-[var(--owo-cmp-canvas-bg)] text-[var(--owo-cmp-text-primary)]"),children:[(0,_.jsx)(op,{activePage:e}),(0,_.jsx)("a",{href:"#sb-main",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:rounded focus:bg-[var(--owo-cmp-surface-bg)] focus:px-4 focus:py-2 focus:text-sm focus:shadow",children:"Skip to main content"}),e!=="showcase"&&(0,_.jsx)(sp,{activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,onNavigate:Iv,onCycleTheme:i,onSetPreset:l}),(0,_.jsx)("main",{id:"sb-main",className:D("min-h-screen pt-16 bg-[var(--owo-cmp-canvas-bg)]",e!=="showcase"&&"ml-64"),children:(0,_.jsx)("div",{className:"mx-auto max-w-[1400px] space-y-12 p-10",children:n})})]})}function dp(){let e=HS(),a=(0,$a.useMemo)(()=>Fr(),[]),t=(0,$a.useMemo)(()=>{let c=Gr[0],d=a[c]?.[0];return d?{group:d.group,component:d.componentId}:null},[a]),o=_f(e.group,e.component),r=o?.group??t?.group??e.group,s=o?.componentId??t?.component??e.component,[l,n]=(0,$a.useState)(()=>OS()),[i,u]=(0,$a.useState)(()=>ES());return(0,$a.useEffect)(()=>{window.localStorage.setItem(Sv,l);let c=document.documentElement;c.dataset.theme=l,c.classList.remove(...fr.map(d=>`owoui-theme-${d}`)),c.classList.add(`owoui-theme-${l}`)},[l]),(0,$a.useEffect)(()=>{window.localStorage.setItem(Cv,i);let c=document.documentElement;c.dataset.preset=i,c.classList.remove(...pr.map(d=>`owoui-preset-${d}`)),c.classList.add(`owoui-preset-${i}`)},[i]),(0,$a.useEffect)(()=>{e.page==="components"&&!o&&t&&Iv(t.group,t.component)},[e.page,o,t]),(0,_.jsx)(PS,{activePage:e.page,activeGroup:r,activeComponent:s,theme:l,preset:i,setTheme:n,setPreset:u,children:e.page==="showcase"?(0,_.jsx)(cp,{theme:l,onCycleTheme:()=>{let c=fr.indexOf(l);n(fr[(c+1)%fr.length])}}):e.page==="foundations"?(0,_.jsx)(up,{}):o?(0,_.jsx)(al,{children:(0,_.jsx)(Nu,{children:(0,_.jsxs)("div",{className:"space-y-12",children:[(0,_.jsxs)("header",{className:"space-y-4",children:[(0,_.jsxs)("nav",{className:"flex items-center gap-2 text-xs font-medium text-[var(--owo-cmp-text-muted)]",children:[(0,_.jsx)("span",{children:"Components"}),(0,_.jsx)(Er,{size:10}),(0,_.jsx)("span",{className:"font-semibold text-[var(--owo-cmp-text-primary)]",children:o.componentName})]}),(0,_.jsx)("h1",{className:"font-[family-name:var(--font-headline)] text-4xl font-extrabold tracking-tight text-[var(--owo-cmp-text-primary)]",children:o.componentName}),o.description?(0,_.jsx)("p",{className:"max-w-2xl text-lg leading-relaxed text-[var(--owo-cmp-text-muted)]",children:o.description}):null]}),o.renderPlayground&&o.props&&o.props.length>0?(0,_.jsx)(np,{props:o.props,renderPlayground:o.renderPlayground,componentName:o.componentName,defaultScale:o.defaultScale},`${o.group}-${o.componentId}`):null,o.props&&o.props.length>0?(0,_.jsxs)("section",{className:"space-y-6",children:[(0,_.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--owo-cmp-surface-border)] pb-4",children:[(0,_.jsx)("h2",{className:"font-[family-name:var(--font-headline)] text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"API Reference"}),(0,_.jsx)("span",{className:"rounded-full border border-[var(--owo-cmp-surface-border)] bg-[var(--owo-cmp-surface-bg-subtle)] px-3 py-1 font-mono text-xs text-[var(--owo-cmp-text-muted)]",children:"stable"})]}),(0,_.jsx)(ip,{props:o.props})]}):null,o.stories.length>0?(0,_.jsxs)("section",{className:"space-y-8",children:[(0,_.jsx)("h2",{className:"text-2xl font-bold text-[var(--owo-cmp-text-primary)]",children:"Usage Patterns"}),(0,_.jsx)("div",{className:"space-y-8",children:o.stories.map(c=>(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"mb-3",children:[(0,_.jsx)("h3",{className:"text-base font-semibold text-[var(--owo-cmp-text-primary)]",children:c.title}),c.description?(0,_.jsx)("p",{className:"mt-1 text-sm text-[var(--owo-cmp-text-muted)]",children:c.description}):null]}),(0,_.jsx)(lp,{story:c})]},c.id))})]}):null,(0,_.jsxs)("footer",{className:"flex flex-col gap-4 border-t border-[var(--owo-cmp-surface-border)] pb-10 pt-20 text-[11px] font-bold uppercase tracking-[0.2em] text-[var(--owo-cmp-text-muted)] md:flex-row md:items-center md:justify-between",children:[(0,_.jsx)("span",{children:"@owodesign/owoui"}),(0,_.jsxs)("div",{className:"flex gap-8",children:[(0,_.jsx)("a",{href:"#",className:"transition-colors hover:text-[var(--owo-cmp-text-primary)]",children:"Github"}),(0,_.jsx)("a",{href:"#",className:"transition-colors hover:text-[var(--owo-cmp-text-primary)]",children:"Figma"}),(0,_.jsx)("a",{href:"#",className:"transition-colors hover:text-[var(--owo-cmp-text-primary)]",children:"Roadmap"})]})]})]})})}):(0,_.jsx)("div",{className:"py-20 text-center text-sm text-[var(--owo-cmp-text-muted)]",children:(0,_.jsx)("p",{children:"Component not found."})})})}var pp=y(C(),1),Av=document.getElementById("root");if(!Av)throw new Error("Missing #root container for owoui storybook static app");var fp=qf[0];window.location.hash.length<=1&&fp&&(window.location.hash=`#/${fp.group}/${fp.componentId}`);(0,Tv.createRoot)(Av).render((0,pp.jsx)(kv.StrictMode,{children:(0,pp.jsx)(dp,{})}));
178
+ </Panel>`,render:()=>(0,j.jsxs)(Ge,{variant:"default",className:X.panelMax,children:[(0,j.jsx)(Jx,{children:(0,j.jsx)("h3",{className:X.panelHeading,children:"Panel Title"})}),(0,j.jsx)(Ht,{children:(0,j.jsx)("p",{className:X.panelTextSm,children:"This is the body content of the panel. It can contain any elements."})}),(0,j.jsx)($x,{children:(0,j.jsxs)("div",{className:X.panelFooterActions,children:[(0,j.jsx)(B,{variant:"ghost",size:"sm",children:"Cancel"}),(0,j.jsx)(B,{variant:"primary",size:"sm",children:"Confirm"})]})})]})},{id:"on-surfaces",title:"On Different Surfaces",description:"Verifies panel contrast against canvas, subtle, and inset backgrounds.",render:()=>(0,j.jsx)("div",{className:X.panelGrid,children:[{label:"Canvas",bg:"var(--owo-ref-color-surface-canvas)"},{label:"Subtle",bg:"var(--owo-ref-color-surface-subtle)"},{label:"Inset",bg:"var(--owo-ref-color-surface-inset)"}].map(({label:e,bg:a})=>(0,j.jsxs)("div",{className:X.panelSurfaceCard,style:{backgroundColor:a},children:[(0,j.jsx)("p",{className:X.panelSurfaceLabel,children:e}),(0,j.jsx)(Ge,{variant:"default",padding:"md",children:(0,j.jsx)("p",{className:X.panelTextSm,children:"Default panel"})})]},e))})},{id:"surface-not-shadow",title:"Surface, Not Shadow",description:"Dashboard-style panels should build depth with surface tokens first. The panel itself stays border-led instead of floating like a popover.",render:()=>(0,j.jsx)("div",{className:X.panelOuterSurface,children:(0,j.jsxs)("div",{className:X.panelGridLg,children:[(0,j.jsxs)(Ge,{variant:"default",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Default"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"Primary reading card."})]}),(0,j.jsxs)(Ge,{variant:"subtle",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Subtle"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"Secondary summary area."})]}),(0,j.jsxs)(Ge,{variant:"raised",padding:"md",children:[(0,j.jsx)("p",{className:X.panelTitle,children:"Raised"}),(0,j.jsx)("p",{className:X.panelTextXsMuted,children:"A slightly lifted surface with --panel-shadow."})]})]})})},{id:"padding",title:"Padding Sizes",description:"none / sm / md / lg",render:()=>(0,j.jsx)("div",{className:X.panelStack,children:["none","sm","md","lg"].map(e=>(0,j.jsx)(Ge,{variant:"default",padding:e,children:(0,j.jsxs)("span",{className:X.panelTextXsMuted,children:["padding=","\u201C",e,"\u201D"]})},e))})}]});var ht=y(ve(),1);var Rr=["light","dark"];var Or=["default","flat","elevated","glass"];var Er={};var co=y(T(),1),LS=[{id:"components",label:"Components",hash:"#/"},{id:"foundations",label:"Foundations",hash:"#/foundations"},{id:"showcase",label:"Showcase",hash:"#/showcase"}];function Nm({activePage:e="components"}){return(0,co.jsxs)("nav",{className:Er.root,children:[(0,co.jsxs)("div",{className:Er.brandRow,children:[(0,co.jsx)("a",{href:"#/",className:Er.brand,children:"owoui"}),(0,co.jsx)("div",{className:Er.tabs,children:LS.map(a=>(0,co.jsx)("a",{href:a.hash,className:I(Er.tab,a.id===e&&Er.tabActive),children:a.label},a.id))})]}),(0,co.jsx)("div",{className:Er.actions,children:(0,co.jsx)(le,{variant:"ghost",size:"md",label:"Settings",icon:(0,co.jsx)(Aa,{size:20})})})]})}var De=y(T(),1),Ee=18,xd={button:(0,De.jsx)(mn,{size:Ee}),"icon-button":(0,De.jsx)(Ks,{size:Ee}),"dropdown-menu":(0,De.jsx)(Gs,{size:Ee}),input:(0,De.jsx)(pn,{size:Ee}),field:(0,De.jsx)(kr,{size:Ee}),select:(0,De.jsx)(Bs,{size:Ee}),"segmented-control":(0,De.jsx)(Lr,{size:Ee}),switch:(0,De.jsx)(Ws,{size:Ee}),textarea:(0,De.jsx)(Ar,{size:Ee}),collapsible:(0,De.jsx)(Es,{size:Ee}),tabs:(0,De.jsx)(Hs,{size:Ee}),badge:(0,De.jsx)(js,{size:Ee}),"status-notice":(0,De.jsx)(Gt,{size:Ee}),spinner:(0,De.jsx)(Fs,{size:Ee}),skeleton:(0,De.jsx)(Mr,{size:Ee}),dialog:(0,De.jsx)(Ds,{size:Ee}),toast:(0,De.jsx)(Qs,{size:Ee}),avatar:(0,De.jsx)(wr,{size:Ee}),tooltip:(0,De.jsx)(Ir,{size:Ee}),drawer:(0,De.jsx)(Tr,{size:Ee}),panel:(0,De.jsx)(Us,{size:Ee})},wd={actions:(0,De.jsx)(mn,{size:Ee}),forms:(0,De.jsx)(pn,{size:Ee}),feedback:(0,De.jsx)(Gt,{size:Ee}),layout:(0,De.jsx)(Xs,{size:Ee})};var Fo=y(ve(),1);var Hr={};var fo=y(T(),1);function zm({onSelect:e}){let[a,t]=(0,Fo.useState)(""),o=(0,Fo.useRef)(null),r=(0,Fo.useMemo)(()=>dl(),[]),l=(0,Fo.useMemo)(()=>{if(!a.trim())return[];let n=a.toLowerCase(),s=[];for(let i of cl)for(let u of r[i])(u.componentName.toLowerCase().includes(n)||u.componentId.includes(n))&&s.push(u);return s},[a,r]);return(0,Fo.useEffect)(()=>{let n=s=>{(s.metaKey||s.ctrlKey)&&s.key==="k"&&(s.preventDefault(),o.current?.querySelector("input")?.focus())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[]),(0,fo.jsxs)("div",{ref:o,className:Hr.root,children:[(0,fo.jsx)(il,{size:14,className:Hr.icon}),(0,fo.jsx)(Me,{type:"text",value:a,onChange:n=>t(n.target.value),placeholder:"Quick search...",className:I("sb-search-input",Hr.input)}),a.trim()&&l.length>0?(0,fo.jsx)("div",{className:Hr.results,children:l.map(n=>(0,fo.jsxs)("button",{type:"button",className:Hr.result,onClick:()=>{e(n.group,n.componentId),t("")},children:[(0,fo.jsx)("span",{children:xd[n.componentId]??wd[n.group]}),(0,fo.jsx)("span",{className:Hr.resultName,children:n.componentName}),(0,fo.jsx)("span",{className:Hr.resultGroup,children:ai[n.group]})]},`${n.group}-${n.componentId}`))}):null]})}var Ua={};var _e=y(T(),1);function IS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Bm({activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,onNavigate:l,onCycleTheme:n,onSetPreset:s}){let i=dl();return(0,_e.jsxs)("aside",{className:I("sb-sidebar",Ua.root),style:{height:"calc(100dvh - 4rem)"},children:[(0,_e.jsxs)("div",{className:Ua.topArea,children:[(0,_e.jsx)(zm,{onSelect:l}),(0,_e.jsxs)("div",{className:Ua.themeRow,children:[(0,_e.jsx)(le,{variant:"subtle",size:"sm",label:`Switch to ${o==="light"?"dark":"light"} theme`,icon:o==="light"?(0,_e.jsx)(ul,{size:14}):(0,_e.jsx)(nl,{size:14}),onClick:n,className:"sb-theme-toggle"}),(0,_e.jsx)(Ye,{value:r,onChange:u=>s(u),options:Or.map(u=>({value:u,label:IS(u)})),size:"sm",ariaLabel:"Preset",className:I("sb-sidebar-select",Ua.presetSelect)})]})]}),e==="foundations"?(0,_e.jsx)("div",{className:Ua.foundationsNote,children:(0,_e.jsx)("p",{children:"Switch theme and preset above to see how design tokens adapt across contexts."})}):(0,_e.jsx)("div",{className:Ua.groups,children:cl.map(u=>(0,_e.jsxs)("div",{children:[(0,_e.jsx)("span",{className:Ua.groupLabel,children:ai[u]}),(0,_e.jsx)("div",{className:Ua.groupItems,children:i[u].map(d=>{let m=d.group===a&&d.componentId===t;return(0,_e.jsxs)("a",{href:`#/${d.group}/${d.componentId}`,onClick:c=>{c.preventDefault(),l(d.group,d.componentId)},title:d.componentName,className:I(Ua.navItem,m&&Ua.navItemActive),children:[(0,_e.jsx)("span",{className:Ua.navItemIcon,children:xd[d.componentId]??wd[u]}),(0,_e.jsx)("span",{className:Ua.navItemLabel,children:d.componentName})]},d.componentId)})})]},u))}),(0,_e.jsx)("div",{className:Ua.footer,children:(0,_e.jsxs)("a",{href:"#",className:Ua.footerLink,children:[(0,_e.jsx)(_t,{size:18}),(0,_e.jsx)("span",{children:"Support"})]})})]})}var hi=y(ve(),1);var kn={};var gt=y(T(),1);function Rm({story:e}){let[a,t]=(0,hi.useState)(!1),[o,r]=(0,hi.useState)(!1);(0,hi.useEffect)(()=>{if(!o)return;let n=setTimeout(()=>r(!1),1500);return()=>clearTimeout(n)},[o]);let l=!!e.source;return(0,gt.jsxs)("div",{className:kn.root,children:[(0,gt.jsx)("div",{className:I("sb-dot-grid",kn.preview),style:{minHeight:120},children:(0,gt.jsx)("div",{className:kn.previewInner,children:e.render()})}),l?(0,gt.jsxs)("div",{className:kn.toolbar,children:[(0,gt.jsx)(B,{variant:a?"secondary":"ghost",size:"sm",leadingIcon:(0,gt.jsx)(yr,{size:12}),onClick:()=>t(n=>!n),className:"sb-code-toggle",children:"Code"}),a?(0,gt.jsx)(B,{variant:"ghost",size:"sm",leadingIcon:o?(0,gt.jsx)(rl,{size:12}):(0,gt.jsx)(ll,{size:12}),onClick:async()=>{e.source&&(await navigator.clipboard.writeText(e.source),r(!0))},className:"sb-code-toggle",children:o?"Copied":"Copy"}):null]}):null,l&&a?(0,gt.jsx)("pre",{className:kn.codeBlock,children:(0,gt.jsx)("code",{children:e.source})}):null]})}var Kt=y(ve(),1);var ca={};var me=y(T(),1),MS=/^'[^']+'\s*(\s*\|\s*'[^']+')+$/;function AS(e){let a=e.trim();return MS.test(a)?{controlType:"select",options:[...a.matchAll(/'([^']+)'/g)].map(t=>t[1])}:a==="boolean"?{controlType:"boolean"}:a==="string"?{controlType:"string"}:a==="number"?{controlType:"number"}:{controlType:"skip"}}function DS(e,a,t){if(e===void 0||e==="")return a==="boolean"?!1:a==="select"&&t?.length?t[0]:a==="number"?0:"";let o=e.trim();return a==="boolean"?o==="true":a==="number"?Number(o)||0:/^['"].*['"]$/.test(o)?o.slice(1,-1):o}function NS(e){return e.flatMap(a=>{let{controlType:t,options:o}=AS(a.type);return t==="skip"?[]:[{name:a.name,controlType:t,options:o,defaultValue:DS(a.default,t,o),description:a.description}]})}function rw(e){return e.charAt(0).toUpperCase()+e.slice(1)}function zS(e){let a=[];for(let t of e)if(t.controlType==="boolean"){let o=a[a.length-1];if(o?.type==="boolean"){o.controls.push(t);continue}a.push({type:"boolean",controls:[t]})}else a.push({type:"other",controls:[t]});return a}function ew({control:e,value:a,onChange:t}){switch(e.controlType){case"select":return(0,me.jsx)(Ye,{value:String(a),onChange:o=>t(o),options:(e.options??[]).map(o=>({value:o,label:rw(o)})),size:"md",ariaLabel:e.name,className:ca.fullWidth});case"boolean":return(0,me.jsx)(Na,{checked:!!a,onChange:o=>t(o),size:"sm",ariaLabel:e.name});case"string":return(0,me.jsx)(Me,{type:"text",value:String(a??""),onChange:o=>t(o.target.value),placeholder:e.name});case"number":return(0,me.jsx)(Me,{type:"number",value:Number(a)||0,onChange:o=>t(Number(o.target.value)||0),className:ca.numberInput});default:return null}}var aw=.25,tw=.5,ow=5;function Om({props:e,renderPlayground:a,componentName:t,defaultScale:o=1}){let r=(0,Kt.useMemo)(()=>NS(e),[e]),l=(0,Kt.useMemo)(()=>{let v={};for(let w of r)v[w.name]=w.defaultValue;return v},[r]),[n,s]=(0,Kt.useState)(l),[i,u]=(0,Kt.useState)(o),[d,m]=(0,Kt.useState)(!1);(0,Kt.useEffect)(()=>{s(l)},[l]),(0,Kt.useEffect)(()=>{if(!d)return;let v=setTimeout(()=>m(!1),1500);return()=>clearTimeout(v)},[d]);let c=(v,w)=>s(D=>({...D,[v]:w})),g=(0,Kt.useMemo)(()=>{let v=Object.entries(n).filter(([,w])=>w!==""&&w!==!1&&w!==void 0).map(([w,D])=>typeof D=="boolean"?D?w:null:typeof D=="number"?`${w}={${D}}`:`${w}="${D}"`).filter(Boolean).join(" ");return`<${t}${v?` ${v}`:""} />`},[n,t]);return(0,me.jsxs)("section",{className:ca.root,children:[(0,me.jsx)("div",{className:ca.previewColumn,children:(0,me.jsxs)("div",{className:I("sb-dot-grid",ca.preview),style:{height:500},children:[(0,me.jsx)("div",{className:ca.previewContent,style:{transform:`scale(${i})`},children:a(n,c)}),(0,me.jsxs)("div",{className:ca.floatingControls,children:[(0,me.jsx)(le,{variant:"ghost",size:"sm",label:"Zoom out",icon:(0,me.jsx)(Vs,{size:16}),className:"sb-glass-btn",disabled:i<=tw,onClick:()=>u(v=>Math.max(tw,+(v-aw).toFixed(2)))}),(0,me.jsxs)("span",{className:ca.zoomLabel,children:[Math.round(i*100),"%"]}),(0,me.jsx)(le,{variant:"ghost",size:"sm",label:"Zoom in",icon:(0,me.jsx)(no,{size:16}),className:"sb-glass-btn",disabled:i>=ow,onClick:()=>u(v=>Math.min(ow,+(v+aw).toFixed(2)))}),(0,me.jsx)(le,{variant:"ghost",size:"sm",label:"Reset",icon:(0,me.jsx)(sl,{size:16}),className:"sb-glass-btn",onClick:()=>{s(l),u(o)}})]})]})}),(0,me.jsxs)("div",{className:I("sb-controls",ca.controlsPanel),children:[(0,me.jsxs)("h3",{className:ca.controlsHeading,children:[(0,me.jsx)(Ys,{size:14,className:ca.headingIcon}),"CONTROLS"]}),(0,me.jsx)("div",{className:ca.controlsList,children:zS(r).map(v=>v.type==="boolean"?(0,me.jsx)("div",{className:ca.booleanGroup,children:v.controls.map(w=>(0,me.jsxs)("div",{className:ca.booleanRow,children:[(0,me.jsx)("span",{className:ca.booleanLabel,children:rw(w.name)}),(0,me.jsx)(ew,{control:w,value:n[w.name],onChange:D=>c(w.name,D)})]},w.name))},v.controls[0].name):(0,me.jsxs)("div",{className:ca.fieldGroup,children:[(0,me.jsx)("label",{className:ca.fieldLabel,children:v.controls[0].name}),(0,me.jsx)(ew,{control:v.controls[0],value:n[v.controls[0].name],onChange:w=>c(v.controls[0].name,w)})]},v.controls[0].name))}),(0,me.jsx)(B,{variant:"primary",size:"md",leadingIcon:d?(0,me.jsx)(rl,{size:14}):(0,me.jsx)(ll,{size:14}),onClick:async()=>{await navigator.clipboard.writeText(g),m(!0)},className:I("sb-copy-btn",ca.copyButton),children:d?"Copied!":"Copy Code"})]})]})}var et={};var Oa=y(T(),1);function Em({props:e}){return(0,Oa.jsx)("div",{className:et.root,children:(0,Oa.jsxs)("table",{className:et.table,children:[(0,Oa.jsx)("thead",{children:(0,Oa.jsxs)("tr",{className:et.headRow,children:[(0,Oa.jsx)("th",{className:et.headCell,children:"Property"}),(0,Oa.jsx)("th",{className:et.headCell,children:"Type"}),(0,Oa.jsx)("th",{className:et.headCell,children:"Default"}),(0,Oa.jsx)("th",{className:et.headCell,children:"Description"})]})}),(0,Oa.jsx)("tbody",{className:et.body,children:e.map(a=>(0,Oa.jsxs)("tr",{className:et.bodyRow,children:[(0,Oa.jsx)("td",{className:et.nameCell,children:a.name}),(0,Oa.jsx)("td",{className:et.typeCell,children:a.type}),(0,Oa.jsx)("td",{className:et.defaultCell,children:a.default??"\u2014"}),(0,Oa.jsx)("td",{className:et.descriptionCell,children:a.description??""})]},a.name))})]})})}var G={};var F=y(T(),1),OS=[{label:"Canvas & Surface",tokens:[{name:"canvas-bg",var:"--owo-cmp-canvas-bg"},{name:"canvas-bg-subtle",var:"--owo-cmp-canvas-bg-subtle"},{name:"surface-bg",var:"--owo-cmp-surface-bg"},{name:"surface-bg-subtle",var:"--owo-cmp-surface-bg-subtle"},{name:"surface-bg-raised",var:"--owo-cmp-surface-bg-raised"},{name:"surface-bg-inset",var:"--owo-cmp-surface-bg-inset"},{name:"surface-container",var:"--owo-cmp-surface-container"},{name:"surface-container-high",var:"--owo-cmp-surface-container-high"},{name:"surface-container-highest",var:"--owo-cmp-surface-container-highest"}]},{label:"Border",tokens:[{name:"surface-border",var:"--owo-cmp-surface-border"},{name:"surface-border-muted",var:"--owo-cmp-surface-border-muted"},{name:"surface-border-strong",var:"--owo-cmp-surface-border-strong"}]},{label:"Text",tokens:[{name:"text-primary",var:"--owo-cmp-text-primary"},{name:"text-secondary",var:"--owo-cmp-text-secondary"},{name:"text-muted",var:"--owo-cmp-text-muted"},{name:"text-on-accent",var:"--owo-cmp-text-on-accent"}]},{label:"Accent",tokens:[{name:"accent-bg",var:"--owo-cmp-accent-bg"},{name:"accent-bg-hover",var:"--owo-cmp-accent-bg-hover"},{name:"accent-bg-muted",var:"--owo-cmp-accent-bg-muted"},{name:"accent-border",var:"--owo-cmp-accent-border"}]},{label:"Status",tokens:[{name:"success-bg",var:"--owo-cmp-success-bg"},{name:"success-border",var:"--owo-cmp-success-border"},{name:"success-text",var:"--owo-cmp-success-text"},{name:"warning-bg",var:"--owo-cmp-warning-bg"},{name:"warning-border",var:"--owo-cmp-warning-border"},{name:"warning-text",var:"--owo-cmp-warning-text"},{name:"danger-bg",var:"--owo-cmp-danger-bg"},{name:"danger-border",var:"--owo-cmp-danger-border"},{name:"danger-text",var:"--owo-cmp-danger-text"},{name:"info-bg",var:"--owo-cmp-info-bg"},{name:"info-border",var:"--owo-cmp-info-border"},{name:"info-text",var:"--owo-cmp-info-text"}]}],ES=[{name:"sm",var:"--owo-cmp-control-radius-sm"},{name:"md",var:"--owo-cmp-control-radius-md"},{name:"lg",var:"--owo-cmp-control-radius-lg"},{name:"xl",var:"--owo-cmp-control-radius-xl"},{name:"2xl",var:"--owo-cmp-control-radius-2xl"},{name:"full",var:"--owo-cmp-control-radius-full"}],HS=[{name:"xs",var:"--owo-cmp-control-height-xs"},{name:"sm",var:"--owo-cmp-control-height-sm"},{name:"md",var:"--owo-cmp-control-height-md"},{name:"lg",var:"--owo-cmp-control-height-lg"},{name:"xl",var:"--owo-cmp-control-height-xl"}],PS=[{name:"raised",var:"--owo-cmp-surface-shadow"},{name:"popover",var:"--owo-cmp-surface-shadow-strong"}];function qS({name:e,cssVar:a}){return(0,F.jsxs)("div",{className:G.swatchRow,children:[(0,F.jsx)("div",{className:G.swatch,style:{backgroundColor:`var(${a})`}}),(0,F.jsxs)("div",{className:G.swatchMeta,children:[(0,F.jsx)("div",{className:G.swatchName,children:e}),(0,F.jsx)("div",{className:G.swatchVar,children:a})]})]})}function Hm(){return(0,F.jsxs)("div",{className:G.root,children:[(0,F.jsxs)("header",{className:G.header,children:[(0,F.jsx)("h1",{className:G.title,children:"Foundations"}),(0,F.jsx)("p",{className:G.description,children:"Design tokens that define the visual language. Switch theme and preset to see how values adapt across contexts."})]}),(0,F.jsxs)("section",{className:G.section,children:[(0,F.jsx)("h2",{className:G.sectionTitle,children:"Colors"}),OS.map(e=>(0,F.jsxs)("div",{children:[(0,F.jsx)("h3",{className:G.groupTitle,children:e.label}),(0,F.jsx)("div",{className:G.colorGrid,children:e.tokens.map(a=>(0,F.jsx)(qS,{name:a.name,cssVar:a.var},a.var))})]},e.label))]}),(0,F.jsxs)("section",{className:G.section,children:[(0,F.jsx)("h2",{className:G.sectionTitle,children:"Typography"}),(0,F.jsxs)("div",{className:G.card,children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:G.tokenLabel,children:"Sans (--owo-ref-font-sans)"}),(0,F.jsx)("p",{className:G.samplePrimary,style:{fontFamily:"var(--owo-ref-font-sans)"},children:"The quick brown fox jumps over the lazy dog"})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:G.tokenLabel,children:"Heading (--owo-ref-font-heading)"}),(0,F.jsx)("p",{className:G.samplePrimary,style:{fontFamily:"var(--owo-ref-font-heading)"},children:"The quick brown fox jumps over the lazy dog"})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:G.tokenLabel,children:"Mono (--owo-ref-font-mono)"}),(0,F.jsx)("p",{className:G.sampleSecondary,style:{fontFamily:"var(--owo-ref-font-mono)"},children:"const token = 'design-system';"})]}),(0,F.jsxs)("div",{className:G.scaleBlock,children:[(0,F.jsx)("div",{className:G.tokenLabel,children:"Scale"}),(0,F.jsx)("div",{className:G.scaleList,children:[{label:"text-xs",size:"0.75rem"},{label:"text-sm",size:"0.875rem"},{label:"text-base",size:"1rem"},{label:"text-lg",size:"1.125rem"},{label:"text-xl",size:"1.25rem"},{label:"text-2xl",size:"1.5rem"},{label:"text-3xl",size:"1.875rem"},{label:"text-4xl",size:"2.25rem"}].map(e=>(0,F.jsxs)("div",{className:G.scaleRow,children:[(0,F.jsx)("span",{className:G.scaleKey,children:e.label}),(0,F.jsx)("span",{style:{fontSize:e.size,color:"var(--owo-cmp-text-primary)"},children:"Aa"})]},e.label))})]})]})]}),(0,F.jsxs)("section",{className:G.section,children:[(0,F.jsx)("h2",{className:G.sectionTitle,children:"Border Radius"}),(0,F.jsx)("div",{className:G.radiusGrid,children:ES.map(e=>(0,F.jsxs)("div",{className:G.tokenCard,children:[(0,F.jsx)("div",{className:G.radiusSample,style:{borderRadius:`var(${e.var})`}}),(0,F.jsx)("div",{className:G.tokenName,children:e.name}),(0,F.jsx)("div",{className:G.tokenVar,children:e.var})]},e.var))})]}),(0,F.jsxs)("section",{className:G.section,children:[(0,F.jsx)("h2",{className:G.sectionTitle,children:"Control Heights"}),(0,F.jsx)("div",{className:G.heightGrid,children:HS.map(e=>(0,F.jsxs)("div",{className:G.tokenCard,children:[(0,F.jsx)("div",{className:G.heightRail,children:(0,F.jsx)("div",{className:G.heightSample,style:{height:`var(${e.var})`},children:"Aa"})}),(0,F.jsx)("div",{className:G.tokenName,children:e.name}),(0,F.jsx)("div",{className:G.tokenVar,children:e.var})]},e.var))})]}),(0,F.jsxs)("section",{className:G.section,children:[(0,F.jsx)("h2",{className:G.sectionTitle,children:"Shadows"}),(0,F.jsx)("div",{className:G.shadowGrid,children:PS.map(e=>(0,F.jsxs)("div",{className:G.tokenCard,children:[(0,F.jsx)("div",{className:G.shadowSample,style:{boxShadow:`var(${e.var})`}}),(0,F.jsx)("div",{className:G.tokenName,children:e.name}),(0,F.jsx)("div",{className:G.tokenVar,children:e.var})]},e.var))})]})]})}var mo=y(ve(),1);var M={};var h=y(T(),1),FS=[{id:"news",label:"News Portal"},{id:"dashboard",label:"Analytics Dashboard"}],GS=[{id:1,category:"Technology",title:"AI-Powered Code Assistants Are Reshaping How Teams Build Software",excerpt:"A look at how development teams are integrating AI tools into their daily workflows, and what it means for productivity and code quality.",author:"Sarah Chen",date:"Mar 25, 2026",readTime:"8 min read",comments:42,likes:187,image:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"},{id:2,category:"Design",title:"The Rise of Design Tokens: Building Consistent UI at Scale",excerpt:"Design tokens are becoming the foundation of modern design systems. Here is why your team should adopt them.",author:"Marcus Webb",date:"Mar 24, 2026",readTime:"5 min read",comments:18,likes:94,image:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"},{id:3,category:"Engineering",title:"Zero-Downtime Deployments: Lessons From Running 10K Services",excerpt:"Practical strategies for achieving zero-downtime deployments at scale, drawn from real production incidents.",author:"Priya Patel",date:"Mar 23, 2026",readTime:"12 min read",comments:67,likes:312,image:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)"},{id:4,category:"Open Source",title:"How Small Teams Maintain Popular Open Source Projects",excerpt:"Interviews with maintainers of widely-used libraries about sustainable open source practices.",author:"Tom\xE1s Rivera",date:"Mar 22, 2026",readTime:"6 min read",comments:23,likes:156,image:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)"}],_S=[{title:"WebAssembly 3.0 Proposal Reaches Stage 3",comments:89},{title:"React 20 Introduces Server-First Architecture",comments:234},{title:"TypeScript 6.0 Adds Pattern Matching",comments:156},{title:"Rust Overtakes Java in Stack Overflow Survey",comments:312},{title:"GitHub Copilot X Now Free for Open Source",comments:178}];function VS(){let[e,a]=(0,mo.useState)("latest"),[t,o]=(0,mo.useState)(new Set),[r,l]=(0,mo.useState)(!1),n=ii(),s=i=>{o(u=>{let d=new Set(u);return d.has(i)?(d.delete(i),n.info("Removed from bookmarks")):(d.add(i),n.success("Saved to bookmarks")),d})};return(0,h.jsxs)("div",{className:M.sectionStack,children:[(0,h.jsxs)("header",{className:M.pageHeader,children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:M.headline,children:"The Daily Byte"}),(0,h.jsx)("p",{className:I(M.subtleText,M.metaLine),children:"Your curated tech news, every morning."})]}),(0,h.jsxs)("div",{className:M.headerActions,children:[(0,h.jsx)(na,{content:"Search articles",children:(0,h.jsx)(le,{variant:"subtle",size:"md",label:"Search",icon:(0,h.jsx)(il,{size:18}),onClick:()=>l(!0)})}),(0,h.jsx)(na,{content:"Notifications",children:(0,h.jsx)(le,{variant:"subtle",size:"md",label:"Notifications",icon:(0,h.jsx)(Ns,{size:18})})}),(0,h.jsxs)(ee,{children:[(0,h.jsx)(ee.Trigger,{children:(0,h.jsxs)("button",{type:"button",className:M.userMenuTrigger,children:[(0,h.jsx)(La,{name:"Alex Chen",size:"sm"}),(0,h.jsx)(ua,{size:14,className:M.mutedIcon})]})}),(0,h.jsxs)(ee.Content,{children:[(0,h.jsx)(ee.Item,{onSelect:()=>{},children:"Profile"}),(0,h.jsx)(ee.Item,{onSelect:()=>{},children:"Settings"}),(0,h.jsx)(ee.Separator,{}),(0,h.jsx)(ee.Item,{destructive:!0,onSelect:()=>{},children:"Sign out"})]})]})]})]}),(0,h.jsxs)(se,{open:r,onClose:()=>l(!1),children:[(0,h.jsx)(se.Header,{children:"Search Articles"}),(0,h.jsx)(se.Body,{children:(0,h.jsx)(Nt,{label:"Keywords",children:(0,h.jsx)(Me,{type:"text",placeholder:"Search by title, author, or topic..."})})}),(0,h.jsxs)(se.Footer,{children:[(0,h.jsx)(B,{variant:"ghost",onClick:()=>l(!1),children:"Cancel"}),(0,h.jsx)(B,{variant:"primary",onClick:()=>l(!1),children:"Search"})]})]}),(0,h.jsx)(Fe,{tone:"info",title:"Breaking",children:"React 20 just dropped with a brand-new server-first architecture. Read the announcement \u2192"}),(0,h.jsxs)("div",{className:M.contentGrid,children:[(0,h.jsxs)("div",{className:I(M.mainColumn,M.stack6,M.newsMainColumn),children:[(0,h.jsxs)("div",{className:M.toolbar,children:[(0,h.jsx)(bn,{value:e,onChange:i=>a(i),options:[{value:"latest",label:"Latest"},{value:"popular",label:"Popular"}],ariaLabel:"Feed type"}),(0,h.jsx)(B,{variant:"ghost",size:"sm",leadingIcon:(0,h.jsx)(sl,{size:14}),children:"Refresh"})]}),(0,h.jsx)("div",{className:M.stack5,children:GS.map(i=>(0,h.jsx)(Ge,{children:(0,h.jsxs)("div",{className:M.newsArticleCard,children:[(0,h.jsx)("div",{className:M.newsArticleImage,style:{background:i.image}}),(0,h.jsxs)("div",{className:M.newsArticleBody,children:[(0,h.jsxs)("div",{className:M.newsArticleMeta,children:[(0,h.jsx)(Ce,{tone:"info",children:i.category}),(0,h.jsx)("span",{className:M.newsMetaText,children:i.date})]}),(0,h.jsx)("h3",{className:M.newsArticleTitle,children:i.title}),(0,h.jsx)("p",{className:M.newsArticleExcerpt,children:i.excerpt}),(0,h.jsxs)("div",{className:M.newsArticleFooter,children:[(0,h.jsxs)("div",{className:M.newsAuthorRow,children:[(0,h.jsxs)("span",{className:M.newsAuthorInline,children:[(0,h.jsx)(La,{name:i.author,size:"xs"}),i.author]}),(0,h.jsxs)("span",{className:M.newsAuthorInline,children:[(0,h.jsx)(fn,{size:12}),i.readTime]})]}),(0,h.jsxs)("div",{className:M.newsIconRow,children:[(0,h.jsx)(na,{content:`${i.likes} likes`,children:(0,h.jsx)(le,{variant:"ghost",size:"sm",label:"Like",icon:(0,h.jsx)(qs,{size:14})})}),(0,h.jsx)(na,{content:`${i.comments} comments`,children:(0,h.jsx)(le,{variant:"ghost",size:"sm",label:"Comments",icon:(0,h.jsx)(_s,{size:14})})}),(0,h.jsx)(na,{content:t.has(i.id)?"Remove bookmark":"Bookmark",children:(0,h.jsx)(le,{variant:t.has(i.id)?"subtle":"ghost",size:"sm",label:"Bookmark",icon:(0,h.jsx)(zs,{size:14}),onClick:()=>s(i.id)})}),(0,h.jsx)(na,{content:"Share",children:(0,h.jsx)(le,{variant:"ghost",size:"sm",label:"Share",icon:(0,h.jsx)(Zs,{size:14})})})]})]})]})]})},i.id))}),(0,h.jsx)("div",{className:M.centerRow,children:(0,h.jsx)(B,{variant:"secondary",trailingIcon:(0,h.jsx)(br,{size:14}),children:"Load More Articles"})})]}),(0,h.jsxs)("aside",{className:M.sidebarColumn,children:[(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{children:[(0,h.jsx)("h3",{className:M.panelHeader,children:"Trending Now"}),(0,h.jsx)("div",{className:M.simpleStack,children:_S.map((i,u)=>(0,h.jsxs)("div",{className:M.activityRow,children:[(0,h.jsx)("span",{className:M.metaText,children:String(u+1).padStart(2,"0")}),(0,h.jsxs)("div",{className:M.activityMeta,children:[(0,h.jsx)("p",{className:M.activityText,children:i.title}),(0,h.jsxs)("span",{className:M.metaText,children:[i.comments," comments"]})]})]},i.title))})]})}),(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{className:M.simpleStack,children:[(0,h.jsx)("h3",{className:M.panelHeader,children:"Subscribe to Newsletter"}),(0,h.jsx)("p",{className:M.metaText,children:"Get the top stories delivered to your inbox every morning."}),(0,h.jsx)(Nt,{label:"Email",children:(0,h.jsx)(Me,{type:"email",placeholder:"you@example.com"})}),(0,h.jsx)(B,{variant:"primary",className:M.fullWidth,children:"Subscribe"})]})}),(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{children:[(0,h.jsx)("h3",{className:M.panelHeader,children:"Popular Topics"}),(0,h.jsx)("div",{className:M.simpleStack,children:["React","TypeScript","Rust","AI/ML","DevOps","Open Source","Web3","Design Systems"].map(i=>(0,h.jsx)(Ce,{tone:"neutral",children:i},i))})]})})]})]})]})}var XS=[{label:"Total Revenue",value:"$84,230",change:"+12.5%",up:!0,icon:(0,h.jsx)(Rs,{size:16})},{label:"Active Users",value:"14,892",change:"+8.1%",up:!0,icon:(0,h.jsx)(gn,{size:16})},{label:"Conversion Rate",value:"3.24%",change:"-0.4%",up:!1,icon:(0,h.jsx)($s,{size:16})},{label:"Avg. Session",value:"4m 32s",change:"+18.2%",up:!0,icon:(0,h.jsx)(fn,{size:16})}],ZS=[{user:"Emma Wilson",action:"completed onboarding",time:"2 min ago"},{user:"Liam Zhang",action:"upgraded to Pro plan",time:"15 min ago"},{user:"Olivia Brown",action:"submitted a support ticket",time:"32 min ago"},{user:"Noah Garcia",action:"exported analytics report",time:"1 hr ago"},{user:"Ava Martinez",action:"invited 3 team members",time:"2 hr ago"}],YS=[{name:"API Gateway",status:"healthy",latency:"23ms",uptime:"99.98%"},{name:"Auth Service",status:"healthy",latency:"12ms",uptime:"99.99%"},{name:"Payment Service",status:"degraded",latency:"340ms",uptime:"99.87%"},{name:"Search Engine",status:"healthy",latency:"45ms",uptime:"99.95%"},{name:"Email Worker",status:"healthy",latency:"89ms",uptime:"99.92%"}];function QS(){let[e,a]=(0,mo.useState)("7d"),[t,o]=(0,mo.useState)(!1),[r,l]=(0,mo.useState)(!1),[n,s]=(0,mo.useState)(!0),[i,u]=(0,mo.useState)("30"),d=ii();return(0,h.jsxs)("div",{className:M.showcaseStack,children:[(0,h.jsxs)("header",{className:M.pageHeader,children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:M.headline,children:"Dashboard"}),(0,h.jsxs)("p",{className:I(M.subtleText,M.metaLine),children:["Last updated 2 minutes ago",(0,h.jsx)(qa,{variant:"arc",size:"xs",className:M.mutedIcon})]})]}),(0,h.jsxs)("div",{className:M.headerActions,children:[(0,h.jsx)(Ye,{value:e,onChange:a,options:[{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"},{value:"90d",label:"Last 90 days"}],ariaLabel:"Time period",size:"sm"}),(0,h.jsx)(na,{content:"Dashboard settings",children:(0,h.jsx)(le,{variant:"subtle",size:"md",label:"Settings",icon:(0,h.jsx)(Aa,{size:18}),onClick:()=>o(!0)})}),(0,h.jsx)(B,{variant:"primary",size:"sm",leadingIcon:(0,h.jsx)(no,{size:14}),children:"New Report"})]})]}),(0,h.jsxs)(se,{open:t,onClose:()=>o(!1),children:[(0,h.jsx)(se.Header,{children:"Dashboard Settings"}),(0,h.jsx)(se.Body,{children:(0,h.jsxs)("div",{className:M.stack5,children:[(0,h.jsxs)("div",{className:M.dialogSettingRow,children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:M.dialogSettingTitle,children:"Auto-refresh"}),(0,h.jsx)("div",{className:M.dialogSettingHint,children:"Automatically refresh data"})]}),(0,h.jsx)(Na,{checked:n,onChange:s,ariaLabel:"Auto refresh"})]}),(0,h.jsx)(Nt,{label:"Refresh Interval",children:(0,h.jsx)(Ye,{value:i,onChange:u,options:[{value:"10",label:"Every 10 seconds"},{value:"30",label:"Every 30 seconds"},{value:"60",label:"Every minute"}],ariaLabel:"Refresh interval"})}),(0,h.jsxs)("div",{className:M.dialogSettingRow,children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:M.dialogSettingTitle,children:"Dark Charts"}),(0,h.jsx)("div",{className:M.dialogSettingHint,children:"Use dark palette for chart fills"})]}),(0,h.jsx)(Na,{checked:r,onChange:l,ariaLabel:"Dark charts"})]})]})}),(0,h.jsxs)(se.Footer,{children:[(0,h.jsx)(B,{variant:"ghost",onClick:()=>o(!1),children:"Cancel"}),(0,h.jsx)(B,{variant:"primary",onClick:()=>{o(!1),d.success("Settings saved")},children:"Save"})]})]}),(0,h.jsx)(Fe,{tone:"warning",title:"Service degradation detected",children:"Payment Service latency is elevated (340ms avg). The team is investigating."}),(0,h.jsx)("section",{className:M.contentGrid,children:XS.map(m=>(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{className:M.metricBody,children:[(0,h.jsxs)("div",{className:M.metricHeaderRow,children:[(0,h.jsx)("span",{className:M.metricLabel,children:m.label}),(0,h.jsx)("span",{className:M.metricIcon,children:m.icon})]}),(0,h.jsxs)("div",{className:M.metricValueRow,children:[(0,h.jsx)("span",{className:M.metricValue,children:m.value}),(0,h.jsx)(Ce,{tone:m.up?"success":"danger",children:m.change})]})]})},m.label))}),(0,h.jsxs)("div",{className:M.contentGrid,children:[(0,h.jsxs)("div",{className:M.mainColumn,children:[(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{className:M.stack5,children:[(0,h.jsxs)("div",{className:M.chartHeader,children:[(0,h.jsx)("h2",{className:M.sectionTitle,children:"Revenue Overview"}),(0,h.jsxs)(ee,{children:[(0,h.jsx)(ee.Trigger,{children:(0,h.jsx)(le,{variant:"ghost",size:"sm",label:"Chart options",icon:(0,h.jsx)(Cr,{size:14})})}),(0,h.jsxs)(ee.Content,{children:[(0,h.jsx)(ee.Item,{onSelect:()=>d.success("Report exported"),children:"Export CSV"}),(0,h.jsx)(ee.Item,{onSelect:()=>{},children:"Full screen"})]})]})]}),(0,h.jsx)("div",{className:M.chartArea,children:[40,65,45,80,55,90,70,95,60,85,75,88].map((m,c)=>(0,h.jsx)("div",{className:M.chartBar,style:{height:`${m}%`,background:"var(--owo-cmp-accent-bg)",opacity:.3+m/100*.7}},c))}),(0,h.jsxs)("div",{className:M.chartXAxis,children:[(0,h.jsx)("span",{children:"Jan"}),(0,h.jsx)("span",{children:"Feb"}),(0,h.jsx)("span",{children:"Mar"}),(0,h.jsx)("span",{children:"Apr"}),(0,h.jsx)("span",{children:"May"}),(0,h.jsx)("span",{children:"Jun"}),(0,h.jsx)("span",{children:"Jul"}),(0,h.jsx)("span",{children:"Aug"}),(0,h.jsx)("span",{children:"Sep"}),(0,h.jsx)("span",{children:"Oct"}),(0,h.jsx)("span",{children:"Nov"}),(0,h.jsx)("span",{children:"Dec"})]})]})}),(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{children:[(0,h.jsxs)("div",{className:M.serviceHeader,children:[(0,h.jsx)("h2",{className:M.sectionTitle,children:"Service Health"}),(0,h.jsx)(B,{variant:"ghost",size:"sm",leadingIcon:(0,h.jsx)(Os,{size:12}),children:"Status Page"})]}),(0,h.jsx)("div",{className:M.serviceList,children:YS.map(m=>(0,h.jsxs)("div",{className:M.serviceRow,children:[(0,h.jsxs)("div",{className:M.serviceMeta,children:[(0,h.jsx)("div",{className:M.serviceDot,style:{backgroundColor:m.status==="healthy"?"var(--owo-cmp-success-bg)":"var(--owo-cmp-warning-bg)"}}),(0,h.jsx)("span",{className:M.serviceName,children:m.name})]}),(0,h.jsxs)("div",{className:M.serviceStats,children:[(0,h.jsx)("span",{children:m.latency}),(0,h.jsx)("span",{children:m.uptime}),(0,h.jsx)(Ce,{tone:m.status==="healthy"?"success":"warning",children:m.status})]})]},m.name))})]})})]}),(0,h.jsxs)("aside",{className:M.sidebarColumn,children:[(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{children:[(0,h.jsx)("h3",{className:M.panelHeader,children:"Recent Activity"}),(0,h.jsx)("div",{className:M.simpleStack,children:ZS.map((m,c)=>(0,h.jsxs)("div",{className:M.activityRow,children:[(0,h.jsx)(La,{name:m.user,size:"sm"}),(0,h.jsxs)("div",{className:M.activityMeta,children:[(0,h.jsxs)("p",{className:M.activityText,children:[(0,h.jsx)("span",{children:m.user})," ",(0,h.jsx)("span",{className:M.activityMuted,children:m.action})]}),(0,h.jsx)("span",{className:M.metaText,children:m.time})]})]},c))})]})}),(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{className:M.simpleStack,children:[(0,h.jsx)("h3",{className:M.panelHeader,children:"Quick Actions"}),(0,h.jsxs)("div",{className:M.buttonGrid,children:[(0,h.jsx)(B,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(vr,{size:14}),children:"Reports"}),(0,h.jsx)(B,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(gn,{size:14}),children:"Users"}),(0,h.jsx)(B,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(ei,{size:14}),children:"Alerts"}),(0,h.jsx)(B,{variant:"secondary",size:"sm",leadingIcon:(0,h.jsx)(Ps,{size:14}),children:"Regions"})]})]})}),(0,h.jsxs)(V,{children:[(0,h.jsx)(V.Trigger,{className:M.cardTrigger,children:"Need help with the dashboard?"}),(0,h.jsx)(V.Content,{children:(0,h.jsxs)("div",{className:M.cardContent,children:["Check out our ",(0,h.jsx)("span",{className:M.accentText,children:"documentation"})," or reach out to support. We typically respond within 2 hours during business hours."]})})]})]})]}),(0,h.jsx)(Ge,{children:(0,h.jsxs)(Ht,{children:[(0,h.jsx)("h3",{className:M.loadingTitle,children:"Loading State Preview"}),(0,h.jsxs)("div",{className:M.loadingRow,children:[(0,h.jsx)(Se,{className:M.loadingAvatar}),(0,h.jsxs)("div",{className:M.loadingMeta,children:[(0,h.jsx)(Se,{className:M.loadingLineWide}),(0,h.jsx)(Se,{className:M.loadingLineNarrow})]}),(0,h.jsx)(Se,{className:M.loadingButton})]})]})})]})}function Pm({theme:e,onCycleTheme:a}){let[t,o]=(0,mo.useState)("news");return(0,h.jsx)(wn,{children:(0,h.jsxs)("div",{className:M.root,children:[(0,h.jsxs)("div",{className:M.pageHeader,children:[(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:M.pageHeaderMeta,children:[(0,h.jsx)("h1",{className:M.pageTitle,children:"Showcase"}),(0,h.jsx)(na,{content:`Switch to ${e==="light"?"dark":"light"} mode`,children:(0,h.jsx)(le,{variant:"subtle",size:"sm",label:"Toggle theme",icon:e==="light"?(0,h.jsx)(ul,{size:16}):(0,h.jsx)(nl,{size:16}),onClick:a})})]}),(0,h.jsx)("p",{className:M.pageDescription,children:"Real-world product pages built entirely with owoui components."})]}),(0,h.jsx)(ct,{value:t,onValueChange:r=>o(r),children:(0,h.jsx)(ct.List,{children:FS.map(r=>(0,h.jsx)(ct.Trigger,{value:r.id,children:r.label},r.id))})})]}),t==="news"?(0,h.jsx)(VS,{}):(0,h.jsx)(QS,{})]})})}var Ie={};var Q=y(T(),1),lw="owoui-storybook-theme",nw="owoui-storybook-preset";function jS(){return window.localStorage.getItem(lw)==="dark"?"dark":"light"}function WS(){let e=window.localStorage.getItem(nw);return Or.includes(e)?e:"default"}function JS(){let[e,a]=(0,ht.useState)(()=>window.location.hash);return(0,ht.useEffect)(()=>{let t=()=>a(window.location.hash);return window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)},[]),(0,ht.useMemo)(()=>{let t=e.replace(/^#\/?/,"");if(t==="foundations")return{page:"foundations",group:"",component:""};if(t==="showcase")return{page:"showcase",group:"",component:""};let[o="",r=""]=t.split("/");return{page:"components",group:o,component:r}},[e])}function sw(e,a){window.location.hash=`#/${e}/${a}`}function $S({activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,setTheme:l,setPreset:n,children:s}){let i=()=>{let d=Rr.indexOf(o);l(Rr[(d+1)%Rr.length])},u=()=>{let d=Or.indexOf(r);n(Or[(d+1)%Or.length])};return(0,Q.jsxs)("div",{"data-theme":o,"data-preset":r,className:I(`owoui-theme-${o}`,`owoui-preset-${r}`,Ie.shell),children:[(0,Q.jsx)(Nm,{activePage:e}),(0,Q.jsx)("a",{href:"#sb-main",className:Ie.skipLink,children:"Skip to main content"}),e!=="showcase"&&(0,Q.jsx)(Bm,{activePage:e,activeGroup:a,activeComponent:t,theme:o,preset:r,onNavigate:sw,onCycleTheme:i,onSetPreset:n}),(0,Q.jsx)("main",{id:"sb-main",className:I(Ie.main,e!=="showcase"&&Ie.mainWithSidebar),children:(0,Q.jsx)("div",{className:Ie.contentWrap,children:s})})]})}function qm(){let e=JS(),a=(0,ht.useMemo)(()=>dl(),[]),t=(0,ht.useMemo)(()=>{let d=cl[0],m=a[d]?.[0];return m?{group:m.group,component:m.componentId}:null},[a]),o=cm(e.group,e.component),r=o?.group??t?.group??e.group,l=o?.componentId??t?.component??e.component,[n,s]=(0,ht.useState)(()=>jS()),[i,u]=(0,ht.useState)(()=>WS());return(0,ht.useEffect)(()=>{window.localStorage.setItem(lw,n);let d=document.documentElement;d.dataset.theme=n,d.classList.remove(...Rr.map(m=>`owoui-theme-${m}`)),d.classList.add(`owoui-theme-${n}`)},[n]),(0,ht.useEffect)(()=>{window.localStorage.setItem(nw,i);let d=document.documentElement;d.dataset.preset=i,d.classList.remove(...Or.map(m=>`owoui-preset-${m}`)),d.classList.add(`owoui-preset-${i}`)},[i]),(0,ht.useEffect)(()=>{e.page==="components"&&!o&&t&&sw(t.group,t.component)},[e.page,o,t]),(0,Q.jsx)($S,{activePage:e.page,activeGroup:r,activeComponent:l,theme:n,preset:i,setTheme:s,setPreset:u,children:e.page==="showcase"?(0,Q.jsx)(Pm,{theme:n,onCycleTheme:()=>{let d=Rr.indexOf(n);s(Rr[(d+1)%Rr.length])}}):e.page==="foundations"?(0,Q.jsx)(Hm,{}):o?(0,Q.jsx)(wn,{children:(0,Q.jsx)(td,{children:(0,Q.jsxs)("div",{className:Ie.pageStack,children:[(0,Q.jsxs)("header",{className:Ie.pageHeader,children:[(0,Q.jsxs)("nav",{className:Ie.breadcrumb,children:[(0,Q.jsx)("span",{children:"Components"}),(0,Q.jsx)(Ft,{size:10}),(0,Q.jsx)("span",{className:Ie.breadcrumbCurrent,children:o.componentName})]}),(0,Q.jsx)("h1",{className:Ie.pageTitle,children:o.componentName}),o.description?(0,Q.jsx)("p",{className:Ie.pageDescription,children:o.description}):null]}),o.renderPlayground&&o.props&&o.props.length>0?(0,Q.jsx)(Om,{props:o.props,renderPlayground:o.renderPlayground,componentName:o.componentName,defaultScale:o.defaultScale},`${o.group}-${o.componentId}`):null,o.props&&o.props.length>0?(0,Q.jsxs)("section",{className:Ie.section,children:[(0,Q.jsxs)("div",{className:Ie.sectionHeadingRow,children:[(0,Q.jsx)("h2",{className:Ie.sectionTitle,children:"API Reference"}),(0,Q.jsx)("span",{className:Ie.stableBadge,children:"stable"})]}),(0,Q.jsx)(Em,{props:o.props})]}):null,o.stories.length>0?(0,Q.jsxs)("section",{className:Ie.storiesSection,children:[(0,Q.jsx)("h2",{className:Ie.sectionTitle,children:"Usage Patterns"}),(0,Q.jsx)("div",{className:Ie.storiesSection,children:o.stories.map(d=>(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{className:Ie.storyCardHeader,children:[(0,Q.jsx)("h3",{className:Ie.storyTitle,children:d.title}),d.description?(0,Q.jsx)("p",{className:Ie.storyDescription,children:d.description}):null]}),(0,Q.jsx)(Rm,{story:d})]},d.id))})]}):null,(0,Q.jsxs)("footer",{className:Ie.footer,children:[(0,Q.jsx)("span",{children:"@owodesign/owoui"}),(0,Q.jsxs)("div",{className:Ie.footerLinks,children:[(0,Q.jsx)("a",{href:"#",className:Ie.footerLink,children:"Github"}),(0,Q.jsx)("a",{href:"#",className:Ie.footerLink,children:"Figma"}),(0,Q.jsx)("a",{href:"#",className:Ie.footerLink,children:"Roadmap"})]})]})]})})}):(0,Q.jsx)("div",{className:Ie.notFound,children:(0,Q.jsx)("p",{children:"Component not found."})})})}var Fm=y(T(),1),dw=document.getElementById("root");if(!dw)throw new Error("Missing #root container for owoui storybook static app");var Um=dm[0];window.location.hash.length<=1&&Um&&(window.location.hash=`#/${Um.group}/${Um.componentId}`);(0,uw.createRoot)(dw).render((0,Fm.jsx)(iw.StrictMode,{children:(0,Fm.jsx)(qm,{})}));
106
179
  /*! Bundled license information:
107
180
 
108
181
  react/cjs/react.production.js:
@@ -188,7 +261,6 @@ lucide-react/dist/esm/icons/columns-2.js:
188
261
  lucide-react/dist/esm/icons/credit-card.js:
189
262
  lucide-react/dist/esm/icons/ellipsis.js:
190
263
  lucide-react/dist/esm/icons/external-link.js:
191
- lucide-react/dist/esm/icons/file-text.js:
192
264
  lucide-react/dist/esm/icons/fold-vertical.js:
193
265
  lucide-react/dist/esm/icons/gallery-horizontal-end.js:
194
266
  lucide-react/dist/esm/icons/globe.js: