local-operator-ui 0.30.5 → 0.30.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 (96) hide show
  1. package/out/main/index.js +663 -42
  2. package/out/preload/index.js +40 -2
  3. package/out/renderer/assets/{_basePickBy-C4KSwmCT.js → _basePickBy-D5b3yDx8.js} +1 -1
  4. package/out/renderer/assets/{_baseUniq-Tv4U4nWm.js → _baseUniq-D1tkhcv6.js} +1 -1
  5. package/out/renderer/assets/agent-details-page-DZh__Ocy.js +6 -0
  6. package/out/renderer/assets/{agent-hub-page-wHxSp_GW.js → agent-hub-page-C_kDnp60.js} +2 -2
  7. package/out/renderer/assets/agents-page-CnB9CXuW.js +2 -0
  8. package/out/renderer/assets/{arc-DzD8wAPt.js → arc-CUyHzDaA.js} +1 -1
  9. package/out/renderer/assets/architectureDiagram-IEHRJDOE-Cvo28P8g.js +36 -0
  10. package/out/renderer/assets/{blockDiagram-JOT3LUYC-B6WAB17o.js → blockDiagram-JOT3LUYC-CCMUOsjA.js} +2 -2
  11. package/out/renderer/assets/browser-page-DcAY6eY-.js +1 -0
  12. package/out/renderer/assets/browser-webauthn-prompt-Bz42nxS6.js +1 -0
  13. package/out/renderer/assets/{c4Diagram-VJAJSXHY-BikcRrmj.js → c4Diagram-VJAJSXHY-DqacZ02T.js} +2 -2
  14. package/out/renderer/assets/channel-CNjcqKwB.js +1 -0
  15. package/out/renderer/assets/{chunk-4BMEZGHF-BK2w2E6b.js → chunk-4BMEZGHF-Vs_Om413.js} +1 -1
  16. package/out/renderer/assets/{chunk-A2AXSNBT-L5GYaZTn.js → chunk-A2AXSNBT-nlUPemkk.js} +1 -1
  17. package/out/renderer/assets/{chunk-AEK57VVT-Cf51xDme.js → chunk-AEK57VVT-BvAdLttG.js} +1 -1
  18. package/out/renderer/assets/{chunk-D6G4REZN-BNvdRpy_.js → chunk-D6G4REZN-B47lDjp3.js} +1 -1
  19. package/out/renderer/assets/{chunk-RZ5BOZE2-Cgmol7e5.js → chunk-RZ5BOZE2-BtJp8S0M.js} +1 -1
  20. package/out/renderer/assets/{chunk-XZIHB7SX-C0dlWEyM.js → chunk-XZIHB7SX-9C073wve.js} +1 -1
  21. package/out/renderer/assets/classDiagram-GIVACNV2-CQVISGwS.js +1 -0
  22. package/out/renderer/assets/classDiagram-v2-COTLJTTW-CQVISGwS.js +1 -0
  23. package/out/renderer/assets/clone-C38ets0J.js +1 -0
  24. package/out/renderer/assets/compact-pagination-DqAqETGQ.js +1 -0
  25. package/out/renderer/assets/console-mirror-BVW-_zui.js +44 -0
  26. package/out/renderer/assets/console-mirror-DOrYoP_4.css +32 -0
  27. package/out/renderer/assets/consoleCapture-BIeBPj-4.js +1 -0
  28. package/out/renderer/assets/dagre-OKDRZEBW-aOl_nKn1.js +4 -0
  29. package/out/renderer/assets/diagram-SSKATNLV-BuelnlQq.js +43 -0
  30. package/out/renderer/assets/diagram-VNBRO52H-CnvD7FYh.js +24 -0
  31. package/out/renderer/assets/erDiagram-Q7BY3M3F-DiuVMmfr.js +60 -0
  32. package/out/renderer/assets/{flowDiagram-4HSFHLVR-CayOnjMu.js → flowDiagram-4HSFHLVR-BKzqYFvF.js} +2 -2
  33. package/out/renderer/assets/{ganttDiagram-APWFNJXF-D1H-WlQG.js → ganttDiagram-APWFNJXF-BR8sfw6V.js} +2 -2
  34. package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-DBUM9S0w.js +65 -0
  35. package/out/renderer/assets/{graph-DING6zyF.js → graph-By8JgBue.js} +1 -1
  36. package/out/renderer/assets/icon-BQh0NRL5.js +146 -0
  37. package/out/renderer/assets/{index-B8L0Kiwp.js → index-Bv85BxaP.js} +418 -403
  38. package/out/renderer/assets/index-Q1Oi0B95.js +55 -0
  39. package/out/renderer/assets/index-kvxi4VOW.js +7 -0
  40. package/out/renderer/assets/index-n0ogWXxx.css +1 -0
  41. package/out/renderer/assets/index-up32o88v.js +1 -0
  42. package/out/renderer/assets/infoDiagram-PH2N3AL5-BhD7ac-z.js +2 -0
  43. package/out/renderer/assets/{installer-xkP9rTvG.js → installer-CbTFoEpL.js} +3 -3
  44. package/out/renderer/assets/{journeyDiagram-U35MCT3I-BZUoUByB.js → journeyDiagram-U35MCT3I-Dv2mu_Re.js} +2 -2
  45. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-pdihKIeu.js → kanban-definition-NDS4AKOZ-BqBdPTZf.js} +2 -2
  46. package/out/renderer/assets/{layout-BzsmzZSv.js → layout-DzuHNJry.js} +1 -1
  47. package/out/renderer/assets/{legacy-agents-page-BQdlRR2j.js → legacy-agents-page-B1YsuHQM.js} +3 -3
  48. package/out/renderer/assets/{mermaid.core-BuXyhIZv.js → mermaid.core-DymZo21v.js} +19 -19
  49. package/out/renderer/assets/mindmap-definition-ALO5MXBD-BMN7owbo.js +95 -0
  50. package/out/renderer/assets/page-header-Cc0XdSll.js +1 -0
  51. package/out/renderer/assets/{parseISO-FjLu4rnm.js → parseISO-0hNehfLH.js} +1 -1
  52. package/out/renderer/assets/{pieDiagram-IB7DONF6-DSJv21tC.js → pieDiagram-IB7DONF6-D0dvCyyn.js} +2 -2
  53. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-xXstR1Vf.js → quadrantDiagram-7GDLP6J5-Bkb3lcZe.js} +2 -2
  54. package/out/renderer/assets/{radar-MK3ICKWK-iY9ggxmQ.js → radar-MK3ICKWK-2JuG8irb.js} +1 -1
  55. package/out/renderer/assets/radient-auth-buttons-C2cd-JNV.js +6 -0
  56. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-C3wkWBba.js → requirementDiagram-KVF5MWMF-DE_-TcrO.js} +2 -2
  57. package/out/renderer/assets/sankeyDiagram-QLVOVGJD-BoMvFI-6.js +10 -0
  58. package/out/renderer/assets/{schedules-page-Du06WRO3.js → schedules-page-CQpjyrDH.js} +9 -9
  59. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-BAJqm7xV.js → sequenceDiagram-X6HHIX6F-BMcSZEau.js} +2 -2
  60. package/out/renderer/assets/{settings-page-DTvd2Uj2.js → settings-page-CEH0ix19.js} +66 -71
  61. package/out/renderer/assets/stateDiagram-DGXRK772-B6DVk8hu.js +1 -0
  62. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-DTKEGiyu.js +1 -0
  63. package/out/renderer/assets/{timeline-definition-BDJGKUSR-BpywGcxh.js → timeline-definition-BDJGKUSR-CkMFtRgw.js} +2 -2
  64. package/out/renderer/assets/use-agent-like-mutation-C7OkrJmI.js +1 -0
  65. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-BLfYh75R.js → xychartDiagram-VJFVF3MP-uj7ccV7g.js} +2 -2
  66. package/out/renderer/console-capture.html +20 -0
  67. package/out/renderer/index.html +6 -3
  68. package/out/renderer/installer.html +4 -3
  69. package/package.json +6 -3
  70. package/out/renderer/assets/agent-details-page-Cr8W7y-H.js +0 -6
  71. package/out/renderer/assets/agents-page-CvzMQcXA.js +0 -2
  72. package/out/renderer/assets/architectureDiagram-IEHRJDOE-Bdg3auIF.js +0 -36
  73. package/out/renderer/assets/browser-page-Cwj3W0B7.js +0 -1
  74. package/out/renderer/assets/browser-webauthn-prompt-HQaxvM7Z.js +0 -1
  75. package/out/renderer/assets/channel-DkQdMXxf.js +0 -1
  76. package/out/renderer/assets/classDiagram-GIVACNV2-CduP7VCg.js +0 -1
  77. package/out/renderer/assets/classDiagram-v2-COTLJTTW-CduP7VCg.js +0 -1
  78. package/out/renderer/assets/clone-ByK_vrzo.js +0 -1
  79. package/out/renderer/assets/compact-pagination-DJ3iOLPw.js +0 -1
  80. package/out/renderer/assets/dagre-OKDRZEBW-CO96SQ8V.js +0 -4
  81. package/out/renderer/assets/diagram-SSKATNLV-CZy8Uth3.js +0 -43
  82. package/out/renderer/assets/diagram-VNBRO52H-xj2birJB.js +0 -24
  83. package/out/renderer/assets/erDiagram-Q7BY3M3F-Da-RbfXv.js +0 -60
  84. package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-U4UfZBoD.js +0 -65
  85. package/out/renderer/assets/icon-BfZhrs0k.js +0 -200
  86. package/out/renderer/assets/icon-Bv_GhQh2.css +0 -1
  87. package/out/renderer/assets/index-B8ll31iK.js +0 -7
  88. package/out/renderer/assets/index-UJlKYaYv.js +0 -1
  89. package/out/renderer/assets/infoDiagram-PH2N3AL5-cfKlqrgd.js +0 -2
  90. package/out/renderer/assets/mindmap-definition-ALO5MXBD-DPrERxrY.js +0 -95
  91. package/out/renderer/assets/page-header-Dwwd9Ozp.js +0 -1
  92. package/out/renderer/assets/radient-auth-buttons-Bt3YWj-N.js +0 -6
  93. package/out/renderer/assets/sankeyDiagram-QLVOVGJD-Bl717LGh.js +0 -10
  94. package/out/renderer/assets/stateDiagram-DGXRK772-CakcCsbw.js +0 -1
  95. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-C9clUakK.js +0 -1
  96. package/out/renderer/assets/use-agent-like-mutation-BwgCtL8B.js +0 -1
@@ -1,200 +0,0 @@
1
- function Y1(t,r){for(var o=0;o<r.length;o++){const a=r[o];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var EB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yu={exports:{}},ji={},wu={exports:{}},Pe={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var vh;function X1(){if(vh)return Pe;vh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),v=Symbol.iterator;function y(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,b={};function A(T,z,pe){this.props=T,this.context=z,this.refs=b,this.updater=pe||E}A.prototype.isReactComponent={},A.prototype.setState=function(T,z){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,z,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=A.prototype;function R(T,z,pe){this.props=T,this.context=z,this.refs=b,this.updater=pe||E}var B=R.prototype=new _;B.constructor=R,k(B,A.prototype),B.isPureReactComponent=!0;var F=Array.isArray,N=Object.prototype.hasOwnProperty,W={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function j(T,z,pe){var Ce,ge={},ye=null,Se=null;if(z!=null)for(Ce in z.ref!==void 0&&(Se=z.ref),z.key!==void 0&&(ye=""+z.key),z)N.call(z,Ce)&&!H.hasOwnProperty(Ce)&&(ge[Ce]=z[Ce]);var ee=arguments.length-2;if(ee===1)ge.children=pe;else if(1<ee){for(var ae=Array(ee),_e=0;_e<ee;_e++)ae[_e]=arguments[_e+2];ge.children=ae}if(T&&T.defaultProps)for(Ce in ee=T.defaultProps,ee)ge[Ce]===void 0&&(ge[Ce]=ee[Ce]);return{$$typeof:t,type:T,key:ye,ref:Se,props:ge,_owner:W.current}}function K(T,z){return{$$typeof:t,type:T.type,key:z,ref:T.ref,props:T.props,_owner:T._owner}}function S(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function G(T){var z={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(pe){return z[pe]})}var Y=/\/+/g;function te(T,z){return typeof T=="object"&&T!==null&&T.key!=null?G(""+T.key):z.toString(36)}function ie(T,z,pe,Ce,ge){var ye=typeof T;(ye==="undefined"||ye==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(ye){case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case t:case r:Se=!0}}if(Se)return Se=T,ge=ge(Se),T=Ce===""?"."+te(Se,0):Ce,F(ge)?(pe="",T!=null&&(pe=T.replace(Y,"$&/")+"/"),ie(ge,z,pe,"",function(_e){return _e})):ge!=null&&(S(ge)&&(ge=K(ge,pe+(!ge.key||Se&&Se.key===ge.key?"":(""+ge.key).replace(Y,"$&/")+"/")+T)),z.push(ge)),1;if(Se=0,Ce=Ce===""?".":Ce+":",F(T))for(var ee=0;ee<T.length;ee++){ye=T[ee];var ae=Ce+te(ye,ee);Se+=ie(ye,z,pe,ae,ge)}else if(ae=y(T),typeof ae=="function")for(T=ae.call(T),ee=0;!(ye=T.next()).done;)ye=ye.value,ae=Ce+te(ye,ee++),Se+=ie(ye,z,pe,ae,ge);else if(ye==="object")throw z=String(T),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Se}function he(T,z,pe){if(T==null)return T;var Ce=[],ge=0;return ie(T,Ce,"","",function(ye){return z.call(pe,ye,ge++)}),Ce}function le(T){if(T._status===-1){var z=T._result;z=z(),z.then(function(pe){(T._status===0||T._status===-1)&&(T._status=1,T._result=pe)},function(pe){(T._status===0||T._status===-1)&&(T._status=2,T._result=pe)}),T._status===-1&&(T._status=0,T._result=z)}if(T._status===1)return T._result.default;throw T._result}var re={current:null},V={transition:null},Z={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:V,ReactCurrentOwner:W};function M(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:he,forEach:function(T,z,pe){he(T,function(){z.apply(this,arguments)},pe)},count:function(T){var z=0;return he(T,function(){z++}),z},toArray:function(T){return he(T,function(z){return z})||[]},only:function(T){if(!S(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},Pe.Component=A,Pe.Fragment=o,Pe.Profiler=s,Pe.PureComponent=R,Pe.StrictMode=a,Pe.Suspense=h,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Pe.act=M,Pe.cloneElement=function(T,z,pe){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var Ce=k({},T.props),ge=T.key,ye=T.ref,Se=T._owner;if(z!=null){if(z.ref!==void 0&&(ye=z.ref,Se=W.current),z.key!==void 0&&(ge=""+z.key),T.type&&T.type.defaultProps)var ee=T.type.defaultProps;for(ae in z)N.call(z,ae)&&!H.hasOwnProperty(ae)&&(Ce[ae]=z[ae]===void 0&&ee!==void 0?ee[ae]:z[ae])}var ae=arguments.length-2;if(ae===1)Ce.children=pe;else if(1<ae){ee=Array(ae);for(var _e=0;_e<ae;_e++)ee[_e]=arguments[_e+2];Ce.children=ee}return{$$typeof:t,type:T.type,key:ge,ref:ye,props:Ce,_owner:Se}},Pe.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:c,_context:T},T.Consumer=T},Pe.createElement=j,Pe.createFactory=function(T){var z=j.bind(null,T);return z.type=T,z},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(T){return{$$typeof:f,render:T}},Pe.isValidElement=S,Pe.lazy=function(T){return{$$typeof:C,_payload:{_status:-1,_result:T},_init:le}},Pe.memo=function(T,z){return{$$typeof:g,type:T,compare:z===void 0?null:z}},Pe.startTransition=function(T){var z=V.transition;V.transition={};try{T()}finally{V.transition=z}},Pe.unstable_act=M,Pe.useCallback=function(T,z){return re.current.useCallback(T,z)},Pe.useContext=function(T){return re.current.useContext(T)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(T){return re.current.useDeferredValue(T)},Pe.useEffect=function(T,z){return re.current.useEffect(T,z)},Pe.useId=function(){return re.current.useId()},Pe.useImperativeHandle=function(T,z,pe){return re.current.useImperativeHandle(T,z,pe)},Pe.useInsertionEffect=function(T,z){return re.current.useInsertionEffect(T,z)},Pe.useLayoutEffect=function(T,z){return re.current.useLayoutEffect(T,z)},Pe.useMemo=function(T,z){return re.current.useMemo(T,z)},Pe.useReducer=function(T,z,pe){return re.current.useReducer(T,z,pe)},Pe.useRef=function(T){return re.current.useRef(T)},Pe.useState=function(T){return re.current.useState(T)},Pe.useSyncExternalStore=function(T,z,pe){return re.current.useSyncExternalStore(T,z,pe)},Pe.useTransition=function(){return re.current.useTransition()},Pe.version="18.3.1",Pe}var yh;function yd(){return yh||(yh=1,wu.exports=X1()),wu.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var wh;function Q1(){if(wh)return ji;wh=1;var t=yd(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(f,h,g){var C,v={},y=null,E=null;g!==void 0&&(y=""+g),h.key!==void 0&&(y=""+h.key),h.ref!==void 0&&(E=h.ref);for(C in h)a.call(h,C)&&!c.hasOwnProperty(C)&&(v[C]=h[C]);if(f&&f.defaultProps)for(C in h=f.defaultProps,h)v[C]===void 0&&(v[C]=h[C]);return{$$typeof:r,type:f,key:y,ref:E,props:v,_owner:s.current}}return ji.Fragment=o,ji.jsx=u,ji.jsxs=u,ji}var Ch;function q1(){return Ch||(Ch=1,yu.exports=Q1()),yu.exports}var w=q1(),m=yd();const Z1=vd(m),Uo=Y1({__proto__:null,default:Z1},[m]);var xs={},Cu={exports:{}},Rt={},xu={exports:{}},bu={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var xh;function J1(){return xh||(xh=1,function(t){function r(V,Z){var M=V.length;V.push(Z);e:for(;0<M;){var T=M-1>>>1,z=V[T];if(0<s(z,Z))V[T]=Z,V[M]=z,M=T;else break e}}function o(V){return V.length===0?null:V[0]}function a(V){if(V.length===0)return null;var Z=V[0],M=V.pop();if(M!==Z){V[0]=M;e:for(var T=0,z=V.length,pe=z>>>1;T<pe;){var Ce=2*(T+1)-1,ge=V[Ce],ye=Ce+1,Se=V[ye];if(0>s(ge,M))ye<z&&0>s(Se,ge)?(V[T]=Se,V[ye]=M,T=ye):(V[T]=ge,V[Ce]=M,T=Ce);else if(ye<z&&0>s(Se,M))V[T]=Se,V[ye]=M,T=ye;else break e}}return Z}function s(V,Z){var M=V.sortIndex-Z.sortIndex;return M!==0?M:V.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var h=[],g=[],C=1,v=null,y=3,E=!1,k=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(V){for(var Z=o(g);Z!==null;){if(Z.callback===null)a(g);else if(Z.startTime<=V)a(g),Z.sortIndex=Z.expirationTime,r(h,Z);else break;Z=o(g)}}function F(V){if(b=!1,B(V),!k)if(o(h)!==null)k=!0,le(N);else{var Z=o(g);Z!==null&&re(F,Z.startTime-V)}}function N(V,Z){k=!1,b&&(b=!1,_(j),j=-1),E=!0;var M=y;try{for(B(Z),v=o(h);v!==null&&(!(v.expirationTime>Z)||V&&!G());){var T=v.callback;if(typeof T=="function"){v.callback=null,y=v.priorityLevel;var z=T(v.expirationTime<=Z);Z=t.unstable_now(),typeof z=="function"?v.callback=z:v===o(h)&&a(h),B(Z)}else a(h);v=o(h)}if(v!==null)var pe=!0;else{var Ce=o(g);Ce!==null&&re(F,Ce.startTime-Z),pe=!1}return pe}finally{v=null,y=M,E=!1}}var W=!1,H=null,j=-1,K=5,S=-1;function G(){return!(t.unstable_now()-S<K)}function Y(){if(H!==null){var V=t.unstable_now();S=V;var Z=!0;try{Z=H(!0,V)}finally{Z?te():(W=!1,H=null)}}else W=!1}var te;if(typeof R=="function")te=function(){R(Y)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,he=ie.port2;ie.port1.onmessage=Y,te=function(){he.postMessage(null)}}else te=function(){A(Y,0)};function le(V){H=V,W||(W=!0,te())}function re(V,Z){j=A(function(){V(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){k||E||(k=!0,le(N))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_getFirstCallbackNode=function(){return o(h)},t.unstable_next=function(V){switch(y){case 1:case 2:case 3:var Z=3;break;default:Z=y}var M=y;y=Z;try{return V()}finally{y=M}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,Z){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var M=y;y=V;try{return Z()}finally{y=M}},t.unstable_scheduleCallback=function(V,Z,M){var T=t.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?T+M:T):M=T,V){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=M+z,V={id:C++,callback:Z,priorityLevel:V,startTime:M,expirationTime:z,sortIndex:-1},M>T?(V.sortIndex=M,r(g,V),o(h)===null&&V===o(g)&&(b?(_(j),j=-1):b=!0,re(F,M-T))):(V.sortIndex=z,r(h,V),k||E||(k=!0,le(N))),V},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(V){var Z=y;return function(){var M=y;y=Z;try{return V.apply(this,arguments)}finally{y=M}}}}(bu)),bu}var bh;function eC(){return bh||(bh=1,xu.exports=J1()),xu.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Eh;function tC(){if(Eh)return Rt;Eh=1;var t=yd(),r=eC();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(s[e]=n,e=0;e<n.length;e++)a.add(n[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,C={},v={};function y(e){return h.call(v,e)?!0:h.call(C,e)?!1:g.test(e)?v[e]=!0:(C[e]=!0,!1)}function E(e,n,i,l){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return l?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k(e,n,i,l){if(n===null||typeof n>"u"||E(e,n,i,l))return!0;if(l)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function b(e,n,i,l,d,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=i,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){A[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];A[n]=new b(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){A[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){A[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){A[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){A[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){A[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){A[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){A[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function R(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(_,R);A[n]=new b(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(_,R);A[n]=new b(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(_,R);A[n]=new b(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){A[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),A.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){A[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,n,i,l){var d=A.hasOwnProperty(n)?A[n]:null;(d!==null?d.type!==0:l||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(k(n,i,d,l)&&(i=null),l||d===null?y(n)&&(i===null?e.removeAttribute(n):e.setAttribute(n,""+i)):d.mustUseProperty?e[d.propertyName]=i===null?d.type===3?!1:"":i:(n=d.attributeName,l=d.attributeNamespace,i===null?e.removeAttribute(n):(d=d.type,i=d===3||d===4&&i===!0?"":""+i,l?e.setAttributeNS(l,n,i):e.setAttribute(n,i))))}var F=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),W=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),G=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),V=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var M=Object.assign,T;function z(e){if(T===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);T=n&&n[1]||""}return`
34
- `+T+e}var pe=!1;function Ce(e,n){if(!e||pe)return"";pe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch($){var l=$}Reflect.construct(e,[],n)}else{try{n.call()}catch($){l=$}e.call(n.prototype)}else{try{throw Error()}catch($){l=$}e()}}catch($){if($&&l&&typeof $.stack=="string"){for(var d=$.stack.split(`
35
- `),p=l.stack.split(`
36
- `),x=d.length-1,D=p.length-1;1<=x&&0<=D&&d[x]!==p[D];)D--;for(;1<=x&&0<=D;x--,D--)if(d[x]!==p[D]){if(x!==1||D!==1)do if(x--,D--,0>D||d[x]!==p[D]){var P=`
37
- `+d[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=x&&0<=D);break}}}finally{pe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?z(e):""}function ge(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=Ce(e.type,!1),e;case 11:return e=Ce(e.type.render,!1),e;case 1:return e=Ce(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case W:return"Portal";case K:return"Profiler";case j:return"StrictMode";case te:return"Suspense";case ie:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case Y:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return n=e.displayName||null,n!==null?n:ye(e.type)||"Memo";case le:n=e._payload,e=e._init;try{return ye(e(n))}catch{}}return null}function Se(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(n);case 8:return n===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ae(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function _e(e){var n=ae(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,p=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){l=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Be(e){e._valueTracker||(e._valueTracker=_e(e))}function q(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),l="";return e&&(l=ae(e)?e.checked?"true":"false":e.value),e=l,e!==i?(n.setValue(e),!0):!1}function De(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xe(e,n){var i=n.checked;return M({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function bt(e,n){var i=n.defaultValue==null?"":n.defaultValue,l=n.checked!=null?n.checked:n.defaultChecked;i=ee(n.value!=null?n.value:i),e._wrapperState={initialChecked:l,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function eo(e,n){n=n.checked,n!=null&&B(e,"checked",n,!1)}function kr(e,n){eo(e,n);var i=ee(n.value),l=n.type;if(i!=null)l==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Dl(e,n.type,i):n.hasOwnProperty("defaultValue")&&Dl(e,n.type,ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function to(e,n,i){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var l=n.type;if(!(l!=="submit"&&l!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,i||n===e.value||(e.value=n),e.defaultValue=n}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Dl(e,n,i){(n!=="number"||De(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var ei=Array.isArray;function no(e,n,i,l){if(e=e.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<e.length;i++)d=n.hasOwnProperty("$"+e[i].value),e[i].selected!==d&&(e[i].selected=d),d&&l&&(e[i].defaultSelected=!0)}else{for(i=""+ee(i),n=null,d=0;d<e.length;d++){if(e[d].value===i){e[d].selected=!0,l&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function Fl(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return M({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Df(e,n){var i=n.value;if(i==null){if(i=n.children,n=n.defaultValue,i!=null){if(n!=null)throw Error(o(92));if(ei(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),i=n}e._wrapperState={initialValue:ee(i)}}function Ff(e,n){var i=ee(n.value),l=ee(n.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),n.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),l!=null&&(e.defaultValue=""+l)}function Bf(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function Pf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bl(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Pf(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pa,Rf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,i,l,d){MSApp.execUnsafeLocalFunction(function(){return e(n,i,l,d)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(pa=pa||document.createElement("div"),pa.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=pa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function ti(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zy=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){Zy.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ni[n]=ni[e]})});function _f(e,n,i){return n==null||typeof n=="boolean"||n===""?"":i||typeof n!="number"||n===0||ni.hasOwnProperty(e)&&ni[e]?(""+n).trim():n+"px"}function Tf(e,n){e=e.style;for(var i in n)if(n.hasOwnProperty(i)){var l=i.indexOf("--")===0,d=_f(i,n[i],l);i==="float"&&(i="cssFloat"),l?e.setProperty(i,d):e[i]=d}}var Jy=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pl(e,n){if(n){if(Jy[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function Rl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _l=null;function Tl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,ro=null,oo=null;function If(e){if(e=Si(e)){if(typeof Il!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Oa(n),Il(e.stateNode,e.type,n))}}function Mf(e){ro?oo?oo.push(e):oo=[e]:ro=e}function Of(){if(ro){var e=ro,n=oo;if(oo=ro=null,If(e),n)for(e=0;e<n.length;e++)If(n[e])}}function Nf(e,n){return e(n)}function Lf(){}var Ml=!1;function jf(e,n,i){if(Ml)return e(n,i);Ml=!0;try{return Nf(e,n,i)}finally{Ml=!1,(ro!==null||oo!==null)&&(Lf(),Of())}}function ri(e,n){var i=e.stateNode;if(i===null)return null;var l=Oa(i);if(l===null)return null;i=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var Ol=!1;if(f)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Ol=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Ol=!1}function ew(e,n,i,l,d,p,x,D,P){var $=Array.prototype.slice.call(arguments,3);try{n.apply(i,$)}catch(Q){this.onError(Q)}}var ii=!1,ma=null,ha=!1,Nl=null,tw={onError:function(e){ii=!0,ma=e}};function nw(e,n,i,l,d,p,x,D,P){ii=!1,ma=null,ew.apply(tw,arguments)}function rw(e,n,i,l,d,p,x,D,P){if(nw.apply(this,arguments),ii){if(ii){var $=ma;ii=!1,ma=null}else throw Error(o(198));ha||(ha=!0,Nl=$)}}function Ar(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function Wf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function $f(e){if(Ar(e)!==e)throw Error(o(188))}function ow(e){var n=e.alternate;if(!n){if(n=Ar(e),n===null)throw Error(o(188));return n!==e?null:e}for(var i=e,l=n;;){var d=i.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){i=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===i)return $f(d),e;if(p===l)return $f(d),n;p=p.sibling}throw Error(o(188))}if(i.return!==l.return)i=d,l=p;else{for(var x=!1,D=d.child;D;){if(D===i){x=!0,i=d,l=p;break}if(D===l){x=!0,l=d,i=p;break}D=D.sibling}if(!x){for(D=p.child;D;){if(D===i){x=!0,i=p,l=d;break}if(D===l){x=!0,l=p,i=d;break}D=D.sibling}if(!x)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:n}function zf(e){return e=ow(e),e!==null?Hf(e):null}function Hf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Hf(e);if(n!==null)return n;e=e.sibling}return null}var Vf=r.unstable_scheduleCallback,Uf=r.unstable_cancelCallback,iw=r.unstable_shouldYield,aw=r.unstable_requestPaint,Je=r.unstable_now,sw=r.unstable_getCurrentPriorityLevel,Ll=r.unstable_ImmediatePriority,Gf=r.unstable_UserBlockingPriority,ga=r.unstable_NormalPriority,lw=r.unstable_LowPriority,Kf=r.unstable_IdlePriority,va=null,fn=null;function cw(e){if(fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(va,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:fw,uw=Math.log,dw=Math.LN2;function fw(e){return e>>>=0,e===0?32:31-(uw(e)/dw|0)|0}var ya=64,wa=4194304;function ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,d=e.suspendedLanes,p=e.pingedLanes,x=i&268435455;if(x!==0){var D=x&~d;D!==0?l=ai(D):(p&=x,p!==0&&(l=ai(p)))}else x=i&~d,x!==0?l=ai(x):p!==0&&(l=ai(p));if(l===0)return 0;if(n!==0&&n!==l&&(n&d)===0&&(d=l&-l,p=n&-n,d>=p||d===16&&(p&4194240)!==0))return n;if((l&4)!==0&&(l|=i&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=l;0<n;)i=31-Jt(n),d=1<<i,l|=e[i],n&=~d;return l}function pw(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mw(e,n){for(var i=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-Jt(p),D=1<<x,P=d[x];P===-1?((D&i)===0||(D&l)!==0)&&(d[x]=pw(D,n)):P<=n&&(e.expiredLanes|=D),p&=~D}}function jl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Yf(){var e=ya;return ya<<=1,(ya&4194240)===0&&(ya=64),e}function Wl(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function si(e,n,i){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Jt(n),e[n]=i}function hw(e,n){var i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<i;){var d=31-Jt(i),p=1<<d;n[d]=0,l[d]=-1,e[d]=-1,i&=~p}}function $l(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var l=31-Jt(i),d=1<<l;d&n|e[l]&n&&(e[l]|=n),i&=~d}}var Ne=0;function Xf(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Qf,zl,qf,Zf,Jf,Hl=!1,xa=[],Gn=null,Kn=null,Yn=null,li=new Map,ci=new Map,Xn=[],gw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ep(e,n){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":li.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ci.delete(n.pointerId)}}function ui(e,n,i,l,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:i,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Si(n),n!==null&&zl(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function vw(e,n,i,l,d){switch(n){case"focusin":return Gn=ui(Gn,e,n,i,l,d),!0;case"dragenter":return Kn=ui(Kn,e,n,i,l,d),!0;case"mouseover":return Yn=ui(Yn,e,n,i,l,d),!0;case"pointerover":var p=d.pointerId;return li.set(p,ui(li.get(p)||null,e,n,i,l,d)),!0;case"gotpointercapture":return p=d.pointerId,ci.set(p,ui(ci.get(p)||null,e,n,i,l,d)),!0}return!1}function tp(e){var n=Dr(e.target);if(n!==null){var i=Ar(n);if(i!==null){if(n=i.tag,n===13){if(n=Wf(i),n!==null){e.blockedOn=n,Jf(e.priority,function(){qf(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ba(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Ul(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);_l=l,i.target.dispatchEvent(l),_l=null}else return n=Si(i),n!==null&&zl(n),e.blockedOn=i,!1;n.shift()}return!0}function np(e,n,i){ba(e)&&i.delete(n)}function yw(){Hl=!1,Gn!==null&&ba(Gn)&&(Gn=null),Kn!==null&&ba(Kn)&&(Kn=null),Yn!==null&&ba(Yn)&&(Yn=null),li.forEach(np),ci.forEach(np)}function di(e,n){e.blockedOn===n&&(e.blockedOn=null,Hl||(Hl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,yw)))}function fi(e){function n(d){return di(d,e)}if(0<xa.length){di(xa[0],e);for(var i=1;i<xa.length;i++){var l=xa[i];l.blockedOn===e&&(l.blockedOn=null)}}for(Gn!==null&&di(Gn,e),Kn!==null&&di(Kn,e),Yn!==null&&di(Yn,e),li.forEach(n),ci.forEach(n),i=0;i<Xn.length;i++)l=Xn[i],l.blockedOn===e&&(l.blockedOn=null);for(;0<Xn.length&&(i=Xn[0],i.blockedOn===null);)tp(i),i.blockedOn===null&&Xn.shift()}var io=F.ReactCurrentBatchConfig,Ea=!0;function ww(e,n,i,l){var d=Ne,p=io.transition;io.transition=null;try{Ne=1,Vl(e,n,i,l)}finally{Ne=d,io.transition=p}}function Cw(e,n,i,l){var d=Ne,p=io.transition;io.transition=null;try{Ne=4,Vl(e,n,i,l)}finally{Ne=d,io.transition=p}}function Vl(e,n,i,l){if(Ea){var d=Ul(e,n,i,l);if(d===null)lc(e,n,l,Sa,i),ep(e,l);else if(vw(d,e,n,i,l))l.stopPropagation();else if(ep(e,l),n&4&&-1<gw.indexOf(e)){for(;d!==null;){var p=Si(d);if(p!==null&&Qf(p),p=Ul(e,n,i,l),p===null&&lc(e,n,l,Sa,i),p===d)break;d=p}d!==null&&l.stopPropagation()}else lc(e,n,l,null,i)}}var Sa=null;function Ul(e,n,i,l){if(Sa=null,e=Tl(l),e=Dr(e),e!==null)if(n=Ar(e),n===null)e=null;else if(i=n.tag,i===13){if(e=Wf(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Sa=e,null}function rp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sw()){case Ll:return 1;case Gf:return 4;case ga:case lw:return 16;case Kf:return 536870912;default:return 16}default:return 16}}var Qn=null,Gl=null,ka=null;function op(){if(ka)return ka;var e,n=Gl,i=n.length,l,d="value"in Qn?Qn.value:Qn.textContent,p=d.length;for(e=0;e<i&&n[e]===d[e];e++);var x=i-e;for(l=1;l<=x&&n[i-l]===d[p-l];l++);return ka=d.slice(e,1<l?1-l:void 0)}function Aa(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Da(){return!0}function ip(){return!1}function Tt(e){function n(i,l,d,p,x){this._reactName=i,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var D in e)e.hasOwnProperty(D)&&(i=e[D],this[D]=i?i(p):p[D]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Da:ip,this.isPropagationStopped=ip,this}return M(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),n}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kl=Tt(ao),pi=M({},ao,{view:0,detail:0}),xw=Tt(pi),Yl,Xl,mi,Fa=M({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ql,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!==mi&&(mi&&e.type==="mousemove"?(Yl=e.screenX-mi.screenX,Xl=e.screenY-mi.screenY):Xl=Yl=0,mi=e),Yl)},movementY:function(e){return"movementY"in e?e.movementY:Xl}}),ap=Tt(Fa),bw=M({},Fa,{dataTransfer:0}),Ew=Tt(bw),Sw=M({},pi,{relatedTarget:0}),Ql=Tt(Sw),kw=M({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Aw=Tt(kw),Dw=M({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fw=Tt(Dw),Bw=M({},ao,{data:0}),sp=Tt(Bw),Pw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rw={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"},_w={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tw(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=_w[e])?!!n[e]:!1}function ql(){return Tw}var Iw=M({},pi,{key:function(e){if(e.key){var n=Pw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ql,charCode:function(e){return e.type==="keypress"?Aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mw=Tt(Iw),Ow=M({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lp=Tt(Ow),Nw=M({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ql}),Lw=Tt(Nw),jw=M({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ww=Tt(jw),$w=M({},Fa,{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}),zw=Tt($w),Hw=[9,13,27,32],Zl=f&&"CompositionEvent"in window,hi=null;f&&"documentMode"in document&&(hi=document.documentMode);var Vw=f&&"TextEvent"in window&&!hi,cp=f&&(!Zl||hi&&8<hi&&11>=hi),up=" ",dp=!1;function fp(e,n){switch(e){case"keyup":return Hw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var so=!1;function Uw(e,n){switch(e){case"compositionend":return pp(n);case"keypress":return n.which!==32?null:(dp=!0,up);case"textInput":return e=n.data,e===up&&dp?null:e;default:return null}}function Gw(e,n){if(so)return e==="compositionend"||!Zl&&fp(e,n)?(e=op(),ka=Gl=Qn=null,so=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return cp&&n.locale!=="ko"?null:n.data;default:return null}}var Kw={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 mp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Kw[e.type]:n==="textarea"}function hp(e,n,i,l){Mf(l),n=Ta(n,"onChange"),0<n.length&&(i=new Kl("onChange","change",null,i,l),e.push({event:i,listeners:n}))}var gi=null,vi=null;function Yw(e){Tp(e,0)}function Ba(e){var n=po(e);if(q(n))return e}function Xw(e,n){if(e==="change")return n}var gp=!1;if(f){var Jl;if(f){var ec="oninput"in document;if(!ec){var vp=document.createElement("div");vp.setAttribute("oninput","return;"),ec=typeof vp.oninput=="function"}Jl=ec}else Jl=!1;gp=Jl&&(!document.documentMode||9<document.documentMode)}function yp(){gi&&(gi.detachEvent("onpropertychange",wp),vi=gi=null)}function wp(e){if(e.propertyName==="value"&&Ba(vi)){var n=[];hp(n,vi,e,Tl(e)),jf(Yw,n)}}function Qw(e,n,i){e==="focusin"?(yp(),gi=n,vi=i,gi.attachEvent("onpropertychange",wp)):e==="focusout"&&yp()}function qw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ba(vi)}function Zw(e,n){if(e==="click")return Ba(n)}function Jw(e,n){if(e==="input"||e==="change")return Ba(n)}function e1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var en=typeof Object.is=="function"?Object.is:e1;function yi(e,n){if(en(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),l=Object.keys(n);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var d=i[l];if(!h.call(n,d)||!en(e[d],n[d]))return!1}return!0}function Cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xp(e,n){var i=Cp(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=n&&l>=n)return{node:i,offset:n-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Cp(i)}}function bp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?bp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ep(){for(var e=window,n=De();n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=De(e.document)}return n}function tc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function t1(e){var n=Ep(),i=e.focusedElem,l=e.selectionRange;if(n!==i&&i&&i.ownerDocument&&bp(i.ownerDocument.documentElement,i)){if(l!==null&&tc(i)){if(n=l.start,e=l.end,e===void 0&&(e=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(e,i.value.length);else if(e=(n=i.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=i.textContent.length,p=Math.min(l.start,d);l=l.end===void 0?p:Math.min(l.end,d),!e.extend&&p>l&&(d=l,l=p,p=d),d=xp(i,p);var x=xp(i,l);d&&x&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),p>l?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=i;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<n.length;i++)e=n[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var n1=f&&"documentMode"in document&&11>=document.documentMode,lo=null,nc=null,wi=null,rc=!1;function Sp(e,n,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;rc||lo==null||lo!==De(l)||(l=lo,"selectionStart"in l&&tc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wi&&yi(wi,l)||(wi=l,l=Ta(nc,"onSelect"),0<l.length&&(n=new Kl("onSelect","select",null,n,i),e.push({event:n,listeners:l}),n.target=lo)))}function Pa(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var co={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionend:Pa("Transition","TransitionEnd")},oc={},kp={};f&&(kp=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Ra(e){if(oc[e])return oc[e];if(!co[e])return e;var n=co[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in kp)return oc[e]=n[i];return e}var Ap=Ra("animationend"),Dp=Ra("animationiteration"),Fp=Ra("animationstart"),Bp=Ra("transitionend"),Pp=new Map,Rp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qn(e,n){Pp.set(e,n),c(n,[e])}for(var ic=0;ic<Rp.length;ic++){var ac=Rp[ic],r1=ac.toLowerCase(),o1=ac[0].toUpperCase()+ac.slice(1);qn(r1,"on"+o1)}qn(Ap,"onAnimationEnd"),qn(Dp,"onAnimationIteration"),qn(Fp,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(Bp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="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(" "),i1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ci));function _p(e,n,i){var l=e.type||"unknown-event";e.currentTarget=i,rw(l,n,void 0,e),e.currentTarget=null}function Tp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],d=l.event;l=l.listeners;e:{var p=void 0;if(n)for(var x=l.length-1;0<=x;x--){var D=l[x],P=D.instance,$=D.currentTarget;if(D=D.listener,P!==p&&d.isPropagationStopped())break e;_p(d,D,$),p=P}else for(x=0;x<l.length;x++){if(D=l[x],P=D.instance,$=D.currentTarget,D=D.listener,P!==p&&d.isPropagationStopped())break e;_p(d,D,$),p=P}}}if(ha)throw e=Nl,ha=!1,Nl=null,e}function ze(e,n){var i=n[mc];i===void 0&&(i=n[mc]=new Set);var l=e+"__bubble";i.has(l)||(Ip(n,e,2,!1),i.add(l))}function sc(e,n,i){var l=0;n&&(l|=4),Ip(i,e,l,n)}var _a="_reactListening"+Math.random().toString(36).slice(2);function xi(e){if(!e[_a]){e[_a]=!0,a.forEach(function(i){i!=="selectionchange"&&(i1.has(i)||sc(i,!1,e),sc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[_a]||(n[_a]=!0,sc("selectionchange",!1,n))}}function Ip(e,n,i,l){switch(rp(n)){case 1:var d=ww;break;case 4:d=Cw;break;default:d=Vl}i=d.bind(null,n,i,e),d=void 0,!Ol||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?e.addEventListener(n,i,{capture:!0,passive:d}):e.addEventListener(n,i,!0):d!==void 0?e.addEventListener(n,i,{passive:d}):e.addEventListener(n,i,!1)}function lc(e,n,i,l,d){var p=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var D=l.stateNode.containerInfo;if(D===d||D.nodeType===8&&D.parentNode===d)break;if(x===4)for(x=l.return;x!==null;){var P=x.tag;if((P===3||P===4)&&(P=x.stateNode.containerInfo,P===d||P.nodeType===8&&P.parentNode===d))return;x=x.return}for(;D!==null;){if(x=Dr(D),x===null)return;if(P=x.tag,P===5||P===6){l=p=x;continue e}D=D.parentNode}}l=l.return}jf(function(){var $=p,Q=Tl(i),J=[];e:{var X=Pp.get(e);if(X!==void 0){var ce=Kl,me=e;switch(e){case"keypress":if(Aa(i)===0)break e;case"keydown":case"keyup":ce=Mw;break;case"focusin":me="focus",ce=Ql;break;case"focusout":me="blur",ce=Ql;break;case"beforeblur":case"afterblur":ce=Ql;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=Ew;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=Lw;break;case Ap:case Dp:case Fp:ce=Aw;break;case Bp:ce=Ww;break;case"scroll":ce=xw;break;case"wheel":ce=zw;break;case"copy":case"cut":case"paste":ce=Fw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=lp}var ve=(n&4)!==0,et=!ve&&e==="scroll",O=ve?X!==null?X+"Capture":null:X;ve=[];for(var I=$,L;I!==null;){L=I;var ne=L.stateNode;if(L.tag===5&&ne!==null&&(L=ne,O!==null&&(ne=ri(I,O),ne!=null&&ve.push(bi(I,ne,L)))),et)break;I=I.return}0<ve.length&&(X=new ce(X,me,null,i,Q),J.push({event:X,listeners:ve}))}}if((n&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",ce=e==="mouseout"||e==="pointerout",X&&i!==_l&&(me=i.relatedTarget||i.fromElement)&&(Dr(me)||me[Sn]))break e;if((ce||X)&&(X=Q.window===Q?Q:(X=Q.ownerDocument)?X.defaultView||X.parentWindow:window,ce?(me=i.relatedTarget||i.toElement,ce=$,me=me?Dr(me):null,me!==null&&(et=Ar(me),me!==et||me.tag!==5&&me.tag!==6)&&(me=null)):(ce=null,me=$),ce!==me)){if(ve=ap,ne="onMouseLeave",O="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(ve=lp,ne="onPointerLeave",O="onPointerEnter",I="pointer"),et=ce==null?X:po(ce),L=me==null?X:po(me),X=new ve(ne,I+"leave",ce,i,Q),X.target=et,X.relatedTarget=L,ne=null,Dr(Q)===$&&(ve=new ve(O,I+"enter",me,i,Q),ve.target=L,ve.relatedTarget=et,ne=ve),et=ne,ce&&me)t:{for(ve=ce,O=me,I=0,L=ve;L;L=uo(L))I++;for(L=0,ne=O;ne;ne=uo(ne))L++;for(;0<I-L;)ve=uo(ve),I--;for(;0<L-I;)O=uo(O),L--;for(;I--;){if(ve===O||O!==null&&ve===O.alternate)break t;ve=uo(ve),O=uo(O)}ve=null}else ve=null;ce!==null&&Mp(J,X,ce,ve,!1),me!==null&&et!==null&&Mp(J,et,me,ve,!0)}}e:{if(X=$?po($):window,ce=X.nodeName&&X.nodeName.toLowerCase(),ce==="select"||ce==="input"&&X.type==="file")var we=Xw;else if(mp(X))if(gp)we=Jw;else{we=qw;var xe=Qw}else(ce=X.nodeName)&&ce.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(we=Zw);if(we&&(we=we(e,$))){hp(J,we,i,Q);break e}xe&&xe(e,X,$),e==="focusout"&&(xe=X._wrapperState)&&xe.controlled&&X.type==="number"&&Dl(X,"number",X.value)}switch(xe=$?po($):window,e){case"focusin":(mp(xe)||xe.contentEditable==="true")&&(lo=xe,nc=$,wi=null);break;case"focusout":wi=nc=lo=null;break;case"mousedown":rc=!0;break;case"contextmenu":case"mouseup":case"dragend":rc=!1,Sp(J,i,Q);break;case"selectionchange":if(n1)break;case"keydown":case"keyup":Sp(J,i,Q)}var be;if(Zl)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else so?fp(e,i)&&(ke="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ke="onCompositionStart");ke&&(cp&&i.locale!=="ko"&&(so||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&so&&(be=op()):(Qn=Q,Gl="value"in Qn?Qn.value:Qn.textContent,so=!0)),xe=Ta($,ke),0<xe.length&&(ke=new sp(ke,e,null,i,Q),J.push({event:ke,listeners:xe}),be?ke.data=be:(be=pp(i),be!==null&&(ke.data=be)))),(be=Vw?Uw(e,i):Gw(e,i))&&($=Ta($,"onBeforeInput"),0<$.length&&(Q=new sp("onBeforeInput","beforeinput",null,i,Q),J.push({event:Q,listeners:$}),Q.data=be))}Tp(J,n)})}function bi(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ta(e,n){for(var i=n+"Capture",l=[];e!==null;){var d=e,p=d.stateNode;d.tag===5&&p!==null&&(d=p,p=ri(e,i),p!=null&&l.unshift(bi(e,p,d)),p=ri(e,n),p!=null&&l.push(bi(e,p,d))),e=e.return}return l}function uo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mp(e,n,i,l,d){for(var p=n._reactName,x=[];i!==null&&i!==l;){var D=i,P=D.alternate,$=D.stateNode;if(P!==null&&P===l)break;D.tag===5&&$!==null&&(D=$,d?(P=ri(i,p),P!=null&&x.unshift(bi(i,P,D))):d||(P=ri(i,p),P!=null&&x.push(bi(i,P,D)))),i=i.return}x.length!==0&&e.push({event:n,listeners:x})}var a1=/\r\n?/g,s1=/\u0000|\uFFFD/g;function Op(e){return(typeof e=="string"?e:""+e).replace(a1,`
38
- `).replace(s1,"")}function Ia(e,n,i){if(n=Op(n),Op(e)!==n&&i)throw Error(o(425))}function Ma(){}var cc=null,uc=null;function dc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var fc=typeof setTimeout=="function"?setTimeout:void 0,l1=typeof clearTimeout=="function"?clearTimeout:void 0,Np=typeof Promise=="function"?Promise:void 0,c1=typeof queueMicrotask=="function"?queueMicrotask:typeof Np<"u"?function(e){return Np.resolve(null).then(e).catch(u1)}:fc;function u1(e){setTimeout(function(){throw e})}function pc(e,n){var i=n,l=0;do{var d=i.nextSibling;if(e.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(l===0){e.removeChild(d),fi(n);return}l--}else i!=="$"&&i!=="$?"&&i!=="$!"||l++;i=d}while(i);fi(n)}function Zn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Lp(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),pn="__reactFiber$"+fo,Ei="__reactProps$"+fo,Sn="__reactContainer$"+fo,mc="__reactEvents$"+fo,d1="__reactListeners$"+fo,f1="__reactHandles$"+fo;function Dr(e){var n=e[pn];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Sn]||i[pn]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Lp(e);e!==null;){if(i=e[pn])return i;e=Lp(e)}return n}e=i,i=e.parentNode}return null}function Si(e){return e=e[pn]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function po(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Oa(e){return e[Ei]||null}var hc=[],mo=-1;function Jn(e){return{current:e}}function He(e){0>mo||(e.current=hc[mo],hc[mo]=null,mo--)}function $e(e,n){mo++,hc[mo]=e.current,e.current=n}var er={},vt=Jn(er),At=Jn(!1),Fr=er;function ho(e,n){var i=e.type.contextTypes;if(!i)return er;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===n)return l.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in i)d[p]=n[p];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function Dt(e){return e=e.childContextTypes,e!=null}function Na(){He(At),He(vt)}function jp(e,n,i){if(vt.current!==er)throw Error(o(168));$e(vt,n),$e(At,i)}function Wp(e,n,i){var l=e.stateNode;if(n=n.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var d in l)if(!(d in n))throw Error(o(108,Se(e)||"Unknown",d));return M({},i,l)}function La(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,Fr=vt.current,$e(vt,e),$e(At,At.current),!0}function $p(e,n,i){var l=e.stateNode;if(!l)throw Error(o(169));i?(e=Wp(e,n,Fr),l.__reactInternalMemoizedMergedChildContext=e,He(At),He(vt),$e(vt,e)):He(At),$e(At,i)}var kn=null,ja=!1,gc=!1;function zp(e){kn===null?kn=[e]:kn.push(e)}function p1(e){ja=!0,zp(e)}function tr(){if(!gc&&kn!==null){gc=!0;var e=0,n=Ne;try{var i=kn;for(Ne=1;e<i.length;e++){var l=i[e];do l=l(!0);while(l!==null)}kn=null,ja=!1}catch(d){throw kn!==null&&(kn=kn.slice(e+1)),Vf(Ll,tr),d}finally{Ne=n,gc=!1}}return null}var go=[],vo=0,Wa=null,$a=0,jt=[],Wt=0,Br=null,An=1,Dn="";function Pr(e,n){go[vo++]=$a,go[vo++]=Wa,Wa=e,$a=n}function Hp(e,n,i){jt[Wt++]=An,jt[Wt++]=Dn,jt[Wt++]=Br,Br=e;var l=An;e=Dn;var d=32-Jt(l)-1;l&=~(1<<d),i+=1;var p=32-Jt(n)+d;if(30<p){var x=d-d%5;p=(l&(1<<x)-1).toString(32),l>>=x,d-=x,An=1<<32-Jt(n)+d|i<<d|l,Dn=p+e}else An=1<<p|i<<d|l,Dn=e}function vc(e){e.return!==null&&(Pr(e,1),Hp(e,1,0))}function yc(e){for(;e===Wa;)Wa=go[--vo],go[vo]=null,$a=go[--vo],go[vo]=null;for(;e===Br;)Br=jt[--Wt],jt[Wt]=null,Dn=jt[--Wt],jt[Wt]=null,An=jt[--Wt],jt[Wt]=null}var It=null,Mt=null,Ue=!1,tn=null;function Vp(e,n){var i=Vt(5,null,null,0);i.elementType="DELETED",i.stateNode=n,i.return=e,n=e.deletions,n===null?(e.deletions=[i],e.flags|=16):n.push(i)}function Up(e,n){switch(e.tag){case 5:var i=e.type;return n=n.nodeType!==1||i.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,It=e,Mt=Zn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,It=e,Mt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(i=Br!==null?{id:An,overflow:Dn}:null,e.memoizedState={dehydrated:n,treeContext:i,retryLane:1073741824},i=Vt(18,null,null,0),i.stateNode=n,i.return=e,e.child=i,It=e,Mt=null,!0):!1;default:return!1}}function wc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cc(e){if(Ue){var n=Mt;if(n){var i=n;if(!Up(e,n)){if(wc(e))throw Error(o(418));n=Zn(i.nextSibling);var l=It;n&&Up(e,n)?Vp(l,i):(e.flags=e.flags&-4097|2,Ue=!1,It=e)}}else{if(wc(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ue=!1,It=e}}}function Gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function za(e){if(e!==It)return!1;if(!Ue)return Gp(e),Ue=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!dc(e.type,e.memoizedProps)),n&&(n=Mt)){if(wc(e))throw Kp(),Error(o(418));for(;n;)Vp(e,n),n=Zn(n.nextSibling)}if(Gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(n===0){Mt=Zn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++}e=e.nextSibling}Mt=null}}else Mt=It?Zn(e.stateNode.nextSibling):null;return!0}function Kp(){for(var e=Mt;e;)e=Zn(e.nextSibling)}function yo(){Mt=It=null,Ue=!1}function xc(e){tn===null?tn=[e]:tn.push(e)}var m1=F.ReactCurrentBatchConfig;function ki(e,n,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var l=i.stateNode}if(!l)throw Error(o(147,e));var d=l,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var D=d.refs;x===null?delete D[p]:D[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,e))}return e}function Ha(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Yp(e){var n=e._init;return n(e._payload)}function Xp(e){function n(O,I){if(e){var L=O.deletions;L===null?(O.deletions=[I],O.flags|=16):L.push(I)}}function i(O,I){if(!e)return null;for(;I!==null;)n(O,I),I=I.sibling;return null}function l(O,I){for(O=new Map;I!==null;)I.key!==null?O.set(I.key,I):O.set(I.index,I),I=I.sibling;return O}function d(O,I){return O=cr(O,I),O.index=0,O.sibling=null,O}function p(O,I,L){return O.index=L,e?(L=O.alternate,L!==null?(L=L.index,L<I?(O.flags|=2,I):L):(O.flags|=2,I)):(O.flags|=1048576,I)}function x(O){return e&&O.alternate===null&&(O.flags|=2),O}function D(O,I,L,ne){return I===null||I.tag!==6?(I=fu(L,O.mode,ne),I.return=O,I):(I=d(I,L),I.return=O,I)}function P(O,I,L,ne){var we=L.type;return we===H?Q(O,I,L.props.children,ne,L.key):I!==null&&(I.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===le&&Yp(we)===I.type)?(ne=d(I,L.props),ne.ref=ki(O,I,L),ne.return=O,ne):(ne=ps(L.type,L.key,L.props,null,O.mode,ne),ne.ref=ki(O,I,L),ne.return=O,ne)}function $(O,I,L,ne){return I===null||I.tag!==4||I.stateNode.containerInfo!==L.containerInfo||I.stateNode.implementation!==L.implementation?(I=pu(L,O.mode,ne),I.return=O,I):(I=d(I,L.children||[]),I.return=O,I)}function Q(O,I,L,ne,we){return I===null||I.tag!==7?(I=Lr(L,O.mode,ne,we),I.return=O,I):(I=d(I,L),I.return=O,I)}function J(O,I,L){if(typeof I=="string"&&I!==""||typeof I=="number")return I=fu(""+I,O.mode,L),I.return=O,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case N:return L=ps(I.type,I.key,I.props,null,O.mode,L),L.ref=ki(O,null,I),L.return=O,L;case W:return I=pu(I,O.mode,L),I.return=O,I;case le:var ne=I._init;return J(O,ne(I._payload),L)}if(ei(I)||Z(I))return I=Lr(I,O.mode,L,null),I.return=O,I;Ha(O,I)}return null}function X(O,I,L,ne){var we=I!==null?I.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return we!==null?null:D(O,I,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===we?P(O,I,L,ne):null;case W:return L.key===we?$(O,I,L,ne):null;case le:return we=L._init,X(O,I,we(L._payload),ne)}if(ei(L)||Z(L))return we!==null?null:Q(O,I,L,ne,null);Ha(O,L)}return null}function ce(O,I,L,ne,we){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return O=O.get(L)||null,D(I,O,""+ne,we);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case N:return O=O.get(ne.key===null?L:ne.key)||null,P(I,O,ne,we);case W:return O=O.get(ne.key===null?L:ne.key)||null,$(I,O,ne,we);case le:var xe=ne._init;return ce(O,I,L,xe(ne._payload),we)}if(ei(ne)||Z(ne))return O=O.get(L)||null,Q(I,O,ne,we,null);Ha(I,ne)}return null}function me(O,I,L,ne){for(var we=null,xe=null,be=I,ke=I=0,ct=null;be!==null&&ke<L.length;ke++){be.index>ke?(ct=be,be=null):ct=be.sibling;var Me=X(O,be,L[ke],ne);if(Me===null){be===null&&(be=ct);break}e&&be&&Me.alternate===null&&n(O,be),I=p(Me,I,ke),xe===null?we=Me:xe.sibling=Me,xe=Me,be=ct}if(ke===L.length)return i(O,be),Ue&&Pr(O,ke),we;if(be===null){for(;ke<L.length;ke++)be=J(O,L[ke],ne),be!==null&&(I=p(be,I,ke),xe===null?we=be:xe.sibling=be,xe=be);return Ue&&Pr(O,ke),we}for(be=l(O,be);ke<L.length;ke++)ct=ce(be,O,ke,L[ke],ne),ct!==null&&(e&&ct.alternate!==null&&be.delete(ct.key===null?ke:ct.key),I=p(ct,I,ke),xe===null?we=ct:xe.sibling=ct,xe=ct);return e&&be.forEach(function(ur){return n(O,ur)}),Ue&&Pr(O,ke),we}function ve(O,I,L,ne){var we=Z(L);if(typeof we!="function")throw Error(o(150));if(L=we.call(L),L==null)throw Error(o(151));for(var xe=we=null,be=I,ke=I=0,ct=null,Me=L.next();be!==null&&!Me.done;ke++,Me=L.next()){be.index>ke?(ct=be,be=null):ct=be.sibling;var ur=X(O,be,Me.value,ne);if(ur===null){be===null&&(be=ct);break}e&&be&&ur.alternate===null&&n(O,be),I=p(ur,I,ke),xe===null?we=ur:xe.sibling=ur,xe=ur,be=ct}if(Me.done)return i(O,be),Ue&&Pr(O,ke),we;if(be===null){for(;!Me.done;ke++,Me=L.next())Me=J(O,Me.value,ne),Me!==null&&(I=p(Me,I,ke),xe===null?we=Me:xe.sibling=Me,xe=Me);return Ue&&Pr(O,ke),we}for(be=l(O,be);!Me.done;ke++,Me=L.next())Me=ce(be,O,ke,Me.value,ne),Me!==null&&(e&&Me.alternate!==null&&be.delete(Me.key===null?ke:Me.key),I=p(Me,I,ke),xe===null?we=Me:xe.sibling=Me,xe=Me);return e&&be.forEach(function(K1){return n(O,K1)}),Ue&&Pr(O,ke),we}function et(O,I,L,ne){if(typeof L=="object"&&L!==null&&L.type===H&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case N:e:{for(var we=L.key,xe=I;xe!==null;){if(xe.key===we){if(we=L.type,we===H){if(xe.tag===7){i(O,xe.sibling),I=d(xe,L.props.children),I.return=O,O=I;break e}}else if(xe.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===le&&Yp(we)===xe.type){i(O,xe.sibling),I=d(xe,L.props),I.ref=ki(O,xe,L),I.return=O,O=I;break e}i(O,xe);break}else n(O,xe);xe=xe.sibling}L.type===H?(I=Lr(L.props.children,O.mode,ne,L.key),I.return=O,O=I):(ne=ps(L.type,L.key,L.props,null,O.mode,ne),ne.ref=ki(O,I,L),ne.return=O,O=ne)}return x(O);case W:e:{for(xe=L.key;I!==null;){if(I.key===xe)if(I.tag===4&&I.stateNode.containerInfo===L.containerInfo&&I.stateNode.implementation===L.implementation){i(O,I.sibling),I=d(I,L.children||[]),I.return=O,O=I;break e}else{i(O,I);break}else n(O,I);I=I.sibling}I=pu(L,O.mode,ne),I.return=O,O=I}return x(O);case le:return xe=L._init,et(O,I,xe(L._payload),ne)}if(ei(L))return me(O,I,L,ne);if(Z(L))return ve(O,I,L,ne);Ha(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,I!==null&&I.tag===6?(i(O,I.sibling),I=d(I,L),I.return=O,O=I):(i(O,I),I=fu(L,O.mode,ne),I.return=O,O=I),x(O)):i(O,I)}return et}var wo=Xp(!0),Qp=Xp(!1),Va=Jn(null),Ua=null,Co=null,bc=null;function Ec(){bc=Co=Ua=null}function Sc(e){var n=Va.current;He(Va),e._currentValue=n}function kc(e,n,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===i)break;e=e.return}}function xo(e,n){Ua=e,bc=Co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Ft=!0),e.firstContext=null)}function $t(e){var n=e._currentValue;if(bc!==e)if(e={context:e,memoizedValue:n,next:null},Co===null){if(Ua===null)throw Error(o(308));Co=e,Ua.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return n}var Rr=null;function Ac(e){Rr===null?Rr=[e]:Rr.push(e)}function qp(e,n,i,l){var d=n.interleaved;return d===null?(i.next=i,Ac(n)):(i.next=d.next,d.next=i),n.interleaved=i,Fn(e,l)}function Fn(e,n){e.lanes|=n;var i=e.alternate;for(i!==null&&(i.lanes|=n),i=e,e=e.return;e!==null;)e.childLanes|=n,i=e.alternate,i!==null&&(i.childLanes|=n),i=e,e=e.return;return i.tag===3?i.stateNode:null}var nr=!1;function Dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function rr(e,n,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var d=l.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,Fn(e,i)}return d=l.interleaved,d===null?(n.next=n,Ac(l)):(n.next=d.next,d.next=n),l.interleaved=n,Fn(e,i)}function Ga(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194240)!==0)){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,$l(e,i)}}function Jp(e,n){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var d=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var x={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};p===null?d=p=x:p=p.next=x,i=i.next}while(i!==null);p===null?d=p=n:p=p.next=n}else d=p=n;i={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,effects:l.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}function Ka(e,n,i,l){var d=e.updateQueue;nr=!1;var p=d.firstBaseUpdate,x=d.lastBaseUpdate,D=d.shared.pending;if(D!==null){d.shared.pending=null;var P=D,$=P.next;P.next=null,x===null?p=$:x.next=$,x=P;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,D=Q.lastBaseUpdate,D!==x&&(D===null?Q.firstBaseUpdate=$:D.next=$,Q.lastBaseUpdate=P))}if(p!==null){var J=d.baseState;x=0,Q=$=P=null,D=p;do{var X=D.lane,ce=D.eventTime;if((l&X)===X){Q!==null&&(Q=Q.next={eventTime:ce,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var me=e,ve=D;switch(X=n,ce=i,ve.tag){case 1:if(me=ve.payload,typeof me=="function"){J=me.call(ce,J,X);break e}J=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,X=typeof me=="function"?me.call(ce,J,X):me,X==null)break e;J=M({},J,X);break e;case 2:nr=!0}}D.callback!==null&&D.lane!==0&&(e.flags|=64,X=d.effects,X===null?d.effects=[D]:X.push(D))}else ce={eventTime:ce,lane:X,tag:D.tag,payload:D.payload,callback:D.callback,next:null},Q===null?($=Q=ce,P=J):Q=Q.next=ce,x|=X;if(D=D.next,D===null){if(D=d.shared.pending,D===null)break;X=D,D=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);if(Q===null&&(P=J),d.baseState=P,d.firstBaseUpdate=$,d.lastBaseUpdate=Q,n=d.shared.interleaved,n!==null){d=n;do x|=d.lane,d=d.next;while(d!==n)}else p===null&&(d.shared.lanes=0);Ir|=x,e.lanes=x,e.memoizedState=J}}function em(e,n,i){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var l=e[n],d=l.callback;if(d!==null){if(l.callback=null,l=i,typeof d!="function")throw Error(o(191,d));d.call(l)}}}var Ai={},mn=Jn(Ai),Di=Jn(Ai),Fi=Jn(Ai);function _r(e){if(e===Ai)throw Error(o(174));return e}function Fc(e,n){switch($e(Fi,n),$e(Di,e),$e(mn,Ai),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Bl(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Bl(n,e)}He(mn),$e(mn,n)}function bo(){He(mn),He(Di),He(Fi)}function tm(e){_r(Fi.current);var n=_r(mn.current),i=Bl(n,e.type);n!==i&&($e(Di,e),$e(mn,i))}function Bc(e){Di.current===e&&(He(mn),He(Di))}var Ke=Jn(0);function Ya(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Pc=[];function Rc(){for(var e=0;e<Pc.length;e++)Pc[e]._workInProgressVersionPrimary=null;Pc.length=0}var Xa=F.ReactCurrentDispatcher,_c=F.ReactCurrentBatchConfig,Tr=0,Ye=null,ot=null,st=null,Qa=!1,Bi=!1,Pi=0,h1=0;function yt(){throw Error(o(321))}function Tc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!en(e[i],n[i]))return!1;return!0}function Ic(e,n,i,l,d,p){if(Tr=p,Ye=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Xa.current=e===null||e.memoizedState===null?w1:C1,e=i(l,d),Bi){p=0;do{if(Bi=!1,Pi=0,25<=p)throw Error(o(301));p+=1,st=ot=null,n.updateQueue=null,Xa.current=x1,e=i(l,d)}while(Bi)}if(Xa.current=Ja,n=ot!==null&&ot.next!==null,Tr=0,st=ot=Ye=null,Qa=!1,n)throw Error(o(300));return e}function Mc(){var e=Pi!==0;return Pi=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ye.memoizedState=st=e:st=st.next=e,st}function zt(){if(ot===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var n=st===null?Ye.memoizedState:st.next;if(n!==null)st=n,ot=e;else{if(e===null)throw Error(o(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},st===null?Ye.memoizedState=st=e:st=st.next=e}return st}function Ri(e,n){return typeof n=="function"?n(e):n}function Oc(e){var n=zt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=ot,d=l.baseQueue,p=i.pending;if(p!==null){if(d!==null){var x=d.next;d.next=p.next,p.next=x}l.baseQueue=d=p,i.pending=null}if(d!==null){p=d.next,l=l.baseState;var D=x=null,P=null,$=p;do{var Q=$.lane;if((Tr&Q)===Q)P!==null&&(P=P.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),l=$.hasEagerState?$.eagerState:e(l,$.action);else{var J={lane:Q,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};P===null?(D=P=J,x=l):P=P.next=J,Ye.lanes|=Q,Ir|=Q}$=$.next}while($!==null&&$!==p);P===null?x=l:P.next=D,en(l,n.memoizedState)||(Ft=!0),n.memoizedState=l,n.baseState=x,n.baseQueue=P,i.lastRenderedState=l}if(e=i.interleaved,e!==null){d=e;do p=d.lane,Ye.lanes|=p,Ir|=p,d=d.next;while(d!==e)}else d===null&&(i.lanes=0);return[n.memoizedState,i.dispatch]}function Nc(e){var n=zt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=i.dispatch,d=i.pending,p=n.memoizedState;if(d!==null){i.pending=null;var x=d=d.next;do p=e(p,x.action),x=x.next;while(x!==d);en(p,n.memoizedState)||(Ft=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),i.lastRenderedState=p}return[p,l]}function nm(){}function rm(e,n){var i=Ye,l=zt(),d=n(),p=!en(l.memoizedState,d);if(p&&(l.memoizedState=d,Ft=!0),l=l.queue,Lc(am.bind(null,i,l,e),[e]),l.getSnapshot!==n||p||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,_i(9,im.bind(null,i,l,d,n),void 0,null),lt===null)throw Error(o(349));(Tr&30)!==0||om(i,n,d)}return d}function om(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ye.updateQueue,n===null?(n={lastEffect:null,stores:null},Ye.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function im(e,n,i,l){n.value=i,n.getSnapshot=l,sm(n)&&lm(e)}function am(e,n,i){return i(function(){sm(n)&&lm(e)})}function sm(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!en(e,i)}catch{return!0}}function lm(e){var n=Fn(e,1);n!==null&&an(n,e,1,-1)}function cm(e){var n=hn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},n.queue=e,e=e.dispatch=y1.bind(null,Ye,e),[n.memoizedState,e]}function _i(e,n,i,l){return e={tag:e,create:n,destroy:i,deps:l,next:null},n=Ye.updateQueue,n===null?(n={lastEffect:null,stores:null},Ye.updateQueue=n,n.lastEffect=e.next=e):(i=n.lastEffect,i===null?n.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,n.lastEffect=e)),e}function um(){return zt().memoizedState}function qa(e,n,i,l){var d=hn();Ye.flags|=e,d.memoizedState=_i(1|n,i,void 0,l===void 0?null:l)}function Za(e,n,i,l){var d=zt();l=l===void 0?null:l;var p=void 0;if(ot!==null){var x=ot.memoizedState;if(p=x.destroy,l!==null&&Tc(l,x.deps)){d.memoizedState=_i(n,i,p,l);return}}Ye.flags|=e,d.memoizedState=_i(1|n,i,p,l)}function dm(e,n){return qa(8390656,8,e,n)}function Lc(e,n){return Za(2048,8,e,n)}function fm(e,n){return Za(4,2,e,n)}function pm(e,n){return Za(4,4,e,n)}function mm(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function hm(e,n,i){return i=i!=null?i.concat([e]):null,Za(4,4,mm.bind(null,n,e),i)}function jc(){}function gm(e,n){var i=zt();n=n===void 0?null:n;var l=i.memoizedState;return l!==null&&n!==null&&Tc(n,l[1])?l[0]:(i.memoizedState=[e,n],e)}function vm(e,n){var i=zt();n=n===void 0?null:n;var l=i.memoizedState;return l!==null&&n!==null&&Tc(n,l[1])?l[0]:(e=e(),i.memoizedState=[e,n],e)}function ym(e,n,i){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,Ft=!0),e.memoizedState=i):(en(i,n)||(i=Yf(),Ye.lanes|=i,Ir|=i,e.baseState=!0),n)}function g1(e,n){var i=Ne;Ne=i!==0&&4>i?i:4,e(!0);var l=_c.transition;_c.transition={};try{e(!1),n()}finally{Ne=i,_c.transition=l}}function wm(){return zt().memoizedState}function v1(e,n,i){var l=sr(e);if(i={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null},Cm(e))xm(n,i);else if(i=qp(e,n,i,l),i!==null){var d=St();an(i,e,l,d),bm(i,n,l)}}function y1(e,n,i){var l=sr(e),d={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null};if(Cm(e))xm(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,D=p(x,i);if(d.hasEagerState=!0,d.eagerState=D,en(D,x)){var P=n.interleaved;P===null?(d.next=d,Ac(n)):(d.next=P.next,P.next=d),n.interleaved=d;return}}catch{}finally{}i=qp(e,n,d,l),i!==null&&(d=St(),an(i,e,l,d),bm(i,n,l))}}function Cm(e){var n=e.alternate;return e===Ye||n!==null&&n===Ye}function xm(e,n){Bi=Qa=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function bm(e,n,i){if((i&4194240)!==0){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,$l(e,i)}}var Ja={readContext:$t,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useInsertionEffect:yt,useLayoutEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useMutableSource:yt,useSyncExternalStore:yt,useId:yt,unstable_isNewReconciler:!1},w1={readContext:$t,useCallback:function(e,n){return hn().memoizedState=[e,n===void 0?null:n],e},useContext:$t,useEffect:dm,useImperativeHandle:function(e,n,i){return i=i!=null?i.concat([e]):null,qa(4194308,4,mm.bind(null,n,e),i)},useLayoutEffect:function(e,n){return qa(4194308,4,e,n)},useInsertionEffect:function(e,n){return qa(4,2,e,n)},useMemo:function(e,n){var i=hn();return n=n===void 0?null:n,e=e(),i.memoizedState=[e,n],e},useReducer:function(e,n,i){var l=hn();return n=i!==void 0?i(n):n,l.memoizedState=l.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=v1.bind(null,Ye,e),[l.memoizedState,e]},useRef:function(e){var n=hn();return e={current:e},n.memoizedState=e},useState:cm,useDebugValue:jc,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=cm(!1),n=e[0];return e=g1.bind(null,e[1]),hn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,i){var l=Ye,d=hn();if(Ue){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),lt===null)throw Error(o(349));(Tr&30)!==0||om(l,n,i)}d.memoizedState=i;var p={value:i,getSnapshot:n};return d.queue=p,dm(am.bind(null,l,p,e),[e]),l.flags|=2048,_i(9,im.bind(null,l,p,i,n),void 0,null),i},useId:function(){var e=hn(),n=lt.identifierPrefix;if(Ue){var i=Dn,l=An;i=(l&~(1<<32-Jt(l)-1)).toString(32)+i,n=":"+n+"R"+i,i=Pi++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=h1++,n=":"+n+"r"+i.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},C1={readContext:$t,useCallback:gm,useContext:$t,useEffect:Lc,useImperativeHandle:hm,useInsertionEffect:fm,useLayoutEffect:pm,useMemo:vm,useReducer:Oc,useRef:um,useState:function(){return Oc(Ri)},useDebugValue:jc,useDeferredValue:function(e){var n=zt();return ym(n,ot.memoizedState,e)},useTransition:function(){var e=Oc(Ri)[0],n=zt().memoizedState;return[e,n]},useMutableSource:nm,useSyncExternalStore:rm,useId:wm,unstable_isNewReconciler:!1},x1={readContext:$t,useCallback:gm,useContext:$t,useEffect:Lc,useImperativeHandle:hm,useInsertionEffect:fm,useLayoutEffect:pm,useMemo:vm,useReducer:Nc,useRef:um,useState:function(){return Nc(Ri)},useDebugValue:jc,useDeferredValue:function(e){var n=zt();return ot===null?n.memoizedState=e:ym(n,ot.memoizedState,e)},useTransition:function(){var e=Nc(Ri)[0],n=zt().memoizedState;return[e,n]},useMutableSource:nm,useSyncExternalStore:rm,useId:wm,unstable_isNewReconciler:!1};function nn(e,n){if(e&&e.defaultProps){n=M({},n),e=e.defaultProps;for(var i in e)n[i]===void 0&&(n[i]=e[i]);return n}return n}function Wc(e,n,i,l){n=e.memoizedState,i=i(l,n),i=i==null?n:M({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var es={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,n,i){e=e._reactInternals;var l=St(),d=sr(e),p=Bn(l,d);p.payload=n,i!=null&&(p.callback=i),n=rr(e,p,d),n!==null&&(an(n,e,d,l),Ga(n,e,d))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var l=St(),d=sr(e),p=Bn(l,d);p.tag=1,p.payload=n,i!=null&&(p.callback=i),n=rr(e,p,d),n!==null&&(an(n,e,d,l),Ga(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=St(),l=sr(e),d=Bn(i,l);d.tag=2,n!=null&&(d.callback=n),n=rr(e,d,l),n!==null&&(an(n,e,l,i),Ga(n,e,l))}};function Em(e,n,i,l,d,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,p,x):n.prototype&&n.prototype.isPureReactComponent?!yi(i,l)||!yi(d,p):!0}function Sm(e,n,i){var l=!1,d=er,p=n.contextType;return typeof p=="object"&&p!==null?p=$t(p):(d=Dt(n)?Fr:vt.current,l=n.contextTypes,p=(l=l!=null)?ho(e,d):er),n=new n(i,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=es,e.stateNode=n,n._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=p),n}function km(e,n,i,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,l),n.state!==e&&es.enqueueReplaceState(n,n.state,null)}function $c(e,n,i,l){var d=e.stateNode;d.props=i,d.state=e.memoizedState,d.refs={},Dc(e);var p=n.contextType;typeof p=="object"&&p!==null?d.context=$t(p):(p=Dt(n)?Fr:vt.current,d.context=ho(e,p)),d.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Wc(e,n,p,i),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&es.enqueueReplaceState(d,d.state,null),Ka(e,i,d,l),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Eo(e,n){try{var i="",l=n;do i+=ge(l),l=l.return;while(l);var d=i}catch(p){d=`
39
- Error generating stack: `+p.message+`
40
- `+p.stack}return{value:e,source:n,stack:d,digest:null}}function zc(e,n,i){return{value:e,source:null,stack:i??null,digest:n??null}}function Hc(e,n){try{console.error(n.value)}catch(i){setTimeout(function(){throw i})}}var b1=typeof WeakMap=="function"?WeakMap:Map;function Am(e,n,i){i=Bn(-1,i),i.tag=3,i.payload={element:null};var l=n.value;return i.callback=function(){ss||(ss=!0,ou=l),Hc(e,n)},i}function Dm(e,n,i){i=Bn(-1,i),i.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var d=n.value;i.payload=function(){return l(d)},i.callback=function(){Hc(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(i.callback=function(){Hc(e,n),typeof l!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),i}function Fm(e,n,i){var l=e.pingCache;if(l===null){l=e.pingCache=new b1;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(i)||(d.add(i),e=O1.bind(null,e,n,i),n.then(e,e))}function Bm(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Pm(e,n,i,l,d){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(n=Bn(-1,1),n.tag=2,rr(i,n,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var E1=F.ReactCurrentOwner,Ft=!1;function Et(e,n,i,l){n.child=e===null?Qp(n,null,i,l):wo(n,e.child,i,l)}function Rm(e,n,i,l,d){i=i.render;var p=n.ref;return xo(n,d),l=Ic(e,n,i,l,p,d),i=Mc(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Pn(e,n,d)):(Ue&&i&&vc(n),n.flags|=1,Et(e,n,l,d),n.child)}function _m(e,n,i,l,d){if(e===null){var p=i.type;return typeof p=="function"&&!du(p)&&p.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(n.tag=15,n.type=p,Tm(e,n,p,l,d)):(e=ps(i.type,null,l,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&d)===0){var x=p.memoizedProps;if(i=i.compare,i=i!==null?i:yi,i(x,l)&&e.ref===n.ref)return Pn(e,n,d)}return n.flags|=1,e=cr(p,l),e.ref=n.ref,e.return=n,n.child=e}function Tm(e,n,i,l,d){if(e!==null){var p=e.memoizedProps;if(yi(p,l)&&e.ref===n.ref)if(Ft=!1,n.pendingProps=l=p,(e.lanes&d)!==0)(e.flags&131072)!==0&&(Ft=!0);else return n.lanes=e.lanes,Pn(e,n,d)}return Vc(e,n,i,l,d)}function Im(e,n,i){var l=n.pendingProps,d=l.children,p=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(ko,Ot),Ot|=i;else{if((i&1073741824)===0)return e=p!==null?p.baseLanes|i:i,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,$e(ko,Ot),Ot|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=p!==null?p.baseLanes:i,$e(ko,Ot),Ot|=l}else p!==null?(l=p.baseLanes|i,n.memoizedState=null):l=i,$e(ko,Ot),Ot|=l;return Et(e,n,d,i),n.child}function Mm(e,n){var i=n.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(n.flags|=512,n.flags|=2097152)}function Vc(e,n,i,l,d){var p=Dt(i)?Fr:vt.current;return p=ho(n,p),xo(n,d),i=Ic(e,n,i,l,p,d),l=Mc(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Pn(e,n,d)):(Ue&&l&&vc(n),n.flags|=1,Et(e,n,i,d),n.child)}function Om(e,n,i,l,d){if(Dt(i)){var p=!0;La(n)}else p=!1;if(xo(n,d),n.stateNode===null)ns(e,n),Sm(n,i,l),$c(n,i,l,d),l=!0;else if(e===null){var x=n.stateNode,D=n.memoizedProps;x.props=D;var P=x.context,$=i.contextType;typeof $=="object"&&$!==null?$=$t($):($=Dt(i)?Fr:vt.current,$=ho(n,$));var Q=i.getDerivedStateFromProps,J=typeof Q=="function"||typeof x.getSnapshotBeforeUpdate=="function";J||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(D!==l||P!==$)&&km(n,x,l,$),nr=!1;var X=n.memoizedState;x.state=X,Ka(n,l,x,d),P=n.memoizedState,D!==l||X!==P||At.current||nr?(typeof Q=="function"&&(Wc(n,i,Q,l),P=n.memoizedState),(D=nr||Em(n,i,D,l,X,P,$))?(J||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=P),x.props=l,x.state=P,x.context=$,l=D):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{x=n.stateNode,Zp(e,n),D=n.memoizedProps,$=n.type===n.elementType?D:nn(n.type,D),x.props=$,J=n.pendingProps,X=x.context,P=i.contextType,typeof P=="object"&&P!==null?P=$t(P):(P=Dt(i)?Fr:vt.current,P=ho(n,P));var ce=i.getDerivedStateFromProps;(Q=typeof ce=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(D!==J||X!==P)&&km(n,x,l,P),nr=!1,X=n.memoizedState,x.state=X,Ka(n,l,x,d);var me=n.memoizedState;D!==J||X!==me||At.current||nr?(typeof ce=="function"&&(Wc(n,i,ce,l),me=n.memoizedState),($=nr||Em(n,i,$,l,X,me,P)||!1)?(Q||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(l,me,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(l,me,P)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||D===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||D===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=me),x.props=l,x.state=me,x.context=P,l=$):(typeof x.componentDidUpdate!="function"||D===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||D===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),l=!1)}return Uc(e,n,i,l,p,d)}function Uc(e,n,i,l,d,p){Mm(e,n);var x=(n.flags&128)!==0;if(!l&&!x)return d&&$p(n,i,!1),Pn(e,n,p);l=n.stateNode,E1.current=n;var D=x&&typeof i.getDerivedStateFromError!="function"?null:l.render();return n.flags|=1,e!==null&&x?(n.child=wo(n,e.child,null,p),n.child=wo(n,null,D,p)):Et(e,n,D,p),n.memoizedState=l.state,d&&$p(n,i,!0),n.child}function Nm(e){var n=e.stateNode;n.pendingContext?jp(e,n.pendingContext,n.pendingContext!==n.context):n.context&&jp(e,n.context,!1),Fc(e,n.containerInfo)}function Lm(e,n,i,l,d){return yo(),xc(d),n.flags|=256,Et(e,n,i,l),n.child}var Gc={dehydrated:null,treeContext:null,retryLane:0};function Kc(e){return{baseLanes:e,cachePool:null,transitions:null}}function jm(e,n,i){var l=n.pendingProps,d=Ke.current,p=!1,x=(n.flags&128)!==0,D;if((D=x)||(D=e!==null&&e.memoizedState===null?!1:(d&2)!==0),D?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),$e(Ke,d&1),e===null)return Cc(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=l.children,e=l.fallback,p?(l=n.mode,p=n.child,x={mode:"hidden",children:x},(l&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=ms(x,l,0,null),e=Lr(e,l,i,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=Kc(i),n.memoizedState=Gc,e):Yc(n,x));if(d=e.memoizedState,d!==null&&(D=d.dehydrated,D!==null))return S1(e,n,x,l,D,d,i);if(p){p=l.fallback,x=n.mode,d=e.child,D=d.sibling;var P={mode:"hidden",children:l.children};return(x&1)===0&&n.child!==d?(l=n.child,l.childLanes=0,l.pendingProps=P,n.deletions=null):(l=cr(d,P),l.subtreeFlags=d.subtreeFlags&14680064),D!==null?p=cr(D,p):(p=Lr(p,x,i,null),p.flags|=2),p.return=n,l.return=n,l.sibling=p,n.child=l,l=p,p=n.child,x=e.child.memoizedState,x=x===null?Kc(i):{baseLanes:x.baseLanes|i,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~i,n.memoizedState=Gc,l}return p=e.child,e=p.sibling,l=cr(p,{mode:"visible",children:l.children}),(n.mode&1)===0&&(l.lanes=i),l.return=n,l.sibling=null,e!==null&&(i=n.deletions,i===null?(n.deletions=[e],n.flags|=16):i.push(e)),n.child=l,n.memoizedState=null,l}function Yc(e,n){return n=ms({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function ts(e,n,i,l){return l!==null&&xc(l),wo(n,e.child,null,i),e=Yc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function S1(e,n,i,l,d,p,x){if(i)return n.flags&256?(n.flags&=-257,l=zc(Error(o(422))),ts(e,n,x,l)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=l.fallback,d=n.mode,l=ms({mode:"visible",children:l.children},d,0,null),p=Lr(p,d,x,null),p.flags|=2,l.return=n,p.return=n,l.sibling=p,n.child=l,(n.mode&1)!==0&&wo(n,e.child,null,x),n.child.memoizedState=Kc(x),n.memoizedState=Gc,p);if((n.mode&1)===0)return ts(e,n,x,null);if(d.data==="$!"){if(l=d.nextSibling&&d.nextSibling.dataset,l)var D=l.dgst;return l=D,p=Error(o(419)),l=zc(p,l,void 0),ts(e,n,x,l)}if(D=(x&e.childLanes)!==0,Ft||D){if(l=lt,l!==null){switch(x&-x){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(l.suspendedLanes|x))!==0?0:d,d!==0&&d!==p.retryLane&&(p.retryLane=d,Fn(e,d),an(l,e,d,-1))}return uu(),l=zc(Error(o(421))),ts(e,n,x,l)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=N1.bind(null,e),d._reactRetry=n,null):(e=p.treeContext,Mt=Zn(d.nextSibling),It=n,Ue=!0,tn=null,e!==null&&(jt[Wt++]=An,jt[Wt++]=Dn,jt[Wt++]=Br,An=e.id,Dn=e.overflow,Br=n),n=Yc(n,l.children),n.flags|=4096,n)}function Wm(e,n,i){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),kc(e.return,n,i)}function Xc(e,n,i,l,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:d}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=i,p.tailMode=d)}function $m(e,n,i){var l=n.pendingProps,d=l.revealOrder,p=l.tail;if(Et(e,n,l.children,i),l=Ke.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wm(e,i,n);else if(e.tag===19)Wm(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if($e(Ke,l),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(i=n.child,d=null;i!==null;)e=i.alternate,e!==null&&Ya(e)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),Xc(n,!1,d,i,p);break;case"backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Ya(e)===null){n.child=d;break}e=d.sibling,d.sibling=i,i=d,d=e}Xc(n,!0,i,null,p);break;case"together":Xc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ns(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Pn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Ir|=n.lanes,(i&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,i=cr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=cr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function k1(e,n,i){switch(n.tag){case 3:Nm(n),yo();break;case 5:tm(n);break;case 1:Dt(n.type)&&La(n);break;case 4:Fc(n,n.stateNode.containerInfo);break;case 10:var l=n.type._context,d=n.memoizedProps.value;$e(Va,l._currentValue),l._currentValue=d;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?($e(Ke,Ke.current&1),n.flags|=128,null):(i&n.child.childLanes)!==0?jm(e,n,i):($e(Ke,Ke.current&1),e=Pn(e,n,i),e!==null?e.sibling:null);$e(Ke,Ke.current&1);break;case 19:if(l=(i&n.childLanes)!==0,(e.flags&128)!==0){if(l)return $m(e,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),$e(Ke,Ke.current),l)break;return null;case 22:case 23:return n.lanes=0,Im(e,n,i)}return Pn(e,n,i)}var zm,Qc,Hm,Vm;zm=function(e,n){for(var i=n.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Qc=function(){},Hm=function(e,n,i,l){var d=e.memoizedProps;if(d!==l){e=n.stateNode,_r(mn.current);var p=null;switch(i){case"input":d=Xe(e,d),l=Xe(e,l),p=[];break;case"select":d=M({},d,{value:void 0}),l=M({},l,{value:void 0}),p=[];break;case"textarea":d=Fl(e,d),l=Fl(e,l),p=[];break;default:typeof d.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Ma)}Pl(i,l);var x;i=null;for($ in d)if(!l.hasOwnProperty($)&&d.hasOwnProperty($)&&d[$]!=null)if($==="style"){var D=d[$];for(x in D)D.hasOwnProperty(x)&&(i||(i={}),i[x]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(s.hasOwnProperty($)?p||(p=[]):(p=p||[]).push($,null));for($ in l){var P=l[$];if(D=d?.[$],l.hasOwnProperty($)&&P!==D&&(P!=null||D!=null))if($==="style")if(D){for(x in D)!D.hasOwnProperty(x)||P&&P.hasOwnProperty(x)||(i||(i={}),i[x]="");for(x in P)P.hasOwnProperty(x)&&D[x]!==P[x]&&(i||(i={}),i[x]=P[x])}else i||(p||(p=[]),p.push($,i)),i=P;else $==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,D=D?D.__html:void 0,P!=null&&D!==P&&(p=p||[]).push($,P)):$==="children"?typeof P!="string"&&typeof P!="number"||(p=p||[]).push($,""+P):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(s.hasOwnProperty($)?(P!=null&&$==="onScroll"&&ze("scroll",e),p||D===P||(p=[])):(p=p||[]).push($,P))}i&&(p=p||[]).push("style",i);var $=p;(n.updateQueue=$)&&(n.flags|=4)}},Vm=function(e,n,i,l){i!==l&&(n.flags|=4)};function Ti(e,n){if(!Ue)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function wt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(n)for(var d=e.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags&14680064,l|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=l,e.childLanes=i,n}function A1(e,n,i){var l=n.pendingProps;switch(yc(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(n),null;case 1:return Dt(n.type)&&Na(),wt(n),null;case 3:return l=n.stateNode,bo(),He(At),He(vt),Rc(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(za(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,tn!==null&&(su(tn),tn=null))),Qc(e,n),wt(n),null;case 5:Bc(n);var d=_r(Fi.current);if(i=n.type,e!==null&&n.stateNode!=null)Hm(e,n,i,l,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(n.stateNode===null)throw Error(o(166));return wt(n),null}if(e=_r(mn.current),za(n)){l=n.stateNode,i=n.type;var p=n.memoizedProps;switch(l[pn]=n,l[Ei]=p,e=(n.mode&1)!==0,i){case"dialog":ze("cancel",l),ze("close",l);break;case"iframe":case"object":case"embed":ze("load",l);break;case"video":case"audio":for(d=0;d<Ci.length;d++)ze(Ci[d],l);break;case"source":ze("error",l);break;case"img":case"image":case"link":ze("error",l),ze("load",l);break;case"details":ze("toggle",l);break;case"input":bt(l,p),ze("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!p.multiple},ze("invalid",l);break;case"textarea":Df(l,p),ze("invalid",l)}Pl(i,p),d=null;for(var x in p)if(p.hasOwnProperty(x)){var D=p[x];x==="children"?typeof D=="string"?l.textContent!==D&&(p.suppressHydrationWarning!==!0&&Ia(l.textContent,D,e),d=["children",D]):typeof D=="number"&&l.textContent!==""+D&&(p.suppressHydrationWarning!==!0&&Ia(l.textContent,D,e),d=["children",""+D]):s.hasOwnProperty(x)&&D!=null&&x==="onScroll"&&ze("scroll",l)}switch(i){case"input":Be(l),to(l,p,!0);break;case"textarea":Be(l),Bf(l);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(l.onclick=Ma)}l=d,n.updateQueue=l,l!==null&&(n.flags|=4)}else{x=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Pf(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=x.createElement(i,{is:l.is}):(e=x.createElement(i),i==="select"&&(x=e,l.multiple?x.multiple=!0:l.size&&(x.size=l.size))):e=x.createElementNS(e,i),e[pn]=n,e[Ei]=l,zm(e,n,!1,!1),n.stateNode=e;e:{switch(x=Rl(i,l),i){case"dialog":ze("cancel",e),ze("close",e),d=l;break;case"iframe":case"object":case"embed":ze("load",e),d=l;break;case"video":case"audio":for(d=0;d<Ci.length;d++)ze(Ci[d],e);d=l;break;case"source":ze("error",e),d=l;break;case"img":case"image":case"link":ze("error",e),ze("load",e),d=l;break;case"details":ze("toggle",e),d=l;break;case"input":bt(e,l),d=Xe(e,l),ze("invalid",e);break;case"option":d=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},d=M({},l,{value:void 0}),ze("invalid",e);break;case"textarea":Df(e,l),d=Fl(e,l),ze("invalid",e);break;default:d=l}Pl(i,d),D=d;for(p in D)if(D.hasOwnProperty(p)){var P=D[p];p==="style"?Tf(e,P):p==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Rf(e,P)):p==="children"?typeof P=="string"?(i!=="textarea"||P!=="")&&ti(e,P):typeof P=="number"&&ti(e,""+P):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(s.hasOwnProperty(p)?P!=null&&p==="onScroll"&&ze("scroll",e):P!=null&&B(e,p,P,x))}switch(i){case"input":Be(e),to(e,l,!1);break;case"textarea":Be(e),Bf(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ee(l.value));break;case"select":e.multiple=!!l.multiple,p=l.value,p!=null?no(e,!!l.multiple,p,!1):l.defaultValue!=null&&no(e,!!l.multiple,l.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=Ma)}switch(i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return wt(n),null;case 6:if(e&&n.stateNode!=null)Vm(e,n,e.memoizedProps,l);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(i=_r(Fi.current),_r(mn.current),za(n)){if(l=n.stateNode,i=n.memoizedProps,l[pn]=n,(p=l.nodeValue!==i)&&(e=It,e!==null))switch(e.tag){case 3:Ia(l.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ia(l.nodeValue,i,(e.mode&1)!==0)}p&&(n.flags|=4)}else l=(i.nodeType===9?i:i.ownerDocument).createTextNode(l),l[pn]=n,n.stateNode=l}return wt(n),null;case 13:if(He(Ke),l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Mt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Kp(),yo(),n.flags|=98560,p=!1;else if(p=za(n),l!==null&&l.dehydrated!==null){if(e===null){if(!p)throw Error(o(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[pn]=n}else yo(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;wt(n),p=!1}else tn!==null&&(su(tn),tn=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=i,n):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Ke.current&1)!==0?it===0&&(it=3):uu())),n.updateQueue!==null&&(n.flags|=4),wt(n),null);case 4:return bo(),Qc(e,n),e===null&&xi(n.stateNode.containerInfo),wt(n),null;case 10:return Sc(n.type._context),wt(n),null;case 17:return Dt(n.type)&&Na(),wt(n),null;case 19:if(He(Ke),p=n.memoizedState,p===null)return wt(n),null;if(l=(n.flags&128)!==0,x=p.rendering,x===null)if(l)Ti(p,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=Ya(e),x!==null){for(n.flags|=128,Ti(p,!1),l=x.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=i,i=n.child;i!==null;)p=i,e=l,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return $e(Ke,Ke.current&1|2),n.child}e=e.sibling}p.tail!==null&&Je()>Ao&&(n.flags|=128,l=!0,Ti(p,!1),n.lanes=4194304)}else{if(!l)if(e=Ya(x),e!==null){if(n.flags|=128,l=!0,i=e.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),Ti(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Ue)return wt(n),null}else 2*Je()-p.renderingStartTime>Ao&&i!==1073741824&&(n.flags|=128,l=!0,Ti(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(i=p.last,i!==null?i.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=Je(),n.sibling=null,i=Ke.current,$e(Ke,l?i&1|2:i&1),n):(wt(n),null);case 22:case 23:return cu(),l=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(n.flags|=8192),l&&(n.mode&1)!==0?(Ot&1073741824)!==0&&(wt(n),n.subtreeFlags&6&&(n.flags|=8192)):wt(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function D1(e,n){switch(yc(n),n.tag){case 1:return Dt(n.type)&&Na(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return bo(),He(At),He(vt),Rc(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Bc(n),null;case 13:if(He(Ke),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));yo()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return He(Ke),null;case 4:return bo(),null;case 10:return Sc(n.type._context),null;case 22:case 23:return cu(),null;case 24:return null;default:return null}}var rs=!1,Ct=!1,F1=typeof WeakSet=="function"?WeakSet:Set,de=null;function So(e,n){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){Qe(e,n,l)}else i.current=null}function qc(e,n,i){try{i()}catch(l){Qe(e,n,l)}}var Um=!1;function B1(e,n){if(cc=Ea,e=Ep(),tc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var x=0,D=-1,P=-1,$=0,Q=0,J=e,X=null;t:for(;;){for(var ce;J!==i||d!==0&&J.nodeType!==3||(D=x+d),J!==p||l!==0&&J.nodeType!==3||(P=x+l),J.nodeType===3&&(x+=J.nodeValue.length),(ce=J.firstChild)!==null;)X=J,J=ce;for(;;){if(J===e)break t;if(X===i&&++$===d&&(D=x),X===p&&++Q===l&&(P=x),(ce=J.nextSibling)!==null)break;J=X,X=J.parentNode}J=ce}i=D===-1||P===-1?null:{start:D,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(uc={focusedElem:e,selectionRange:i},Ea=!1,de=n;de!==null;)if(n=de,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,de=e;else for(;de!==null;){n=de;try{var me=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ve=me.memoizedProps,et=me.memoizedState,O=n.stateNode,I=O.getSnapshotBeforeUpdate(n.elementType===n.type?ve:nn(n.type,ve),et);O.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var L=n.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ne){Qe(n,n.return,ne)}if(e=n.sibling,e!==null){e.return=n.return,de=e;break}de=n.return}return me=Um,Um=!1,me}function Ii(e,n,i){var l=n.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&e)===e){var p=d.destroy;d.destroy=void 0,p!==void 0&&qc(n,i,p)}d=d.next}while(d!==l)}}function os(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var l=i.create;i.destroy=l()}i=i.next}while(i!==n)}}function Zc(e){var n=e.ref;if(n!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof n=="function"?n(e):n.current=e}}function Gm(e){var n=e.alternate;n!==null&&(e.alternate=null,Gm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[pn],delete n[Ei],delete n[mc],delete n[d1],delete n[f1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Km(e){return e.tag===5||e.tag===3||e.tag===4}function Ym(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Km(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(e,i)):(n=i,n.appendChild(e)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ma));else if(l!==4&&(e=e.child,e!==null))for(Jc(e,n,i),e=e.sibling;e!==null;)Jc(e,n,i),e=e.sibling}function eu(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(eu(e,n,i),e=e.sibling;e!==null;)eu(e,n,i),e=e.sibling}var mt=null,rn=!1;function or(e,n,i){for(i=i.child;i!==null;)Xm(e,n,i),i=i.sibling}function Xm(e,n,i){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(va,i)}catch{}switch(i.tag){case 5:Ct||So(i,n);case 6:var l=mt,d=rn;mt=null,or(e,n,i),mt=l,rn=d,mt!==null&&(rn?(e=mt,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):mt.removeChild(i.stateNode));break;case 18:mt!==null&&(rn?(e=mt,i=i.stateNode,e.nodeType===8?pc(e.parentNode,i):e.nodeType===1&&pc(e,i),fi(e)):pc(mt,i.stateNode));break;case 4:l=mt,d=rn,mt=i.stateNode.containerInfo,rn=!0,or(e,n,i),mt=l,rn=d;break;case 0:case 11:case 14:case 15:if(!Ct&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){d=l=l.next;do{var p=d,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&qc(i,n,x),d=d.next}while(d!==l)}or(e,n,i);break;case 1:if(!Ct&&(So(i,n),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(D){Qe(i,n,D)}or(e,n,i);break;case 21:or(e,n,i);break;case 22:i.mode&1?(Ct=(l=Ct)||i.memoizedState!==null,or(e,n,i),Ct=l):or(e,n,i);break;default:or(e,n,i)}}function Qm(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new F1),n.forEach(function(l){var d=L1.bind(null,e,l);i.has(l)||(i.add(l),l.then(d,d))})}}function on(e,n){var i=n.deletions;if(i!==null)for(var l=0;l<i.length;l++){var d=i[l];try{var p=e,x=n,D=x;e:for(;D!==null;){switch(D.tag){case 5:mt=D.stateNode,rn=!1;break e;case 3:mt=D.stateNode.containerInfo,rn=!0;break e;case 4:mt=D.stateNode.containerInfo,rn=!0;break e}D=D.return}if(mt===null)throw Error(o(160));Xm(p,x,d),mt=null,rn=!1;var P=d.alternate;P!==null&&(P.return=null),d.return=null}catch($){Qe(d,n,$)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)qm(n,e),n=n.sibling}function qm(e,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(on(n,e),gn(e),l&4){try{Ii(3,e,e.return),os(3,e)}catch(ve){Qe(e,e.return,ve)}try{Ii(5,e,e.return)}catch(ve){Qe(e,e.return,ve)}}break;case 1:on(n,e),gn(e),l&512&&i!==null&&So(i,i.return);break;case 5:if(on(n,e),gn(e),l&512&&i!==null&&So(i,i.return),e.flags&32){var d=e.stateNode;try{ti(d,"")}catch(ve){Qe(e,e.return,ve)}}if(l&4&&(d=e.stateNode,d!=null)){var p=e.memoizedProps,x=i!==null?i.memoizedProps:p,D=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{D==="input"&&p.type==="radio"&&p.name!=null&&eo(d,p),Rl(D,x);var $=Rl(D,p);for(x=0;x<P.length;x+=2){var Q=P[x],J=P[x+1];Q==="style"?Tf(d,J):Q==="dangerouslySetInnerHTML"?Rf(d,J):Q==="children"?ti(d,J):B(d,Q,J,$)}switch(D){case"input":kr(d,p);break;case"textarea":Ff(d,p);break;case"select":var X=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!p.multiple;var ce=p.value;ce!=null?no(d,!!p.multiple,ce,!1):X!==!!p.multiple&&(p.defaultValue!=null?no(d,!!p.multiple,p.defaultValue,!0):no(d,!!p.multiple,p.multiple?[]:"",!1))}d[Ei]=p}catch(ve){Qe(e,e.return,ve)}}break;case 6:if(on(n,e),gn(e),l&4){if(e.stateNode===null)throw Error(o(162));d=e.stateNode,p=e.memoizedProps;try{d.nodeValue=p}catch(ve){Qe(e,e.return,ve)}}break;case 3:if(on(n,e),gn(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{fi(n.containerInfo)}catch(ve){Qe(e,e.return,ve)}break;case 4:on(n,e),gn(e);break;case 13:on(n,e),gn(e),d=e.child,d.flags&8192&&(p=d.memoizedState!==null,d.stateNode.isHidden=p,!p||d.alternate!==null&&d.alternate.memoizedState!==null||(ru=Je())),l&4&&Qm(e);break;case 22:if(Q=i!==null&&i.memoizedState!==null,e.mode&1?(Ct=($=Ct)||Q,on(n,e),Ct=$):on(n,e),gn(e),l&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!Q&&(e.mode&1)!==0)for(de=e,Q=e.child;Q!==null;){for(J=de=Q;de!==null;){switch(X=de,ce=X.child,X.tag){case 0:case 11:case 14:case 15:Ii(4,X,X.return);break;case 1:So(X,X.return);var me=X.stateNode;if(typeof me.componentWillUnmount=="function"){l=X,i=X.return;try{n=l,me.props=n.memoizedProps,me.state=n.memoizedState,me.componentWillUnmount()}catch(ve){Qe(l,i,ve)}}break;case 5:So(X,X.return);break;case 22:if(X.memoizedState!==null){eh(J);continue}}ce!==null?(ce.return=X,de=ce):eh(J)}Q=Q.sibling}e:for(Q=null,J=e;;){if(J.tag===5){if(Q===null){Q=J;try{d=J.stateNode,$?(p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(D=J.stateNode,P=J.memoizedProps.style,x=P!=null&&P.hasOwnProperty("display")?P.display:null,D.style.display=_f("display",x))}catch(ve){Qe(e,e.return,ve)}}}else if(J.tag===6){if(Q===null)try{J.stateNode.nodeValue=$?"":J.memoizedProps}catch(ve){Qe(e,e.return,ve)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===e)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===e)break e;for(;J.sibling===null;){if(J.return===null||J.return===e)break e;Q===J&&(Q=null),J=J.return}Q===J&&(Q=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:on(n,e),gn(e),l&4&&Qm(e);break;case 21:break;default:on(n,e),gn(e)}}function gn(e){var n=e.flags;if(n&2){try{e:{for(var i=e.return;i!==null;){if(Km(i)){var l=i;break e}i=i.return}throw Error(o(160))}switch(l.tag){case 5:var d=l.stateNode;l.flags&32&&(ti(d,""),l.flags&=-33);var p=Ym(e);eu(e,p,d);break;case 3:case 4:var x=l.stateNode.containerInfo,D=Ym(e);Jc(e,D,x);break;default:throw Error(o(161))}}catch(P){Qe(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function P1(e,n,i){de=e,Zm(e)}function Zm(e,n,i){for(var l=(e.mode&1)!==0;de!==null;){var d=de,p=d.child;if(d.tag===22&&l){var x=d.memoizedState!==null||rs;if(!x){var D=d.alternate,P=D!==null&&D.memoizedState!==null||Ct;D=rs;var $=Ct;if(rs=x,(Ct=P)&&!$)for(de=d;de!==null;)x=de,P=x.child,x.tag===22&&x.memoizedState!==null?th(d):P!==null?(P.return=x,de=P):th(d);for(;p!==null;)de=p,Zm(p),p=p.sibling;de=d,rs=D,Ct=$}Jm(e)}else(d.subtreeFlags&8772)!==0&&p!==null?(p.return=d,de=p):Jm(e)}}function Jm(e){for(;de!==null;){var n=de;if((n.flags&8772)!==0){var i=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Ct||os(5,n);break;case 1:var l=n.stateNode;if(n.flags&4&&!Ct)if(i===null)l.componentDidMount();else{var d=n.elementType===n.type?i.memoizedProps:nn(n.type,i.memoizedProps);l.componentDidUpdate(d,i.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&em(n,p,l);break;case 3:var x=n.updateQueue;if(x!==null){if(i=null,n.child!==null)switch(n.child.tag){case 5:i=n.child.stateNode;break;case 1:i=n.child.stateNode}em(n,x,i)}break;case 5:var D=n.stateNode;if(i===null&&n.flags&4){i=D;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&i.focus();break;case"img":P.src&&(i.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var $=n.alternate;if($!==null){var Q=$.memoizedState;if(Q!==null){var J=Q.dehydrated;J!==null&&fi(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ct||n.flags&512&&Zc(n)}catch(X){Qe(n,n.return,X)}}if(n===e){de=null;break}if(i=n.sibling,i!==null){i.return=n.return,de=i;break}de=n.return}}function eh(e){for(;de!==null;){var n=de;if(n===e){de=null;break}var i=n.sibling;if(i!==null){i.return=n.return,de=i;break}de=n.return}}function th(e){for(;de!==null;){var n=de;try{switch(n.tag){case 0:case 11:case 15:var i=n.return;try{os(4,n)}catch(P){Qe(n,i,P)}break;case 1:var l=n.stateNode;if(typeof l.componentDidMount=="function"){var d=n.return;try{l.componentDidMount()}catch(P){Qe(n,d,P)}}var p=n.return;try{Zc(n)}catch(P){Qe(n,p,P)}break;case 5:var x=n.return;try{Zc(n)}catch(P){Qe(n,x,P)}}}catch(P){Qe(n,n.return,P)}if(n===e){de=null;break}var D=n.sibling;if(D!==null){D.return=n.return,de=D;break}de=n.return}}var R1=Math.ceil,is=F.ReactCurrentDispatcher,tu=F.ReactCurrentOwner,Ht=F.ReactCurrentBatchConfig,Ie=0,lt=null,nt=null,ht=0,Ot=0,ko=Jn(0),it=0,Mi=null,Ir=0,as=0,nu=0,Oi=null,Bt=null,ru=0,Ao=1/0,Rn=null,ss=!1,ou=null,ir=null,ls=!1,ar=null,cs=0,Ni=0,iu=null,us=-1,ds=0;function St(){return(Ie&6)!==0?Je():us!==-1?us:us=Je()}function sr(e){return(e.mode&1)===0?1:(Ie&2)!==0&&ht!==0?ht&-ht:m1.transition!==null?(ds===0&&(ds=Yf()),ds):(e=Ne,e!==0||(e=window.event,e=e===void 0?16:rp(e.type)),e)}function an(e,n,i,l){if(50<Ni)throw Ni=0,iu=null,Error(o(185));si(e,i,l),((Ie&2)===0||e!==lt)&&(e===lt&&((Ie&2)===0&&(as|=i),it===4&&lr(e,ht)),Pt(e,l),i===1&&Ie===0&&(n.mode&1)===0&&(Ao=Je()+500,ja&&tr()))}function Pt(e,n){var i=e.callbackNode;mw(e,n);var l=Ca(e,e===lt?ht:0);if(l===0)i!==null&&Uf(i),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(i!=null&&Uf(i),n===1)e.tag===0?p1(rh.bind(null,e)):zp(rh.bind(null,e)),c1(function(){(Ie&6)===0&&tr()}),i=null;else{switch(Xf(l)){case 1:i=Ll;break;case 4:i=Gf;break;case 16:i=ga;break;case 536870912:i=Kf;break;default:i=ga}i=dh(i,nh.bind(null,e))}e.callbackPriority=n,e.callbackNode=i}}function nh(e,n){if(us=-1,ds=0,(Ie&6)!==0)throw Error(o(327));var i=e.callbackNode;if(Do()&&e.callbackNode!==i)return null;var l=Ca(e,e===lt?ht:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||n)n=fs(e,l);else{n=l;var d=Ie;Ie|=2;var p=ih();(lt!==e||ht!==n)&&(Rn=null,Ao=Je()+500,Or(e,n));do try{I1();break}catch(D){oh(e,D)}while(!0);Ec(),is.current=p,Ie=d,nt!==null?n=0:(lt=null,ht=0,n=it)}if(n!==0){if(n===2&&(d=jl(e),d!==0&&(l=d,n=au(e,d))),n===1)throw i=Mi,Or(e,0),lr(e,l),Pt(e,Je()),i;if(n===6)lr(e,l);else{if(d=e.current.alternate,(l&30)===0&&!_1(d)&&(n=fs(e,l),n===2&&(p=jl(e),p!==0&&(l=p,n=au(e,p))),n===1))throw i=Mi,Or(e,0),lr(e,l),Pt(e,Je()),i;switch(e.finishedWork=d,e.finishedLanes=l,n){case 0:case 1:throw Error(o(345));case 2:Nr(e,Bt,Rn);break;case 3:if(lr(e,l),(l&130023424)===l&&(n=ru+500-Je(),10<n)){if(Ca(e,0)!==0)break;if(d=e.suspendedLanes,(d&l)!==l){St(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=fc(Nr.bind(null,e,Bt,Rn),n);break}Nr(e,Bt,Rn);break;case 4:if(lr(e,l),(l&4194240)===l)break;for(n=e.eventTimes,d=-1;0<l;){var x=31-Jt(l);p=1<<x,x=n[x],x>d&&(d=x),l&=~p}if(l=d,l=Je()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*R1(l/1960))-l,10<l){e.timeoutHandle=fc(Nr.bind(null,e,Bt,Rn),l);break}Nr(e,Bt,Rn);break;case 5:Nr(e,Bt,Rn);break;default:throw Error(o(329))}}}return Pt(e,Je()),e.callbackNode===i?nh.bind(null,e):null}function au(e,n){var i=Oi;return e.current.memoizedState.isDehydrated&&(Or(e,n).flags|=256),e=fs(e,n),e!==2&&(n=Bt,Bt=i,n!==null&&su(n)),e}function su(e){Bt===null?Bt=e:Bt.push.apply(Bt,e)}function _1(e){for(var n=e;;){if(n.flags&16384){var i=n.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var l=0;l<i.length;l++){var d=i[l],p=d.getSnapshot;d=d.value;try{if(!en(p(),d))return!1}catch{return!1}}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function lr(e,n){for(n&=~nu,n&=~as,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var i=31-Jt(n),l=1<<i;e[i]=-1,n&=~l}}function rh(e){if((Ie&6)!==0)throw Error(o(327));Do();var n=Ca(e,0);if((n&1)===0)return Pt(e,Je()),null;var i=fs(e,n);if(e.tag!==0&&i===2){var l=jl(e);l!==0&&(n=l,i=au(e,l))}if(i===1)throw i=Mi,Or(e,0),lr(e,n),Pt(e,Je()),i;if(i===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Nr(e,Bt,Rn),Pt(e,Je()),null}function lu(e,n){var i=Ie;Ie|=1;try{return e(n)}finally{Ie=i,Ie===0&&(Ao=Je()+500,ja&&tr())}}function Mr(e){ar!==null&&ar.tag===0&&(Ie&6)===0&&Do();var n=Ie;Ie|=1;var i=Ht.transition,l=Ne;try{if(Ht.transition=null,Ne=1,e)return e()}finally{Ne=l,Ht.transition=i,Ie=n,(Ie&6)===0&&tr()}}function cu(){Ot=ko.current,He(ko)}function Or(e,n){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,l1(i)),nt!==null)for(i=nt.return;i!==null;){var l=i;switch(yc(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Na();break;case 3:bo(),He(At),He(vt),Rc();break;case 5:Bc(l);break;case 4:bo();break;case 13:He(Ke);break;case 19:He(Ke);break;case 10:Sc(l.type._context);break;case 22:case 23:cu()}i=i.return}if(lt=e,nt=e=cr(e.current,null),ht=Ot=n,it=0,Mi=null,nu=as=Ir=0,Bt=Oi=null,Rr!==null){for(n=0;n<Rr.length;n++)if(i=Rr[n],l=i.interleaved,l!==null){i.interleaved=null;var d=l.next,p=i.pending;if(p!==null){var x=p.next;p.next=d,l.next=x}i.pending=l}Rr=null}return e}function oh(e,n){do{var i=nt;try{if(Ec(),Xa.current=Ja,Qa){for(var l=Ye.memoizedState;l!==null;){var d=l.queue;d!==null&&(d.pending=null),l=l.next}Qa=!1}if(Tr=0,st=ot=Ye=null,Bi=!1,Pi=0,tu.current=null,i===null||i.return===null){it=1,Mi=n,nt=null;break}e:{var p=e,x=i.return,D=i,P=n;if(n=ht,D.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var $=P,Q=D,J=Q.tag;if((Q.mode&1)===0&&(J===0||J===11||J===15)){var X=Q.alternate;X?(Q.updateQueue=X.updateQueue,Q.memoizedState=X.memoizedState,Q.lanes=X.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var ce=Bm(x);if(ce!==null){ce.flags&=-257,Pm(ce,x,D,p,n),ce.mode&1&&Fm(p,$,n),n=ce,P=$;var me=n.updateQueue;if(me===null){var ve=new Set;ve.add(P),n.updateQueue=ve}else me.add(P);break e}else{if((n&1)===0){Fm(p,$,n),uu();break e}P=Error(o(426))}}else if(Ue&&D.mode&1){var et=Bm(x);if(et!==null){(et.flags&65536)===0&&(et.flags|=256),Pm(et,x,D,p,n),xc(Eo(P,D));break e}}p=P=Eo(P,D),it!==4&&(it=2),Oi===null?Oi=[p]:Oi.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var O=Am(p,P,n);Jp(p,O);break e;case 1:D=P;var I=p.type,L=p.stateNode;if((p.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(ir===null||!ir.has(L)))){p.flags|=65536,n&=-n,p.lanes|=n;var ne=Dm(p,D,n);Jp(p,ne);break e}}p=p.return}while(p!==null)}sh(i)}catch(we){n=we,nt===i&&i!==null&&(nt=i=i.return);continue}break}while(!0)}function ih(){var e=is.current;return is.current=Ja,e===null?Ja:e}function uu(){(it===0||it===3||it===2)&&(it=4),lt===null||(Ir&268435455)===0&&(as&268435455)===0||lr(lt,ht)}function fs(e,n){var i=Ie;Ie|=2;var l=ih();(lt!==e||ht!==n)&&(Rn=null,Or(e,n));do try{T1();break}catch(d){oh(e,d)}while(!0);if(Ec(),Ie=i,is.current=l,nt!==null)throw Error(o(261));return lt=null,ht=0,it}function T1(){for(;nt!==null;)ah(nt)}function I1(){for(;nt!==null&&!iw();)ah(nt)}function ah(e){var n=uh(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,n===null?sh(e):nt=n,tu.current=null}function sh(e){var n=e;do{var i=n.alternate;if(e=n.return,(n.flags&32768)===0){if(i=A1(i,n,Ot),i!==null){nt=i;return}}else{if(i=D1(i,n),i!==null){i.flags&=32767,nt=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,nt=null;return}}if(n=n.sibling,n!==null){nt=n;return}nt=n=e}while(n!==null);it===0&&(it=5)}function Nr(e,n,i){var l=Ne,d=Ht.transition;try{Ht.transition=null,Ne=1,M1(e,n,i,l)}finally{Ht.transition=d,Ne=l}return null}function M1(e,n,i,l){do Do();while(ar!==null);if((Ie&6)!==0)throw Error(o(327));i=e.finishedWork;var d=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var p=i.lanes|i.childLanes;if(hw(e,p),e===lt&&(nt=lt=null,ht=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||ls||(ls=!0,dh(ga,function(){return Do(),null})),p=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||p){p=Ht.transition,Ht.transition=null;var x=Ne;Ne=1;var D=Ie;Ie|=4,tu.current=null,B1(e,i),qm(i,e),t1(uc),Ea=!!cc,uc=cc=null,e.current=i,P1(i),aw(),Ie=D,Ne=x,Ht.transition=p}else e.current=i;if(ls&&(ls=!1,ar=e,cs=d),p=e.pendingLanes,p===0&&(ir=null),cw(i.stateNode),Pt(e,Je()),n!==null)for(l=e.onRecoverableError,i=0;i<n.length;i++)d=n[i],l(d.value,{componentStack:d.stack,digest:d.digest});if(ss)throw ss=!1,e=ou,ou=null,e;return(cs&1)!==0&&e.tag!==0&&Do(),p=e.pendingLanes,(p&1)!==0?e===iu?Ni++:(Ni=0,iu=e):Ni=0,tr(),null}function Do(){if(ar!==null){var e=Xf(cs),n=Ht.transition,i=Ne;try{if(Ht.transition=null,Ne=16>e?16:e,ar===null)var l=!1;else{if(e=ar,ar=null,cs=0,(Ie&6)!==0)throw Error(o(331));var d=Ie;for(Ie|=4,de=e.current;de!==null;){var p=de,x=p.child;if((de.flags&16)!==0){var D=p.deletions;if(D!==null){for(var P=0;P<D.length;P++){var $=D[P];for(de=$;de!==null;){var Q=de;switch(Q.tag){case 0:case 11:case 15:Ii(8,Q,p)}var J=Q.child;if(J!==null)J.return=Q,de=J;else for(;de!==null;){Q=de;var X=Q.sibling,ce=Q.return;if(Gm(Q),Q===$){de=null;break}if(X!==null){X.return=ce,de=X;break}de=ce}}}var me=p.alternate;if(me!==null){var ve=me.child;if(ve!==null){me.child=null;do{var et=ve.sibling;ve.sibling=null,ve=et}while(ve!==null)}}de=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,de=x;else e:for(;de!==null;){if(p=de,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Ii(9,p,p.return)}var O=p.sibling;if(O!==null){O.return=p.return,de=O;break e}de=p.return}}var I=e.current;for(de=I;de!==null;){x=de;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,de=L;else e:for(x=I;de!==null;){if(D=de,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:os(9,D)}}catch(we){Qe(D,D.return,we)}if(D===x){de=null;break e}var ne=D.sibling;if(ne!==null){ne.return=D.return,de=ne;break e}de=D.return}}if(Ie=d,tr(),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(va,e)}catch{}l=!0}return l}finally{Ne=i,Ht.transition=n}}return!1}function lh(e,n,i){n=Eo(i,n),n=Am(e,n,1),e=rr(e,n,1),n=St(),e!==null&&(si(e,1,n),Pt(e,n))}function Qe(e,n,i){if(e.tag===3)lh(e,e,i);else for(;n!==null;){if(n.tag===3){lh(n,e,i);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ir===null||!ir.has(l))){e=Eo(i,e),e=Dm(n,e,1),n=rr(n,e,1),e=St(),n!==null&&(si(n,1,e),Pt(n,e));break}}n=n.return}}function O1(e,n,i){var l=e.pingCache;l!==null&&l.delete(n),n=St(),e.pingedLanes|=e.suspendedLanes&i,lt===e&&(ht&i)===i&&(it===4||it===3&&(ht&130023424)===ht&&500>Je()-ru?Or(e,0):nu|=i),Pt(e,n)}function ch(e,n){n===0&&((e.mode&1)===0?n=1:(n=wa,wa<<=1,(wa&130023424)===0&&(wa=4194304)));var i=St();e=Fn(e,n),e!==null&&(si(e,n,i),Pt(e,i))}function N1(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),ch(e,i)}function L1(e,n){var i=0;switch(e.tag){case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(i=d.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(n),ch(e,i)}var uh;uh=function(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps||At.current)Ft=!0;else{if((e.lanes&i)===0&&(n.flags&128)===0)return Ft=!1,k1(e,n,i);Ft=(e.flags&131072)!==0}else Ft=!1,Ue&&(n.flags&1048576)!==0&&Hp(n,$a,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;ns(e,n),e=n.pendingProps;var d=ho(n,vt.current);xo(n,i),d=Ic(null,n,l,e,d,i);var p=Mc();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Dt(l)?(p=!0,La(n)):p=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Dc(n),d.updater=es,n.stateNode=d,d._reactInternals=n,$c(n,l,e,i),n=Uc(null,n,l,!0,p,i)):(n.tag=0,Ue&&p&&vc(n),Et(null,n,d,i),n=n.child),n;case 16:l=n.elementType;e:{switch(ns(e,n),e=n.pendingProps,d=l._init,l=d(l._payload),n.type=l,d=n.tag=W1(l),e=nn(l,e),d){case 0:n=Vc(null,n,l,e,i);break e;case 1:n=Om(null,n,l,e,i);break e;case 11:n=Rm(null,n,l,e,i);break e;case 14:n=_m(null,n,l,nn(l.type,e),i);break e}throw Error(o(306,l,""))}return n;case 0:return l=n.type,d=n.pendingProps,d=n.elementType===l?d:nn(l,d),Vc(e,n,l,d,i);case 1:return l=n.type,d=n.pendingProps,d=n.elementType===l?d:nn(l,d),Om(e,n,l,d,i);case 3:e:{if(Nm(n),e===null)throw Error(o(387));l=n.pendingProps,p=n.memoizedState,d=p.element,Zp(e,n),Ka(n,l,null,i);var x=n.memoizedState;if(l=x.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){d=Eo(Error(o(423)),n),n=Lm(e,n,l,i,d);break e}else if(l!==d){d=Eo(Error(o(424)),n),n=Lm(e,n,l,i,d);break e}else for(Mt=Zn(n.stateNode.containerInfo.firstChild),It=n,Ue=!0,tn=null,i=Qp(n,null,l,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(yo(),l===d){n=Pn(e,n,i);break e}Et(e,n,l,i)}n=n.child}return n;case 5:return tm(n),e===null&&Cc(n),l=n.type,d=n.pendingProps,p=e!==null?e.memoizedProps:null,x=d.children,dc(l,d)?x=null:p!==null&&dc(l,p)&&(n.flags|=32),Mm(e,n),Et(e,n,x,i),n.child;case 6:return e===null&&Cc(n),null;case 13:return jm(e,n,i);case 4:return Fc(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=wo(n,null,l,i):Et(e,n,l,i),n.child;case 11:return l=n.type,d=n.pendingProps,d=n.elementType===l?d:nn(l,d),Rm(e,n,l,d,i);case 7:return Et(e,n,n.pendingProps,i),n.child;case 8:return Et(e,n,n.pendingProps.children,i),n.child;case 12:return Et(e,n,n.pendingProps.children,i),n.child;case 10:e:{if(l=n.type._context,d=n.pendingProps,p=n.memoizedProps,x=d.value,$e(Va,l._currentValue),l._currentValue=x,p!==null)if(en(p.value,x)){if(p.children===d.children&&!At.current){n=Pn(e,n,i);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var D=p.dependencies;if(D!==null){x=p.child;for(var P=D.firstContext;P!==null;){if(P.context===l){if(p.tag===1){P=Bn(-1,i&-i),P.tag=2;var $=p.updateQueue;if($!==null){$=$.shared;var Q=$.pending;Q===null?P.next=P:(P.next=Q.next,Q.next=P),$.pending=P}}p.lanes|=i,P=p.alternate,P!==null&&(P.lanes|=i),kc(p.return,i,n),D.lanes|=i;break}P=P.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(o(341));x.lanes|=i,D=x.alternate,D!==null&&(D.lanes|=i),kc(x,i,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}Et(e,n,d.children,i),n=n.child}return n;case 9:return d=n.type,l=n.pendingProps.children,xo(n,i),d=$t(d),l=l(d),n.flags|=1,Et(e,n,l,i),n.child;case 14:return l=n.type,d=nn(l,n.pendingProps),d=nn(l.type,d),_m(e,n,l,d,i);case 15:return Tm(e,n,n.type,n.pendingProps,i);case 17:return l=n.type,d=n.pendingProps,d=n.elementType===l?d:nn(l,d),ns(e,n),n.tag=1,Dt(l)?(e=!0,La(n)):e=!1,xo(n,i),Sm(n,l,d),$c(n,l,d,i),Uc(null,n,l,!0,e,i);case 19:return $m(e,n,i);case 22:return Im(e,n,i)}throw Error(o(156,n.tag))};function dh(e,n){return Vf(e,n)}function j1(e,n,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,n,i,l){return new j1(e,n,i,l)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W1(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Y)return 11;if(e===he)return 14}return 2}function cr(e,n){var i=e.alternate;return i===null?(i=Vt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function ps(e,n,i,l,d,p){var x=2;if(l=e,typeof e=="function")du(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case H:return Lr(i.children,d,p,n);case j:x=8,d|=8;break;case K:return e=Vt(12,i,n,d|2),e.elementType=K,e.lanes=p,e;case te:return e=Vt(13,i,n,d),e.elementType=te,e.lanes=p,e;case ie:return e=Vt(19,i,n,d),e.elementType=ie,e.lanes=p,e;case re:return ms(i,d,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:x=10;break e;case G:x=9;break e;case Y:x=11;break e;case he:x=14;break e;case le:x=16,l=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=Vt(x,i,n,d),n.elementType=e,n.type=l,n.lanes=p,n}function Lr(e,n,i,l){return e=Vt(7,e,l,n),e.lanes=i,e}function ms(e,n,i,l){return e=Vt(22,e,l,n),e.elementType=re,e.lanes=i,e.stateNode={isHidden:!1},e}function fu(e,n,i){return e=Vt(6,e,null,n),e.lanes=i,e}function pu(e,n,i){return n=Vt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function $1(e,n,i,l,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function mu(e,n,i,l,d,p,x,D,P){return e=new $1(e,n,i,D,P),n===1?(n=1,p===!0&&(n|=8)):n=0,p=Vt(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dc(p),e}function z1(e,n,i){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:l==null?null:""+l,children:e,containerInfo:n,implementation:i}}function fh(e){if(!e)return er;e=e._reactInternals;e:{if(Ar(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Dt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var i=e.type;if(Dt(i))return Wp(e,i,n)}return n}function ph(e,n,i,l,d,p,x,D,P){return e=mu(i,l,!0,e,d,p,x,D,P),e.context=fh(null),i=e.current,l=St(),d=sr(i),p=Bn(l,d),p.callback=n??null,rr(i,p,d),e.current.lanes=d,si(e,d,l),Pt(e,l),e}function hs(e,n,i,l){var d=n.current,p=St(),x=sr(d);return i=fh(i),n.context===null?n.context=i:n.pendingContext=i,n=Bn(p,x),n.payload={element:e},l=l===void 0?null:l,l!==null&&(n.callback=l),e=rr(d,n,x),e!==null&&(an(e,d,x,p),Ga(e,d,x)),x}function gs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function hu(e,n){mh(e,n),(e=e.alternate)&&mh(e,n)}function H1(){return null}var hh=typeof reportError=="function"?reportError:function(e){console.error(e)};function gu(e){this._internalRoot=e}vs.prototype.render=gu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));hs(e,n,null,null)},vs.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mr(function(){hs(null,e,null,null)}),n[Sn]=null}};function vs(e){this._internalRoot=e}vs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Zf();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Xn.length&&n!==0&&n<Xn[i].priority;i++);Xn.splice(i,0,e),i===0&&tp(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gh(){}function V1(e,n,i,l,d){if(d){if(typeof l=="function"){var p=l;l=function(){var $=gs(x);p.call($)}}var x=ph(n,l,e,0,null,!1,!1,"",gh);return e._reactRootContainer=x,e[Sn]=x.current,xi(e.nodeType===8?e.parentNode:e),Mr(),x}for(;d=e.lastChild;)e.removeChild(d);if(typeof l=="function"){var D=l;l=function(){var $=gs(P);D.call($)}}var P=mu(e,0,!1,null,null,!1,!1,"",gh);return e._reactRootContainer=P,e[Sn]=P.current,xi(e.nodeType===8?e.parentNode:e),Mr(function(){hs(n,P,i,l)}),P}function ws(e,n,i,l,d){var p=i._reactRootContainer;if(p){var x=p;if(typeof d=="function"){var D=d;d=function(){var P=gs(x);D.call(P)}}hs(n,x,e,d)}else x=V1(i,n,e,d,l);return gs(x)}Qf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var i=ai(n.pendingLanes);i!==0&&($l(n,i|1),Pt(n,Je()),(Ie&6)===0&&(Ao=Je()+500,tr()))}break;case 13:Mr(function(){var l=Fn(e,1);if(l!==null){var d=St();an(l,e,1,d)}}),hu(e,1)}},zl=function(e){if(e.tag===13){var n=Fn(e,134217728);if(n!==null){var i=St();an(n,e,134217728,i)}hu(e,134217728)}},qf=function(e){if(e.tag===13){var n=sr(e),i=Fn(e,n);if(i!==null){var l=St();an(i,e,n,l)}hu(e,n)}},Zf=function(){return Ne},Jf=function(e,n){var i=Ne;try{return Ne=e,n()}finally{Ne=i}},Il=function(e,n,i){switch(n){case"input":if(kr(e,i),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<i.length;n++){var l=i[n];if(l!==e&&l.form===e.form){var d=Oa(l);if(!d)throw Error(o(90));q(l),kr(l,d)}}}break;case"textarea":Ff(e,i);break;case"select":n=i.value,n!=null&&no(e,!!i.multiple,n,!1)}},Nf=lu,Lf=Mr;var U1={usingClientEntryPoint:!1,Events:[Si,po,Oa,Mf,Of,lu]},Li={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G1={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zf(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{va=Cs.inject(G1),fn=Cs}catch{}}return Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U1,Rt.createPortal=function(e,n){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(n))throw Error(o(200));return z1(e,n,null,i)},Rt.createRoot=function(e,n){if(!vu(e))throw Error(o(299));var i=!1,l="",d=hh;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=mu(e,1,!1,null,null,i,!1,l,d),e[Sn]=n.current,xi(e.nodeType===8?e.parentNode:e),new gu(n)},Rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=zf(n),e=e===null?null:e.stateNode,e},Rt.flushSync=function(e){return Mr(e)},Rt.hydrate=function(e,n,i){if(!ys(n))throw Error(o(200));return ws(null,e,n,!0,i)},Rt.hydrateRoot=function(e,n,i){if(!vu(e))throw Error(o(405));var l=i!=null&&i.hydratedSources||null,d=!1,p="",x=hh;if(i!=null&&(i.unstable_strictMode===!0&&(d=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onRecoverableError!==void 0&&(x=i.onRecoverableError)),n=ph(n,null,e,1,i??null,d,!1,p,x),e[Sn]=n.current,xi(e),l)for(e=0;e<l.length;e++)i=l[e],d=i._getVersion,d=d(i._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[i,d]:n.mutableSourceEagerHydrationData.push(i,d);return new vs(n)},Rt.render=function(e,n,i){if(!ys(n))throw Error(o(200));return ws(null,e,n,!1,i)},Rt.unmountComponentAtNode=function(e){if(!ys(e))throw Error(o(40));return e._reactRootContainer?(Mr(function(){ws(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},Rt.unstable_batchedUpdates=lu,Rt.unstable_renderSubtreeIntoContainer=function(e,n,i,l){if(!ys(i))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ws(e,n,i,!1,l)},Rt.version="18.3.1-next-f1338f8080-20240426",Rt}var Sh;function Pg(){if(Sh)return Cu.exports;Sh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Cu.exports=tC(),Cu.exports}var kh;function nC(){if(kh)return xs;kh=1;var t=Pg();return xs.createRoot=t.createRoot,xs.hydrateRoot=t.hydrateRoot,xs}var rC=nC();const SB=vd(rC);var Go=Pg();const kB=vd(Go);function Rg(t){var r,o,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(o=Rg(t[r]))&&(a&&(a+=" "),a+=o)}else for(o in t)t[o]&&(a&&(a+=" "),a+=o);return a}function _g(){for(var t,r,o=0,a="",s=arguments.length;o<s;o++)(t=arguments[o])&&(r=Rg(t))&&(a&&(a+=" "),a+=r);return a}const oC=(t,r)=>{const o=new Array(t.length+r.length);for(let a=0;a<t.length;a++)o[a]=t[a];for(let a=0;a<r.length;a++)o[t.length+a]=r[a];return o},iC=(t,r)=>({classGroupId:t,validator:r}),Tg=(t=new Map,r=null,o)=>({nextPart:t,validators:r,classGroupId:o}),zs="-",Ah=[],aC="arbitrary..",sC=t=>{const r=cC(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return lC(u);const f=u.split(zs),h=f[0]===""&&f.length>1?1:0;return Ig(f,h,r)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=a[u],g=o[u];return h?g?oC(g,h):h:g||Ah}return o[u]||Ah}}},Ig=(t,r,o)=>{if(t.length-r===0)return o.classGroupId;const s=t[r],c=o.nextPart.get(s);if(c){const g=Ig(t,r+1,c);if(g)return g}const u=o.validators;if(u===null)return;const f=r===0?t.join(zs):t.slice(r).join(zs),h=u.length;for(let g=0;g<h;g++){const C=u[g];if(C.validator(f))return C.classGroupId}},lC=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),o=r.indexOf(":"),a=r.slice(0,o);return a?aC+a:void 0})(),cC=t=>{const{theme:r,classGroups:o}=t;return uC(o,r)},uC=(t,r)=>{const o=Tg();for(const a in t){const s=t[a];wd(s,o,a,r)}return o},wd=(t,r,o,a)=>{const s=t.length;for(let c=0;c<s;c++){const u=t[c];dC(u,r,o,a)}},dC=(t,r,o,a)=>{if(typeof t=="string"){fC(t,r,o);return}if(typeof t=="function"){pC(t,r,o,a);return}mC(t,r,o,a)},fC=(t,r,o)=>{const a=t===""?r:Mg(r,t);a.classGroupId=o},pC=(t,r,o,a)=>{if(hC(t)){wd(t(a),r,o,a);return}r.validators===null&&(r.validators=[]),r.validators.push(iC(o,t))},mC=(t,r,o,a)=>{const s=Object.entries(t),c=s.length;for(let u=0;u<c;u++){const[f,h]=s[u];wd(h,Mg(r,f),o,a)}},Mg=(t,r)=>{let o=t;const a=r.split(zs),s=a.length;for(let c=0;c<s;c++){const u=a[c];let f=o.nextPart.get(u);f||(f=Tg(),o.nextPart.set(u,f)),o=f}return o},hC=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,gC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),a=Object.create(null);const s=(c,u)=>{o[c]=u,r++,r>t&&(r=0,a=o,o=Object.create(null))};return{get(c){let u=o[c];if(u!==void 0)return u;if((u=a[c])!==void 0)return s(c,u),u},set(c,u){c in o?o[c]=u:s(c,u)}}},Wu="!",Dh=":",vC=[],Fh=(t,r,o,a,s)=>({modifiers:t,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:a,isExternal:s}),yC=t=>{const{prefix:r,experimentalParseClassName:o}=t;let a=s=>{const c=[];let u=0,f=0,h=0,g;const C=s.length;for(let b=0;b<C;b++){const A=s[b];if(u===0&&f===0){if(A===Dh){c.push(s.slice(h,b)),h=b+1;continue}if(A==="/"){g=b;continue}}A==="["?u++:A==="]"?u--:A==="("?f++:A===")"&&f--}const v=c.length===0?s:s.slice(h);let y=v,E=!1;v.endsWith(Wu)?(y=v.slice(0,-1),E=!0):v.startsWith(Wu)&&(y=v.slice(1),E=!0);const k=g&&g>h?g-h:void 0;return Fh(c,E,y,k)};if(r){const s=r+Dh,c=a;a=u=>u.startsWith(s)?c(u.slice(s.length)):Fh(vC,!1,u,void 0,!0)}if(o){const s=a;a=c=>o({className:c,parseClassName:s})}return a},wC=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((o,a)=>{r.set(o,1e6+a)}),o=>{const a=[];let s=[];for(let c=0;c<o.length;c++){const u=o[c],f=u[0]==="[",h=r.has(u);f||h?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},CC=t=>({cache:gC(t.cacheSize),parseClassName:yC(t),sortModifiers:wC(t),postfixLookupClassGroupIds:xC(t),...sC(t)}),xC=t=>{const r=Object.create(null),o=t.postfixLookupClassGroups;if(o)for(let a=0;a<o.length;a++)r[o[a]]=!0;return r},bC=/\s+/,EC=(t,r)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:c,postfixLookupClassGroupIds:u}=r,f=[],h=t.trim().split(bC);let g="";for(let C=h.length-1;C>=0;C-=1){const v=h[C],{isExternal:y,modifiers:E,hasImportantModifier:k,baseClassName:b,maybePostfixModifierPosition:A}=o(v);if(y){g=v+(g.length>0?" "+g:g);continue}let _=!!A,R;if(_){const H=b.substring(0,A);R=a(H);const j=R&&u[R]?a(b):void 0;j&&j!==R&&(R=j,_=!1)}else R=a(b);if(!R){if(!_){g=v+(g.length>0?" "+g:g);continue}if(R=a(b),!R){g=v+(g.length>0?" "+g:g);continue}_=!1}const B=E.length===0?"":E.length===1?E[0]:c(E).join(":"),F=k?B+Wu:B,N=F+R;if(f.indexOf(N)>-1)continue;f.push(N);const W=s(R,_);for(let H=0;H<W.length;++H){const j=W[H];f.push(F+j)}g=v+(g.length>0?" "+g:g)}return g},SC=(...t)=>{let r=0,o,a,s="";for(;r<t.length;)(o=t[r++])&&(a=Og(o))&&(s&&(s+=" "),s+=a);return s},Og=t=>{if(typeof t=="string")return t;let r,o="";for(let a=0;a<t.length;a++)t[a]&&(r=Og(t[a]))&&(o&&(o+=" "),o+=r);return o},Bh=(t,...r)=>{let o,a,s,c;const u=h=>{const g=r.reduce((C,v)=>v(C),t());return o=CC(g),a=o.cache.get,s=o.cache.set,c=f,f(h)},f=h=>{const g=a(h);if(g)return g;const C=EC(h,o);return s(h,C),C};return c=u,(...h)=>c(SC(...h))},kC=[],at=t=>{const r=o=>o[t]||kC;return r.isThemeGetter=!0,r},Ng=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,DC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=t=>AC.test(t),Fe=t=>!!t&&!Number.isNaN(Number(t)),vn=t=>!!t&&Number.isInteger(Number(t)),Eu=t=>t.endsWith("%")&&Fe(t.slice(0,-1)),_n=t=>DC.test(t),jg=()=>!0,_C=t=>FC.test(t)&&!BC.test(t),Cd=()=>!1,TC=t=>PC.test(t),IC=t=>RC.test(t),MC=t=>!ue(t)&&!fe(t),OC=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),NC=t=>Cr(t,zg,Cd),ue=t=>Ng.test(t),jr=t=>Cr(t,Hg,_C),Ph=t=>Cr(t,UC,Fe),LC=t=>Cr(t,Ug,jg),jC=t=>Cr(t,Vg,Cd),Rh=t=>Cr(t,Wg,Cd),WC=t=>Cr(t,$g,IC),bs=t=>Cr(t,Gg,TC),fe=t=>Lg.test(t),Wi=t=>Kr(t,Hg),$C=t=>Kr(t,Vg),_h=t=>Kr(t,Wg),zC=t=>Kr(t,zg),HC=t=>Kr(t,$g),Es=t=>Kr(t,Gg,!0),VC=t=>Kr(t,Ug,!0),Cr=(t,r,o)=>{const a=Ng.exec(t);return a?a[1]?r(a[1]):o(a[2]):!1},Kr=(t,r,o=!1)=>{const a=Lg.exec(t);return a?a[1]?r(a[1]):o:!1},Wg=t=>t==="position"||t==="percentage",$g=t=>t==="image"||t==="url",zg=t=>t==="length"||t==="size"||t==="bg-size",Hg=t=>t==="length",UC=t=>t==="number",Vg=t=>t==="family-name",Ug=t=>t==="number"||t==="weight",Gg=t=>t==="shadow",Th=()=>{const t=at("color"),r=at("font"),o=at("text"),a=at("font-weight"),s=at("tracking"),c=at("leading"),u=at("breakpoint"),f=at("container"),h=at("spacing"),g=at("radius"),C=at("shadow"),v=at("inset-shadow"),y=at("text-shadow"),E=at("drop-shadow"),k=at("blur"),b=at("perspective"),A=at("aspect"),_=at("ease"),R=at("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...F(),fe,ue],W=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],j=()=>[fe,ue,h],K=()=>[dr,"full","auto",...j()],S=()=>[vn,"none","subgrid",fe,ue],G=()=>["auto",{span:["full",vn,fe,ue]},vn,fe,ue],Y=()=>[vn,"auto",fe,ue],te=()=>["auto","min","max","fr",fe,ue],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],le=()=>["auto",...j()],re=()=>[dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],V=()=>[dr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],Z=()=>[dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],M=()=>[t,fe,ue],T=()=>[...F(),_h,Rh,{position:[fe,ue]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",zC,NC,{size:[fe,ue]}],Ce=()=>[Eu,Wi,jr],ge=()=>["","none","full",g,fe,ue],ye=()=>["",Fe,Wi,jr],Se=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Fe,Eu,_h,Rh],_e=()=>["","none",k,fe,ue],Be=()=>["none",Fe,fe,ue],q=()=>["none",Fe,fe,ue],De=()=>[Fe,fe,ue],Xe=()=>[dr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_n],breakpoint:[_n],color:[jg],container:[_n],"drop-shadow":[_n],ease:["in","out","in-out"],font:[MC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_n],shadow:[_n],spacing:["px",Fe],text:[_n],"text-shadow":[_n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dr,ue,fe,A]}],container:["container"],"container-type":[{"@container":["","normal","size",fe,ue]}],"container-named":[OC],columns:[{columns:[Fe,ue,fe,f]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[vn,"auto",fe,ue]}],basis:[{basis:[dr,"full","auto",f,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,dr,"auto","initial","none",ue]}],grow:[{grow:["",Fe,fe,ue]}],shrink:[{shrink:["",Fe,fe,ue]}],order:[{order:[vn,"first","last","none",fe,ue]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:le()}],mx:[{mx:le()}],my:[{my:le()}],ms:[{ms:le()}],me:[{me:le()}],mbs:[{mbs:le()}],mbe:[{mbe:le()}],mt:[{mt:le()}],mr:[{mr:le()}],mb:[{mb:le()}],ml:[{ml:le()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[f,"screen",...re()]}],"min-w":[{"min-w":[f,"screen","none",...re()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",o,Wi,jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,VC,LC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Eu,ue]}],"font-family":[{font:[$C,jC,r]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,fe,ue]}],"line-clamp":[{"line-clamp":[Fe,"none",fe,Ph]}],leading:[{leading:[c,...j()]}],"list-image":[{"list-image":["none",fe,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",fe,jr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Fe,"auto",fe,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[vn,fe,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vn,fe,ue],radial:["",fe,ue],conic:[vn,fe,ue]},HC,WC]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-bs":[{"border-bs":ye()}],"border-w-be":[{"border-be":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,fe,ue]}],"outline-w":[{outline:["",Fe,Wi,jr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",C,Es,bs]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",v,Es,bs]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Fe,jr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",y,Es,bs]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Fe,fe,ue]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[fe,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ue]}],filter:[{filter:["","none",fe,ue]}],blur:[{blur:_e()}],brightness:[{brightness:[Fe,fe,ue]}],contrast:[{contrast:[Fe,fe,ue]}],"drop-shadow":[{"drop-shadow":["","none",E,Es,bs]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Fe,fe,ue]}],"hue-rotate":[{"hue-rotate":[Fe,fe,ue]}],invert:[{invert:["",Fe,fe,ue]}],saturate:[{saturate:[Fe,fe,ue]}],sepia:[{sepia:["",Fe,fe,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ue]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,fe,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,fe,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,fe,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,fe,ue]}],"backdrop-invert":[{"backdrop-invert":["",Fe,fe,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,fe,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,fe,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,fe,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",fe,ue]}],ease:[{ease:["linear","initial",_,fe,ue]}],delay:[{delay:[Fe,fe,ue]}],animate:[{animate:["none",R,fe,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,fe,ue]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[fe,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],zoom:[{zoom:[vn,fe,ue]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe,ue]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Fe,Wi,jr,Ph]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},GC=(t,{cacheSize:r,prefix:o,experimentalParseClassName:a,extend:s={},override:c={}})=>(No(t,"cacheSize",r),No(t,"prefix",o),No(t,"experimentalParseClassName",a),Ss(t.theme,c.theme),Ss(t.classGroups,c.classGroups),Ss(t.conflictingClassGroups,c.conflictingClassGroups),Ss(t.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),No(t,"postfixLookupClassGroups",c.postfixLookupClassGroups),No(t,"orderSensitiveModifiers",c.orderSensitiveModifiers),ks(t.theme,s.theme),ks(t.classGroups,s.classGroups),ks(t.conflictingClassGroups,s.conflictingClassGroups),ks(t.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),$u(t,s,"postfixLookupClassGroups"),$u(t,s,"orderSensitiveModifiers"),t),No=(t,r,o)=>{o!==void 0&&(t[r]=o)},Ss=(t,r)=>{if(r)for(const o in r)No(t,o,r[o])},ks=(t,r)=>{if(r)for(const o in r)$u(t,r,o)},$u=(t,r,o)=>{const a=r[o];a!==void 0&&(t[o]=t[o]?t[o].concat(a):a)},KC=(t,...r)=>typeof t=="function"?Bh(Th,t,...r):Bh(()=>GC(Th(),t),...r),YC=KC({extend:{classGroups:{"font-size":[{text:["display","title","heading","body","body-sm","meta","mono","mono-sm"]}],rounded:[{rounded:["frame"]}],duration:[{duration:["instant","fast","base","slow"]}],animate:[{animate:["pulse-visible"]}],ease:[{ease:["out-quart","out-expo","in-out"]}],shadow:[{shadow:["overlay"]}]}}}),se=(...t)=>YC(_g(t)),Ih=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Mh=_g,Yr=(t,r)=>o=>{var a;if(r?.variants==null)return Mh(t,o?.class,o?.className);const{variants:s,defaultVariants:c}=r,u=Object.keys(s).map(g=>{const C=o?.[g],v=c?.[g];if(C===null)return null;const y=Ih(C)||Ih(v);return s[g][y]}),f=o&&Object.entries(o).reduce((g,C)=>{let[v,y]=C;return y===void 0||(g[v]=y),g},{}),h=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((g,C)=>{let{class:v,className:y,...E}=C;return Object.entries(E).every(k=>{let[b,A]=k;return Array.isArray(A)?A.includes({...c,...f}[b]):{...c,...f}[b]===A})?[...g,v,y]:g},[]);return Mh(t,u,h,o?.class,o?.className)};/**
41
- * @license lucide-react v0.507.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const XC=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QC=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,a)=>a?a.toUpperCase():o.toLowerCase()),Oh=t=>{const r=QC(t);return r.charAt(0).toUpperCase()+r.slice(1)},Kg=(...t)=>t.filter((r,o,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===o).join(" ").trim(),qC=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
46
- * @license lucide-react v0.507.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var ZC={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"};/**
51
- * @license lucide-react v0.507.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const JC=m.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:u,...f},h)=>m.createElement("svg",{ref:h,...ZC,width:r,height:r,stroke:t,strokeWidth:a?Number(o)*24/Number(r):o,className:Kg("lucide",s),...!c&&!qC(f)&&{"aria-hidden":"true"},...f},[...u.map(([g,C])=>m.createElement(g,C)),...Array.isArray(c)?c:[c]]));/**
56
- * @license lucide-react v0.507.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const xt=(t,r)=>{const o=m.forwardRef(({className:a,...s},c)=>m.createElement(JC,{ref:c,iconNode:r,className:Kg(`lucide-${XC(Oh(t))}`,`lucide-${t}`,a),...s}));return o.displayName=Oh(t),o};/**
61
- * @license lucide-react v0.507.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const ex=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xd=xt("check",ex);/**
66
- * @license lucide-react v0.507.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const tx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bd=xt("chevron-down",tx);/**
71
- * @license lucide-react v0.507.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const nx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rx=xt("chevron-right",nx);/**
76
- * @license lucide-react v0.507.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const ox=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ix=xt("chevron-up",ox);/**
81
- * @license lucide-react v0.507.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const ax=[["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"}]],sx=xt("circle-alert",ax);/**
86
- * @license lucide-react v0.507.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const lx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cx=xt("circle-check",lx);/**
91
- * @license lucide-react v0.507.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const ux=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dx=xt("circle",ux);/**
96
- * @license lucide-react v0.507.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const fx=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],AB=xt("code",fx);/**
101
- * @license lucide-react v0.507.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const px=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],DB=xt("hard-drive",px);/**
106
- * @license lucide-react v0.507.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const mx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hx=xt("info",mx);/**
111
- * @license lucide-react v0.507.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const gx=[["path",{d:"M5 12h14",key:"1ays0h"}]],vx=xt("minus",gx);/**
116
- * @license lucide-react v0.507.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const yx=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],wx=xt("rotate-cw",yx);/**
121
- * @license lucide-react v0.507.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const Cx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],FB=xt("shield-check",Cx);/**
126
- * @license lucide-react v0.507.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const xx=[["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"}]],Yg=xt("triangle-alert",xx);/**
131
- * @license lucide-react v0.507.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const bx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],BB=xt("wrench",bx);/**
136
- * @license lucide-react v0.507.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Ex=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ed=xt("x",Ex),Sx=Yr("flex w-full gap-3 rounded-md border p-3 text-body-sm",{variants:{variant:{neutral:"border-hairline bg-sunken text-ink-muted [&_[data-alert-mark]]:text-ink",success:"border-success-border bg-success-wash text-ink [&_[data-alert-mark]]:text-success",warning:"border-warning-border bg-warning-wash text-ink [&_[data-alert-mark]]:text-warning",danger:"border-danger-border bg-danger-wash text-ink [&_[data-alert-mark]]:text-danger",info:"border-info-border bg-info-wash text-ink [&_[data-alert-mark]]:text-info"}},defaultVariants:{variant:"info"}}),kx={neutral:null,success:cx,warning:Yg,danger:sx,info:hx},Ax=m.forwardRef(({className:t,variant:r,icon:o,children:a,...s},c)=>{const f=kx[r??"info"],h=o===void 0?f?w.jsx(f,{className:"size-4","aria-hidden":!0}):null:o;return w.jsxs("div",{ref:c,className:se(Sx({variant:r}),t),...s,children:[h?w.jsx("span",{"data-alert-mark":"",className:"mt-px flex shrink-0 [&_svg]:size-4",children:h}):null,w.jsx("div",{className:"flex min-w-0 flex-col gap-1",children:a})]})});Ax.displayName="Alert";const Dx=m.forwardRef(({className:t,...r},o)=>w.jsx("p",{ref:o,"data-alert-mark":"",className:se("font-medium text-body-sm",t),...r}));Dx.displayName="AlertTitle";const Fx=m.forwardRef(({className:t,...r},o)=>w.jsx("p",{ref:o,className:se("text-body-sm",t),...r}));Fx.displayName="AlertDescription";var Bx=Object.defineProperty,Sd=(t,r)=>Bx(t,"name",{value:r,configurable:!0});function zu(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Sd(zu,"setRef");function Xg(...t){return r=>{let o=!1;const a=t.map(s=>{const c=zu(s,r);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<a.length;s++){const c=a[s];typeof c=="function"?c():zu(t[s],null)}}}}Sd(Xg,"composeRefs");function Ae(...t){return m.useCallback(Xg(...t),t)}Sd(Ae,"useComposedRefs");var Px=Object.defineProperty,dn=(t,r)=>Px(t,"name",{value:r,configurable:!0});function cn(t){const r=m.forwardRef((o,a)=>{let{children:s,...c}=o,u=null,f=!1;const h=[];Hu(s)&&typeof As=="function"&&(s=As(s._payload)),m.Children.forEach(s,y=>{if(tv(y)){f=!0;const E=y;let k="child"in E.props?E.props.child:E.props.children;Hu(k)&&typeof As=="function"&&(k=As(k._payload)),u=Rx(E,k),h.push(u?.props?.children)}else h.push(y)}),u?u=m.cloneElement(u,void 0,h):!f&&m.Children.count(s)===1&&m.isValidElement(s)&&(u=s);const g=u?ev(u):void 0,C=Ae(a,g);if(!u){if(s||s===0)throw new Error(f?Ix(t):Tx(t));return s}const v=Jg(c,u.props??{});return u.type!==m.Fragment&&(v.ref=a?C:g),m.cloneElement(u,v)});return r.displayName=`${t}.Slot`,r}dn(cn,"createSlot");var Qg=cn("Slot"),qg=Symbol.for("radix.slottable");function Zg(t){const r=dn(o=>"child"in o?o.children(o.child):o.children,"Slottable");return r.displayName=`${t}.Slottable`,r.__radixId=qg,r}dn(Zg,"createSlottable");var Rx=dn((t,r)=>{if("child"in t.props){const o=t.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,t.props.children(o.props.children)):null}return m.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function Jg(t,r){const o={...r};for(const a in r){const s=t[a],c=r[a];/^on[A-Z]/.test(a)?s&&c?o[a]=(...f)=>{const h=c(...f);return s(...f),h}:s&&(o[a]=s):a==="style"?o[a]={...s,...c}:a==="className"&&(o[a]=[s,c].filter(Boolean).join(" "))}return{...t,...o}}dn(Jg,"mergeProps");function ev(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}dn(ev,"getElementRef");function tv(t){return m.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===qg}dn(tv,"isSlottable");var _x=Symbol.for("react.lazy");function Hu(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===_x&&"_payload"in t&&nv(t._payload)}dn(Hu,"isLazyComponent");function nv(t){return typeof t=="object"&&t!==null&&"then"in t}dn(nv,"isPromiseLike");var Tx=dn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Ix=dn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),As=Uo[" use ".trim().toString()],Mx=Object.defineProperty,Ox=(t,r)=>Mx(t,"name",{value:r,configurable:!0}),Nx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=Nx.reduce((t,r)=>{const o=cn(`Primitive.${r}`),a=m.forwardRef((s,c)=>{const{asChild:u,...f}=s,h=u?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(h,{...f,ref:c})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function kd(t,r){t&&Go.flushSync(()=>t.dispatchEvent(r))}Ox(kd,"dispatchDiscreteCustomEvent");var Lx=Object.defineProperty,jx=(t,r)=>Lx(t,"name",{value:r,configurable:!0}),rv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Wx=m.forwardRef(jx(function(r,o){return w.jsx(Ee.span,{...r,ref:o,style:{...rv,...r.style}})},"VisuallyHidden")),$x=Wx,zx=Object.defineProperty,Gt=(t,r)=>zx(t,"name",{value:r,configurable:!0});function Hx(t,r){const o=m.createContext(r);o.displayName=t+"Context";const a=Gt(c=>{const{children:u,...f}=c,h=m.useMemo(()=>f,Object.values(f));return w.jsx(o.Provider,{value:h,children:u})},"Provider");a.displayName=t+"Provider";function s(c,u={}){const{optional:f=!1}=u,h=m.useContext(o);if(h)return h;if(r!==void 0)return r;if(!f)throw new Error(`\`${c}\` must be used within \`${t}\``)}return Gt(s,"useContext"),[a,s]}Gt(Hx,"createContext");function gt(t,r=[]){let o=[];function a(c,u){const f=m.createContext(u);f.displayName=c+"Context";const h=o.length;o=[...o,u];const g=Gt(v=>{const{scope:y,children:E,...k}=v,b=y?.[t]?.[h]||f,A=m.useMemo(()=>k,Object.values(k));return w.jsx(b.Provider,{value:A,children:E})},"Provider");g.displayName=c+"Provider";function C(v,y,E={}){const{optional:k=!1}=E,b=y?.[t]?.[h]||f,A=m.useContext(b);if(A)return A;if(u!==void 0)return u;if(!k)throw new Error(`\`${v}\` must be used within \`${c}\``)}return Gt(C,"useContext"),[g,C]}Gt(a,"createContext");const s=Gt(()=>{const c=o.map(u=>m.createContext(u));return Gt(function(f){const h=f?.[t]||c;return m.useMemo(()=>({[`__scope${t}`]:{...f,[t]:h}}),[f,h])},"useScope")},"createScope");return s.scopeName=t,[a,ov(s,...r)]}Gt(gt,"createContextScope");function ov(...t){const r=t[0];if(t.length===1)return r;const o=Gt(()=>{const a=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return Gt(function(c){const u=a.reduce((f,{useScope:h,scopeName:g})=>{const v=h(c)[`__scope${g}`];return{...f,...v}},{});return m.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}Gt(ov,"composeContextScopes");var Vx=Object.defineProperty,dt=(t,r)=>Vx(t,"name",{value:r,configurable:!0});function Qs(t){const r=t+"CollectionProvider",[o,a]=gt(r),[s,c]=o(r,{collectionRef:{current:null},itemMap:new Map}),u=dt(b=>{const{scope:A,children:_}=b,R=m.useRef(null),B=m.useRef(new Map).current;return w.jsx(s,{scope:A,itemMap:B,collectionRef:R,children:_})},"CollectionProvider");u.displayName=r;const f=t+"CollectionSlot",h=cn(f),g=m.forwardRef((b,A)=>{const{scope:_,children:R}=b,B=c(f,_),F=Ae(A,B.collectionRef);return w.jsx(h,{ref:F,children:R})});g.displayName=f;const C=t+"CollectionItemSlot",v="data-radix-collection-item",y=cn(C),E=m.forwardRef((b,A)=>{const{scope:_,children:R,...B}=b,F=m.useRef(null),N=Ae(A,F),W=c(C,_);return m.useEffect(()=>(W.itemMap.set(F,{ref:F,...B}),()=>void W.itemMap.delete(F))),w.jsx(y,{[v]:"",ref:N,children:R})});E.displayName=C;function k(b){const A=c(t+"CollectionConsumer",b);return m.useCallback(()=>{const R=A.collectionRef.current;if(!R)return[];const B=Array.from(R.querySelectorAll(`[${v}]`));return Array.from(A.itemMap.values()).sort((W,H)=>B.indexOf(W.ref.current)-B.indexOf(H.ref.current))},[A.collectionRef,A.itemMap])}return dt(k,"useCollection"),[{Provider:u,Slot:g,ItemSlot:E},k,a]}dt(Qs,"createCollection");var Nh=new WeakMap,Su=class fr extends Map{static{dt(this,"OrderedDict")}#e;constructor(r){super(r),this.#e=[...super.keys()],Nh.set(this,!0)}set(r,o){return Nh.get(this)&&(this.has(r)?this.#e[this.#e.indexOf(r)]=r:this.#e.push(r)),super.set(r,o),this}insert(r,o,a){const s=this.has(o),c=this.#e.length,u=Ad(r);let f=u>=0?u:c+u;const h=f<0||f>=c?-1:f;if(h===this.size||s&&h===this.size-1||h===-1)return this.set(o,a),this;const g=this.size+(s?0:1);u<0&&f++;const C=[...this.#e];let v,y=!1;for(let E=f;E<g;E++)if(f===E){let k=C[E];C[E]===o&&(k=C[E+1]),s&&this.delete(o),v=this.get(k),this.set(o,a)}else{!y&&C[E-1]===o&&(y=!0);const k=C[y?E:E-1],b=v;v=this.get(k),this.delete(k),this.set(k,b)}return this}with(r,o,a){const s=new fr(this);return s.insert(r,o,a),s}before(r){const o=this.#e.indexOf(r)-1;if(!(o<0))return this.entryAt(o)}setBefore(r,o,a){const s=this.#e.indexOf(r);return s===-1?this:this.insert(s,o,a)}after(r){let o=this.#e.indexOf(r);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(r,o,a){const s=this.#e.indexOf(r);return s===-1?this:this.insert(s+1,o,a)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(r){const o=super.delete(r);return o&&this.#e.splice(this.#e.indexOf(r),1),o}deleteAt(r){const o=this.keyAt(r);return o!==void 0?this.delete(o):!1}at(r){const o=Ls(this.#e,r);if(o!==void 0)return this.get(o)}entryAt(r){const o=Ls(this.#e,r);if(o!==void 0)return[o,this.get(o)]}indexOf(r){return this.#e.indexOf(r)}keyAt(r){return Ls(this.#e,r)}from(r,o){const a=this.indexOf(r);if(a===-1)return;let s=a+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(r,o){const a=this.indexOf(r);if(a===-1)return;let s=a+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(r,o){let a=0;for(const s of this){if(Reflect.apply(r,o,[s,a,this]))return s;a++}}findIndex(r,o){let a=0;for(const s of this){if(Reflect.apply(r,o,[s,a,this]))return a;a++}return-1}filter(r,o){const a=[];let s=0;for(const c of this)Reflect.apply(r,o,[c,s,this])&&a.push(c),s++;return new fr(a)}map(r,o){const a=[];let s=0;for(const c of this)a.push([c[0],Reflect.apply(r,o,[c,s,this])]),s++;return new fr(a)}reduce(...r){const[o,a]=r;let s=0,c=a??this.at(0);for(const u of this)s===0&&r.length===1?c=u:c=Reflect.apply(o,this,[c,u,s,this]),s++;return c}reduceRight(...r){const[o,a]=r;let s=a??this.at(-1);for(let c=this.size-1;c>=0;c--){const u=this.at(c);c===this.size-1&&r.length===1?s=u:s=Reflect.apply(o,this,[s,u,c,this])}return s}toSorted(r){const o=[...this.entries()].sort(r);return new fr(o)}toReversed(){const r=new fr;for(let o=this.size-1;o>=0;o--){const a=this.keyAt(o),s=this.get(a);r.set(a,s)}return r}toSpliced(...r){const o=[...this.entries()];return o.splice(...r),new fr(o)}slice(r,o){const a=new fr;let s=this.size-1;if(r===void 0)return a;r<0&&(r=r+this.size),o!==void 0&&o>0&&(s=o-1);for(let c=r;c<=s;c++){const u=this.keyAt(c),f=this.get(u);a.set(u,f)}return a}every(r,o){let a=0;for(const s of this){if(!Reflect.apply(r,o,[s,a,this]))return!1;a++}return!0}some(r,o){let a=0;for(const s of this){if(Reflect.apply(r,o,[s,a,this]))return!0;a++}return!1}};function Ls(t,r){if("at"in Array.prototype)return Array.prototype.at.call(t,r);const o=iv(t,r);return o===-1?void 0:t[o]}dt(Ls,"at");function iv(t,r){const o=t.length,a=Ad(r),s=a>=0?a:o+a;return s<0||s>=o?-1:s}dt(iv,"toSafeIndex");function Ad(t){return t!==t||t===0?0:Math.trunc(t)}dt(Ad,"toSafeInteger");function Ux(t){const r=t+"CollectionProvider",[o,a]=gt(r),[s,c]=o(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Su,setItemMap:dt(()=>{},"setItemMap")}),u=dt(({state:B,...F})=>B?w.jsx(h,{...F,state:B}):w.jsx(f,{...F}),"CollectionProvider");u.displayName=r;const f=dt(B=>{const F=A();return w.jsx(h,{...B,state:F})},"CollectionInit");f.displayName=r+"Init";const h=dt(B=>{const{scope:F,children:N,state:W}=B,H=m.useRef(null),[j,K]=m.useState(null),S=Ae(H,K),[G,Y]=W;return m.useEffect(()=>{if(!j)return;const te=lv(()=>{});return te.observe(j,{childList:!0,subtree:!0}),()=>{te.disconnect()}},[j]),w.jsx(s,{scope:F,itemMap:G,setItemMap:Y,collectionRef:S,collectionRefObject:H,collectionElement:j,children:N})},"CollectionProviderImpl");h.displayName=r+"Impl";const g=t+"CollectionSlot",C=cn(g),v=m.forwardRef((B,F)=>{const{scope:N,children:W}=B,H=c(g,N),j=Ae(F,H.collectionRef);return w.jsx(C,{ref:j,children:W})});v.displayName=g;const y=t+"CollectionItemSlot",E="data-radix-collection-item",k=cn(y),b=m.forwardRef((B,F)=>{const{scope:N,children:W,...H}=B,j=m.useRef(null),[K,S]=m.useState(null),G=Ae(F,j,S),Y=c(y,N),{setItemMap:te}=Y,ie=m.useRef(H);av(ie.current,H)||(ie.current=H);const he=ie.current;return m.useEffect(()=>{const le=he;return te(re=>K?re.has(K)?re.set(K,{...le,element:K}).toSorted(Vu):(re.set(K,{...le,element:K}),re.toSorted(Vu)):re),()=>{te(re=>!K||!re.has(K)?re:(re.delete(K),new Su(re)))}},[K,he,te]),w.jsx(k,{[E]:"",ref:G,children:W})});b.displayName=y;function A(){return m.useState(new Su)}dt(A,"useInitCollection");function _(B){const{itemMap:F}=c(t+"CollectionConsumer",B);return F}return dt(_,"useCollection"),[{Provider:u,Slot:v,ItemSlot:b},{createCollectionScope:a,useCollection:_,useInitCollection:A}]}dt(Ux,"createCollection");function av(t,r){if(t===r)return!0;if(typeof t!="object"||typeof r!="object"||t==null||r==null)return!1;const o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(const s of o)if(!Object.prototype.hasOwnProperty.call(r,s)||t[s]!==r[s])return!1;return!0}dt(av,"shallowEqual");function sv(t,r){return!!(r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}dt(sv,"isElementPreceding");function Vu(t,r){return!t[1].element||!r[1].element?0:sv(t[1].element,r[1].element)?-1:1}dt(Vu,"sortByDocumentPosition");function lv(t){return new MutationObserver(o=>{for(const a of o)if(a.type==="childList"){t();return}})}dt(lv,"getChildListObserver");var Gx=Object.defineProperty,Ko=(t,r)=>Gx(t,"name",{value:r,configurable:!0}),cv=!!(typeof window<"u"&&window.document&&window.document.createElement);function oe(t,r,{checkForDefaultPrevented:o=!0}={}){return Ko(function(s){if(t?.(s),o===!1||!s||!s.defaultPrevented)return r?.(s)},"handleEvent")}Ko(oe,"composeEventHandlers");function Kx(t){if(!cv)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}Ko(Kx,"getOwnerWindow");function Uu(t){if(!cv)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}Ko(Uu,"getOwnerDocument");function uv(t,r=!1){const{activeElement:o}=Uu(t);if(!o?.nodeName)return null;if(dv(o)&&o.contentDocument)return uv(o.contentDocument.body,r);if(r){const a=o.getAttribute("aria-activedescendant");if(a){const s=Uu(o).getElementById(a);if(s)return s}}return o}Ko(uv,"getActiveElement");function dv(t){return t.tagName==="IFRAME"}Ko(dv,"isFrame");var Ve=globalThis?.document?m.useLayoutEffect:()=>{},Yx=Object.defineProperty,Xx=(t,r)=>Yx(t,"name",{value:r,configurable:!0}),Lh=Uo[" useEffectEvent ".trim().toString()],jh=Uo[" useInsertionEffect ".trim().toString()];function fv(t){if(typeof Lh=="function")return Lh(t);const r=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof jh=="function"?jh(()=>{r.current=t}):Ve(()=>{r.current=t}),m.useMemo(()=>(...o)=>r.current?.(...o),[])}Xx(fv,"useEffectEvent");var Qx=Object.defineProperty,ta=(t,r)=>Qx(t,"name",{value:r,configurable:!0}),qx=Uo[" useInsertionEffect ".trim().toString()]||Ve;function un({prop:t,defaultProp:r,onChange:o=ta(()=>{},"onChange"),caller:a}){const[s,c,u]=pv({defaultProp:r,onChange:o}),f=t!==void 0,h=f?t:s,g=m.useCallback(C=>{if(f){const v=mv(C)?C(t):C;v!==t&&u.current?.(v)}else c(C)},[f,t,c,u]);return[h,g]}ta(un,"useControllableState");function pv({defaultProp:t,onChange:r}){const[o,a]=m.useState(t),s=m.useRef(o),c=m.useRef(r);return qx(()=>{c.current=r},[r]),m.useEffect(()=>{s.current!==o&&(c.current?.(o),s.current=o)},[o,s]),[o,a,c]}ta(pv,"useUncontrolledState");function mv(t){return typeof t=="function"}ta(mv,"isFunction");var Wh=Symbol("RADIX:SYNC_STATE");function Zx(t,r,o,a){const{prop:s,defaultProp:c,onChange:u,caller:f}=r,h=s!==void 0,g=fv(u),C=[{...o,state:c}];a&&C.push(a);const[v,y]=m.useReducer((A,_)=>{if(_.type===Wh)return{...A,state:_.state};const R=t(A,_);return h&&!Object.is(R.state,A.state)&&g(R.state),R},...C),E=v.state,k=m.useRef(E);m.useEffect(()=>{k.current!==E&&(k.current=E,h||g(E))},[E,k,h]);const b=m.useMemo(()=>s!==void 0?{...v,state:s}:v,[v,s]);return m.useEffect(()=>{h&&!Object.is(s,v.state)&&y({type:Wh,state:s})},[s,v.state,h]),[b,y]}ta(Zx,"useControllableStateReducer");var Jx=Object.defineProperty,Ln=(t,r)=>Jx(t,"name",{value:r,configurable:!0});function hv(t,r){return m.useReducer((o,a)=>r[o][a]??o,t)}Ln(hv,"useStateMachine");var pt=Ln(t=>{const{present:r,children:o}=t,a=gv(r),s=typeof o=="function"?o({present:a.isPresent}):m.Children.only(o),c=vv(a.ref,yv(s));return typeof o=="function"||a.isPresent?m.cloneElement(s,{ref:c}):null},"Presence");function gv(t){const[r,o]=m.useState(),a=m.useRef(null),s=m.useRef(t),c=m.useRef("none"),u=m.useRef(void 0),f=t?"mounted":"unmounted",[h,g]=hv(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(c.current=u.current??Lo(a.current),u.current=void 0):c.current="none"},[h]),Ve(()=>{const C=a.current,v=s.current;if(v!==t){const E=c.current,k=Lo(C);t?(u.current=k,g("MOUNT")):k==="none"||C?.display==="none"?g("UNMOUNT"):g(v&&E!==k?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,g]),Ve(()=>{if(r){let C;const v=r.ownerDocument.defaultView??window,y=Ln(k=>{const A=Lo(a.current).includes(CSS.escape(k.animationName));if(k.target===r&&A&&(g("ANIMATION_END"),!s.current)){const _=r.style.animationFillMode;r.style.animationFillMode="forwards",C=v.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=_)})}},"handleAnimationEnd"),E=Ln(k=>{k.target===r&&(c.current=Lo(a.current))},"handleAnimationStart");return r.addEventListener("animationstart",E),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{v.clearTimeout(C),r.removeEventListener("animationstart",E),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(C=>{if(C){const v=getComputedStyle(C);a.current=v,u.current=Lo(v)}else a.current=null;o(C)},[])}}Ln(gv,"usePresence");function Gu(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Ln(Gu,"setRef");function vv(...t){const r=m.useRef(t);return r.current=t,m.useCallback(o=>{const a=r.current;let s=!1;const c=a.map(u=>{const f=Gu(u,o);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<c.length;u++){const f=c[u];typeof f=="function"?f():Gu(a[u],null)}}},[])}Ln(vv,"useStableComposedRefs");function Lo(t){return t?.animationName||"none"}Ln(Lo,"getAnimationName");function yv(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}Ln(yv,"getElementRef");var e2=Object.defineProperty,t2=(t,r)=>e2(t,"name",{value:r,configurable:!0}),n2=Uo[" useId ".trim().toString()]||(()=>{}),r2=0;function Kt(t){const[r,o]=m.useState(n2());return Ve(()=>{t||o(a=>a??String(r2++))},[t]),t||(r?`radix-${r}`:"")}t2(Kt,"useId");var o2=Object.defineProperty,i2=(t,r)=>o2(t,"name",{value:r,configurable:!0}),a2=m.createContext(void 0);function Yo(t){const r=m.useContext(a2);return t||r||"ltr"}i2(Yo,"useDirection");var s2=Object.defineProperty,l2=(t,r)=>s2(t,"name",{value:r,configurable:!0});function rt(t){const r=m.useRef(t);return m.useEffect(()=>{r.current=t}),m.useMemo(()=>(...o)=>r.current?.(...o),[])}l2(rt,"useCallbackRef");var c2=Object.defineProperty,ut=(t,r)=>c2(t,"name",{value:r,configurable:!0}),Ku="dismissableLayer.update",u2="dismissableLayer.pointerDownOutside",d2="dismissableLayer.focusOutside",$h,wv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),na=m.forwardRef(ut(function(r,o){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:g,...C}=r,v=m.useContext(wv),[y,E]=m.useState(null),k=y?.ownerDocument??globalThis?.document,[,b]=m.useState({}),A=Ae(o,E),_=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),B=R?_.indexOf(R):-1,F=y?_.indexOf(y):-1,N=v.layersWithOutsidePointerEventsDisabled.size>0,W=F>=B,H=m.useRef(!1),j=xv(Y=>{u?.(Y),h?.(Y),Y.defaultPrevented||g?.()},{ownerDocument:k,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:H,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(Y=>{if(!(Y instanceof Node))return!1;const te=[...v.branches].some(ie=>ie.contains(Y));return W&&!te},[v.branches,W])}),K=bv(Y=>{if(s&&H.current)return;const te=Y.target;[...v.branches].some(he=>he.contains(te))||(f?.(Y),h?.(Y),Y.defaultPrevented||g?.())},k),S=y?F===_.length-1:!1,G=rt(Y=>{Y.key==="Escape"&&(c?.(Y),!Y.defaultPrevented&&g&&(Y.preventDefault(),g()))});return m.useEffect(()=>{if(S)return k.addEventListener("keydown",G,{capture:!0}),()=>k.removeEventListener("keydown",G,{capture:!0})},[k,S,G]),m.useEffect(()=>{if(y)return a&&(v.layersWithOutsidePointerEventsDisabled.size===0&&($h=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),Yu(),()=>{a&&(v.layersWithOutsidePointerEventsDisabled.delete(y),v.layersWithOutsidePointerEventsDisabled.size===0&&(k.body.style.pointerEvents=$h))}},[y,k,a,v]),m.useEffect(()=>()=>{y&&(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),Yu())},[y,v]),m.useEffect(()=>{const Y=ut(()=>b({}),"handleUpdate");return document.addEventListener(Ku,Y),()=>document.removeEventListener(Ku,Y)},[]),w.jsx(Ee.div,{...C,ref:A,style:{pointerEvents:N?W?"auto":"none":void 0,...r.style},onFocusCapture:oe(r.onFocusCapture,K.onFocusCapture),onBlurCapture:oe(r.onBlurCapture,K.onBlurCapture),onPointerDownCapture:oe(r.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function Cv(){const t=m.useContext(wv),[r,o]=m.useState(null);return m.useEffect(()=>{if(r)return t.dismissableSurfaces.add(r),()=>{t.dismissableSurfaces.delete(r)}},[r,t.dismissableSurfaces]),o}ut(Cv,"useDismissableLayerSurface");var f2=ut(()=>!0,"IS_TRUE");function xv(t,r){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:c,shouldHandlePointerDownOutside:u=f2}=r,f=rt(t),h=m.useRef(!1),g=m.useRef(!1),C=m.useRef(new Map),v=m.useRef(()=>{});return m.useEffect(()=>{function y(){g.current=!1,s.current=!1,C.current.clear()}ut(y,"resetOutsideInteraction");function E(){return Array.from(C.current.values()).some(Boolean)}ut(E,"isOutsideInteractionIntercepted");function k(B){if(!g.current)return;const F=B.target;F instanceof Node&&[...c].some(W=>W.contains(F))||C.current.set(B.type,!0),B.type==="click"&&window.setTimeout(()=>{g.current&&v.current()},0)}ut(k,"handleInteractionCapture");function b(B){g.current&&C.current.set(B.type,!1)}ut(b,"handleInteractionBubble");const A=ut(B=>{if(B.target&&!h.current){let F=function(){o.removeEventListener("click",v.current);const W=E();y(),W||Dd(u2,f,N,{discrete:!0})};if(ut(F,"handleAndDispatchPointerDownOutsideEvent"),!u(B.target)){o.removeEventListener("click",v.current),y(),h.current=!1;return}const N={originalEvent:B};g.current=!0,s.current=a&&B.button===0,C.current.clear(),!a||B.button!==0?F():(o.removeEventListener("click",v.current),v.current=F,o.addEventListener("click",v.current,{once:!0}))}else o.removeEventListener("click",v.current),y();h.current=!1},"handlePointerDown"),_=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const B of _)o.addEventListener(B,k,!0),o.addEventListener(B,b);const R=window.setTimeout(()=>{o.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(R),o.removeEventListener("pointerdown",A),o.removeEventListener("click",v.current);for(const B of _)o.removeEventListener(B,k,!0),o.removeEventListener(B,b)}},[o,f,a,s,c,u]),{onPointerDownCapture:ut(()=>h.current=!0,"onPointerDownCapture")}}ut(xv,"usePointerDownOutside");function bv(t,r=globalThis?.document){const o=rt(t),a=m.useRef(!1);return m.useEffect(()=>{const s=ut(c=>{c.target&&!a.current&&Dd(d2,o,{originalEvent:c},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,o]),{onFocusCapture:ut(()=>a.current=!0,"onFocusCapture"),onBlurCapture:ut(()=>a.current=!1,"onBlurCapture")}}ut(bv,"useFocusOutside");function Yu(){const t=new CustomEvent(Ku);document.dispatchEvent(t)}ut(Yu,"dispatchUpdate");function Dd(t,r,o,{discrete:a}){const s=o.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});r&&s.addEventListener(t,r,{once:!0}),a?kd(s,c):s.dispatchEvent(c)}ut(Dd,"handleAndDispatchCustomEvent");var p2=Object.defineProperty,kt=(t,r)=>p2(t,"name",{value:r,configurable:!0}),ku="focusScope.autoFocusOnMount",Au="focusScope.autoFocusOnUnmount",zh={bubbles:!1,cancelable:!0},qs=m.forwardRef(kt(function(r,o){const{loop:a=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...f}=r,[h,g]=m.useState(null),C=rt(c),v=rt(u),y=m.useRef(null),E=Ae(o,g),k=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(s){let A=function(F){if(k.paused||!h)return;const N=F.target;h.contains(N)?y.current=N:In(y.current,{select:!0})},_=function(F){if(k.paused||!h)return;const N=F.relatedTarget;N!==null&&(h.contains(N)||In(y.current,{select:!0}))},R=function(F){if(document.activeElement===document.body)for(const W of F)W.removedNodes.length>0&&In(h)};kt(A,"handleFocusIn"),kt(_,"handleFocusOut"),kt(R,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",_);const B=new MutationObserver(R);return h&&B.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",_),B.disconnect()}}},[s,h,k.paused]),m.useEffect(()=>{if(h){Hh.add(k);const A=document.activeElement;if(!h.contains(A)){const R=new CustomEvent(ku,zh);h.addEventListener(ku,C),h.dispatchEvent(R),R.defaultPrevented||(Ev(Fv(Fd(h)),{select:!0}),document.activeElement===A&&In(h))}return()=>{h.removeEventListener(ku,C),setTimeout(()=>{const R=new CustomEvent(Au,zh);h.addEventListener(Au,v),h.dispatchEvent(R),R.defaultPrevented||In(A??document.body,{select:!0}),h.removeEventListener(Au,v),Hh.remove(k)},0)}}},[h,C,v,k]);const b=m.useCallback(A=>{if(!a&&!s||k.paused)return;const _=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,R=document.activeElement;if(_&&R){const B=A.currentTarget,[F,N]=Sv(B);F&&N?!A.shiftKey&&R===N?(A.preventDefault(),a&&In(F,{select:!0})):A.shiftKey&&R===F&&(A.preventDefault(),a&&In(N,{select:!0})):R===B&&A.preventDefault()}},[a,s,k.paused]);return w.jsx(Ee.div,{tabIndex:-1,...f,ref:E,onKeyDown:b})},"FocusScope"));function Ev(t,{select:r=!1}={}){const o=document.activeElement;for(const a of t)if(In(a,{select:r}),document.activeElement!==o)return}kt(Ev,"focusFirst");function Sv(t){const r=Fd(t),o=Xu(r,t),a=Xu(r.reverse(),t);return[o,a]}kt(Sv,"getTabbableEdges");function Fd(t){const r=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:kt(a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}kt(Fd,"getTabbableCandidates");function Xu(t,r){const o=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(o?!a.checkVisibility({checkVisibilityCSS:!0}):kv(a,{upTo:r})))return a}kt(Xu,"findVisible");function kv(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}kt(kv,"isHidden");function Av(t){return t instanceof HTMLInputElement&&"select"in t}kt(Av,"isSelectableInput");function In(t,{select:r=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&Av(t)&&r&&t.select()}}kt(In,"focus");var Hh=Dv();function Dv(){let t=[];return{add(r){const o=t[0];r!==o&&o?.pause(),t=Qu(t,r),t.unshift(r)},remove(r){t=Qu(t,r),t[0]?.resume()}}}kt(Dv,"createFocusScopesStack");function Qu(t,r){const o=[...t],a=o.indexOf(r);return a!==-1&&o.splice(a,1),o}kt(Qu,"arrayRemove");function Fv(t){return t.filter(r=>r.tagName!=="A")}kt(Fv,"removeLinks");var m2=Object.defineProperty,h2=(t,r)=>m2(t,"name",{value:r,configurable:!0}),ra=m.forwardRef(h2(function(r,o){const{container:a,...s}=r,[c,u]=m.useState(!1);Ve(()=>u(!0),[]);const f=a||c&&globalThis?.document?.body;return f?Go.createPortal(w.jsx(Ee.div,{...s,ref:o}),f):null},"Portal")),g2=Object.defineProperty,Bd=(t,r)=>g2(t,"name",{value:r,configurable:!0}),Ds=0,Fo=null;function v2(t){return Xo(),t.children}Bd(v2,"FocusGuards");function Xo(){m.useEffect(()=>{Fo||(Fo={start:qu(),end:qu()});const{start:t,end:r}=Fo;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Ds++,()=>{Ds===1&&(Fo?.start.remove(),Fo?.end.remove(),Fo=null),Ds=Math.max(0,Ds-1)}},[])}Bd(Xo,"useFocusGuards");function qu(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}Bd(qu,"createFocusGuard");var wn=function(){return wn=Object.assign||function(r){for(var o,a=1,s=arguments.length;a<s;a++){o=arguments[a];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}return r},wn.apply(this,arguments)};function Bv(t,r){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(o[a[s]]=t[a[s]]);return o}function y2(t,r,o){if(o||arguments.length===2)for(var a=0,s=r.length,c;a<s;a++)(c||!(a in r))&&(c||(c=Array.prototype.slice.call(r,0,a)),c[a]=r[a]);return t.concat(c||Array.prototype.slice.call(r))}var js="right-scroll-bar-position",Ws="width-before-scroll-bar",w2="with-scroll-bars-hidden",C2="--removed-body-scroll-bar-size";function Du(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function x2(t,r){var o=m.useState(function(){return{value:t,callback:r,facade:{get current(){return o.value},set current(a){var s=o.value;s!==a&&(o.value=a,o.callback(a,s))}}}})[0];return o.callback=r,o.facade}var b2=typeof window<"u"?m.useLayoutEffect:m.useEffect,Vh=new WeakMap;function E2(t,r){var o=x2(null,function(a){return t.forEach(function(s){return Du(s,a)})});return b2(function(){var a=Vh.get(o);if(a){var s=new Set(a),c=new Set(t),u=o.current;s.forEach(function(f){c.has(f)||Du(f,null)}),c.forEach(function(f){s.has(f)||Du(f,u)})}Vh.set(o,t)},[t]),o}function S2(t){return t}function k2(t,r){r===void 0&&(r=S2);var o=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(c){var u=r(c,a);return o.push(u),function(){o=o.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(a=!0;o.length;){var u=o;o=[],u.forEach(c)}o={push:function(f){return c(f)},filter:function(){return o}}},assignMedium:function(c){a=!0;var u=[];if(o.length){var f=o;o=[],f.forEach(c),u=o}var h=function(){var C=u;u=[],C.forEach(c)},g=function(){return Promise.resolve().then(h)};g(),o={push:function(C){u.push(C),g()},filter:function(C){return u=u.filter(C),o}}}};return s}function A2(t){t===void 0&&(t={});var r=k2(null);return r.options=wn({async:!0,ssr:!1},t),r}var Pv=function(t){var r=t.sideCar,o=Bv(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return m.createElement(a,wn({},o))};Pv.isSideCarExport=!0;function D2(t,r){return t.useMedium(r),Pv}var Rv=A2(),Fu=function(){},Zs=m.forwardRef(function(t,r){var o=m.useRef(null),a=m.useState({onScrollCapture:Fu,onWheelCapture:Fu,onTouchMoveCapture:Fu}),s=a[0],c=a[1],u=t.forwardProps,f=t.children,h=t.className,g=t.removeScrollBar,C=t.enabled,v=t.shards,y=t.sideCar,E=t.noRelative,k=t.noIsolation,b=t.inert,A=t.allowPinchZoom,_=t.as,R=_===void 0?"div":_,B=t.gapMode,F=Bv(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=y,W=E2([o,r]),H=wn(wn({},F),s);return m.createElement(m.Fragment,null,C&&m.createElement(N,{sideCar:Rv,removeScrollBar:g,shards:v,noRelative:E,noIsolation:k,inert:b,setCallbacks:c,allowPinchZoom:!!A,lockRef:o,gapMode:B}),u?m.cloneElement(m.Children.only(f),wn(wn({},H),{ref:W})):m.createElement(R,wn({},H,{className:h,ref:W}),f))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zs.classNames={fullWidth:Ws,zeroRight:js};var F2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B2(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=F2();return r&&t.setAttribute("nonce",r),t}function P2(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function R2(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var _2=function(){var t=0,r=null;return{add:function(o){t==0&&(r=B2())&&(P2(r,o),R2(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},T2=function(){var t=_2();return function(r,o){m.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&o])}},_v=function(){var t=T2(),r=function(o){var a=o.styles,s=o.dynamic;return t(a,s),null};return r},I2={left:0,top:0,right:0,gap:0},Bu=function(t){return parseInt(t||"",10)||0},M2=function(t){var r=window.getComputedStyle(document.body),o=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],s=r[t==="padding"?"paddingRight":"marginRight"];return[Bu(o),Bu(a),Bu(s)]},O2=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return I2;var r=M2(t),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-o+r[2]-r[0])}},N2=_v(),Wo="data-scroll-locked",L2=function(t,r,o,a){var s=t.left,c=t.top,u=t.right,f=t.gap;return o===void 0&&(o="margin"),`
141
- .`.concat(w2,` {
142
- overflow: hidden `).concat(a,`;
143
- padding-right: `).concat(f,"px ").concat(a,`;
144
- }
145
- body[`).concat(Wo,`] {
146
- overflow: hidden `).concat(a,`;
147
- overscroll-behavior: contain;
148
- `).concat([r&&"position: relative ".concat(a,";"),o==="margin"&&`
149
- padding-left: `.concat(s,`px;
150
- padding-top: `).concat(c,`px;
151
- padding-right: `).concat(u,`px;
152
- margin-left:0;
153
- margin-top:0;
154
- margin-right: `).concat(f,"px ").concat(a,`;
155
- `),o==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),`
156
- }
157
-
158
- .`).concat(js,` {
159
- right: `).concat(f,"px ").concat(a,`;
160
- }
161
-
162
- .`).concat(Ws,` {
163
- margin-right: `).concat(f,"px ").concat(a,`;
164
- }
165
-
166
- .`).concat(js," .").concat(js,` {
167
- right: 0 `).concat(a,`;
168
- }
169
-
170
- .`).concat(Ws," .").concat(Ws,` {
171
- margin-right: 0 `).concat(a,`;
172
- }
173
-
174
- body[`).concat(Wo,`] {
175
- `).concat(C2,": ").concat(f,`px;
176
- }
177
- `)},Uh=function(){var t=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(t)?t:0},j2=function(){m.useEffect(function(){return document.body.setAttribute(Wo,(Uh()+1).toString()),function(){var t=Uh()-1;t<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,t.toString())}},[])},W2=function(t){var r=t.noRelative,o=t.noImportant,a=t.gapMode,s=a===void 0?"margin":a;j2();var c=m.useMemo(function(){return O2(s)},[s]);return m.createElement(N2,{styles:L2(c,!r,s,o?"":"!important")})},Zu=!1;if(typeof window<"u")try{var Fs=Object.defineProperty({},"passive",{get:function(){return Zu=!0,!0}});window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch{Zu=!1}var Bo=Zu?{passive:!1}:!1,$2=function(t){return t.tagName==="TEXTAREA"},Tv=function(t,r){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!$2(t)&&o[r]==="visible")},z2=function(t){return Tv(t,"overflowY")},H2=function(t){return Tv(t,"overflowX")},Gh=function(t,r){var o=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Iv(t,a);if(s){var c=Mv(t,a),u=c[1],f=c[2];if(u>f)return!0}a=a.parentNode}while(a&&a!==o.body);return!1},V2=function(t){var r=t.scrollTop,o=t.scrollHeight,a=t.clientHeight;return[r,o,a]},U2=function(t){var r=t.scrollLeft,o=t.scrollWidth,a=t.clientWidth;return[r,o,a]},Iv=function(t,r){return t==="v"?z2(r):H2(r)},Mv=function(t,r){return t==="v"?V2(r):U2(r)},G2=function(t,r){return t==="h"&&r==="rtl"?-1:1},K2=function(t,r,o,a,s){var c=G2(t,window.getComputedStyle(r).direction),u=c*a,f=o.target,h=r.contains(f),g=!1,C=u>0,v=0,y=0;do{if(!f)break;var E=Mv(t,f),k=E[0],b=E[1],A=E[2],_=b-A-c*k;(k||_)&&Iv(t,f)&&(v+=_,y+=k);var R=f.parentNode;f=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!h&&f!==document.body||h&&(r.contains(f)||r===f));return(C&&Math.abs(v)<1||!C&&Math.abs(y)<1)&&(g=!0),g},Bs=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Kh=function(t){return[t.deltaX,t.deltaY]},Yh=function(t){return t&&"current"in t?t.current:t},Y2=function(t,r){return t[0]===r[0]&&t[1]===r[1]},X2=function(t){return`
178
- .block-interactivity-`.concat(t,` {pointer-events: none;}
179
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
180
- `)},Q2=0,Po=[];function q2(t){var r=m.useRef([]),o=m.useRef([0,0]),a=m.useRef(),s=m.useState(Q2++)[0],c=m.useState(_v)[0],u=m.useRef(t);m.useEffect(function(){u.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var b=y2([t.lockRef.current],(t.shards||[]).map(Yh),!0).filter(Boolean);return b.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),b.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var f=m.useCallback(function(b,A){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!u.current.allowPinchZoom;var _=Bs(b),R=o.current,B="deltaX"in b?b.deltaX:R[0]-_[0],F="deltaY"in b?b.deltaY:R[1]-_[1],N,W=b.target,H=Math.abs(B)>Math.abs(F)?"h":"v";if("touches"in b&&H==="h"&&W.type==="range")return!1;var j=window.getSelection(),K=j&&j.anchorNode,S=K?K===W||K.contains(W):!1;if(S)return!1;var G=Gh(H,W);if(!G)return!0;if(G?N=H:(N=H==="v"?"h":"v",G=Gh(H,W)),!G)return!1;if(!a.current&&"changedTouches"in b&&(B||F)&&(a.current=N),!N)return!0;var Y=a.current||N;return K2(Y,A,b,Y==="h"?B:F)},[]),h=m.useCallback(function(b){var A=b;if(!(!Po.length||Po[Po.length-1]!==c)){var _="deltaY"in A?Kh(A):Bs(A),R=r.current.filter(function(N){return N.name===A.type&&(N.target===A.target||A.target===N.shadowParent)&&Y2(N.delta,_)})[0];if(R&&R.should){A.cancelable&&A.preventDefault();return}if(!R){var B=(u.current.shards||[]).map(Yh).filter(Boolean).filter(function(N){return N.contains(A.target)}),F=B.length>0?f(A,B[0]):!u.current.noIsolation;F&&A.cancelable&&A.preventDefault()}}},[]),g=m.useCallback(function(b,A,_,R){var B={name:b,delta:A,target:_,should:R,shadowParent:Z2(_)};r.current.push(B),setTimeout(function(){r.current=r.current.filter(function(F){return F!==B})},1)},[]),C=m.useCallback(function(b){o.current=Bs(b),a.current=void 0},[]),v=m.useCallback(function(b){g(b.type,Kh(b),b.target,f(b,t.lockRef.current))},[]),y=m.useCallback(function(b){g(b.type,Bs(b),b.target,f(b,t.lockRef.current))},[]);m.useEffect(function(){return Po.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:y}),document.addEventListener("wheel",h,Bo),document.addEventListener("touchmove",h,Bo),document.addEventListener("touchstart",C,Bo),function(){Po=Po.filter(function(b){return b!==c}),document.removeEventListener("wheel",h,Bo),document.removeEventListener("touchmove",h,Bo),document.removeEventListener("touchstart",C,Bo)}},[]);var E=t.removeScrollBar,k=t.inert;return m.createElement(m.Fragment,null,k?m.createElement(c,{styles:X2(s)}):null,E?m.createElement(W2,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Z2(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const J2=D2(Rv,q2);var oa=m.forwardRef(function(t,r){return m.createElement(Zs,wn({},t,{ref:r,sideCar:J2}))});oa.classNames=Zs.classNames;var eb=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},Ro=new WeakMap,Ps=new WeakMap,Rs={},Pu=0,Ov=function(t){return t&&(t.host||Ov(t.parentNode))},tb=function(t,r){return r.map(function(o){if(t.contains(o))return o;var a=Ov(o);return a&&t.contains(a)?a:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},nb=function(t,r,o,a){var s=tb(r,Array.isArray(t)?t:[t]);Rs[o]||(Rs[o]=new WeakMap);var c=Rs[o],u=[],f=new Set,h=new Set(s),g=function(v){!v||f.has(v)||(f.add(v),g(v.parentNode))};s.forEach(g);var C=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(y){if(f.has(y))C(y);else try{var E=y.getAttribute(a),k=E!==null&&E!=="false",b=(Ro.get(y)||0)+1,A=(c.get(y)||0)+1;Ro.set(y,b),c.set(y,A),u.push(y),b===1&&k&&Ps.set(y,!0),A===1&&y.setAttribute(o,"true"),k||y.setAttribute(a,"true")}catch(_){console.error("aria-hidden: cannot operate on ",y,_)}})};return C(r),f.clear(),Pu++,function(){u.forEach(function(v){var y=Ro.get(v)-1,E=c.get(v)-1;Ro.set(v,y),c.set(v,E),y||(Ps.has(v)||v.removeAttribute(a),Ps.delete(v)),E||v.removeAttribute(o)}),Pu--,Pu||(Ro=new WeakMap,Ro=new WeakMap,Ps=new WeakMap,Rs={})}},Js=function(t,r,o){o===void 0&&(o="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),s=eb(t);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),nb(a,s,o,"aria-hidden")):function(){return null}},rb=Object.defineProperty,Yt=(t,r)=>rb(t,"name",{value:r,configurable:!0}),Pd="Dialog",[Nv,PB]=gt(Pd),[ob,En]=Nv(Pd),Lv=Yt(t=>{const{__scopeDialog:r,children:o,open:a,defaultOpen:s,onOpenChange:c,modal:u=!0}=t,f=m.useRef(null),h=m.useRef(null),[g,C]=un({prop:a,defaultProp:s??!1,onChange:c,caller:Pd}),[v,y]=m.useState(0),[E,k]=m.useState(0);return w.jsx(ob,{scope:r,triggerRef:f,contentRef:h,contentId:Kt(),titleId:Kt(),descriptionId:Kt(),titlePresent:v>0,descriptionPresent:E>0,setTitleCount:y,setDescriptionCount:k,open:g,onOpenChange:C,onOpenToggle:m.useCallback(()=>C(b=>!b),[C]),modal:u,children:o})},"Dialog"),jv="DialogPortal",[ib,Wv]=Nv(jv,{forceMount:void 0}),$v=Yt(t=>{const{__scopeDialog:r,forceMount:o,children:a,container:s}=t,c=En(jv,r);return w.jsx(ib,{scope:r,forceMount:o,children:m.Children.map(a,u=>w.jsx(pt,{present:o||c.open,children:w.jsx(ra,{asChild:!0,container:s,children:u})}))})},"DialogPortal"),Ju="DialogOverlay",zv=m.forwardRef(Yt(function(r,o){const a=Wv(Ju,r.__scopeDialog),{forceMount:s=a.forceMount,...c}=r,u=En(Ju,r.__scopeDialog);return u.modal?w.jsx(pt,{present:s||u.open,children:w.jsx(sb,{...c,ref:o})}):null},"DialogOverlay")),ab=cn("DialogOverlay.RemoveScroll"),sb=m.forwardRef(Yt(function(r,o){const{__scopeDialog:a,...s}=r,c=En(Ju,a),u=Cv(),f=Ae(o,u);return w.jsx(oa,{as:ab,allowPinchZoom:!0,shards:[c.contentRef],children:w.jsx(Ee.div,{"data-state":_d(c.open),...s,ref:f,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),Ui="DialogContent",Hv=m.forwardRef(Yt(function(r,o){const a=Wv(Ui,r.__scopeDialog),{forceMount:s=a.forceMount,...c}=r,u=En(Ui,r.__scopeDialog);return w.jsx(pt,{present:s||u.open,children:u.modal?w.jsx(lb,{...c,ref:o}):w.jsx(cb,{...c,ref:o})})},"DialogContent")),lb=m.forwardRef(Yt(function(r,o){const a=En(Ui,r.__scopeDialog),s=m.useRef(null),c=Ae(o,a.contentRef,s);return m.useEffect(()=>{const u=s.current;if(u)return Js(u)},[]),w.jsx(Vv,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:oe(r.onCloseAutoFocus,u=>{u.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:oe(r.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:oe(r.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),cb=m.forwardRef(Yt(function(r,o){const a=En(Ui,r.__scopeDialog),s=m.useRef(!1),c=m.useRef(!1);return w.jsx(Vv,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{r.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||a.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{r.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=u.target;a.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})},"DialogContentNonModal")),Vv=m.forwardRef(Yt(function(r,o){const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...f}=r,h=En(Ui,a);return Xo(),w.jsx(w.Fragment,{children:w.jsx(qs,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:w.jsx(na,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":_d(h.open),...f,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),ub="DialogTitle",Uv=m.forwardRef(Yt(function(r,o){const{__scopeDialog:a,...s}=r,c=En(ub,a),{setTitleCount:u}=c;return Ve(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),w.jsx(Ee.h2,{id:c.titleId,...s,ref:o})},"DialogTitle")),db="DialogDescription",Gv=m.forwardRef(Yt(function(r,o){const{__scopeDialog:a,...s}=r,c=En(db,a),{setDescriptionCount:u}=c;return Ve(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),w.jsx(Ee.p,{id:c.descriptionId,...s,ref:o})},"DialogDescription")),fb="DialogClose",Rd=m.forwardRef(Yt(function(r,o){const{__scopeDialog:a,...s}=r,c=En(fb,a);return w.jsx(Ee.button,{type:"button",...s,ref:o,onClick:oe(r.onClick,()=>c.onOpenChange(!1))})},"DialogClose"));function _d(t){return t?"open":"closed"}Yt(_d,"getState");var pb=Object.defineProperty,jn=(t,r)=>pb(t,"name",{value:r,configurable:!0}),Kv="Avatar",[mb,RB]=gt(Kv),hb=[0,()=>{}],[gb,Yv]=mb(Kv),vb=m.forwardRef(jn(function(r,o){const{__scopeAvatar:a,...s}=r,[c,u]=m.useState("idle"),[f,h]=Qv();return w.jsx(gb,{scope:a,imageLoadingStatus:c,setImageLoadingStatus:u,imageCount:f,setImageCount:h,children:w.jsx(Ee.span,{...s,ref:o})})},"Avatar")),yb="AvatarImage",wb=m.forwardRef(jn(function(r,o){const{__scopeAvatar:a,src:s,onLoadingStatusChange:c,...u}=r,f=Yv(yb,a);f.setImageCount;const h=Xv(s,{referrerPolicy:u.referrerPolicy,crossOrigin:u.crossOrigin,loadingStatus:f.imageLoadingStatus,setLoadingStatus:f.setImageLoadingStatus}),g=rt(v=>{c?.(v)}),C=m.useRef(h);return Ve(()=>{const v=C.current;C.current=h,h!==v&&g(h)},[h,g]),h==="loaded"?w.jsx(Ee.img,{...u,ref:o,src:s}):null},"AvatarImage")),Cb="AvatarFallback",xb=m.forwardRef(jn(function(r,o){const{__scopeAvatar:a,delayMs:s,...c}=r,u=Yv(Cb,a),[f,h]=m.useState(s===void 0);return m.useEffect(()=>{if(s!==void 0){const g=window.setTimeout(()=>h(!0),s);return()=>window.clearTimeout(g)}},[s]),f&&u.imageLoadingStatus!=="loaded"?w.jsx(Ee.span,{...c,ref:o}):null},"AvatarFallback"));function Xv(t,{loadingStatus:r,setLoadingStatus:o,referrerPolicy:a,crossOrigin:s}){return Ve(()=>{if(!t){o("error");return}const c=new window.Image,u=jn(h=>{const g=h.currentTarget;o(ed(g))},"handleLoad"),f=jn(()=>o("error"),"handleError");return c.addEventListener("load",u),c.addEventListener("error",f),a&&(c.referrerPolicy=a),c.crossOrigin=s??null,c.src=t,o(ed(c)),()=>{c.removeEventListener("load",u),c.removeEventListener("error",f),o("idle")}},[t,s,a,o]),r}jn(Xv,"useImageLoadingStatus");function ed(t){return t.complete?t.naturalWidth>0?"loaded":"error":"loading"}jn(ed,"getImageLoadingStatus");function Qv(){return hb}jn(Qv,"useImageCount");function bb(t){}jn(bb,"useUpdateImageCount");var Eb=Object.defineProperty,Sb=(t,r)=>Eb(t,"name",{value:r,configurable:!0});function el(t){const[r,o]=m.useState(void 0);return Ve(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let u,f;if("borderBoxSize"in c){const h=c.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,f=g.blockSize}else u=t.offsetWidth,f=t.offsetHeight;o({width:u,height:f})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else o(void 0)},[t]),r}Sb(el,"useSize");var kb=Object.defineProperty,Wn=(t,r)=>kb(t,"name",{value:r,configurable:!0}),Td="Checkbox",[Ab,_B]=gt(Td),[Db,Id]=Ab(Td);function qv(t){const{__scopeCheckbox:r,checked:o,children:a,defaultChecked:s,disabled:c,form:u,name:f,onCheckedChange:h,required:g,value:C="on",internal_do_not_use_render:v}=t,[y,E]=un({prop:o,defaultProp:s??!1,onChange:h,caller:Td}),[k,b]=m.useState(null),[A,_]=m.useState(null),R=m.useRef(!1),[B,F]=m.useReducer(H=>H+1,0),N=k?!!u||!!k.closest("form"):!0,W={checked:y,disabled:c,setChecked:E,control:k,setControl:b,name:f,form:u,value:C,hasConsumerStoppedPropagationRef:R,userInteractionCount:B,onUserInteraction:F,required:g,defaultChecked:Mn(s)?!1:s,isFormControl:N,bubbleInput:A,setBubbleInput:_};return w.jsx(Db,{scope:r,...W,children:Zv(v)?v(W):a})}Wn(qv,"CheckboxProvider");var Fb="CheckboxTrigger",Bb=m.forwardRef(Wn(function({__scopeCheckbox:r,onKeyDown:o,onClick:a,...s},c){const{control:u,value:f,disabled:h,checked:g,required:C,setControl:v,setChecked:y,hasConsumerStoppedPropagationRef:E,onUserInteraction:k,isFormControl:b,bubbleInput:A}=Id(Fb,r),_=Ae(c,v),R=m.useRef(g);return m.useEffect(()=>{const B=u?.form;if(B){const F=Wn(()=>y(R.current),"reset");return B.addEventListener("reset",F),()=>B.removeEventListener("reset",F)}},[u,y]),w.jsx(Ee.button,{type:"button",role:"checkbox","aria-checked":Mn(g)?"mixed":g,"aria-required":C,"data-state":Md(g),"data-disabled":h?"":void 0,disabled:h,value:f,...s,ref:_,onKeyDown:oe(o,B=>{B.key==="Enter"&&B.preventDefault()}),onClick:oe(a,B=>{k(),y(F=>Mn(F)?!0:!F),A&&b&&(E.current=B.isPropagationStopped(),E.current||B.stopPropagation())})})},"CheckboxTrigger")),Pb=m.forwardRef(Wn(function(r,o){const{__scopeCheckbox:a,name:s,checked:c,defaultChecked:u,required:f,disabled:h,value:g,onCheckedChange:C,form:v,...y}=r;return w.jsx(qv,{__scopeCheckbox:a,checked:c,defaultChecked:u,disabled:h,required:f,onCheckedChange:C,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:E})=>w.jsxs(w.Fragment,{children:[w.jsx(Bb,{...y,ref:o,__scopeCheckbox:a}),E&&w.jsx(Ib,{__scopeCheckbox:a})]})})},"Checkbox")),Rb="CheckboxIndicator",_b=m.forwardRef(Wn(function(r,o){const{__scopeCheckbox:a,forceMount:s,...c}=r,u=Id(Rb,a);return w.jsx(pt,{present:s||Mn(u.checked)||u.checked===!0,children:w.jsx(Ee.span,{"data-state":Md(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:o,style:{pointerEvents:"none",...r.style}})})},"CheckboxIndicator")),Tb="CheckboxBubbleInput",Ib=m.forwardRef(Wn(function({__scopeCheckbox:r,onClick:o,...a},s){const{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:f,checked:h,defaultChecked:g,required:C,disabled:v,name:y,value:E,form:k,bubbleInput:b,setBubbleInput:A}=Id(Tb,r),_=Ae(s,A),R=el(c),B=m.useRef(!1),F=m.useRef(h),N=m.useRef(f);m.useEffect(()=>{const H=b;if(!H)return;const j=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(j,"checked").set,G=f!==N.current;N.current=f;const Y=F.current!==h;F.current=h;const te=!(G&&u.current);if(Y&&S){B.current=!G;const ie=new Event("click",{bubbles:te});H.indeterminate=Mn(h),S.call(H,Mn(h)?!1:h),H.dispatchEvent(ie),B.current=!1}},[b,h,u,f]);const W=m.useRef(Mn(h)?!1:h);return w.jsx(Ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??W.current,required:C,disabled:v,name:y,value:E,form:k,...a,tabIndex:-1,ref:_,onClick:oe(o,H=>{B.current&&H.stopPropagation()}),style:{...a.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function Zv(t){return typeof t=="function"}Wn(Zv,"isFunction");function Mn(t){return t==="indeterminate"}Wn(Mn,"isIndeterminate");function Md(t){return Mn(t)?"indeterminate":t?"checked":"unchecked"}Wn(Md,"getState");const Mb=["top","right","bottom","left"],gr=Math.min,On=Math.max,Hs=Math.round,_s=Math.floor,Nn=t=>({x:t,y:t}),Ob={left:"right",right:"left",bottom:"top",top:"bottom"};function Jv(t,r,o){return On(t,gr(r,o))}function $n(t,r){return typeof t=="function"?t(r):t}function vr(t){return t.split("-")[0]}function Qo(t){return t.split("-")[1]}function Od(t){return t==="x"?"y":"x"}function Nd(t){return t==="y"?"height":"width"}function Cn(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function Ld(t){return Od(Cn(t))}function Nb(t,r,o){o===void 0&&(o=!1);const a=Qo(t),s=Ld(t),c=Nd(s);let u=s==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(u=Vs(u)),[u,Vs(u)]}function Lb(t){const r=Vs(t);return[td(t),r,td(r)]}function td(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Xh=["left","right"],Qh=["right","left"],jb=["top","bottom"],Wb=["bottom","top"];function $b(t,r,o){switch(t){case"top":case"bottom":return o?r?Qh:Xh:r?Xh:Qh;case"left":case"right":return r?jb:Wb;default:return[]}}function zb(t,r,o,a){const s=Qo(t);let c=$b(vr(t),o==="start",a);return s&&(c=c.map(u=>u+"-"+s),r&&(c=c.concat(c.map(td)))),c}function Vs(t){const r=vr(t);return Ob[r]+t.slice(r.length)}function Hb(t){var r,o,a,s;return{top:(r=t.top)!=null?r:0,right:(o=t.right)!=null?o:0,bottom:(a=t.bottom)!=null?a:0,left:(s=t.left)!=null?s:0}}function e0(t){return typeof t!="number"?Hb(t):{top:t,right:t,bottom:t,left:t}}function Us(t){const{x:r,y:o,width:a,height:s}=t;return{width:a,height:s,top:o,left:r,right:r+a,bottom:o+s,x:r,y:o}}function qh(t,r,o){let{reference:a,floating:s}=t;const c=Cn(r),u=Ld(r),f=Nd(u),h=vr(r),g=c==="y",C=a.x+a.width/2-s.width/2,v=a.y+a.height/2-s.height/2,y=a[f]/2-s[f]/2;let E;switch(h){case"top":E={x:C,y:a.y-s.height};break;case"bottom":E={x:C,y:a.y+a.height};break;case"right":E={x:a.x+a.width,y:v};break;case"left":E={x:a.x-s.width,y:v};break;default:E={x:a.x,y:a.y}}const k=Qo(r);return k&&(E[u]+=y*(k==="end"?1:-1)*(o&&g?-1:1)),E}async function Vb(t,r){var o;r===void 0&&(r={});const{x:a,y:s,platform:c,rects:u,elements:f,strategy:h}=t,{boundary:g="clippingAncestors",rootBoundary:C="viewport",elementContext:v="floating",altBoundary:y=!1,padding:E=0}=$n(r,t),k=e0(E),A=f[y?v==="floating"?"reference":"floating":v],_=Us(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(A)))==null||o?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:g,rootBoundary:C,strategy:h})),R=v==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),F=await(c.isElement==null?void 0:c.isElement(B))&&await(c.getScale==null?void 0:c.getScale(B))||{x:1,y:1},N=Us(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:B,strategy:h}):R);return{top:(_.top-N.top+k.top)/F.y,bottom:(N.bottom-_.bottom+k.bottom)/F.y,left:(_.left-N.left+k.left)/F.x,right:(N.right-_.right+k.right)/F.x}}const Ub=50,Gb=async(t,r,o)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:u}=o,f=u.detectOverflow?u:{...u,detectOverflow:Vb},h=await(u.isRTL==null?void 0:u.isRTL(r));let g=await u.getElementRects({reference:t,floating:r,strategy:s}),{x:C,y:v}=qh(g,a,h),y=a,E=0;const k={};for(let b=0;b<c.length;b++){const A=c[b];if(!A)continue;const{name:_,fn:R}=A,{x:B,y:F,data:N,reset:W}=await R({x:C,y:v,initialPlacement:a,placement:y,strategy:s,middlewareData:k,rects:g,platform:f,elements:{reference:t,floating:r}});C=B??C,v=F??v,k[_]={...k[_],...N},W&&E<Ub&&(E++,typeof W=="object"&&(W.placement&&(y=W.placement),W.rects&&(g=W.rects===!0?await u.getElementRects({reference:t,floating:r,strategy:s}):W.rects),{x:C,y:v}=qh(g,y,h)),b=-1)}return{x:C,y:v,placement:y,strategy:s,middlewareData:k}},Kb=t=>({name:"arrow",options:t,async fn(r){const{x:o,y:a,placement:s,rects:c,platform:u,elements:f,middlewareData:h}=r,{element:g,padding:C=0}=$n(t,r)||{};if(g==null)return{};const v=e0(C),y={x:o,y:a},E=Ld(s),k=Nd(E),b=await u.getDimensions(g),A=E==="y",_=A?"top":"left",R=A?"bottom":"right",B=A?"clientHeight":"clientWidth",F=c.reference[k]+c.reference[E]-y[E]-c.floating[k],N=y[E]-c.reference[E],W=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let H=W?W[B]:0;(!H||!await(u.isElement==null?void 0:u.isElement(W)))&&(H=f.floating[B]||c.floating[k]);const j=F/2-N/2,K=H/2-b[k]/2-1,S=gr(v[_],K),G=gr(v[R],K),Y=H-b[k]-G,te=H/2-b[k]/2+j,ie=Jv(S,te,Y),he=!h.arrow&&Qo(s)!=null&&te!==ie&&c.reference[k]/2-(te<S?S:G)-b[k]/2<0,le=he?te<S?te-S:te-Y:0;return{[E]:y[E]+le,data:{[E]:ie,centerOffset:te-ie-le,...he&&{alignmentOffset:le}},reset:he}}}),Yb=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var o,a;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:h,elements:g}=r,{mainAxis:C=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:b=!0,...A}=$n(t,r);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const _=vr(s),R=Cn(f),B=vr(f)===f,F=await(h.isRTL==null?void 0:h.isRTL(g.floating)),N=y||(B||!b?[Vs(f)]:Lb(f)),W=k!=="none";!y&&W&&N.push(...zb(f,b,k,F));const H=[f,...N],j=await h.detectOverflow(r,A),K=[];let S=((a=c.flip)==null?void 0:a.overflows)||[];if(C&&K.push(j[_]),v){const ie=Nb(s,u,F);K.push(j[ie[0]],j[ie[1]])}if(S=[...S,{placement:s,overflows:K}],!K.every(ie=>ie<=0)){var G,Y;const ie=(((G=c.flip)==null?void 0:G.index)||0)+1,he=H[ie];if(he&&(!(v==="alignment"?R!==Cn(he):!1)||S.every(V=>Cn(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:ie,overflows:S},reset:{placement:he}};let le=(Y=S.filter(re=>re.overflows[0]<=0).sort((re,V)=>re.overflows[1]-V.overflows[1])[0])==null?void 0:Y.placement;if(!le)switch(E){case"bestFit":{var te;const re=(te=S.filter(V=>{if(W){const Z=Cn(V.placement);return Z===R||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,M)=>Z+M,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:te[0];re&&(le=re);break}case"initialPlacement":le=f;break}if(s!==le)return{reset:{placement:le}}}return{}}}};function Zh(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function Jh(t){return Mb.some(r=>t[r]>=0)}const Xb=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:o,platform:a}=r,{strategy:s="referenceHidden",...c}=$n(t,r);switch(s){case"referenceHidden":{const u=await a.detectOverflow(r,{...c,elementContext:"reference"}),f=Zh(u,o.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Jh(f)}}}case"escaped":{const u=await a.detectOverflow(r,{...c,altBoundary:!0}),f=Zh(u,o.floating);return{data:{escapedOffsets:f,escaped:Jh(f)}}}default:return{}}}}},t0=new Set(["left","top"]);async function Qb(t,r){const{placement:o,platform:a,elements:s}=t,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=vr(o),f=Qo(o),h=Cn(o)==="y",g=t0.has(u)?-1:1,C=c&&h?-1:1,v=$n(r,t);let{mainAxis:y,crossAxis:E,alignmentAxis:k}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof k=="number"&&(E=f==="end"?k*-1:k),h?{x:E*C,y:y*g}:{x:y*g,y:E*C}}const qb=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var o,a;const{x:s,y:c,placement:u,middlewareData:f}=r,h=await Qb(r,t);return u===((o=f.offset)==null?void 0:o.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:u}}}}},Zb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:o,y:a,placement:s,platform:c}=r,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:R=>{let{x:B,y:F}=R;return{x:B,y:F}}},...g}=$n(t,r),C={x:o,y:a},v=await c.detectOverflow(r,g),y=Cn(s),E=Od(y);let k=C[E],b=C[y];const A=(R,B)=>Jv(B+v[R==="y"?"top":"left"],B,B-v[R==="y"?"bottom":"right"]);u&&(k=A(E,k)),f&&(b=A(y,b));const _=h.fn({...r,[E]:k,[y]:b});return{..._,data:{x:_.x-o,y:_.y-a,enabled:{[E]:u,[y]:f}}}}}},Jb=function(t){return t===void 0&&(t={}),{options:t,fn(r){var o,a;const{x:s,y:c,placement:u,rects:f,middlewareData:h}=r,{offset:g=0,mainAxis:C=!0,crossAxis:v=!0}=$n(t,r),y={x:s,y:c},E=Cn(u),k=Od(E);let b=y[k],A=y[E];const _=$n(g,r),R=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:(o=_.mainAxis)!=null?o:0,crossAxis:(a=_.crossAxis)!=null?a:0};if(C){const N=k==="y"?"height":"width",W=f.reference[k]-f.floating[N]+R.mainAxis,H=f.reference[k]+f.reference[N]-R.mainAxis;b<W?b=W:b>H&&(b=H)}if(v){var B,F;const N=k==="y"?"width":"height",W=t0.has(vr(u)),H=f.reference[E]-f.floating[N]+(W&&((B=h.offset)==null?void 0:B[E])||0)+(W?0:R.crossAxis),j=f.reference[E]+f.reference[N]+(W?0:((F=h.offset)==null?void 0:F[E])||0)-(W?R.crossAxis:0);A<H?A=H:A>j&&(A=j)}return{[k]:b,[E]:A}}}},eE=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:o,rects:a,platform:s,elements:c}=r,{apply:u=()=>{},...f}=$n(t,r),h=await s.detectOverflow(r,f),g=vr(o),C=Qo(o),v=Cn(o)==="y",{width:y,height:E}=a.floating;let k,b;g==="top"||g==="bottom"?(k=g,b=C===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(b=g,k=C==="end"?"top":"bottom");const A=E-h.top-h.bottom,_=y-h.left-h.right,R=gr(E-h[k],A),B=gr(y-h[b],_),F=r.middlewareData.shift,N=!F;let W=R,H=B;F!=null&&F.enabled.x&&(H=_),F!=null&&F.enabled.y&&(W=A),N&&!C&&(v?H=y-2*On(h.left,h.right):W=E-2*On(h.top,h.bottom)),await u({...r,availableWidth:H,availableHeight:W});const j=await s.getDimensions(c.floating);return y!==j.width||E!==j.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function qo(t){return n0(t)?(t.nodeName||"").toLowerCase():"#document"}function _t(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Hn(t){var r;return(r=(n0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function n0(t){return tl()?t instanceof Node||t instanceof _t(t).Node:!1}function xn(t){return tl()?t instanceof Element||t instanceof _t(t).Element:!1}function xr(t){return tl()?t instanceof HTMLElement||t instanceof _t(t).HTMLElement:!1}function eg(t){return!tl()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _t(t).ShadowRoot}function nl(t){const{overflow:r,overflowX:o,overflowY:a,display:s}=bn(t);return/auto|scroll|overlay|hidden|clip/.test(r+a+o)&&s!=="inline"&&s!=="contents"}function tE(t){return/^(table|td|th)$/.test(qo(t))}function rl(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const nE=/transform|translate|scale|rotate|perspective|filter/,rE=/paint|layout|strict|content/,Wr=t=>!!t&&t!=="none";let Ru;function jd(t){const r=xn(t)?bn(t):t;return Wr(r.transform)||Wr(r.translate)||Wr(r.scale)||Wr(r.rotate)||Wr(r.perspective)||!Wd()&&(Wr(r.backdropFilter)||Wr(r.filter))||nE.test(r.willChange||"")||rE.test(r.contain||"")}function oE(t){let r=zr(t);for(;xr(r)&&!Gi(r);){if(jd(r))return r;if(rl(r))return null;r=zr(r)}return null}function Wd(){return Ru==null&&(Ru=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ru}function Gi(t){return/^(html|body|#document)$/.test(qo(t))}function bn(t){return _t(t).getComputedStyle(t)}function ol(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function zr(t){if(qo(t)==="html")return t;const r=t.assignedSlot||t.parentNode||eg(t)&&t.host||Hn(t);return eg(r)?r.host:r}function r0(t){const r=zr(t);return Gi(r)?(t.ownerDocument||t).body:xr(r)&&nl(r)?r:r0(r)}function Ki(t,r,o){var a;r===void 0&&(r=[]),o===void 0&&(o=!0);const s=r0(t),c=s===((a=t.ownerDocument)==null?void 0:a.body),u=_t(s);if(c){const f=nd(u);return r.concat(u,u.visualViewport||[],nl(s)?s:[],f&&o?Ki(f):[])}else return r.concat(s,Ki(s,[],o))}function nd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function o0(t){const r=bn(t);let o=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=xr(t),c=s?t.offsetWidth:o,u=s?t.offsetHeight:a,f=Hs(o)!==c||Hs(a)!==u;return f&&(o=c,a=u),{width:o,height:a,$:f}}function $d(t){return xn(t)?t:t.contextElement}function $o(t){const r=$d(t);if(!xr(r))return Nn(1);const o=r.getBoundingClientRect(),{width:a,height:s,$:c}=o0(r);let u=(c?Hs(o.width):o.width)/a,f=(c?Hs(o.height):o.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const iE=Nn(0);function i0(t){const r=_t(t);return!Wd()||!r.visualViewport?iE:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function aE(t,r,o){return r===void 0&&(r=!1),!!o&&r&&o===_t(t)}function Hr(t,r,o,a){r===void 0&&(r=!1),o===void 0&&(o=!1);const s=t.getBoundingClientRect(),c=$d(t);let u=Nn(1);r&&(a?xn(a)&&(u=$o(a)):u=$o(t));const f=aE(c,o,a)?i0(c):Nn(0);let h=(s.left+f.x)/u.x,g=(s.top+f.y)/u.y,C=s.width/u.x,v=s.height/u.y;if(c&&a){const y=_t(c),E=xn(a)?_t(a):a;let k=y,b=nd(k);for(;b&&E!==k;){const A=$o(b),_=b.getBoundingClientRect(),R=bn(b),B=_.left+(b.clientLeft+parseFloat(R.paddingLeft))*A.x,F=_.top+(b.clientTop+parseFloat(R.paddingTop))*A.y;h*=A.x,g*=A.y,C*=A.x,v*=A.y,h+=B,g+=F,k=_t(b),b=nd(k)}}return Us({width:C,height:v,x:h,y:g})}function il(t,r){const o=ol(t).scrollLeft;return r?r.left+o:Hr(Hn(t)).left+o}function a0(t,r){const o=t.getBoundingClientRect(),a=o.left+r.scrollLeft-il(t,o),s=o.top+r.scrollTop;return{x:a,y:s}}function sE(t){let{elements:r,rect:o,offsetParent:a,strategy:s}=t;const c=s==="fixed",u=Hn(a),f=r?rl(r.floating):!1;if(a===u||f&&c)return o;let h={scrollLeft:0,scrollTop:0},g=Nn(1);const C=Nn(0),v=xr(a);if((v||!c)&&((qo(a)!=="body"||nl(u))&&(h=ol(a)),v)){const E=Hr(a);g=$o(a),C.x=E.x+a.clientLeft,C.y=E.y+a.clientTop}const y=u&&!v&&!c?a0(u,h):Nn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-h.scrollLeft*g.x+C.x+y.x,y:o.y*g.y-h.scrollTop*g.y+C.y+y.y}}function lE(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function cE(t){const r=ol(t),o=t.ownerDocument.body,a=On(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=On(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+il(t);const u=-r.scrollTop;return bn(o).direction==="rtl"&&(c+=On(t.clientWidth,o.clientWidth)-a),{width:a,height:s,x:c,y:u}}const uE=25;function dE(t,r,o){o===void 0&&(o="viewport");const a=o==="layoutViewport",s=_t(t),c=Hn(t),u=s.visualViewport;let f=c.clientWidth,h=c.clientHeight,g=0,C=0;if(u){const y=!Wd()||r==="fixed";a?y||(g=-u.offsetLeft,C=-u.offsetTop):(f=u.width,h=u.height,y&&(g=u.offsetLeft,C=u.offsetTop))}if(il(c)<=0){const y=c.ownerDocument,E=y.body,k=getComputedStyle(E),b=y.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,A=Math.abs(c.clientWidth-E.clientWidth-b),_=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;_<=uE&&(f-=_)}return{width:f,height:h,x:g,y:C}}function fE(t,r){const o=Hr(t,!0,r==="fixed"),a=o.top+t.clientTop,s=o.left+t.clientLeft,c=$o(t),u=t.clientWidth*c.x,f=t.clientHeight*c.y,h=s*c.x,g=a*c.y;return{width:u,height:f,x:h,y:g}}function tg(t,r,o){let a;if(r==="viewport"||r==="layoutViewport")a=dE(t,o,r);else if(r==="document")a=cE(Hn(t));else if(xn(r))a=fE(r,o);else{const s=i0(t);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Us(a)}function pE(t,r){const o=r.get(t);if(o)return o;let a=Ki(t,[],!1).filter(f=>xn(f)&&qo(f)!=="body"),s=null;const c=bn(t).position==="fixed";let u=c?zr(t):t;for(;xn(u)&&!Gi(u);){const f=bn(u),h=jd(u),g=s?s.position:c?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&f.position==="static")?a=a.filter(v=>v!==u):s=f,u=zr(u)}return r.set(t,a),a}function mE(t){let{element:r,boundary:o,rootBoundary:a,strategy:s}=t;const u=[...o==="clippingAncestors"?rl(r)?[]:pE(r,this._c):[].concat(o),a],f=tg(r,u[0],s);let h=f.top,g=f.right,C=f.bottom,v=f.left;for(let y=1;y<u.length;y++){const E=tg(r,u[y],s);h=On(E.top,h),g=gr(E.right,g),C=gr(E.bottom,C),v=On(E.left,v)}return{width:g-v,height:C-h,x:v,y:h}}function hE(t){const{width:r,height:o}=o0(t);return{width:r,height:o}}function gE(t,r,o){const a=xr(r),s=Hn(r),c=o==="fixed",u=Hr(t,!0,c,r);let f={scrollLeft:0,scrollTop:0};const h=Nn(0);if((a||!c)&&((qo(r)!=="body"||nl(s))&&(f=ol(r)),a)){const y=Hr(r,!0,c,r);h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}!a&&s&&(h.x=il(s));const g=s&&!a&&!c?a0(s,f):Nn(0),C=u.left+f.scrollLeft-h.x-g.x,v=u.top+f.scrollTop-h.y-g.y;return{x:C,y:v,width:u.width,height:u.height}}function _u(t){return bn(t).position==="static"}function ng(t,r){if(!xr(t)||bn(t).position==="fixed")return null;if(r)return r(t);let o=t.offsetParent;return Hn(t)===o&&(o=o.ownerDocument.body),o}function s0(t,r){const o=_t(t);if(rl(t))return o;if(!xr(t)){let s=zr(t);for(;s&&!Gi(s);){if(xn(s)&&!_u(s))return s;s=zr(s)}return o}let a=ng(t,r);for(;a&&tE(a)&&_u(a);)a=ng(a,r);return a&&Gi(a)&&_u(a)&&!jd(a)?o:a||oE(t)||o}const vE=async function(t){const r=this.getOffsetParent||s0,o=this.getDimensions,a=await o(t.floating);return{reference:gE(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function yE(t){return bn(t).direction==="rtl"}const wE={convertOffsetParentRelativeRectToViewportRelativeRect:sE,getDocumentElement:Hn,getClippingRect:mE,getOffsetParent:s0,getElementRects:vE,getClientRects:lE,getDimensions:hE,getScale:$o,isElement:xn,isRTL:yE};function l0(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function CE(t,r,o){let a=null,s;const c=Hn(t);function u(){var C;clearTimeout(s),(C=a)==null||C.disconnect(),a=null}function f(C,v){C===void 0&&(C=!1),v===void 0&&(v=1),u();const y=t.getBoundingClientRect(),{left:E,top:k,width:b,height:A}=y;if(C||r(),!b||!A)return;const _=_s(k),R=_s(c.clientWidth-(E+b)),B=_s(c.clientHeight-(k+A)),F=_s(E),W={rootMargin:-_+"px "+-R+"px "+-B+"px "+-F+"px",threshold:On(0,gr(1,v))||1};let H=!0;function j(K){const S=K[0].intersectionRatio;if(!l0(y,t.getBoundingClientRect()))return f();if(S!==v){if(!H)return f();S?f(!1,S):s=setTimeout(()=>{f(!1,1e-7)},1e3)}H=!1}try{a=new IntersectionObserver(j,{...W,root:c.ownerDocument})}catch{a=new IntersectionObserver(j,W)}a.observe(t)}const h=_t(t),g=()=>f(o);return h.addEventListener("resize",g),f(!0),()=>{h.removeEventListener("resize",g),u()}}function xE(t,r,o,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,g=$d(t),C=s||c?[...g?Ki(g):[],...r?Ki(r):[]]:[];C.forEach(_=>{s&&_.addEventListener("scroll",o),c&&_.addEventListener("resize",o)});const v=g&&f?CE(g,o,c):null;let y=-1,E=null;u&&(E=new ResizeObserver(_=>{let[R]=_;R&&R.target===g&&E&&r&&(E.unobserve(r),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var B;(B=E)==null||B.observe(r)})),o()}),g&&!h&&E.observe(g),r&&E.observe(r));let k,b=h?Hr(t):null;h&&A();function A(){const _=Hr(t);b&&!l0(b,_)&&o(),b=_,k=requestAnimationFrame(A)}return o(),()=>{var _;C.forEach(R=>{s&&R.removeEventListener("scroll",o),c&&R.removeEventListener("resize",o)}),v?.(),(_=E)==null||_.disconnect(),E=null,h&&cancelAnimationFrame(k)}}const bE=qb,EE=Zb,SE=Yb,kE=eE,AE=Xb,rg=Kb,DE=Jb,FE=(t,r,o)=>{const a=new Map,s=o??{},c={...wE,...s.platform,_c:a};return Gb(t,r,{...s,platform:c})};var BE=typeof document<"u",PE=function(){},$s=BE?m.useLayoutEffect:PE;function Gs(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let o,a,s;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==r.length)return!1;for(a=o;a--!==0;)if(!Gs(t[a],r[a]))return!1;return!0}if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(r,s[a]))return!1;for(a=o;a--!==0;){const c=s[a];if(!(c==="_owner"&&t.$$typeof)&&!Gs(t[c],r[c]))return!1}return!0}return t!==t&&r!==r}function c0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function og(t,r){const o=c0(t);return Math.round(r*o)/o}function Tu(t){const r=m.useRef(t);return $s(()=>{r.current=t}),r}function RE(t){t===void 0&&(t={});const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:h,open:g}=t,[C,v]=m.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[y,E]=m.useState(a);Gs(y,a)||E(a);const[k,b]=m.useState(null),[A,_]=m.useState(null),R=m.useCallback(V=>{V!==W.current&&(W.current=V,b(V))},[]),B=m.useCallback(V=>{V!==H.current&&(H.current=V,_(V))},[]),F=c||k,N=u||A,W=m.useRef(null),H=m.useRef(null),j=m.useRef(C),K=h!=null,S=Tu(h),G=Tu(s),Y=Tu(g),te=m.useCallback(()=>{if(!W.current||!H.current)return;const V={placement:r,strategy:o,middleware:y};G.current&&(V.platform=G.current),FE(W.current,H.current,V).then(Z=>{const M={...Z,isPositioned:Y.current!==!1};ie.current&&!Gs(j.current,M)&&(j.current=M,Go.flushSync(()=>{v(M)}))})},[y,r,o,G,Y]);$s(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,v(V=>({...V,isPositioned:!1})))},[g]);const ie=m.useRef(!1);$s(()=>(ie.current=!0,()=>{ie.current=!1}),[]),$s(()=>{if(F&&(W.current=F),N&&(H.current=N),F&&N){if(S.current)return S.current(F,N,te);te()}},[F,N,te,S,K]);const he=m.useMemo(()=>({reference:W,floating:H,setReference:R,setFloating:B}),[R,B]),le=m.useMemo(()=>({reference:F,floating:N}),[F,N]),re=m.useMemo(()=>{const V={position:o,left:0,top:0};if(!le.floating)return V;const Z=og(le.floating,C.x),M=og(le.floating,C.y);return f?{...V,transform:"translate("+Z+"px, "+M+"px)",...c0(le.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:Z,top:M}},[o,f,le.floating,C.x,C.y]);return m.useMemo(()=>({...C,update:te,refs:he,elements:le,floatingStyles:re}),[C,te,he,le,re])}const _E=t=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:a,padding:s}=typeof t=="function"?t(o):t;return a&&r(a)?a.current!=null?rg({element:a.current,padding:s}).fn(o):{}:a?rg({element:a,padding:s}).fn(o):{}}}},TE=(t,r)=>{const o=bE(t);return{name:o.name,fn:o.fn,options:[t,r]}},IE=(t,r)=>{const o=EE(t);return{name:o.name,fn:o.fn,options:[t,r]}},ME=(t,r)=>({fn:DE(t).fn,options:[t,r]}),OE=(t,r)=>{const o=SE(t);return{name:o.name,fn:o.fn,options:[t,r]}},NE=(t,r)=>{const o=kE(t);return{name:o.name,fn:o.fn,options:[t,r]}},LE=(t,r)=>{const o=AE(t);return{name:o.name,fn:o.fn,options:[t,r]}},jE=(t,r)=>{const o=_E(t);return{name:o.name,fn:o.fn,options:[t,r]}};var WE=Object.defineProperty,hr=(t,r)=>WE(t,"name",{value:r,configurable:!0}),u0="Popper",[d0,br]=gt(u0),[$E,f0]=d0(u0),zE=hr(t=>{const{__scopePopper:r,children:o}=t,[a,s]=m.useState(null),[c,u]=m.useState(void 0);return w.jsx($E,{scope:r,anchor:a,onAnchorChange:s,placementState:c,setPlacementState:u,children:o})},"Popper"),HE="PopperAnchor",VE=m.forwardRef(hr(function(r,o){const{__scopePopper:a,virtualRef:s,...c}=r,u=f0(HE,a),f=m.useRef(null),h=u.onAnchorChange,g=m.useCallback(b=>{f.current=b,b&&h(b)},[h]),C=Ae(o,g),v=m.useRef(null);m.useEffect(()=>{if(!s)return;const b=v.current;v.current=s.current,b!==v.current&&h(v.current)});const y=u.placementState&&al(u.placementState),E=y?.[0],k=y?.[1];return s?null:w.jsx(Ee.div,{"data-radix-popper-side":E,"data-radix-popper-align":k,...c,ref:C})},"PopperAnchor")),p0="PopperContent",[UE,TB]=d0(p0),GE=m.forwardRef(hr(function(r,o){const{__scopePopper:a,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:C=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:E=!1,updatePositionStrategy:k="optimized",onPlaced:b,...A}=r,_=f0(p0,a),[R,B]=m.useState(null),F=Ae(o,B),[N,W]=m.useState(null),H=el(N),j=H?.width??0,K=H?.height??0,S=s+(u!=="center"?"-"+u:""),G=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Y=Array.isArray(C)?C:[C],te=Y.length>0,ie={padding:G,boundary:Y.filter(m0),altBoundary:te},{refs:he,floatingStyles:le,placement:re,isPositioned:V,middlewareData:Z}=RE({strategy:"fixed",placement:S,whileElementsMounted:hr((...ae)=>xE(...ae,{animationFrame:k==="always"}),"whileElementsMounted"),elements:{reference:_.anchor},middleware:[TE({mainAxis:c+K,alignmentAxis:f}),g&&IE({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?ME():void 0,...ie}),g&&OE({...ie}),NE({...ie,apply:hr(({elements:ae,rects:_e,availableWidth:Be,availableHeight:q})=>{const{width:De,height:Xe}=_e.reference,bt=ae.floating.style;bt.setProperty("--radix-popper-available-width",`${Be}px`),bt.setProperty("--radix-popper-available-height",`${q}px`),bt.setProperty("--radix-popper-anchor-width",`${De}px`),bt.setProperty("--radix-popper-anchor-height",`${Xe}px`)},"apply")}),N&&jE({element:N,padding:h}),KE({arrowWidth:j,arrowHeight:K}),E&&LE({strategy:"referenceHidden",...ie,boundary:te?ie.boundary:void 0})]}),M=_.setPlacementState;Ve(()=>(M(re),()=>{M(void 0)}),[re,M]);const[T,z]=al(re),pe=rt(b);Ve(()=>{V&&pe?.()},[V,pe]);const Ce=Z.arrow?.x,ge=Z.arrow?.y,ye=Z.arrow?.centerOffset!==0,[Se,ee]=m.useState();return Ve(()=>{R&&ee(window.getComputedStyle(R).zIndex)},[R]),w.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:V?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:w.jsx(UE,{scope:a,placedSide:T,placedAlign:z,onArrowChange:W,arrowX:Ce,arrowY:ge,shouldHideArrow:ye,children:w.jsx(Ee.div,{"data-side":T,"data-align":z,...A,ref:F,style:{...A.style,animation:V?A.style?.animation:"none"}})})})},"PopperContent"));function m0(t){return t!==null}hr(m0,"isNotNull");var KE=hr(t=>({name:"transformOrigin",options:t,fn(r){const{placement:o,rects:a,middlewareData:s}=r,u=s.arrow?.centerOffset!==0,f=u?0:t.arrowWidth,h=u?0:t.arrowHeight,[g,C]=al(o),v={start:"0%",center:"50%",end:"100%"}[C],y=(s.arrow?.x??0)+f/2,E=(s.arrow?.y??0)+h/2;let k="",b="";return g==="bottom"?(k=u?v:`${y}px`,b=`${-h}px`):g==="top"?(k=u?v:`${y}px`,b=`${a.floating.height+h}px`):g==="right"?(k=`${-h}px`,b=u?v:`${E}px`):g==="left"&&(k=`${a.floating.width+h}px`,b=u?v:`${E}px`),{data:{x:k,y:b}}}}),"transformOrigin");function al(t){const[r,o="center"]=t.split("-");return[r,o]}hr(al,"getSideAndAlignFromPlacement");var sl=zE,ll=VE,cl=GE,YE=Object.defineProperty,zd=(t,r)=>YE(t,"name",{value:r,configurable:!0}),Iu=!1;function h0(){const[t,r]=m.useState(Iu);return m.useEffect(()=>{Iu||(Iu=!0,r(!0))},[]),t}zd(h0,"useIsHydrated");var g0=Uo[" useSyncExternalStore ".trim().toString()];function v0(){return()=>{}}zd(v0,"subscribe");function y0(){return g0(v0,()=>!0,()=>!1)}zd(y0,"useIsHydratedModern");var XE=typeof g0=="function"?y0:h0,QE=Object.defineProperty,Xr=(t,r)=>QE(t,"name",{value:r,configurable:!0}),Mu="rovingFocusGroup.onEntryFocus",qE={bubbles:!1,cancelable:!0},ul="RovingFocusGroup",[rd,w0,ZE]=Qs(ul),[JE,dl]=gt(ul,[ZE]),[eS,tS]=JE(ul),nS=m.forwardRef(Xr(function(r,o){return w.jsx(rd.Provider,{scope:r.__scopeRovingFocusGroup,children:w.jsx(rd.Slot,{scope:r.__scopeRovingFocusGroup,children:w.jsx(rS,{...r,ref:o})})})},"RovingFocusGroup")),rS=m.forwardRef(Xr(function(r,o){const{__scopeRovingFocusGroup:a,orientation:s,loop:c=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:C,preventScrollOnEntryFocus:v=!1,...y}=r,E=m.useRef(null),k=Ae(o,E),b=Yo(u),[A,_]=un({prop:f,defaultProp:h??null,onChange:g,caller:ul}),[R,B]=m.useState(!1),F=rt(C),N=w0(a),W=m.useRef(!1),[H,j]=m.useState(0);return m.useEffect(()=>{const K=E.current;if(K)return K.addEventListener(Mu,F),()=>K.removeEventListener(Mu,F)},[F]),w.jsx(eS,{scope:a,orientation:s,dir:b,loop:c,currentTabStopId:A,onItemFocus:m.useCallback(K=>_(K),[_]),onItemShiftTab:m.useCallback(()=>B(!0),[]),onFocusableItemAdd:m.useCallback(()=>j(K=>K+1),[]),onFocusableItemRemove:m.useCallback(()=>j(K=>K-1),[]),children:w.jsx(Ee.div,{tabIndex:R||H===0?-1:0,"data-orientation":s,...y,ref:k,style:{outline:"none",...r.style},onMouseDown:oe(r.onMouseDown,()=>{W.current=!0}),onFocus:oe(r.onFocus,K=>{const S=!W.current;if(K.target===K.currentTarget&&S&&!R){const G=new CustomEvent(Mu,qE);if(K.currentTarget.dispatchEvent(G),!G.defaultPrevented){const Y=N().filter(re=>re.focusable),te=Y.find(re=>re.active),ie=Y.find(re=>re.id===A),le=[te,ie,...Y].filter(Boolean).map(re=>re.ref.current);Hd(le,v)}}W.current=!1}),onBlur:oe(r.onBlur,()=>B(!1))})})},"RovingFocusGroupImpl")),oS="RovingFocusGroupItem",iS=m.forwardRef(Xr(function(r,o){const{__scopeRovingFocusGroup:a,focusable:s=!0,active:c=!1,tabStopId:u,children:f,...h}=r,g=Kt(),C=u||g,v=tS(oS,a),y=v.currentTabStopId===C,E=w0(a),{onFocusableItemAdd:k,onFocusableItemRemove:b,currentTabStopId:A}=v,_=XE();return Ve(()=>{if(!(!_||!s))return k(),()=>b()},[_,s,k,b]),m.useEffect(()=>{if(!(_||!s))return k(),()=>b()},[_,s,k,b]),w.jsx(rd.ItemSlot,{scope:a,id:C,focusable:s,active:c,children:w.jsx(Ee.span,{tabIndex:y?0:-1,"data-orientation":v.orientation,...h,ref:o,onMouseDown:oe(r.onMouseDown,R=>{s?v.onItemFocus(C):R.preventDefault()}),onFocus:oe(r.onFocus,()=>v.onItemFocus(C)),onKeyDown:oe(r.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){v.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const B=x0(R,v.orientation,v.dir);if(B!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let N=E().filter(W=>W.focusable).map(W=>W.ref.current);if(B==="last")N.reverse();else if(B==="prev"||B==="next"){B==="prev"&&N.reverse();const W=N.indexOf(R.currentTarget);N=v.loop?b0(N,W+1):N.slice(W+1)}setTimeout(()=>Hd(N))}}),children:typeof f=="function"?f({isCurrentTabStop:y,hasTabStop:A!=null}):f})})},"RovingFocusGroupItem")),aS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C0(t,r){return r!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}Xr(C0,"getDirectionAwareKey");function x0(t,r,o){const a=C0(t.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return aS[a]}Xr(x0,"getFocusIntent");function Hd(t,r=!1){const o=document.activeElement;for(const a of t)if(a===o||(a.focus({preventScroll:r}),document.activeElement!==o))return}Xr(Hd,"focusFirst");function b0(t,r){return t.map((o,a)=>t[(r+a)%t.length])}Xr(b0,"wrapArray");var E0=nS,S0=iS,sS=Object.defineProperty,Oe=(t,r)=>sS(t,"name",{value:r,configurable:!0}),od=["Enter"," "],lS=["ArrowDown","PageUp","Home"],k0=["ArrowUp","PageDown","End"],cS=[...lS,...k0],uS={ltr:[...od,"ArrowRight"],rtl:[...od,"ArrowLeft"]},dS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fl="Menu",[Yi,fS,pS]=Qs(fl),[Qr,A0]=gt(fl,[pS,br,dl]),Vd=br(),D0=dl(),[mS,qr]=Qr(fl),[hS,ia]=Qr(fl),gS=Oe(t=>{const{__scopeMenu:r,open:o=!1,children:a,dir:s,onOpenChange:c,modal:u=!0}=t,f=Vd(r),[h,g]=m.useState(null),C=m.useRef(!1),v=rt(c),y=Yo(s);return m.useEffect(()=>{const E=Oe(()=>{C.current=!0,document.addEventListener("pointerdown",k,{capture:!0,once:!0}),document.addEventListener("pointermove",k,{capture:!0,once:!0})},"handleKeyDown"),k=Oe(()=>C.current=!1,"handlePointer");return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("pointermove",k,{capture:!0})}},[]),m.useEffect(()=>{if(!o)return;const E=Oe(()=>v(!1),"handleBlur");return window.addEventListener("blur",E),()=>window.removeEventListener("blur",E)},[o,v]),w.jsx(sl,{...f,children:w.jsx(mS,{scope:r,open:o,onOpenChange:v,content:h,onContentChange:g,children:w.jsx(hS,{scope:r,onClose:m.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:C,dir:y,modal:u,children:a})})})},"Menu"),F0=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,...s}=r,c=Vd(a);return w.jsx(ll,{...c,...s,ref:o})},"MenuAnchor")),B0="MenuPortal",[vS,P0]=Qr(B0,{forceMount:void 0}),yS=Oe(t=>{const{__scopeMenu:r,forceMount:o,children:a,container:s}=t,c=qr(B0,r);return w.jsx(vS,{scope:r,forceMount:o,children:w.jsx(pt,{present:o||c.open,children:w.jsx(ra,{asChild:!0,container:s,children:a})})})},"MenuPortal"),ln="MenuContent",[wS,Ud]=Qr(ln),CS=m.forwardRef(Oe(function(r,o){const a=P0(ln,r.__scopeMenu),{forceMount:s=a.forceMount,...c}=r,u=qr(ln,r.__scopeMenu),f=ia(ln,r.__scopeMenu);return w.jsx(Yi.Provider,{scope:r.__scopeMenu,children:w.jsx(pt,{present:s||u.open,children:w.jsx(Yi.Slot,{scope:r.__scopeMenu,children:f.modal?w.jsx(xS,{...c,ref:o}):w.jsx(bS,{...c,ref:o})})})})},"MenuContent")),xS=m.forwardRef(Oe(function(r,o){const a=qr(ln,r.__scopeMenu),s=m.useRef(null),c=Ae(o,s);return m.useEffect(()=>{const u=s.current;if(u)return Js(u)},[]),w.jsx(Gd,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:oe(r.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})},"MenuRootContentModal")),bS=m.forwardRef(Oe(function(r,o){const a=qr(ln,r.__scopeMenu);return w.jsx(Gd,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})},"MenuRootContentNonModal")),ES=cn("MenuContent.ScrollLock"),Gd=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,loop:s=!1,trapFocus:c,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEntryFocus:g,onEscapeKeyDown:C,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:E,onDismiss:k,disableOutsideScroll:b,...A}=r,_=qr(ln,a),R=ia(ln,a),B=Vd(a),F=D0(a),N=fS(a),[W,H]=m.useState(null),j=m.useRef(null),K=Ae(o,j,_.onContentChange),S=m.useRef(0),G=m.useRef(""),Y=m.useRef(0),te=m.useRef(null),ie=m.useRef("right"),he=m.useRef(0),le=b?oa:m.Fragment,re=b?{as:ES,allowPinchZoom:!0}:void 0,V=Oe(M=>{const T=G.current+M,z=N().filter(ee=>!ee.disabled),pe=document.activeElement,Ce=z.find(ee=>ee.ref.current===pe)?.textValue,ge=z.map(ee=>ee.textValue),ye=N0(ge,T,Ce),Se=z.find(ee=>ee.textValue===ye)?.ref.current;Oe(function ee(ae){G.current=ae,window.clearTimeout(S.current),ae!==""&&(S.current=window.setTimeout(()=>ee(""),1e3))},"updateSearch")(T),Se&&setTimeout(()=>Se.focus())},"handleTypeaheadSearch");m.useEffect(()=>()=>window.clearTimeout(S.current),[]),Xo();const Z=m.useCallback(M=>ie.current===te.current?.side&&j0(M,te.current?.area),[]);return w.jsx(wS,{scope:a,searchRef:G,onItemEnter:m.useCallback(M=>{Z(M)&&M.preventDefault()},[Z]),onItemLeave:m.useCallback(M=>{Z(M)||(j.current?.focus(),H(null))},[Z]),onTriggerLeave:m.useCallback(M=>{Z(M)&&M.preventDefault()},[Z]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:m.useCallback(M=>{te.current=M},[]),children:w.jsx(le,{...re,children:w.jsx(qs,{asChild:!0,trapped:c,onMountAutoFocus:oe(u,M=>{M.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:w.jsx(na,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:C,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:E,onDismiss:k,children:w.jsx(E0,{asChild:!0,...F,dir:R.dir,orientation:"vertical",loop:s,currentTabStopId:W,onCurrentTabStopIdChange:H,onEntryFocus:oe(g,M=>{R.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(cl,{role:"menu","aria-orientation":"vertical","data-state":Yd(_.open),"data-radix-menu-content":"",dir:R.dir,...B,...A,ref:K,style:{outline:"none",...A.style},onKeyDown:oe(A.onKeyDown,M=>{const z=M.target.closest("[data-radix-menu-content]")===M.currentTarget,pe=M.ctrlKey||M.altKey||M.metaKey,Ce=M.key.length===1;z&&(M.key==="Tab"&&M.preventDefault(),!pe&&Ce&&V(M.key));const ge=j.current;if(M.target!==ge||!cS.includes(M.key))return;M.preventDefault();const Se=N().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);k0.includes(M.key)&&Se.reverse(),M0(Se)}),onBlur:oe(r.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(S.current),G.current="")}),onPointerMove:oe(r.onPointerMove,Ho(M=>{const T=M.target,z=he.current!==M.clientX;if(M.currentTarget.contains(T)&&z){const pe=M.clientX>he.current?"right":"left";ie.current=pe,he.current=M.clientX}}))})})})})})})},"MenuContentImpl")),SS=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,...s}=r;return w.jsx(Ee.div,{...s,ref:o})},"MenuLabel")),id="MenuItem",ig="menu.itemSelect",Kd=m.forwardRef(Oe(function(r,o){const{disabled:a=!1,onSelect:s,...c}=r,u=m.useRef(null),f=ia(id,r.__scopeMenu),h=Ud(id,r.__scopeMenu),g=Ae(o,u),C=m.useRef(!1),v=Oe(()=>{const y=u.current;if(!a&&y){const E=new CustomEvent(ig,{bubbles:!0,cancelable:!0});y.addEventListener(ig,k=>s?.(k),{once:!0}),kd(y,E),E.defaultPrevented?C.current=!1:f.onClose()}},"handleSelect");return w.jsx(R0,{...c,ref:g,disabled:a,onClick:oe(r.onClick,v),onPointerDown:y=>{r.onPointerDown?.(y),C.current=!0},onPointerUp:oe(r.onPointerUp,y=>{C.current||y.currentTarget?.click()}),onKeyDown:oe(r.onKeyDown,y=>{a||y.target!==y.currentTarget||h.searchRef.current!==""&&y.key===" "||od.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})},"MenuItem")),R0=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,disabled:s=!1,textValue:c,...u}=r,f=Ud(id,a),h=D0(a),g=m.useRef(null),C=Ae(o,g),[v,y]=m.useState(!1),[E,k]=m.useState("");return m.useEffect(()=>{const b=g.current;b&&k((b.textContent??"").trim())},[u.children]),w.jsx(Yi.ItemSlot,{scope:a,disabled:s,textValue:c??E,children:w.jsx(S0,{asChild:!0,...h,focusable:!s,children:w.jsx(Ee.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...u,ref:C,onPointerMove:oe(r.onPointerMove,Ho(b=>{s?f.onItemLeave(b):(f.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:oe(r.onPointerLeave,Ho(b=>f.onItemLeave(b))),onFocus:oe(r.onFocus,()=>y(!0)),onBlur:oe(r.onBlur,()=>y(!1))})})})},"MenuItemImpl")),kS=m.forwardRef(Oe(function(r,o){const{checked:a=!1,onCheckedChange:s,...c}=r;return w.jsx(T0,{scope:r.__scopeMenu,checked:a,children:w.jsx(Kd,{role:"menuitemcheckbox","aria-checked":Xi(a)?"mixed":a,...c,ref:o,"data-state":pl(a),onSelect:oe(c.onSelect,()=>s?.(Xi(a)?!0:!a),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),AS="MenuRadioGroup",[IB,DS]=Qr(AS,{value:void 0,onValueChange:Oe(()=>{},"onValueChange")}),FS="MenuRadioItem",BS=m.forwardRef(Oe(function(r,o){const{value:a,...s}=r,c=DS(FS,r.__scopeMenu),u=a===c.value;return w.jsx(T0,{scope:r.__scopeMenu,checked:u,children:w.jsx(Kd,{role:"menuitemradio","aria-checked":u,...s,ref:o,"data-state":pl(u),onSelect:oe(s.onSelect,()=>c.onValueChange?.(a),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),_0="MenuItemIndicator",[T0,PS]=Qr(_0,{checked:!1}),RS=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,forceMount:s,...c}=r,u=PS(_0,a);return w.jsx(pt,{present:s||Xi(u.checked)||u.checked===!0,children:w.jsx(Ee.span,{...c,ref:o,"data-state":pl(u.checked)})})},"MenuItemIndicator")),_S=m.forwardRef(Oe(function(r,o){const{__scopeMenu:a,...s}=r;return w.jsx(Ee.div,{role:"separator","aria-orientation":"horizontal",...s,ref:o})},"MenuSeparator")),TS="MenuSub",[MB,I0]=Qr(TS),Ts="MenuSubTrigger",IS=m.forwardRef(Oe(function(r,o){const a=qr(Ts,r.__scopeMenu),s=ia(Ts,r.__scopeMenu),c=I0(Ts,r.__scopeMenu),u=Ud(Ts,r.__scopeMenu),f=m.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:g}=u,C={__scopeMenu:r.__scopeMenu},v=m.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);m.useEffect(()=>v,[v]),m.useEffect(()=>{const E=h.current;return()=>{window.clearTimeout(E),g(null)}},[h,g]);const y=Ae(o,c.onTriggerChange);return w.jsx(F0,{asChild:!0,...C,children:w.jsx(R0,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?c.contentId:void 0,"data-state":Yd(a.open),...r,ref:y,onClick:E=>{r.onClick?.(E),!(r.disabled||E.defaultPrevented)&&(E.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:oe(r.onPointerMove,Ho(E=>{u.onItemEnter(E),!E.defaultPrevented&&!r.disabled&&!a.open&&!f.current&&(u.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{a.onOpenChange(!0),v()},100))})),onPointerLeave:oe(r.onPointerLeave,Ho(E=>{v();const k=a.content?.getBoundingClientRect();if(k){const b=a.content?.dataset.side,A=b==="right",_=A?-5:5,R=k[A?"left":"right"],B=k[A?"right":"left"];u.onPointerGraceIntentChange({area:[{x:E.clientX+_,y:E.clientY},{x:R,y:k.top},{x:B,y:k.top},{x:B,y:k.bottom},{x:R,y:k.bottom}],side:b}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(E),E.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:oe(r.onKeyDown,E=>{r.disabled||E.target!==E.currentTarget||u.searchRef.current!==""&&E.key===" "||uS[s.dir].includes(E.key)&&(a.onOpenChange(!0),a.content?.focus(),E.preventDefault())})})})},"MenuSubTrigger")),MS="MenuSubContent",OS=m.forwardRef(Oe(function(r,o){const a=P0(ln,r.__scopeMenu),{forceMount:s=a.forceMount,align:c="start",...u}=r,f=qr(ln,r.__scopeMenu),h=ia(ln,r.__scopeMenu),g=I0(MS,r.__scopeMenu),C=m.useRef(null),v=Ae(o,C);return w.jsx(Yi.Provider,{scope:r.__scopeMenu,children:w.jsx(pt,{present:s||f.open,children:w.jsx(Yi.Slot,{scope:r.__scopeMenu,children:w.jsx(Gd,{id:g.contentId,"aria-labelledby":g.triggerId,...u,ref:v,align:c,side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{h.isUsingKeyboardRef.current&&C.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:oe(r.onFocusOutside,y=>{y.target!==g.trigger&&f.onOpenChange(!1)}),onEscapeKeyDown:oe(r.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:oe(r.onKeyDown,y=>{const E=y.currentTarget.contains(y.target),k=dS[h.dir].includes(y.key);E&&k&&(f.onOpenChange(!1),g.trigger?.focus(),y.preventDefault())})})})})})},"MenuSubContent"));function Yd(t){return t?"open":"closed"}Oe(Yd,"getOpenState");function Xi(t){return t==="indeterminate"}Oe(Xi,"isIndeterminate");function pl(t){return Xi(t)?"indeterminate":t?"checked":"unchecked"}Oe(pl,"getCheckedState");function M0(t){const r=document.activeElement;for(const o of t)if(o===r||(o.focus(),document.activeElement!==r))return}Oe(M0,"focusFirst");function O0(t,r){return t.map((o,a)=>t[(r+a)%t.length])}Oe(O0,"wrapArray");function N0(t,r,o){const s=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,c=o?t.indexOf(o):-1;let u=O0(t,Math.max(c,0));s.length===1&&(u=u.filter(g=>g!==o));const h=u.find(g=>g.toLowerCase().startsWith(s.toLowerCase()));return h!==o?h:void 0}Oe(N0,"getNextMatch");function L0(t,r){const{x:o,y:a}=t;let s=!1;for(let c=0,u=r.length-1;c<r.length;u=c++){const f=r[c],h=r[u],g=f.x,C=f.y,v=h.x,y=h.y;C>a!=y>a&&o<(v-g)*(a-C)/(y-C)+g&&(s=!s)}return s}Oe(L0,"isPointInPolygon");function j0(t,r){if(!r)return!1;const o={x:t.clientX,y:t.clientY};return L0(o,r)}Oe(j0,"isPointerInGraceArea");function Ho(t){return r=>r.pointerType==="mouse"?t(r):void 0}Oe(Ho,"whenMouse");var NS=gS,LS=F0,jS=yS,WS=CS,$S=SS,zS=Kd,HS=kS,VS=BS,US=RS,GS=_S,KS=IS,YS=OS,XS=Object.defineProperty,Xt=(t,r)=>XS(t,"name",{value:r,configurable:!0}),Xd="DropdownMenu",[QS,OB]=gt(Xd,[A0]),Qt=A0(),[qS,W0]=QS(Xd),ZS=Xt(t=>{const{__scopeDropdownMenu:r,children:o,dir:a,open:s,defaultOpen:c,onOpenChange:u,modal:f=!0}=t,h=Qt(r),g=m.useRef(null),[C,v]=un({prop:s,defaultProp:c??!1,onChange:u,caller:Xd});return w.jsx(qS,{scope:r,triggerId:Kt(),triggerRef:g,contentId:Kt(),open:C,onOpenChange:v,onOpenToggle:m.useCallback(()=>v(y=>!y),[v]),modal:f,children:w.jsx(NS,{...h,open:C,onOpenChange:v,dir:a,modal:f,children:o})})},"DropdownMenu"),JS="DropdownMenuTrigger",ek=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,disabled:s=!1,...c}=r,u=W0(JS,a),f=Qt(a),h=Ae(o,u.triggerRef);return w.jsx(LS,{asChild:!0,...f,children:w.jsx(Ee.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...c,ref:h,onPointerDown:oe(r.onPointerDown,g=>{!s&&g.button===0&&g.ctrlKey===!1&&(u.onOpenToggle(),u.open||g.preventDefault())}),onKeyDown:oe(r.onKeyDown,g=>{s||(["Enter"," "].includes(g.key)&&u.onOpenToggle(),g.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(g.key)&&g.preventDefault())})})})},"DropdownMenuTrigger")),tk=Xt(t=>{const{__scopeDropdownMenu:r,...o}=t,a=Qt(r);return w.jsx(jS,{...a,...o})},"DropdownMenuPortal"),nk="DropdownMenuContent",rk=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=W0(nk,a),u=Qt(a),f=m.useRef(!1);return w.jsx(WS,{id:c.contentId,"aria-labelledby":c.triggerId,...u,...s,ref:o,onCloseAutoFocus:oe(r.onCloseAutoFocus,h=>{f.current||c.triggerRef.current?.focus(),f.current=!1,h.preventDefault()}),onInteractOutside:oe(r.onInteractOutside,h=>{const g=h.detail.originalEvent,C=g.button===0&&g.ctrlKey===!0,v=g.button===2||C;(!c.modal||v)&&(f.current=!0)}),style:{...r.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),ok=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx($S,{...c,...s,ref:o})},"DropdownMenuLabel")),ik=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(zS,{...c,...s,ref:o})},"DropdownMenuItem")),ak=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(HS,{...c,...s,ref:o})},"DropdownMenuCheckboxItem")),sk=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(VS,{...c,...s,ref:o})},"DropdownMenuRadioItem")),lk=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(US,{...c,...s,ref:o})},"DropdownMenuItemIndicator")),ck=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(GS,{...c,...s,ref:o})},"DropdownMenuSeparator")),uk=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(KS,{...c,...s,ref:o})},"DropdownMenuSubTrigger")),dk=m.forwardRef(Xt(function(r,o){const{__scopeDropdownMenu:a,...s}=r,c=Qt(a);return w.jsx(YS,{...c,...s,ref:o,style:{...r.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),fk=ZS,pk=ek,mk=tk,hk=rk,gk=ok,vk=ik,yk=ak,wk=sk,$0=lk,Ck=ck,xk=uk,bk=dk,Ek=Object.defineProperty,Sk=(t,r)=>Ek(t,"name",{value:r,configurable:!0}),kk=m.forwardRef(Sk(function(r,o){return w.jsx(Ee.label,{...r,ref:o,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(r.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}})},"Label")),Ak=kk,Dk=Object.defineProperty,Fk=(t,r)=>Dk(t,"name",{value:r,configurable:!0});function z0(t){const r=m.useRef({value:t,previous:t});return m.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}Fk(z0,"usePrevious");var Bk=Object.defineProperty,Pk=(t,r)=>Bk(t,"name",{value:r,configurable:!0});function Ks(t,[r,o]){return Math.min(o,Math.max(r,t))}Pk(Ks,"clamp");var Rk=Object.defineProperty,Er=(t,r)=>Rk(t,"name",{value:r,configurable:!0}),Qd="Popover",[H0,NB]=gt(Qd,[br]),qd=br(),[_k,Zo]=H0(Qd),Tk=Er(t=>{const{__scopePopover:r,children:o,open:a,defaultOpen:s,onOpenChange:c,modal:u=!1}=t,f=qd(r),h=m.useRef(null),[g,C]=m.useState(!1),[v,y]=un({prop:a,defaultProp:s??!1,onChange:c,caller:Qd});return w.jsx(sl,{...f,children:w.jsx(_k,{scope:r,contentId:Kt(),triggerRef:h,open:v,onOpenChange:y,onOpenToggle:m.useCallback(()=>y(E=>!E),[y]),hasCustomAnchor:g,onCustomAnchorAdd:m.useCallback(()=>C(!0),[]),onCustomAnchorRemove:m.useCallback(()=>C(!1),[]),modal:u,children:o})})},"Popover"),Ik="PopoverAnchor",Mk=m.forwardRef(Er(function(r,o){const{__scopePopover:a,...s}=r,c=Zo(Ik,a),u=qd(a),{onCustomAnchorAdd:f,onCustomAnchorRemove:h}=c;return m.useEffect(()=>(f(),()=>h()),[f,h]),w.jsx(ll,{...u,...s,ref:o})},"PopoverAnchor")),V0="PopoverPortal",[Ok,Nk]=H0(V0,{forceMount:void 0}),Lk=Er(t=>{const{__scopePopover:r,forceMount:o,children:a,container:s}=t,c=Zo(V0,r);return w.jsx(Ok,{scope:r,forceMount:o,children:w.jsx(pt,{present:o||c.open,children:w.jsx(ra,{asChild:!0,container:s,children:a})})})},"PopoverPortal"),Qi="PopoverContent",jk=m.forwardRef(Er(function(r,o){const a=Nk(Qi,r.__scopePopover),{forceMount:s=a.forceMount,...c}=r,u=Zo(Qi,r.__scopePopover);return w.jsx(pt,{present:s||u.open,children:u.modal?w.jsx($k,{...c,ref:o}):w.jsx(zk,{...c,ref:o})})},"PopoverContent")),Wk=cn("PopoverContent.RemoveScroll"),$k=m.forwardRef(Er(function(r,o){const a=Zo(Qi,r.__scopePopover),s=m.useRef(null),c=Ae(o,s),u=m.useRef(!1);return m.useEffect(()=>{const f=s.current;if(f)return Js(f)},[]),w.jsx(oa,{as:Wk,allowPinchZoom:!0,children:w.jsx(U0,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(r.onCloseAutoFocus,f=>{f.preventDefault(),u.current||a.triggerRef.current?.focus()}),onPointerDownOutside:oe(r.onPointerDownOutside,f=>{const h=f.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,C=h.button===2||g;u.current=C},{checkForDefaultPrevented:!1}),onFocusOutside:oe(r.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),zk=m.forwardRef(Er(function(r,o){const a=Zo(Qi,r.__scopePopover),s=m.useRef(!1),c=m.useRef(!1);return w.jsx(U0,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{r.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||a.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{r.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=u.target;a.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})},"PopoverContentNonModal")),U0=m.forwardRef(Er(function(r,o){const{__scopePopover:a,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:C,onInteractOutside:v,...y}=r,E=Zo(Qi,a),k=qd(a);return Xo(),w.jsx(qs,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:w.jsx(na,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:C,onDismiss:()=>E.onOpenChange(!1),deferPointerDownOutside:!0,children:w.jsx(cl,{"data-state":G0(E.open),role:"dialog",id:E.contentId,...k,...y,ref:o,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function G0(t){return t?"open":"closed"}Er(G0,"getState");var Hk=Tk,Vk=Mk,Uk=Lk,Gk=jk,Kk=Object.defineProperty,Vn=(t,r)=>Kk(t,"name",{value:r,configurable:!0}),K0="Progress",Zd=100,[Yk,LB]=gt(K0),[Xk,Qk]=Yk(K0),qk=m.forwardRef(Vn(function(r,o){const{__scopeProgress:a,value:s=null,max:c,getValueLabel:u=Y0,...f}=r;(c||c===0)&&!ad(c)&&console.error(X0(`${c}`,"Progress"));const h=ad(c)?c:Zd;s!==null&&!sd(s,h)&&console.error(Q0(`${s}`,"Progress"));const g=sd(s,h)?s:null,C=qi(g)?u(g,h):void 0;return w.jsx(Xk,{scope:a,value:g,max:h,children:w.jsx(Ee.div,{"aria-valuemax":h,"aria-valuemin":0,"aria-valuenow":qi(g)?g:void 0,"aria-valuetext":C,role:"progressbar","data-state":Jd(g,h),"data-value":g??void 0,"data-max":h,...f,ref:o})})},"Progress")),Zk="ProgressIndicator",Jk=m.forwardRef(Vn(function(r,o){const{__scopeProgress:a,...s}=r,c=Qk(Zk,a);return w.jsx(Ee.div,{"data-state":Jd(c.value,c.max),"data-value":c.value??void 0,"data-max":c.max,...s,ref:o})},"ProgressIndicator"));function Y0(t,r){return`${Math.round(t/r*100)}%`}Vn(Y0,"defaultGetValueLabel");function Jd(t,r){return t==null?"indeterminate":t===r?"complete":"loading"}Vn(Jd,"getProgressState");function qi(t){return typeof t=="number"}Vn(qi,"isNumber");function ad(t){return qi(t)&&!isNaN(t)&&t>0}Vn(ad,"isValidMaxNumber");function sd(t,r){return qi(t)&&!isNaN(t)&&t<=r&&t>=0}Vn(sd,"isValidValueNumber");function X0(t,r){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Zd}\`.`}Vn(X0,"getInvalidMaxError");function Q0(t,r){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${r}\`. The \`value\` prop must be:
181
- - a positive number
182
- - less than the value passed to \`max\` (or ${Zd} if no \`max\` prop is set)
183
- - \`null\` or \`undefined\` if the progress is indeterminate.
184
-
185
- Defaulting to \`null\`.`}Vn(Q0,"getInvalidValueError");var eA=qk,tA=Jk,nA=Object.defineProperty,Re=(t,r)=>nA(t,"name",{value:r,configurable:!0});function q0(t,r){return m.useReducer((o,a)=>r[o][a]??o,t)}Re(q0,"useStateMachine");var Z0="ScrollArea",[J0,jB]=gt(Z0),[rA,qt]=J0(Z0),oA=m.forwardRef(Re(function(r,o){const{__scopeScrollArea:a,type:s="hover",dir:c,scrollHideDelay:u=600,...f}=r,[h,g]=m.useState(null),[C,v]=m.useState(null),[y,E]=m.useState(null),[k,b]=m.useState(null),[A,_]=m.useState(null),[R,B]=m.useState(0),[F,N]=m.useState(0),[W,H]=m.useState(!1),[j,K]=m.useState(!1),S=Ae(o,g),G=Yo(c);return w.jsx(rA,{scope:a,type:s,dir:G,scrollHideDelay:u,scrollArea:h,viewport:C,onViewportChange:v,content:y,onContentChange:E,scrollbarX:k,onScrollbarXChange:b,scrollbarXEnabled:W,onScrollbarXEnabledChange:H,scrollbarY:A,onScrollbarYChange:_,scrollbarYEnabled:j,onScrollbarYEnabledChange:K,onCornerWidthChange:B,onCornerHeightChange:N,children:w.jsx(Ee.div,{dir:G,...f,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":F+"px",...r.style}})})},"ScrollArea")),iA="ScrollAreaViewport",aA=m.forwardRef(Re(function(r,o){const{__scopeScrollArea:a,children:s,nonce:c,...u}=r,f=qt(iA,a),h=m.useRef(null),g=Ae(o,h,f.onViewportChange);return w.jsxs(w.Fragment,{children:[w.jsx(sA,{nonce:c}),w.jsx(Ee.div,{"data-radix-scroll-area-viewport":"",...u,ref:g,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...r.style},children:w.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})},"ScrollAreaViewport")),sA=m.memo(Re(function({nonce:r}){return w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r})},"ScrollAreaViewportStyle"),(t,r)=>t.nonce===r.nonce),Un="ScrollAreaScrollbar",lA=m.forwardRef(Re(function(r,o){const{forceMount:a,...s}=r,c=qt(Un,r.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=c,h=r.orientation==="horizontal";return m.useEffect(()=>(h?u(!0):f(!0),()=>{h?u(!1):f(!1)}),[h,u,f]),c.type==="hover"?w.jsx(cA,{...s,ref:o,forceMount:a}):c.type==="scroll"?w.jsx(uA,{...s,ref:o,forceMount:a}):c.type==="auto"?w.jsx(ey,{...s,ref:o,forceMount:a}):c.type==="always"?w.jsx(ef,{...s,ref:o,"data-state":"visible"}):null},"ScrollAreaScrollbar")),cA=m.forwardRef(Re(function(r,o){const{forceMount:a,...s}=r,c=qt(Un,r.__scopeScrollArea),[u,f]=m.useState(!1);return m.useEffect(()=>{const h=c.scrollArea;let g=0;if(h){const C=Re(()=>{window.clearTimeout(g),f(!0)},"handlePointerEnter"),v=Re(()=>{g=window.setTimeout(()=>f(!1),c.scrollHideDelay)},"handlePointerLeave");return h.addEventListener("pointerenter",C),h.addEventListener("pointerleave",v),()=>{window.clearTimeout(g),h.removeEventListener("pointerenter",C),h.removeEventListener("pointerleave",v)}}},[c.scrollArea,c.scrollHideDelay]),w.jsx(pt,{present:a||u,children:w.jsx(ey,{"data-state":u?"visible":"hidden",...s,ref:o})})},"ScrollAreaScrollbarHover")),uA=m.forwardRef(Re(function(r,o){const{forceMount:a,...s}=r,c=qt(Un,r.__scopeScrollArea),u=r.orientation==="horizontal",f=sa(()=>g("SCROLL_END"),100),[h,g]=q0("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(h==="idle"){const C=window.setTimeout(()=>g("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(C)}},[h,c.scrollHideDelay,g]),m.useEffect(()=>{const C=c.viewport,v=u?"scrollLeft":"scrollTop";if(C){let y=C[v];const E=Re(()=>{const k=C[v];y!==k&&(g("SCROLL"),f()),y=k},"handleScroll");return C.addEventListener("scroll",E),()=>C.removeEventListener("scroll",E)}},[c.viewport,u,g,f]),w.jsx(pt,{present:a||h!=="hidden",children:w.jsx(ef,{"data-state":h==="hidden"?"hidden":"visible",...s,ref:o,onPointerEnter:oe(r.onPointerEnter,()=>g("POINTER_ENTER")),onPointerLeave:oe(r.onPointerLeave,()=>g("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),ey=m.forwardRef(Re(function(r,o){const a=qt(Un,r.__scopeScrollArea),{forceMount:s,...c}=r,[u,f]=m.useState(!1),h=r.orientation==="horizontal",g=sa(()=>{if(a.viewport){const C=a.viewport.offsetWidth<a.viewport.scrollWidth,v=a.viewport.offsetHeight<a.viewport.scrollHeight;f(h?C:v)}},10);return Vr(a.viewport,g),Vr(a.content,g),w.jsx(pt,{present:s||u,children:w.jsx(ef,{"data-state":u?"visible":"hidden",...c,ref:o})})},"ScrollAreaScrollbarAuto")),ef=m.forwardRef(Re(function(r,o){const{orientation:a="vertical",...s}=r,c=qt(Un,r.__scopeScrollArea),u=m.useRef(null),f=m.useRef(0),[h,g]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),C=tf(h.viewport,h.content),v={...s,sizes:h,onSizesChange:g,hasThumb:C>0&&C<1,onThumbChange:Re(E=>u.current=E,"onThumbChange"),onThumbPointerUp:Re(()=>f.current=0,"onThumbPointerUp"),onThumbPointerDown:Re(E=>f.current=E,"onThumbPointerDown")};function y(E,k){return oy(E,f.current,h,k)}return Re(y,"getScrollPosition"),a==="horizontal"?w.jsx(dA,{...v,ref:o,onThumbPositionChange:()=>{if(c.viewport&&u.current){const E=c.viewport.scrollLeft,k=cd(E,h,c.dir);u.current.style.transform=`translate3d(${k}px, 0, 0)`}},onWheelScroll:E=>{c.viewport&&(c.viewport.scrollLeft=E)},onDragScroll:E=>{c.viewport&&(c.viewport.scrollLeft=y(E,c.dir))}}):a==="vertical"?w.jsx(fA,{...v,ref:o,onThumbPositionChange:()=>{if(c.viewport&&u.current){const E=c.viewport.scrollTop,k=cd(E,h);u.current.style.transform=`translate3d(0, ${k}px, 0)`}},onWheelScroll:E=>{c.viewport&&(c.viewport.scrollTop=E)},onDragScroll:E=>{c.viewport&&(c.viewport.scrollTop=y(E))}}):null},"ScrollAreaScrollbarVisible")),dA=m.forwardRef(Re(function(r,o){const{sizes:a,onSizesChange:s,...c}=r,u=qt(Un,r.__scopeScrollArea),[f,h]=m.useState(),g=m.useRef(null),C=Ae(o,g,u.onScrollbarXChange);return m.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),w.jsx(ny,{"data-orientation":"horizontal",...c,ref:C,sizes:a,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":aa(a)+"px",...r.style},onThumbPointerDown:v=>r.onThumbPointerDown(v.x),onDragScroll:v=>r.onDragScroll(v.x),onWheelScroll:(v,y)=>{if(u.viewport){const E=u.viewport.scrollLeft+v.deltaX;r.onWheelScroll(E),rf(E,y)&&v.preventDefault()}},onResize:()=>{g.current&&u.viewport&&f&&s({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:Zi(f.paddingLeft),paddingEnd:Zi(f.paddingRight)}})}})},"ScrollAreaScrollbarX")),fA=m.forwardRef(Re(function(r,o){const{sizes:a,onSizesChange:s,...c}=r,u=qt(Un,r.__scopeScrollArea),[f,h]=m.useState(),g=m.useRef(null),C=Ae(o,g,u.onScrollbarYChange);return m.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),w.jsx(ny,{"data-orientation":"vertical",...c,ref:C,sizes:a,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":aa(a)+"px",...r.style},onThumbPointerDown:v=>r.onThumbPointerDown(v.y),onDragScroll:v=>r.onDragScroll(v.y),onWheelScroll:(v,y)=>{if(u.viewport){const E=u.viewport.scrollTop+v.deltaY;r.onWheelScroll(E),rf(E,y)&&v.preventDefault()}},onResize:()=>{g.current&&u.viewport&&f&&s({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:Zi(f.paddingTop),paddingEnd:Zi(f.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[pA,ty]=J0(Un),ny=m.forwardRef(Re(function(r,o){const{__scopeScrollArea:a,sizes:s,hasThumb:c,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:h,onThumbPositionChange:g,onDragScroll:C,onWheelScroll:v,onResize:y,...E}=r,k=qt(Un,a),[b,A]=m.useState(null),_=Ae(o,A),R=m.useRef(null),B=m.useRef(""),F=k.viewport,N=s.content-s.viewport,W=rt(v),H=rt(g),j=sa(y,10);function K(S){if(R.current){const G=S.clientX-R.current.left,Y=S.clientY-R.current.top;C({x:G,y:Y})}}return Re(K,"handleDragScroll"),m.useEffect(()=>{const S=Re(G=>{const Y=G.target;b?.contains(Y)&&W(G,N)},"handleWheel");return document.addEventListener("wheel",S,{passive:!1}),()=>document.removeEventListener("wheel",S,{passive:!1})},[F,b,N,W]),m.useEffect(H,[s,H]),Vr(b,j),Vr(k.content,j),w.jsx(pA,{scope:a,scrollbar:b,hasThumb:c,onThumbChange:rt(u),onThumbPointerUp:rt(f),onThumbPositionChange:H,onThumbPointerDown:rt(h),children:w.jsx(Ee.div,{...E,ref:_,style:{position:"absolute",...E.style},onPointerDown:oe(r.onPointerDown,S=>{S.button===0&&(S.target.setPointerCapture(S.pointerId),R.current=b.getBoundingClientRect(),B.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k.viewport&&(k.viewport.style.scrollBehavior="auto"),K(S))}),onPointerMove:oe(r.onPointerMove,K),onPointerUp:oe(r.onPointerUp,S=>{const G=S.target;G.hasPointerCapture(S.pointerId)&&G.releasePointerCapture(S.pointerId),document.body.style.webkitUserSelect=B.current,k.viewport&&(k.viewport.style.scrollBehavior=""),R.current=null})})})},"ScrollAreaScrollbarImpl")),ld="ScrollAreaThumb",mA=m.forwardRef(Re(function(r,o){const{forceMount:a,...s}=r,c=ty(ld,r.__scopeScrollArea);return w.jsx(pt,{present:a||c.hasThumb,children:w.jsx(hA,{ref:o,...s})})},"ScrollAreaThumb")),hA=m.forwardRef(Re(function(r,o){const{__scopeScrollArea:a,style:s,...c}=r,u=qt(ld,a),f=ty(ld,a),{onThumbPositionChange:h}=f,g=Ae(o,f.onThumbChange),C=m.useRef(void 0),v=sa(()=>{C.current&&(C.current(),C.current=void 0)},100);return m.useEffect(()=>{const y=u.viewport;if(y){const E=Re(()=>{if(v(),!C.current){const k=yA(y,h);C.current=k,h()}},"handleScroll");return h(),y.addEventListener("scroll",E),()=>y.removeEventListener("scroll",E)}},[u.viewport,v,h]),w.jsx(Ee.div,{"data-state":f.hasThumb?"visible":"hidden",...c,ref:g,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:oe(r.onPointerDownCapture,y=>{const k=y.target.getBoundingClientRect(),b=y.clientX-k.left,A=y.clientY-k.top;f.onThumbPointerDown({x:b,y:A})}),onPointerUp:oe(r.onPointerUp,f.onThumbPointerUp)})},"ScrollAreaThumbImpl")),ry="ScrollAreaCorner",gA=m.forwardRef(Re(function(r,o){const a=qt(ry,r.__scopeScrollArea),s=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&s?w.jsx(vA,{...r,ref:o}):null},"ScrollAreaCorner")),vA=m.forwardRef(Re(function(r,o){const{__scopeScrollArea:a,...s}=r,c=qt(ry,a),[u,f]=m.useState(0),[h,g]=m.useState(0),C=!!(u&&h),{onCornerWidthChange:v,onCornerHeightChange:y}=c;return Vr(c.scrollbarX,()=>{const E=c.scrollbarX?.offsetHeight||0;c.onCornerHeightChange(E),g(E)}),Vr(c.scrollbarY,()=>{const E=c.scrollbarY?.offsetWidth||0;c.onCornerWidthChange(E),f(E)}),m.useEffect(()=>()=>{v(0),y(0)},[v,y]),C?w.jsx(Ee.div,{...s,ref:o,style:{width:u,height:h,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null},"ScrollAreaCornerImpl"));function Zi(t){return t?parseInt(t,10):0}Re(Zi,"toInt");function tf(t,r){const o=t/r;return isNaN(o)?0:o}Re(tf,"getThumbRatio");function aa(t){const r=tf(t.viewport,t.content),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=(t.scrollbar.size-o)*r;return Math.max(a,18)}Re(aa,"getThumbSize");function oy(t,r,o,a="ltr"){const s=aa(o),c=s/2,u=r||c,f=s-u,h=o.scrollbar.paddingStart+u,g=o.scrollbar.size-o.scrollbar.paddingEnd-f,C=o.content-o.viewport,v=a==="ltr"?[0,C]:[C*-1,0];return nf([h,g],v)(t)}Re(oy,"getScrollPositionFromPointer");function cd(t,r,o="ltr"){const a=aa(r),s=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,c=r.scrollbar.size-s,u=r.content-r.viewport,f=c-a,h=o==="ltr"?[0,u]:[u*-1,0],g=Ks(t,h);return nf([0,u],[0,f])(g)}Re(cd,"getThumbOffsetFromScroll");function nf(t,r){return o=>{if(t[0]===t[1]||r[0]===r[1])return r[0];const a=(r[1]-r[0])/(t[1]-t[0]);return r[0]+a*(o-t[0])}}Re(nf,"linearScale");function rf(t,r){return t>0&&t<r}Re(rf,"isScrollingWithinScrollbarBounds");var yA=Re((t,r=()=>{})=>{let o={left:t.scrollLeft,top:t.scrollTop},a=0;return Re(function s(){const c={left:t.scrollLeft,top:t.scrollTop},u=o.left!==c.left,f=o.top!==c.top;(u||f)&&r(),o=c,a=window.requestAnimationFrame(s)},"loop")(),()=>window.cancelAnimationFrame(a)},"addUnlinkedScrollListener");function sa(t,r){const o=rt(t),a=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(a.current),[]),m.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(o,r)},[o,r])}Re(sa,"useDebounceCallback");function Vr(t,r){const o=rt(r);Ve(()=>{let a=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(o)});return s.observe(t),()=>{window.cancelAnimationFrame(a),s.unobserve(t)}}},[t,o])}Re(Vr,"useResizeObserver");var wA=oA,CA=aA,xA=gA,bA=Object.defineProperty,Te=(t,r)=>bA(t,"name",{value:r,configurable:!0}),EA=[" ","Enter","ArrowUp","ArrowDown"],SA=[" ","Enter"],Vo="Select",[ml,hl,kA]=Qs(Vo),[Zr,WB]=gt(Vo,[kA,br]),of=br(),[AA,Sr]=Zr(Vo),[DA,FA]=Zr(Vo);function iy(t){const{__scopeSelect:r,children:o,open:a,defaultOpen:s,onOpenChange:c,value:u,defaultValue:f,onValueChange:h,dir:g,name:C,autoComplete:v,disabled:y,required:E,form:k,internal_do_not_use_render:b}=t,A=of(r),[_,R]=m.useState(null),[B,F]=m.useState(null),[N,W]=m.useState(!1),H=Yo(g),[j,K]=un({prop:a,defaultProp:s??!1,onChange:c,caller:Vo}),[S,G]=un({prop:u,defaultProp:f,onChange:h,caller:Vo}),Y=m.useRef(null),te=m.useRef(S);m.useEffect(()=>{const z=k?_?.ownerDocument.getElementById(k):_?.form;if(z instanceof HTMLFormElement){const pe=Te(()=>G(te.current),"reset");return z.addEventListener("reset",pe),()=>z.removeEventListener("reset",pe)}},[k,_,G]);const ie=_?!!k||!!_.closest("form"):!0,[he,le]=m.useState(new Set),re=Kt(),V=Array.from(he).map(z=>z.props.value).join(";"),Z=m.useCallback(z=>{le(pe=>new Set(pe).add(z))},[]),M=m.useCallback(z=>{le(pe=>{const Ce=new Set(pe);return Ce.delete(z),Ce})},[]),T={required:E,trigger:_,onTriggerChange:R,valueNode:B,onValueNodeChange:F,valueNodeHasChildren:N,onValueNodeHasChildrenChange:W,contentId:re,value:S,onValueChange:G,open:j,onOpenChange:K,dir:H,triggerPointerDownPosRef:Y,disabled:y,name:C,autoComplete:v,form:k,nativeOptions:he,nativeSelectKey:V,isFormControl:ie};return w.jsx(sl,{...A,children:w.jsx(AA,{scope:r,...T,children:w.jsx(ml.Provider,{scope:r,children:w.jsx(DA,{scope:r,onNativeOptionAdd:Z,onNativeOptionRemove:M,children:cy(b)?b(T):o})})})})}Te(iy,"SelectProvider");var BA=Te(t=>{const{__scopeSelect:r,children:o,...a}=t;return w.jsx(iy,{__scopeSelect:r,...a,internal_do_not_use_render:({isFormControl:s})=>w.jsxs(w.Fragment,{children:[o,s?w.jsx(i3,{__scopeSelect:r}):null]})})},"Select"),PA="SelectTrigger",RA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,disabled:s=!1,...c}=r,u=of(a),f=Sr(PA,a),h=f.disabled||s,g=Ae(o,f.onTriggerChange),C=hl(a),v=m.useRef("touch"),[y,E,k]=sf(A=>{const _=C().filter(F=>!F.disabled),R=_.find(F=>F.value===f.value),B=lf(_,A,R);B!==void 0&&f.onValueChange(B.value)}),b=Te(A=>{h||(f.onOpenChange(!0),k()),A&&(f.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return w.jsx(ll,{asChild:!0,...u,children:w.jsx(Ee.button,{type:"button",role:"combobox","aria-controls":f.open?f.contentId:void 0,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":la(f.value)?"":void 0,...c,ref:g,onClick:oe(c.onClick,A=>{A.currentTarget.focus(),v.current!=="mouse"&&b(A)}),onPointerDown:oe(c.onPointerDown,A=>{v.current=A.pointerType;const _=A.target;_.hasPointerCapture(A.pointerId)&&_.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(b(A),A.preventDefault())}),onKeyDown:oe(c.onKeyDown,A=>{const _=y.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&E(A.key),!(_&&A.key===" ")&&EA.includes(A.key)&&(b(),A.preventDefault())})})})},"SelectTrigger")),_A="SelectValue",TA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,className:s,style:c,children:u,placeholder:f="",...h}=r,g=Sr(_A,a),{onValueNodeHasChildrenChange:C}=g,v=u!==void 0,y=Ae(o,g.onValueNodeChange);Ve(()=>{C(v)},[C,v]);const E=la(g.value);return w.jsx(Ee.span,{...h,asChild:E?!1:h.asChild,ref:y,style:{pointerEvents:"none"},children:w.jsx(m.Fragment,{children:E?f:u},E?"placeholder":"value")})},"SelectValue")),IA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,children:s,...c}=r;return w.jsx(Ee.span,{"aria-hidden":!0,...c,ref:o,children:s||"▼"})},"SelectIcon")),MA="SelectPortal",[OA,NA]=Zr(MA,{forceMount:void 0}),LA=Te(t=>{const{__scopeSelect:r,forceMount:o,...a}=t;return w.jsx(OA,{scope:t.__scopeSelect,forceMount:o,children:w.jsx(ra,{asChild:!0,...a})})},"SelectPortal"),Ur="SelectContent",jA=m.forwardRef(Te(function(r,o){const a=NA(Ur,r.__scopeSelect),{forceMount:s=a.forceMount,...c}=r,u=Sr(Ur,r.__scopeSelect),[f,h]=m.useState();return Ve(()=>{h(new DocumentFragment)},[]),w.jsx(pt,{present:s||u.open,children:({present:g})=>g?w.jsx(zA,{...c,ref:o}):w.jsx(WA,{...c,fragment:f})})},"SelectContent")),WA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,children:s,fragment:c}=r;return c?Go.createPortal(w.jsx(ay,{scope:a,children:w.jsx(ml.Slot,{scope:a,children:w.jsx("div",{ref:o,children:s})})}),c):null},"SelectContentFragment")),sn=10,[ay,Jr]=Zr(Ur),$A=cn("SelectContent.RemoveScroll"),zA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a}=r,{position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,side:h,sideOffset:g,align:C,alignOffset:v,arrowPadding:y,collisionBoundary:E,collisionPadding:k,sticky:b,hideWhenDetached:A,avoidCollisions:_,...R}=r,B=Sr(Ur,a),[F,N]=m.useState(null),[W,H]=m.useState(null),j=Ae(o,N),[K,S]=m.useState(null),[G,Y]=m.useState(null),te=hl(a),[ie,he]=m.useState(!1),le=m.useRef(!1);m.useEffect(()=>{if(F)return Js(F)},[F]),Xo();const re=m.useCallback(ee=>{const[ae,..._e]=te().map(De=>De.ref.current),[Be]=_e.slice(-1),q=document.activeElement;for(const De of ee)if(De===q||(De?.scrollIntoView({block:"nearest"}),De===ae&&W&&(W.scrollTop=0),De===Be&&W&&(W.scrollTop=W.scrollHeight),De?.focus(),document.activeElement!==q))return},[te,W]),V=m.useCallback(()=>re([K,F]),[re,K,F]);m.useEffect(()=>{ie&&V()},[ie,V]);const{onOpenChange:Z,triggerPointerDownPosRef:M}=B;m.useEffect(()=>{if(F){let ee={x:0,y:0};const ae=Te(Be=>{ee={x:Math.abs(Math.round(Be.pageX)-(M.current?.x??0)),y:Math.abs(Math.round(Be.pageY)-(M.current?.y??0))}},"handlePointerMove"),_e=Te(Be=>{ee.x<=10&&ee.y<=10?Be.preventDefault():Be.composedPath().includes(F)||Z(!1),document.removeEventListener("pointermove",ae),M.current=null},"handlePointerUp");return M.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",_e,{capture:!0})}}},[F,Z,M]),m.useEffect(()=>{const ee=Te(()=>Z(!1),"close");return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[Z]);const[T,z]=sf(ee=>{const ae=te().filter(q=>!q.disabled),_e=ae.find(q=>q.ref.current===document.activeElement),Be=lf(ae,ee,_e);Be&&setTimeout(()=>Be.ref.current?.focus())}),pe=m.useCallback((ee,ae,_e)=>{const Be=!le.current&&!_e;(B.value!==void 0&&B.value===ae||Be)&&(S(ee),Be&&(le.current=!0))},[B.value]),Ce=m.useCallback(()=>F?.focus(),[F]),ge=m.useCallback((ee,ae,_e)=>{const Be=!le.current&&!_e;(B.value!==void 0&&B.value===ae||Be)&&Y(ee)},[B.value]),ye=s==="popper"?ag:HA,Se=ye===ag?{side:h,sideOffset:g,align:C,alignOffset:v,arrowPadding:y,collisionBoundary:E,collisionPadding:k,sticky:b,hideWhenDetached:A,avoidCollisions:_}:{};return w.jsx(ay,{scope:a,content:F,viewport:W,onViewportChange:H,itemRefCallback:pe,selectedItem:K,onItemLeave:Ce,itemTextRefCallback:ge,focusSelectedItem:V,selectedItemText:G,position:s,isPositioned:ie,searchRef:T,children:w.jsx(oa,{as:$A,allowPinchZoom:!0,children:w.jsx(qs,{asChild:!0,trapped:B.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:oe(c,ee=>{B.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:w.jsx(na,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>B.onOpenChange(!1),children:w.jsx(ye,{role:"listbox",id:B.contentId,"data-state":B.open?"open":"closed",dir:B.dir,onContextMenu:ee=>ee.preventDefault(),...R,...Se,onPlaced:()=>he(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:oe(R.onKeyDown,ee=>{const ae=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ae&&ee.key.length===1&&z(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Be=te().filter(q=>!q.disabled).map(q=>q.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Be=Be.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const q=ee.target,De=Be.indexOf(q);Be=Be.slice(De+1)}setTimeout(()=>re(Be)),ee.preventDefault()}})})})})})})},"SelectContentImpl")),HA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,onPlaced:s,...c}=r,u=Sr(Ur,a),f=Jr(Ur,a),[h,g]=m.useState(null),[C,v]=m.useState(null),y=Ae(o,v),E=hl(a),k=m.useRef(!1),b=m.useRef(!0),{viewport:A,selectedItem:_,selectedItemText:R,focusSelectedItem:B}=f,F=m.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&C&&A&&_&&R){const j=u.trigger.getBoundingClientRect(),K=C.getBoundingClientRect(),S=u.valueNode.getBoundingClientRect(),G=R.getBoundingClientRect();if(u.dir!=="rtl"){const q=G.left-K.left,De=S.left-q,Xe=j.left-De,bt=j.width+Xe,eo=Math.max(bt,K.width),kr=window.innerWidth-sn,to=Ks(De,[sn,Math.max(sn,kr-eo)]);h.style.minWidth=bt+"px",h.style.left=to+"px"}else{const q=K.right-G.right,De=window.innerWidth-S.right-q,Xe=window.innerWidth-j.right-De,bt=j.width+Xe,eo=Math.max(bt,K.width),kr=window.innerWidth-sn,to=Ks(De,[sn,Math.max(sn,kr-eo)]);h.style.minWidth=bt+"px",h.style.right=to+"px"}const Y=E(),te=window.innerHeight-sn*2,ie=A.scrollHeight,he=window.getComputedStyle(C),le=parseInt(he.borderTopWidth,10),re=parseInt(he.paddingTop,10),V=parseInt(he.borderBottomWidth,10),Z=parseInt(he.paddingBottom,10),M=le+re+ie+Z+V,T=Math.min(_.offsetHeight*5,M),z=window.getComputedStyle(A),pe=parseInt(z.paddingTop,10),Ce=parseInt(z.paddingBottom,10),ge=j.top+j.height/2-sn,ye=te-ge,Se=_.offsetHeight/2,ee=_.offsetTop+Se,ae=le+re+ee,_e=M-ae;if(ae<=ge){const q=Y.length>0&&_===Y[Y.length-1].ref.current;h.style.bottom="0px";const De=C.clientHeight-A.offsetTop-A.offsetHeight,Xe=Math.max(ye,Se+(q?Ce:0)+De+V),bt=ae+Xe;h.style.height=bt+"px"}else{const q=Y.length>0&&_===Y[0].ref.current;h.style.top="0px";const Xe=Math.max(ge,le+A.offsetTop+(q?pe:0)+Se)+_e;h.style.height=Xe+"px",A.scrollTop=ae-ge+A.offsetTop}h.style.margin=`${sn}px 0`,h.style.minHeight=T+"px",h.style.maxHeight=te+"px",s?.(),requestAnimationFrame(()=>k.current=!0)}},[E,u.trigger,u.valueNode,h,C,A,_,R,u.dir,s]);Ve(()=>F(),[F]);const[N,W]=m.useState();Ve(()=>{C&&W(window.getComputedStyle(C).zIndex)},[C]);const H=m.useCallback(j=>{j&&b.current===!0&&(F(),B?.(),b.current=!1)},[F,B]);return w.jsx(VA,{scope:a,contentWrapper:h,shouldExpandOnScrollRef:k,onScrollButtonChange:H,children:w.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:w.jsx(Ee.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})},"SelectItemAlignedPosition")),ag=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,align:s="start",collisionPadding:c=sn,...u}=r,f=of(a);return w.jsx(cl,{...f,...u,ref:o,align:s,collisionPadding:c,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[VA,af]=Zr(Ur,{}),sg="SelectViewport",UA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,nonce:s,...c}=r,u=Jr(sg,a),f=af(sg,a),h=Ae(o,u.onViewportChange),g=m.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),w.jsx(ml.Slot,{scope:a,children:w.jsx(Ee.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:oe(c.onScroll,C=>{const v=C.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:E}=f;if(E?.current&&y){const k=Math.abs(g.current-v.scrollTop);if(k>0){const b=window.innerHeight-sn*2,A=parseFloat(y.style.minHeight),_=parseFloat(y.style.height),R=Math.max(A,_);if(R<b){const B=R+k,F=Math.min(b,B),N=B-F;y.style.height=F+"px",y.style.bottom==="0px"&&(v.scrollTop=N>0?N:0,y.style.justifyContent="flex-end")}}}g.current=v.scrollTop})})})]})},"SelectViewport")),GA="SelectGroup",[$B,KA]=Zr(GA),YA="SelectLabel",XA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,...s}=r,c=KA(YA,a);return w.jsx(Ee.div,{id:c.id,...s,ref:o})},"SelectLabel")),ud="SelectItem",[QA,sy]=Zr(ud),qA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,value:s,disabled:c=!1,textValue:u,...f}=r,h=Sr(ud,a),g=Jr(ud,a),C=h.value===s,[v,y]=m.useState(u??""),[E,k]=m.useState(!1),b=rt(F=>g.itemRefCallback?.(F,s,c)),A=Ae(o,b),_=Kt(),R=m.useRef("touch"),B=Te(()=>{c||(h.onValueChange(s),h.onOpenChange(!1))},"handleSelect");return w.jsx(QA,{scope:a,value:s,disabled:c,textId:_,isSelected:C,onItemTextChange:m.useCallback(F=>{y(N=>N||(F?.textContent??"").trim())},[]),children:w.jsx(ml.ItemSlot,{scope:a,value:s,disabled:c,textValue:v,children:w.jsx(Ee.div,{role:"option","aria-labelledby":_,"data-highlighted":E?"":void 0,"aria-selected":C&&E,"data-state":C?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...f,ref:A,onFocus:oe(f.onFocus,()=>k(!0)),onBlur:oe(f.onBlur,()=>k(!1)),onClick:oe(f.onClick,()=>{R.current!=="mouse"&&B()}),onPointerUp:oe(f.onPointerUp,()=>{R.current==="mouse"&&B()}),onPointerDown:oe(f.onPointerDown,F=>{R.current=F.pointerType}),onPointerMove:oe(f.onPointerMove,F=>{R.current=F.pointerType,c?g.onItemLeave?.():R.current==="mouse"&&F.currentTarget.focus({preventScroll:!0})}),onPointerLeave:oe(f.onPointerLeave,F=>{F.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:oe(f.onKeyDown,F=>{c||F.target!==F.currentTarget||g.searchRef?.current!==""&&F.key===" "||(SA.includes(F.key)&&B(),F.key===" "&&F.preventDefault())})})})})},"SelectItem")),Is="SelectItemText",ZA=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,className:s,style:c,...u}=r,f=Sr(Is,a),h=Jr(Is,a),g=sy(Is,a),C=FA(Is,a),[v,y]=m.useState(null),E=rt(B=>h.itemTextRefCallback?.(B,g.value,g.disabled)),k=Ae(o,y,g.onItemTextChange,E),b=v?.textContent,A=m.useMemo(()=>w.jsx("option",{value:g.value,disabled:g.disabled,children:b},g.value),[g.disabled,g.value,b]),{onNativeOptionAdd:_,onNativeOptionRemove:R}=C;return Ve(()=>(_(A),()=>R(A)),[_,R,A]),w.jsxs(w.Fragment,{children:[w.jsx(Ee.span,{id:g.textId,...u,ref:k}),g.isSelected&&f.valueNode&&!f.valueNodeHasChildren&&!la(f.value)?Go.createPortal(u.children,f.valueNode):null]})},"SelectItemText")),JA="SelectItemIndicator",e3=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,...s}=r;return sy(JA,a).isSelected?w.jsx(Ee.span,{"aria-hidden":!0,...s,ref:o}):null},"SelectItemIndicator")),lg="SelectScrollUpButton",t3=m.forwardRef(Te(function(r,o){const a=Jr(lg,r.__scopeSelect),s=af(lg,r.__scopeSelect),[c,u]=m.useState(!1),f=Ae(o,s.onScrollButtonChange);return Ve(()=>{if(a.viewport&&a.isPositioned){let h=function(){const C=g.scrollTop>0;u(C)};Te(h,"handleScroll");const g=a.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[a.viewport,a.isPositioned]),c?w.jsx(ly,{...r,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=a;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),cg="SelectScrollDownButton",n3=m.forwardRef(Te(function(r,o){const a=Jr(cg,r.__scopeSelect),s=af(cg,r.__scopeSelect),[c,u]=m.useState(!1),f=Ae(o,s.onScrollButtonChange);return Ve(()=>{if(a.viewport&&a.isPositioned){let h=function(){const C=g.scrollHeight-g.clientHeight,v=Math.ceil(g.scrollTop)<C;u(v)};Te(h,"handleScroll");const g=a.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[a.viewport,a.isPositioned]),c?w.jsx(ly,{...r,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=a;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),ly=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,onAutoScroll:s,...c}=r,u=Jr("SelectScrollButton",a),f=m.useRef(null),h=hl(a),g=m.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return m.useEffect(()=>()=>g(),[g]),Ve(()=>{h().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),w.jsx(Ee.div,{"aria-hidden":!0,...c,ref:o,style:{flexShrink:0,...c.style},onPointerDown:oe(c.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(s,50))}),onPointerMove:oe(c.onPointerMove,()=>{u.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(s,50))}),onPointerLeave:oe(c.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl")),r3=m.forwardRef(Te(function(r,o){const{__scopeSelect:a,...s}=r;return w.jsx(Ee.div,{"aria-hidden":!0,...s,ref:o})},"SelectSeparator")),o3="SelectBubbleInput",i3=m.forwardRef(Te(function({__scopeSelect:r,...o},a){const s=Sr(o3,r),{value:c,onValueChange:u,required:f,disabled:h,name:g,autoComplete:C,form:v}=s,{nativeOptions:y,nativeSelectKey:E}=s,k=m.useRef(null),b=Ae(a,k),A=c??"",_=z0(A),R=Array.from(y).some(B=>(B.props.value??"")==="");return m.useEffect(()=>{const B=k.current;if(!B)return;const F=window.HTMLSelectElement.prototype,W=Object.getOwnPropertyDescriptor(F,"value").set;if(_!==A&&W){const H=new Event("change",{bubbles:!0});W.call(B,A),B.dispatchEvent(H)}},[_,A]),w.jsxs(Ee.select,{"aria-hidden":!0,required:f,tabIndex:-1,name:g,autoComplete:C,disabled:h,form:v,onChange:B=>u(B.target.value),...o,style:{...rv,...o.style},ref:b,defaultValue:A,children:[la(c)&&!R?w.jsx("option",{value:""}):null,Array.from(y)]},E)},"SelectBubbleInput"));function cy(t){return typeof t=="function"}Te(cy,"isFunction");function la(t){return t===""||t===void 0}Te(la,"shouldShowPlaceholder");function sf(t){const r=rt(t),o=m.useRef(""),a=m.useRef(0),s=m.useCallback(u=>{const f=o.current+u;r(f),Te(function h(g){o.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>h(""),1e3))},"updateSearch")(f)},[r]),c=m.useCallback(()=>{o.current="",window.clearTimeout(a.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(a.current),[]),[o,s,c]}Te(sf,"useTypeaheadSearch");function lf(t,r,o){const s=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,c=o?t.indexOf(o):-1;let u=uy(t,Math.max(c,0));s.length===1&&(u=u.filter(g=>g!==o));const h=u.find(g=>g.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==o?h:void 0}Te(lf,"findNextItem");function uy(t,r){return t.map((o,a)=>t[(r+a)%t.length])}Te(uy,"wrapArray");var a3=Object.defineProperty,dy=(t,r)=>a3(t,"name",{value:r,configurable:!0}),ug="horizontal",s3=["horizontal","vertical"],l3=m.forwardRef(dy(function(r,o){const{decorative:a,orientation:s=ug,...c}=r,u=fy(s)?s:ug,h=a?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return w.jsx(Ee.div,{"data-orientation":u,...h,...c,ref:o})},"Separator"));function fy(t){return s3.includes(t)}dy(fy,"isValidOrientation");var c3=l3,u3=Object.defineProperty,yr=(t,r)=>u3(t,"name",{value:r,configurable:!0}),cf="Switch",[d3,zB]=gt(cf),[f3,uf]=d3(cf);function py(t){const{__scopeSwitch:r,checked:o,children:a,defaultChecked:s,disabled:c,form:u,name:f,onCheckedChange:h,required:g,value:C="on",internal_do_not_use_render:v}=t,[y,E]=un({prop:o,defaultProp:s??!1,onChange:h,caller:cf}),[k,b]=m.useState(null),[A,_]=m.useState(null),R=m.useRef(!1),[B,F]=m.useReducer(H=>H+1,0),N=k?!!u||!!k.closest("form"):!0,W={checked:y,setChecked:E,disabled:c,control:k,setControl:b,name:f,form:u,value:C,hasConsumerStoppedPropagationRef:R,userInteractionCount:B,onUserInteraction:F,required:g,defaultChecked:s,isFormControl:N,bubbleInput:A,setBubbleInput:_};return w.jsx(f3,{scope:r,...W,children:my(v)?v(W):a})}yr(py,"SwitchProvider");var p3="SwitchTrigger",m3=m.forwardRef(yr(function({__scopeSwitch:r,onClick:o,...a},s){const{control:c,form:u,value:f,disabled:h,checked:g,required:C,setControl:v,setChecked:y,hasConsumerStoppedPropagationRef:E,onUserInteraction:k,isFormControl:b,bubbleInput:A}=uf(p3,r),_=Ae(s,v),R=m.useRef(g);return m.useEffect(()=>{const B=u?c?.ownerDocument.getElementById(u):c?.form;if(B instanceof HTMLFormElement){const F=yr(()=>y(R.current),"reset");return B.addEventListener("reset",F),()=>B.removeEventListener("reset",F)}},[c,u,y]),w.jsx(Ee.button,{type:"button",role:"switch","aria-checked":g,"aria-required":C,"data-state":df(g),"data-disabled":h?"":void 0,disabled:h,value:f,...a,ref:_,onClick:oe(o,B=>{k(),y(F=>!F),A&&b&&(E.current=B.isPropagationStopped(),E.current||B.stopPropagation())})})},"SwitchTrigger")),h3=m.forwardRef(yr(function(r,o){const{__scopeSwitch:a,name:s,checked:c,defaultChecked:u,required:f,disabled:h,value:g,onCheckedChange:C,form:v,...y}=r;return w.jsx(py,{__scopeSwitch:a,checked:c,defaultChecked:u,disabled:h,required:f,onCheckedChange:C,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:E})=>w.jsxs(w.Fragment,{children:[w.jsx(m3,{...y,ref:o,__scopeSwitch:a}),E&&w.jsx(w3,{__scopeSwitch:a})]})})},"Switch")),g3="SwitchThumb",v3=m.forwardRef(yr(function(r,o){const{__scopeSwitch:a,...s}=r,c=uf(g3,a);return w.jsx(Ee.span,{"data-state":df(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:o})},"SwitchThumb")),y3="SwitchBubbleInput",w3=m.forwardRef(yr(function({__scopeSwitch:r,onClick:o,...a},s){const{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:f,checked:h,defaultChecked:g,required:C,disabled:v,name:y,value:E,form:k,bubbleInput:b,setBubbleInput:A}=uf(y3,r),_=Ae(s,A),R=el(c),B=m.useRef(!1),F=m.useRef(h),N=m.useRef(f);m.useEffect(()=>{const H=b;if(!H)return;const j=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(j,"checked").set,G=f!==N.current;N.current=f;const Y=F.current!==h;F.current=h;const te=!(G&&u.current);if(Y&&S){B.current=!G;const ie=new Event("click",{bubbles:te});S.call(H,h),H.dispatchEvent(ie),B.current=!1}},[b,h,u,f]);const W=m.useRef(h);return w.jsx(Ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??W.current,required:C,disabled:v,name:y,value:E,form:k,...a,tabIndex:-1,ref:_,onClick:oe(o,H=>{B.current&&H.stopPropagation()}),style:{...a.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function my(t){return typeof t=="function"}yr(my,"isFunction");function df(t){return t?"checked":"unchecked"}yr(df,"getState");var C3=Object.defineProperty,Jo=(t,r)=>C3(t,"name",{value:r,configurable:!0}),ff="Tabs",[x3,HB]=gt(ff,[dl]),hy=dl(),[b3,pf]=x3(ff),E3=m.forwardRef(Jo(function(r,o){const{__scopeTabs:a,value:s,onValueChange:c,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:g="automatic",...C}=r,v=Yo(h),[y,E]=un({prop:s,onChange:c,defaultProp:u??"",caller:ff});return w.jsx(b3,{scope:a,baseId:Kt(),value:y,onValueChange:E,orientation:f,dir:v,activationMode:g,children:w.jsx(Ee.div,{dir:v,"data-orientation":f,...C,ref:o})})},"Tabs")),S3="TabsList",k3=m.forwardRef(Jo(function(r,o){const{__scopeTabs:a,loop:s=!0,...c}=r,u=pf(S3,a),f=hy(a);return w.jsx(E0,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:s,children:w.jsx(Ee.div,{role:"tablist","aria-orientation":u.orientation,...c,ref:o})})},"TabsList")),A3="TabsTrigger",D3=m.forwardRef(Jo(function(r,o){const{__scopeTabs:a,value:s,disabled:c=!1,...u}=r,f=pf(A3,a),h=hy(a),g=mf(f.baseId,s),C=hf(f.baseId,s),v=s===f.value;return w.jsx(S0,{asChild:!0,...h,focusable:!c,active:v,children:w.jsx(Ee.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":C,"data-state":v?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:g,...u,ref:o,onMouseDown:oe(r.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?f.onValueChange(s):y.preventDefault()}),onKeyDown:oe(r.onKeyDown,y=>{c||y.target!==y.currentTarget||[" ","Enter"].includes(y.key)&&f.onValueChange(s)}),onFocus:oe(r.onFocus,()=>{const y=f.activationMode!=="manual";!v&&!c&&y&&f.onValueChange(s)})})})},"TabsTrigger")),F3="TabsContent",B3=m.forwardRef(Jo(function(r,o){const{__scopeTabs:a,value:s,forceMount:c,children:u,...f}=r,h=pf(F3,a),g=mf(h.baseId,s),C=hf(h.baseId,s),v=s===h.value,y=m.useRef(v);return m.useEffect(()=>{const E=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(E)},[]),w.jsx(pt,{present:c||v,children:({present:E})=>w.jsx(Ee.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!E,id:C,tabIndex:0,...f,ref:o,style:{...r.style,animationDuration:y.current?"0s":void 0},children:E&&u})})},"TabsContent"));function mf(t,r){return`${t}-trigger-${r}`}Jo(mf,"makeTriggerId");function hf(t,r){return`${t}-content-${r}`}Jo(hf,"makeContentId");var P3=E3,R3=k3,_3=D3,T3=B3,I3=Object.defineProperty,ft=(t,r)=>I3(t,"name",{value:r,configurable:!0}),[gf,VB]=gt("Tooltip",[br]),vf=br(),M3="TooltipProvider",O3=700,dd="tooltip.open",[N3,yf]=gf(M3),L3=ft(t=>{const{__scopeTooltip:r,delayDuration:o=O3,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:c}=t,u=m.useRef(!0),f=m.useRef(!1),h=m.useRef(0);return m.useEffect(()=>{const g=h.current;return()=>window.clearTimeout(g)},[]),w.jsx(N3,{scope:r,isOpenDelayedRef:u,delayDuration:o,onOpen:m.useCallback(()=>{a<=0||(window.clearTimeout(h.current),u.current=!1)},[a]),onClose:m.useCallback(()=>{a<=0||(window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,a))},[a]),isPointerInTransitRef:f,onPointerInTransitChange:m.useCallback(g=>{f.current=g},[]),disableHoverableContent:s,children:c})},"TooltipProvider"),fd="Tooltip",[j3,ca]=gf(fd),W3=ft(t=>{const{__scopeTooltip:r,children:o,open:a,defaultOpen:s,onOpenChange:c,disableHoverableContent:u,delayDuration:f}=t,h=yf(fd,t.__scopeTooltip),g=vf(r),[C,v]=m.useState(null),[y,E]=m.useState(void 0),k=Kt(),b=m.useRef(0),A=u??h.disableHoverableContent,_=f??h.delayDuration,R=m.useRef(!1),[B,F]=un({prop:a,defaultProp:s??!1,onChange:ft(S=>{S?(h.onOpen(),document.dispatchEvent(new CustomEvent(dd))):h.onClose(),c?.(S)},"onChange"),caller:fd}),N=m.useMemo(()=>B?R.current?"delayed-open":"instant-open":"closed",[B]),W=m.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R.current=!1,F(!0)},[F]),H=m.useCallback(()=>{window.clearTimeout(b.current),b.current=0,F(!1)},[F]),j=m.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{R.current=!0,F(!0),b.current=0},_)},[_,F]);m.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]);const K=y??k;return w.jsx(sl,{...g,children:w.jsx(j3,{scope:r,contentId:K,setContentId:E,open:B,stateAttribute:N,trigger:C,onTriggerChange:v,onTriggerEnter:m.useCallback(()=>{h.isOpenDelayedRef.current?j():W()},[h.isOpenDelayedRef,j,W]),onTriggerLeave:m.useCallback(()=>{A?H():(window.clearTimeout(b.current),b.current=0)},[H,A]),onOpen:W,onClose:H,disableHoverableContent:A,children:o})})},"Tooltip"),dg="TooltipTrigger",$3=m.forwardRef(ft(function(r,o){const{__scopeTooltip:a,...s}=r,c=ca(dg,a),u=yf(dg,a),f=vf(a),h=m.useRef(null),g=Ae(o,h,c.onTriggerChange),C=m.useRef(!1),v=m.useRef(!1),y=m.useCallback(()=>C.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),w.jsx(ll,{asChild:!0,...f,children:w.jsx(Ee.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...s,ref:g,onPointerMove:oe(r.onPointerMove,E=>{E.pointerType!=="touch"&&!v.current&&!u.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:oe(r.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:oe(r.onPointerDown,()=>{c.open&&c.onClose(),C.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:oe(r.onFocus,()=>{C.current||c.onOpen()}),onBlur:oe(r.onBlur,c.onClose),onClick:oe(r.onClick,c.onClose)})})},"TooltipTrigger")),gy="TooltipPortal",[z3,H3]=gf(gy,{forceMount:void 0}),V3=ft(t=>{const{__scopeTooltip:r,forceMount:o,children:a,container:s}=t,c=ca(gy,r);return w.jsx(z3,{scope:r,forceMount:o,children:w.jsx(pt,{present:o||c.open,children:w.jsx(ra,{asChild:!0,container:s,children:a})})})},"TooltipPortal"),Ji="TooltipContent",U3=m.forwardRef(ft(function(r,o){const a=H3(Ji,r.__scopeTooltip),{forceMount:s=a.forceMount,side:c="top",...u}=r,f=ca(Ji,r.__scopeTooltip);return w.jsx(pt,{present:s||f.open,children:f.disableHoverableContent?w.jsx(vy,{side:c,...u,ref:o}):w.jsx(G3,{side:c,...u,ref:o})})},"TooltipContent")),G3=m.forwardRef(ft(function(r,o){const a=ca(Ji,r.__scopeTooltip),s=yf(Ji,r.__scopeTooltip),c=m.useRef(null),u=Ae(o,c),[f,h]=m.useState(null),{trigger:g,onClose:C}=a,v=c.current,{onPointerInTransitChange:y}=s,E=m.useCallback(()=>{h(null),y(!1)},[y]),k=m.useCallback((b,A)=>{const _=b.currentTarget,R={x:b.clientX,y:b.clientY},B=yy(R,_.getBoundingClientRect()),F=wy(R,B),N=Cy(A.getBoundingClientRect()),W=by([...F,...N]);h(W),y(!0)},[y]);return m.useEffect(()=>()=>E(),[E]),m.useEffect(()=>{if(g&&v){const b=ft(_=>k(_,v),"handleTriggerLeave"),A=ft(_=>k(_,g),"handleContentLeave");return g.addEventListener("pointerleave",b),v.addEventListener("pointerleave",A),()=>{g.removeEventListener("pointerleave",b),v.removeEventListener("pointerleave",A)}}},[g,v,k,E]),m.useEffect(()=>{if(f){const b=ft(A=>{const _=A.target,R={x:A.clientX,y:A.clientY},B=g?.contains(_)||v?.contains(_),F=!xy(R,f);B?E():F&&(E(),C())},"handleTrackPointerGrace");return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[g,v,f,C,E]),w.jsx(vy,{...r,ref:u})},"TooltipContentHoverable")),K3=Zg("TooltipContent"),vy=m.forwardRef(ft(function(r,o){const{__scopeTooltip:a,children:s,"aria-label":c,id:u,onEscapeKeyDown:f,onPointerDownOutside:h,...g}=r,C=ca(Ji,a),v=vf(a),{onClose:y}=C;m.useEffect(()=>(document.addEventListener(dd,y),()=>document.removeEventListener(dd,y)),[y]),m.useEffect(()=>{if(C.trigger){const k=ft(b=>{b.target instanceof Node&&b.target.contains(C.trigger)&&y()},"handleScroll");return window.addEventListener("scroll",k,{capture:!0}),()=>window.removeEventListener("scroll",k,{capture:!0})}},[C.trigger,y]);const{setContentId:E}=C;return Ve(()=>(E(u),()=>{E(void 0)}),[u,E]),w.jsx(na,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:k=>k.preventDefault(),onDismiss:y,children:w.jsxs(cl,{"data-state":C.stateAttribute,role:c?void 0:"tooltip",id:c?void 0:C.contentId,...v,...g,ref:o,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(K3,{children:s}),c?w.jsx($x,{id:C.contentId,role:"tooltip",children:c}):null]})})},"TooltipContentImpl"));function yy(t,r){const o=Math.abs(r.top-t.y),a=Math.abs(r.bottom-t.y),s=Math.abs(r.right-t.x),c=Math.abs(r.left-t.x);switch(Math.min(o,a,s,c)){case c:return"left";case s:return"right";case o:return"top";case a:return"bottom";default:throw new Error("unreachable")}}ft(yy,"getExitSideFromRect");function wy(t,r,o=5){const a=[];switch(r){case"top":a.push({x:t.x-o,y:t.y+o},{x:t.x+o,y:t.y+o});break;case"bottom":a.push({x:t.x-o,y:t.y-o},{x:t.x+o,y:t.y-o});break;case"left":a.push({x:t.x+o,y:t.y-o},{x:t.x+o,y:t.y+o});break;case"right":a.push({x:t.x-o,y:t.y-o},{x:t.x-o,y:t.y+o});break}return a}ft(wy,"getPaddedExitPoints");function Cy(t){const{top:r,right:o,bottom:a,left:s}=t;return[{x:s,y:r},{x:o,y:r},{x:o,y:a},{x:s,y:a}]}ft(Cy,"getPointsFromRect");function xy(t,r){const{x:o,y:a}=t;let s=!1;for(let c=0,u=r.length-1;c<r.length;u=c++){const f=r[c],h=r[u],g=f.x,C=f.y,v=h.x,y=h.y;C>a!=y>a&&o<(v-g)*(a-C)/(y-C)+g&&(s=!s)}return s}ft(xy,"isPointInPolygon");function by(t){const r=t.slice();return r.sort((o,a)=>o.x<a.x?-1:o.x>a.x?1:o.y<a.y?-1:o.y>a.y?1:0),Ey(r)}ft(by,"getHull");function Ey(t){if(t.length<=1)return t.slice();const r=[];for(let a=0;a<t.length;a++){const s=t[a];for(;r.length>=2;){const c=r[r.length-1],u=r[r.length-2];if((c.x-u.x)*(s.y-u.y)>=(c.y-u.y)*(s.x-u.x))r.pop();else break}r.push(s)}r.pop();const o=[];for(let a=t.length-1;a>=0;a--){const s=t[a];for(;o.length>=2;){const c=o[o.length-1],u=o[o.length-2];if((c.x-u.x)*(s.y-u.y)>=(c.y-u.y)*(s.x-u.x))o.pop();else break}o.push(s)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}ft(Ey,"getHullPresorted");var Y3=L3,X3=W3,Q3=$3,q3=V3,Z3=U3;const J3=m.forwardRef(({className:t,...r},o)=>w.jsx(vb,{ref:o,className:se("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...r}));J3.displayName="Avatar";const eD=m.forwardRef(({className:t,...r},o)=>w.jsx(wb,{ref:o,className:se("aspect-square size-full object-cover",t),...r}));eD.displayName="AvatarImage";const tD=m.forwardRef(({className:t,...r},o)=>w.jsx(xb,{ref:o,className:se("flex size-full items-center justify-center rounded-full bg-sunken","font-medium text-ink-muted text-meta",t),...r}));tD.displayName="AvatarFallback";const nD=Yr(["inline-flex w-fit shrink-0 items-center gap-1 border px-2 py-0.5","whitespace-nowrap font-medium text-meta","[&_svg]:pointer-events-none [&_svg]:size-3 [&_svg]:shrink-0"],{variants:{variant:{neutral:"border-hairline bg-sunken text-ink-muted",accent:"border-accent bg-accent-wash text-accent",success:"border-success-border bg-success-wash text-success",warning:"border-warning-border bg-warning-wash text-warning",danger:"border-danger-border bg-danger-wash text-danger",info:"border-info-border bg-info-wash text-info",outline:"border-control bg-transparent text-ink",attention:"border-control bg-warning-wash text-ink"},shape:{rounded:"rounded-sm",pill:"rounded-full"}},defaultVariants:{variant:"neutral",shape:"rounded"}}),rD=m.forwardRef(({className:t,variant:r,shape:o,asChild:a=!1,...s},c)=>{const u=a?Qg:"span";return w.jsx(u,{ref:c,className:se(nD({variant:r,shape:o}),t),...s})});rD.displayName="Badge";const fg=Yr(["inline-flex shrink-0 select-none items-center justify-center","whitespace-nowrap font-medium","transition-colors duration-fast ease-out-quart","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{sm:"h-7 gap-1 rounded-sm px-2 text-meta [&_svg]:size-3.5 focus-visible:outline-offset-1!",md:"h-8 gap-1.5 rounded-sm px-3 text-body-sm [&_svg]:size-4",lg:"h-9 gap-2 rounded-sm px-4 text-body [&_svg]:size-4",icon:"size-8 rounded-sm [&_svg]:size-4","icon-sm":"size-7 rounded-sm [&_svg]:size-3.5 focus-visible:outline-offset-1!","icon-lg":"size-9 rounded-sm [&_svg]:size-5"},variant:{primary:["bg-accent text-on-accent","hover:bg-accent-hover active:bg-accent-active","disabled:bg-sunken disabled:text-ink-disabled"],secondary:["border border-control bg-surface text-ink","hover:bg-elevated active:bg-sunken","disabled:border-hairline disabled:bg-sunken disabled:text-ink-disabled"],outline:["border border-control text-ink","hover:bg-accent-wash","active:border-accent active:bg-[color-mix(in_oklab,var(--color-accent-wash)_80%,var(--color-accent))]","disabled:border-hairline disabled:bg-transparent disabled:text-ink-disabled"],ghost:["text-ink-muted","hover:bg-accent-wash hover:text-ink","active:bg-accent-wash active:text-accent","disabled:bg-transparent disabled:text-ink-disabled"],danger:["border border-danger-border text-danger","hover:bg-danger-wash","active:border-danger active:text-ink active:bg-[color-mix(in_oklab,var(--color-danger-wash)_80%,var(--color-danger))]","disabled:border-hairline disabled:bg-transparent disabled:text-ink-disabled"],link:["h-auto rounded-xs p-0 text-accent underline-offset-4","hover:text-accent-hover hover:underline","active:underline active:decoration-2","disabled:text-ink-disabled disabled:no-underline"]}},defaultVariants:{variant:"secondary",size:"md"}}),ua=m.forwardRef(({className:t,variant:r,size:o,asChild:a=!1,type:s,...c},u)=>a?w.jsx(Qg,{ref:u,className:se(fg({variant:r,size:o}),t),...c}):w.jsx("button",{ref:u,type:s??"button",className:se(fg({variant:r,size:o}),t),...c}));ua.displayName="Button";const oD=Yr("flex flex-col rounded-lg",{variants:{variant:{surface:"border border-hairline bg-surface",plain:"bg-surface",outline:"border border-hairline"},padding:{none:"",sm:"gap-3 p-3",md:"gap-4 p-4",lg:"gap-4 p-6"}},defaultVariants:{variant:"surface",padding:"md"}}),iD=m.forwardRef(({className:t,variant:r,padding:o,...a},s)=>w.jsx("div",{ref:s,className:se(oD({variant:r,padding:o}),t),...a}));iD.displayName="Card";const aD=m.forwardRef(({className:t,...r},o)=>w.jsx("div",{ref:o,className:se("flex flex-col gap-1",t),...r}));aD.displayName="CardHeader";const sD=m.forwardRef(({className:t,...r},o)=>w.jsx("h3",{ref:o,className:se("text-heading text-ink",t),...r}));sD.displayName="CardTitle";const lD=m.forwardRef(({className:t,...r},o)=>w.jsx("p",{ref:o,className:se("text-body-sm text-ink-muted",t),...r}));lD.displayName="CardDescription";const cD=m.forwardRef(({className:t,...r},o)=>w.jsx("div",{ref:o,className:se("text-body-sm text-ink",t),...r}));cD.displayName="CardContent";const uD=m.forwardRef(({className:t,...r},o)=>w.jsx("div",{ref:o,className:se("flex items-center gap-2",t),...r}));uD.displayName="CardFooter";const dD=m.forwardRef(({className:t,checked:r,...o},a)=>w.jsx(Pb,{ref:a,checked:r,className:se("inline-flex size-4 shrink-0 items-center justify-center rounded-xs","border border-control bg-surface text-on-accent","transition-colors duration-fast ease-out-quart","data-[state=checked]:not-data-[disabled]:border-accent data-[state=checked]:not-data-[disabled]:bg-accent","data-[state=indeterminate]:not-data-[disabled]:border-accent data-[state=indeterminate]:not-data-[disabled]:bg-accent","aria-invalid:border-danger","data-[disabled]:border-hairline data-[disabled]:bg-sunken data-[disabled]:text-ink-disabled",t),...o,children:w.jsx(_b,{className:"flex items-center justify-center text-current",children:r==="indeterminate"?w.jsx(vx,{className:"size-3.5","aria-hidden":"true"}):w.jsx(xd,{className:"size-3.5","aria-hidden":"true"})})}));dD.displayName="Checkbox";const UB=Lv,fD=$v,GB=Rd,Sy=m.forwardRef(({className:t,...r},o)=>w.jsx(zv,{ref:o,className:se("fixed inset-0 z-50 bg-scrim",t),...r}));Sy.displayName="DialogOverlay";const pD=m.forwardRef(({className:t,children:r,showClose:o=!0,overlayClassName:a,...s},c)=>w.jsxs(fD,{children:[w.jsx(Sy,{className:a}),w.jsxs(Hv,{ref:c,className:se("-translate-x-1/2 -translate-y-1/2 fixed top-1/2 left-1/2 z-50","flex w-full max-w-lg flex-col gap-4","rounded-lg border border-hairline bg-elevated p-6 shadow-overlay",t),...s,children:[r,o?w.jsx(Rd,{asChild:!0,children:w.jsx(ua,{variant:"ghost",size:"icon-sm",className:"absolute top-4 right-4","aria-label":"Close",children:w.jsx(Ed,{"aria-hidden":"true"})})}):null]})]}));pD.displayName="DialogContent";const mD=({className:t,...r})=>w.jsx("div",{className:se("flex flex-col gap-1.5 pr-8",t),...r});mD.displayName="DialogHeader";const hD=({className:t,...r})=>w.jsx("div",{className:se("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...r});hD.displayName="DialogFooter";const gD=m.forwardRef(({className:t,...r},o)=>w.jsx(Uv,{ref:o,className:se("text-heading text-ink",t),...r}));gD.displayName="DialogTitle";const vD=m.forwardRef(({className:t,...r},o)=>w.jsx(Gv,{ref:o,className:se("text-body-sm text-ink-muted",t),...r}));vD.displayName="DialogDescription";const KB=fk,YB=pk,ky=["z-50 min-w-32 overflow-hidden rounded-md border border-hairline bg-elevated p-1","shadow-overlay"],gl=["relative flex select-none items-center gap-2 rounded-sm px-2 py-1.5","text-body-sm text-ink transition-colors duration-fast","data-[highlighted]:bg-accent-wash","data-[disabled]:pointer-events-none data-[disabled]:text-ink-disabled","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"],yD=m.forwardRef(({className:t,inset:r,children:o,...a},s)=>w.jsxs(xk,{ref:s,className:se(gl,"data-[state=open]:bg-accent-wash",r&&"pl-8",t),...a,children:[o,w.jsx(rx,{className:"ml-auto text-ink-dim","aria-hidden":"true"})]}));yD.displayName="DropdownMenuSubTrigger";const wD=m.forwardRef(({className:t,...r},o)=>w.jsx(bk,{ref:o,className:se(ky,t),...r}));wD.displayName="DropdownMenuSubContent";const CD=m.forwardRef(({className:t,sideOffset:r=6,...o},a)=>w.jsx(mk,{children:w.jsx(hk,{ref:a,sideOffset:r,className:se(ky,t),...o})}));CD.displayName="DropdownMenuContent";const xD=m.forwardRef(({className:t,inset:r,destructive:o,...a},s)=>w.jsx(vk,{ref:s,className:se(gl,r&&"pl-8",o&&"text-danger data-[highlighted]:bg-danger-wash",t),...a}));xD.displayName="DropdownMenuItem";const bD=m.forwardRef(({className:t,children:r,checked:o,...a},s)=>w.jsxs(yk,{ref:s,checked:o,className:se(gl,"pl-8",t),...a,children:[w.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:w.jsx($0,{children:w.jsx(xd,{className:"text-accent","aria-hidden":"true"})})}),r]}));bD.displayName="DropdownMenuCheckboxItem";const ED=m.forwardRef(({className:t,children:r,...o},a)=>w.jsxs(wk,{ref:a,className:se(gl,"pl-8",t),...o,children:[w.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:w.jsx($0,{children:w.jsx(dx,{className:"size-2 fill-accent text-accent","aria-hidden":"true"})})}),r]}));ED.displayName="DropdownMenuRadioItem";const SD=m.forwardRef(({className:t,inset:r,...o},a)=>w.jsx(gk,{ref:a,className:se("px-2 py-1.5 text-meta text-ink-dim",r&&"pl-8",t),...o}));SD.displayName="DropdownMenuLabel";const kD=m.forwardRef(({className:t,...r},o)=>w.jsx(Ck,{ref:o,className:se("-mx-1 my-1 h-px bg-hairline",t),...r}));kD.displayName="DropdownMenuSeparator";const AD=Yr(["w-full rounded-sm border border-control bg-surface text-ink","placeholder:text-ink-dim","transition-colors duration-fast ease-out-quart","aria-invalid:border-danger","disabled:border-hairline disabled:bg-sunken disabled:text-ink-disabled","disabled:placeholder:text-ink-disabled","file:border-0 file:bg-transparent file:font-medium file:text-ink"],{variants:{inputSize:{sm:"h-7 px-2 text-meta focus-visible:outline-offset-1!",md:"h-8 px-3 text-body-sm",lg:"h-9 px-3 text-body"}},defaultVariants:{inputSize:"md"}}),Ay=m.forwardRef(({className:t,inputSize:r,type:o="text",...a},s)=>w.jsx("input",{ref:s,type:o,className:se(AD({inputSize:r}),t),...a}));Ay.displayName="Input";const DD=m.forwardRef(({className:t,...r},o)=>w.jsx(Ak,{ref:o,className:se("inline-flex select-none items-center gap-2 font-medium text-body-sm text-ink","peer-disabled:text-ink-disabled",t),...r}));DD.displayName="Label";const FD=Hk,BD=Vk,Dy=m.forwardRef(({className:t,align:r="center",sideOffset:o=6,...a},s)=>w.jsx(Uk,{children:w.jsx(Gk,{ref:s,align:r,sideOffset:o,className:se("z-50 w-72 rounded-md border border-hairline bg-elevated p-4","text-body-sm text-ink shadow-overlay",t),...a})}));Dy.displayName="PopoverContent";const PD=m.forwardRef(({className:t,value:r,max:o=100,indicatorClassName:a,...s},c)=>{const u=r==null,f=u?100:Math.min(100,Math.max(0,r/o*100));return w.jsx(eA,{ref:c,value:r,max:o,className:se("relative h-1 w-full overflow-hidden rounded-xs bg-sunken",t),...s,children:w.jsx(tA,{className:se("size-full flex-1 bg-accent transition-transform duration-base ease-out-quart",u&&"animate-pulse",a),style:{transform:`translateX(-${100-f}%)`}})})});PD.displayName="Progress";const RD=m.forwardRef(({className:t,children:r,...o},a)=>w.jsxs(wA,{ref:a,className:se("relative overflow-hidden",t),...o,children:[w.jsx(CA,{className:"size-full rounded-[inherit]",children:r}),w.jsx(Fy,{}),w.jsx(xA,{})]}));RD.displayName="ScrollArea";const Fy=m.forwardRef(({className:t,orientation:r="vertical",...o},a)=>w.jsx(lA,{ref:a,orientation:r,className:se("flex touch-none select-none p-px transition-colors duration-fast",r==="vertical"&&"h-full w-2.5",r==="horizontal"&&"h-2.5 flex-col",t),...o,children:w.jsx(mA,{className:"relative flex-1 rounded-xs bg-control"})}));Fy.displayName="ScrollBar";const pg={xs:"size-3.5 border",sm:"size-4 border",md:"size-5 border-2",lg:"size-8 border-2"},mg="inline-block shrink-0 animate-spin rounded-full border-hairline border-t-accent",By=({size:t="md",className:r,label:o})=>o?w.jsxs("span",{role:"status",className:"inline-flex items-center",children:[w.jsx("span",{"aria-hidden":"true",className:se(mg,pg[t],r)}),w.jsx("span",{className:"sr-only",children:o})]}):w.jsx("span",{"aria-hidden":"true",className:se(mg,pg[t],r)});By.displayName="Spinner";const Py=m.createContext(!1),Ry=({delayDuration:t=400,skipDelayDuration:r=300,children:o,...a})=>w.jsx(Y3,{delayDuration:t,skipDelayDuration:r,...a,children:w.jsx(Py.Provider,{value:!0,children:o})});Ry.displayName="TooltipProvider";const _D=X3,TD=Q3,ID=q3,_y=m.forwardRef(({className:t,sideOffset:r=6,...o},a)=>w.jsx(Z3,{ref:a,"data-lo-tooltip-panel":"",sideOffset:r,className:se("z-50 max-w-64 rounded-sm border border-hairline bg-elevated px-2 py-1","text-meta text-ink shadow-overlay","pointer-events-none",t),...o}));_y.displayName="TooltipContent";const Ty=({content:t,children:r,side:o="top",align:a="center",sideOffset:s,delayDuration:c,disabled:u=!1,className:f})=>{const h=m.useContext(Py);if(u||t===null||t===void 0||t==="")return w.jsx(w.Fragment,{children:r});const g=w.jsxs(_D,{delayDuration:c,children:[w.jsx(TD,{asChild:!0,children:r}),w.jsx(ID,{children:w.jsx(_y,{side:o,align:a,sideOffset:s,className:f,children:t})})]});return h?g:w.jsx(Ry,{children:g})};Ty.displayName="Tooltip";const mr=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function MD(t,r,o){const a=r.trim();if(!a||a===o)return t;const s=mr(a);return t.filter(c=>mr(c.name).includes(s))}const OD=t=>`Use "${t}"`;function ND(t,r,o,a){const s=MD(t,r,o),c=[];let u;s.forEach((h,g)=>{h.group&&h.group!==u&&(u=h.group,c.push({kind:"group",label:h.group})),c.push({kind:"option",option:h,index:g})});const f=r.trim();return a&&f&&!s.some(h=>mr(h.name)===mr(f))&&c.push({kind:"custom",text:f,index:s.length}),c}const Iy=t=>t.reduce((r,o)=>o.kind==="group"?r:r+1,0);function LD(t,r,o,a){const s=Iy(t);if(s===0)return-1;if(a>=0&&a<s)return a;const c=r.trim();if(!c||mr(c)===mr(o))return-1;const u=t.find(f=>f.kind==="option"&&mr(f.option.name)===mr(c));return u?u.index:0}function jD(t,r){if(r<0)return{kind:"none"};const o=t.find(a=>a.kind!=="group"&&a.index===r);return!o||o.kind==="group"?{kind:"none"}:o.kind==="custom"?{kind:"custom",text:o.text}:{kind:"option",option:o.option}}const WD=({label:t,icon:r,labelTooltip:o,placeholder:a,options:s,selected:c,onSelect:u,onCustomSubmit:f,helperText:h,busy:g=!1,busyLabel:C,disabled:v=!1,onOpenChange:y,onClear:E,ariaLabel:k,ariaDescribedBy:b,showLabel:A=!0,emptyText:_="No matches",listNotice:R,customRowLabel:B})=>{const F=m.useId(),N=`${F}-input`,W=`${F}-listbox`,H=`${F}-helper`,j=m.useRef(null),K=m.useRef([]),[S,G]=m.useState(!1),[Y,te]=m.useState(-1),ie=m.useCallback(q=>{G(q),y?.(q)},[y]),he=c?.name??"",[le,re]=m.useState(he);m.useEffect(()=>{re(he)},[he]);const V=m.useMemo(()=>ND(s,le,he,!!f),[s,le,he,f]),Z=Iy(V),M=V.filter(q=>q.kind==="option").length,T=LD(V,le,he,Y);K.current.length=Z,m.useEffect(()=>{te(-1)},[V]),m.useEffect(()=>{!S||T<0||K.current[T]?.scrollIntoView({block:"nearest"})},[S,T]);const z=m.useCallback(q=>{ie(!1),re(q.name),u(q)},[u,ie]),pe=m.useCallback(q=>{ie(!1),f&&q!==he&&f(q)},[f,he,ie]),Ce=m.useCallback(()=>{ie(!1),re(he)},[he,ie]),ge=q=>{Z!==0&&te(De=>{const Xe=De+q;return Xe<0?Z-1:Xe>=Z?0:Xe})},ye=q=>{switch(q.key){case"ArrowDown":case"ArrowUp":{if(q.preventDefault(),!S){ie(!0);return}ge(q.key==="ArrowDown"?1:-1);return}case"Home":case"End":{if(!S||Z===0)return;q.preventDefault(),te(q.key==="Home"?0:Z-1);return}case"Enter":{q.preventDefault();const De=jD(V,S?T:-1);if(De.kind==="option"){z(De.option);return}if(De.kind==="custom"){pe(De.text);return}S&&ie(!1);return}case"Escape":{if(!S)return;q.preventDefault(),q.stopPropagation(),Ce();return}}},Se=S&&T>=0?`${F}-option-${T}`:void 0,ee=k??t,ae=A&&!!t,_e=[b,h?H:void 0].filter(Boolean).join(" ")||void 0,Be=!!E&&!!c&&!v;return w.jsxs("div",{className:"relative",children:[ae?w.jsx(Ty,{content:o,children:w.jsxs("label",{htmlFor:N,className:"mb-1.5 flex w-fit items-center gap-2 text-body-sm text-ink-muted",children:[r,t]})}):null,w.jsxs(FD,{open:S,onOpenChange:q=>{q?ie(!0):Ce()},children:[w.jsx(BD,{asChild:!0,children:w.jsxs("div",{ref:j,className:"relative",children:[w.jsx(Ay,{id:N,role:"combobox","aria-expanded":S,"aria-controls":W,"aria-autocomplete":"list","aria-activedescendant":Se,"aria-label":ae?void 0:ee,"aria-describedby":_e,autoComplete:"off",className:se(Be?"pr-14":"pr-8"),placeholder:a,disabled:v,value:le,onChange:q=>{re(q.target.value),ie(!0)},onFocus:q=>{q.currentTarget.select(),ie(!0)},onBlur:Ce,onClick:()=>ie(!0),onKeyDown:ye}),w.jsxs("span",{className:"pointer-events-none absolute top-1/2 right-2 flex -translate-y-1/2 items-center gap-1",children:[Be?w.jsx(ua,{variant:"ghost",size:"icon-sm",type:"button",className:"pointer-events-auto","aria-label":ee?`Clear the ${ee.toLowerCase()}`:"Clear value",onMouseDown:q=>q.preventDefault(),onClick:()=>{E?.(),ie(!1)},children:w.jsx(Ed,{"aria-hidden":"true"})}):null,g?w.jsx(By,{size:"sm",label:C}):w.jsx(bd,{className:se("size-4",v?"text-ink-disabled":"text-ink-dim"),"aria-hidden":"true"})]})]})}),w.jsx(Dy,{align:"start",className:"w-(--radix-popover-trigger-width) p-1",onOpenAutoFocus:q=>q.preventDefault(),onCloseAutoFocus:q=>q.preventDefault(),onPointerDownOutside:q=>{j.current?.contains(q.target)&&q.preventDefault()},onFocusOutside:q=>{j.current?.contains(q.target)&&q.preventDefault()},onMouseDown:q=>q.preventDefault(),children:w.jsxs("ul",{id:W,role:"listbox","aria-label":ee,className:"max-h-72 overflow-y-auto",children:[R?w.jsx("li",{role:"presentation",className:"px-2 pt-2 pb-1 text-body-sm text-ink-muted",children:R}):null,M===0&&w.jsx("li",{role:"presentation",className:"px-2 py-1.5 text-body-sm text-ink-dim",children:g?`${C}…`:_}),V.map(q=>q.kind==="group"?w.jsx("li",{role:"presentation",className:"px-2 pt-2 pb-1 text-meta text-ink-dim",children:q.label},`group-${q.label}`):q.kind==="option"?w.jsxs("li",{id:`${F}-option-${q.index}`,role:"option","aria-selected":q.option.id===c?.id,ref:De=>{K.current[q.index]=De},className:se("cursor-pointer rounded-sm px-2 py-1.5","transition-colors duration-fast ease-out-quart",q.index===T&&"bg-accent-wash outline-solid outline-1 -outline-offset-1 outline-control"),onMouseEnter:()=>te(q.index),onClick:()=>z(q.option),children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-body-sm text-ink",children:q.option.name}),q.option.adornment]}),q.option.description?w.jsx("div",{className:"text-meta text-ink-muted",children:q.option.description}):null]},`option-${q.option.id}-${q.index}`):w.jsxs("li",{id:`${F}-option-${q.index}`,"data-combobox-row":"typed",role:"option","aria-selected":!1,ref:De=>{K.current[q.index]=De},className:se("cursor-pointer rounded-sm px-2 py-1.5","transition-colors duration-fast ease-out-quart",q.index===T&&"bg-accent-wash outline-solid outline-1 -outline-offset-1 outline-control"),onMouseEnter:()=>te(q.index),onClick:()=>pe(q.text),children:[w.jsx("div",{className:"flex items-center gap-2",children:w.jsx("span",{className:"text-body-sm text-ink",children:(B??OD)(q.text)})}),w.jsx("div",{className:"text-meta text-ink-muted",children:"Not in any listing; saved as typed."})]},`custom-${q.text}`))]})})]}),h?w.jsx("p",{id:H,className:"mt-1 text-meta text-ink-dim",children:h}):null]})};WD.displayName="SearchableSelect";const $D=Yr(["flex w-full items-center justify-between gap-2 rounded-sm","border border-control bg-surface text-ink","transition-colors duration-fast ease-out-quart","[&>span]:truncate","data-[placeholder]:not-data-[disabled]:text-ink-dim","aria-invalid:border-danger","data-[disabled]:border-hairline data-[disabled]:bg-sunken data-[disabled]:text-ink-disabled"],{variants:{selectSize:{sm:"h-7 px-2 text-meta focus-visible:outline-offset-1!",md:"h-8 px-3 text-body-sm",lg:"h-9 px-3 text-body"}},defaultVariants:{selectSize:"md"}}),XB=BA,QB=TA,zD=m.forwardRef(({className:t,children:r,selectSize:o,...a},s)=>w.jsxs(RA,{ref:s,className:se($D({selectSize:o}),t),...a,children:[r,w.jsx(IA,{asChild:!0,children:w.jsx(bd,{className:"size-4 shrink-0 text-ink-dim","aria-hidden":"true"})})]}));zD.displayName="SelectTrigger";const My=m.forwardRef(({className:t,...r},o)=>w.jsx(t3,{ref:o,className:se("flex cursor-default items-center justify-center py-1 text-ink-dim",t),...r,children:w.jsx(ix,{className:"size-4","aria-hidden":"true"})}));My.displayName="SelectScrollUpButton";const Oy=m.forwardRef(({className:t,...r},o)=>w.jsx(n3,{ref:o,className:se("flex cursor-default items-center justify-center py-1 text-ink-dim",t),...r,children:w.jsx(bd,{className:"size-4","aria-hidden":"true"})}));Oy.displayName="SelectScrollDownButton";const HD=m.forwardRef(({className:t,children:r,position:o="popper",...a},s)=>w.jsx(LA,{children:w.jsxs(jA,{ref:s,position:o,className:se("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md","border border-hairline bg-elevated shadow-overlay",o==="popper"&&"data-[side=bottom]:mt-1.5 data-[side=top]:mb-1.5",t),...a,children:[w.jsx(My,{}),w.jsx(UA,{className:se("p-1",o==="popper"&&"w-full min-w-(--radix-select-trigger-width)"),children:r}),w.jsx(Oy,{})]})}));HD.displayName="SelectContent";const VD=m.forwardRef(({className:t,...r},o)=>w.jsx(XA,{ref:o,className:se("px-2 py-1.5 pl-8 text-meta text-ink-dim",t),...r}));VD.displayName="SelectLabel";const UD=m.forwardRef(({className:t,children:r,...o},a)=>w.jsxs(qA,{ref:a,className:se("relative flex w-full select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8","text-body-sm text-ink transition-colors duration-fast","data-[highlighted]:bg-accent-wash","data-[disabled]:pointer-events-none data-[disabled]:text-ink-disabled",t),...o,children:[w.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:w.jsx(e3,{children:w.jsx(xd,{className:"size-4 text-accent","aria-hidden":"true"})})}),w.jsx(ZA,{children:r})]}));UD.displayName="SelectItem";const GD=m.forwardRef(({className:t,...r},o)=>w.jsx(r3,{ref:o,className:se("-mx-1 my-1 h-px bg-hairline",t),...r}));GD.displayName="SelectSeparator";const KD=m.forwardRef(({className:t,orientation:r="horizontal",decorative:o=!0,...a},s)=>w.jsx(c3,{ref:s,orientation:r,decorative:o,className:se("shrink-0 bg-hairline",r==="horizontal"?"h-px w-full":"h-full w-px",t),...a}));KD.displayName="Separator";const $r=new Map,pd=new Set;let Ny="";function YD(){return Ny}function hg(){Ny=[...$r.keys()].sort().join(",");for(const t of pd)t()}function XD(t){$r.set(t,($r.get(t)??0)+1),hg();let r=!1;return()=>{if(r)return;r=!0;const o=($r.get(t)??1)-1;o>0?$r.set(t,o):$r.delete(t),hg()}}function gg(){return $r.size>0}function Ly(t){return pd.add(t),()=>{pd.delete(t)}}function QD(t,r){const o=`${r}:${m.useId()}`;m.useEffect(()=>{if(t)return XD(o)},[o,t])}function qB(){return m.useSyncExternalStore(m.useCallback(Ly,[]),gg,gg)}function ZB(){return m.useSyncExternalStore(m.useCallback(Ly,[]),YD,()=>"")}const qD=Yr(["fixed z-50 flex flex-col gap-4 bg-elevated p-6 shadow-overlay"],{variants:{side:{top:"inset-x-0 top-0 border-hairline border-b",bottom:"inset-x-0 bottom-0 border-hairline border-t",left:"inset-y-0 left-0 h-full w-3/4 max-w-sm border-hairline border-r",right:"inset-y-0 right-0 h-full w-3/4 max-w-sm border-hairline border-l"}},defaultVariants:{side:"right"}}),JB=({open:t,...r})=>(QD(t===!0,"sheet"),w.jsx(Lv,{open:t,...r})),ZD=$v,jy=m.forwardRef(({className:t,...r},o)=>w.jsx(zv,{ref:o,className:se("fixed inset-0 z-50 bg-scrim",t),...r}));jy.displayName="SheetOverlay";const JD=m.forwardRef(({className:t,children:r,side:o="right",showClose:a=!0,...s},c)=>w.jsxs(ZD,{children:[w.jsx(jy,{}),w.jsxs(Hv,{ref:c,className:se(qD({side:o}),t),...s,children:[r,a?w.jsx(Rd,{asChild:!0,children:w.jsx(ua,{variant:"ghost",size:"icon-sm",className:"absolute top-4 right-4","aria-label":"Close",children:w.jsx(Ed,{"aria-hidden":"true"})})}):null]})]}));JD.displayName="SheetContent";const eF=m.forwardRef(({className:t,...r},o)=>w.jsx(Uv,{ref:o,className:se("text-heading text-ink",t),...r}));eF.displayName="SheetTitle";const tF=m.forwardRef(({className:t,...r},o)=>w.jsx(Gv,{ref:o,className:se("text-body-sm text-ink-muted",t),...r}));tF.displayName="SheetDescription";const nF=({className:t,...r})=>w.jsx("div",{className:se("animate-pulse rounded-sm bg-sunken",t),...r});nF.displayName="Skeleton";const rF=m.forwardRef(({className:t,...r},o)=>w.jsx(h3,{ref:o,className:se("inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-control bg-sunken","transition-colors duration-fast ease-out-quart","data-[state=checked]:not-data-[disabled]:border-accent data-[state=checked]:not-data-[disabled]:bg-accent","data-[disabled]:border-hairline data-[disabled]:bg-sunken",t),...r,children:w.jsx(v3,{className:se("pointer-events-none block size-4 rounded-full bg-ink-muted","transition-transform duration-fast ease-out-quart","data-[state=checked]:translate-x-4","data-[state=checked]:not-data-[disabled]:bg-on-accent","data-[disabled]:bg-ink-disabled")})}));rF.displayName="Switch";const oF=m.forwardRef(({className:t,...r},o)=>w.jsx("table",{ref:o,className:se("w-full caption-bottom border-collapse",t),...r}));oF.displayName="Table";const iF=m.forwardRef(({className:t,...r},o)=>w.jsx("thead",{ref:o,className:se("[&_tr]:border-b",t),...r}));iF.displayName="TableHeader";const aF=m.forwardRef(({className:t,...r},o)=>w.jsx("tbody",{ref:o,className:se("[&_tr:last-child]:border-0",t),...r}));aF.displayName="TableBody";const sF=m.forwardRef(({className:t,...r},o)=>w.jsx("tfoot",{ref:o,className:se("border-t font-medium [&>tr]:last:border-b-0",t),...r}));sF.displayName="TableFooter";const lF=m.forwardRef(({className:t,...r},o)=>w.jsx("tr",{ref:o,className:se("border-hairline border-b",t),...r}));lF.displayName="TableRow";const cF=m.forwardRef(({className:t,...r},o)=>w.jsx("th",{ref:o,className:se("bg-sunken px-2 py-1.5 text-left align-middle font-normal text-ink-dim text-meta",t),...r}));cF.displayName="TableHead";const uF=m.forwardRef(({className:t,...r},o)=>w.jsx("td",{ref:o,className:se("px-2 py-1.5 align-middle text-body-sm",t),...r}));uF.displayName="TableCell";const dF=m.forwardRef(({className:t,...r},o)=>w.jsx("caption",{ref:o,className:se("mt-2 text-ink-dim text-meta",t),...r}));dF.displayName="TableCaption";const eP=P3,fF=m.forwardRef(({className:t,...r},o)=>w.jsx(R3,{ref:o,className:se("inline-flex h-8 w-fit items-center gap-1 rounded-md bg-sunken p-1",t),...r}));fF.displayName="TabsList";const pF=m.forwardRef(({className:t,...r},o)=>w.jsx(_3,{ref:o,className:se("inline-flex h-6 items-center justify-center gap-1.5 whitespace-nowrap","rounded-sm px-3 font-medium text-body-sm text-ink-muted","transition-colors duration-fast ease-out-quart","hover:text-ink","data-[state=active]:bg-surface data-[state=active]:text-ink","data-[disabled]:text-ink-disabled","[&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0",t),...r}));pF.displayName="TabsTrigger";const mF=m.forwardRef(({className:t,...r},o)=>w.jsx(T3,{ref:o,className:se("mt-4",t),...r}));mF.displayName="TabsContent";const tP=({id:t,labelledBy:r,children:o})=>w.jsx("div",{className:"contents",role:"tabpanel",id:t,"aria-labelledby":r,children:o}),hF=m.forwardRef(({className:t,...r},o)=>w.jsx("textarea",{ref:o,className:se("min-h-20 w-full resize-y rounded-sm border border-control bg-surface px-3 py-2","text-body-sm text-ink placeholder:text-ink-dim","transition-colors duration-fast ease-out-quart","aria-invalid:border-danger","disabled:resize-none disabled:border-hairline disabled:bg-sunken disabled:text-ink-disabled","disabled:placeholder:text-ink-disabled",t),...r}));hF.displayName="Textarea";function Gr(t,...r){const o=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(a=>o.searchParams.append("args[]",a)),`Minified MUI error #${t}; visit ${o} for the full message.`}var Ou={exports:{}},Le={};/**
186
- * @license React
187
- * react-is.production.js
188
- *
189
- * Copyright (c) Meta Platforms, Inc. and affiliates.
190
- *
191
- * This source code is licensed under the MIT license found in the
192
- * LICENSE file in the root directory of this source tree.
193
- */var vg;function gF(){if(vg)return Le;vg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function k(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case t:switch(b=b.type,b){case o:case s:case a:case h:case g:case y:return b;default:switch(b=b&&b.$$typeof,b){case u:case f:case v:case C:return b;case c:return b;default:return A}}case r:return A}}}return Le.ContextConsumer=c,Le.ContextProvider=u,Le.Element=t,Le.ForwardRef=f,Le.Fragment=o,Le.Lazy=v,Le.Memo=C,Le.Portal=r,Le.Profiler=s,Le.StrictMode=a,Le.Suspense=h,Le.SuspenseList=g,Le.isContextConsumer=function(b){return k(b)===c},Le.isContextProvider=function(b){return k(b)===u},Le.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Le.isForwardRef=function(b){return k(b)===f},Le.isFragment=function(b){return k(b)===o},Le.isLazy=function(b){return k(b)===v},Le.isMemo=function(b){return k(b)===C},Le.isPortal=function(b){return k(b)===r},Le.isProfiler=function(b){return k(b)===s},Le.isStrictMode=function(b){return k(b)===a},Le.isSuspense=function(b){return k(b)===h},Le.isSuspenseList=function(b){return k(b)===g},Le.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===s||b===a||b===h||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===C||b.$$typeof===u||b.$$typeof===c||b.$$typeof===f||b.$$typeof===E||b.getModuleId!==void 0)},Le.typeOf=k,Le}var yg;function vF(){return yg||(yg=1,Ou.exports=gF()),Ou.exports}var Wy=vF();function pr(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $y(t){if(m.isValidElement(t)||Wy.isValidElementType(t)||!pr(t))return t;const r={};return Object.keys(t).forEach(o=>{r[o]=$y(t[o])}),r}function Lt(t,r,o={clone:!0}){const a=o.clone?{...t}:t;return pr(t)&&pr(r)&&Object.keys(r).forEach(s=>{m.isValidElement(r[s])||Wy.isValidElementType(r[s])?a[s]=r[s]:pr(r[s])&&Object.prototype.hasOwnProperty.call(t,s)&&pr(t[s])?a[s]=Lt(t[s],r[s],o):o.clone?a[s]=pr(r[s])?$y(r[s]):r[s]:a[s]=r[s]}),a}const yF=t=>{const r=Object.keys(t).map(o=>({key:o,val:t[o]}))||[];return r.sort((o,a)=>o.val-a.val),r.reduce((o,a)=>({...o,[a.key]:a.val}),{})};function wF(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:a=5,...s}=t,c=yF(r),u=Object.keys(c);function f(y){return`@media (min-width:${typeof r[y]=="number"?r[y]:y}${o})`}function h(y){return`@media (max-width:${(typeof r[y]=="number"?r[y]:y)-a/100}${o})`}function g(y,E){const k=u.indexOf(E);return`@media (min-width:${typeof r[y]=="number"?r[y]:y}${o}) and (max-width:${(k!==-1&&typeof r[u[k]]=="number"?r[u[k]]:E)-a/100}${o})`}function C(y){return u.indexOf(y)+1<u.length?g(y,u[u.indexOf(y)+1]):f(y)}function v(y){const E=u.indexOf(y);return E===0?f(u[1]):E===u.length-1?h(u[E]):g(y,u[u.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:u,values:c,up:f,down:h,between:g,only:C,not:v,unit:o,...s}}function CF(t,r){if(!t.containerQueries)return r;const o=Object.keys(r).filter(a=>a.startsWith("@container")).sort((a,s)=>{const c=/min-width:\s*([0-9.]+)/;return+(a.match(c)?.[1]||0)-+(s.match(c)?.[1]||0)});return o.length?o.reduce((a,s)=>{const c=r[s];return delete a[s],a[s]=c,a},{...r}):r}function xF(t,r){return r==="@"||r.startsWith("@")&&(t.some(o=>r.startsWith(`@${o}`))||!!r.match(/^@\d/))}function bF(t,r){const o=r.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,a,s]=o,c=Number.isNaN(+a)?a||0:+a;return t.containerQueries(s).up(c)}function EF(t){const r=(c,u)=>c.replace("@media",u?`@container ${u}`:"@container");function o(c,u){c.up=(...f)=>r(t.breakpoints.up(...f),u),c.down=(...f)=>r(t.breakpoints.down(...f),u),c.between=(...f)=>r(t.breakpoints.between(...f),u),c.only=(...f)=>r(t.breakpoints.only(...f),u),c.not=(...f)=>{const h=r(t.breakpoints.not(...f),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const a={},s=c=>(o(a,c),a);return o(s),{...t,containerQueries:s}}const SF={borderRadius:4};function Vi(t,r){return r?Lt(t,r,{clone:!1}):t}const vl={xs:0,sm:600,md:900,lg:1200,xl:1536},wg={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${vl[t]}px)`},kF={containerQueries:t=>({up:r=>{let o=typeof r=="number"?r:vl[r]||r;return typeof o=="number"&&(o=`${o}px`),t?`@container ${t} (min-width:${o})`:`@container (min-width:${o})`}})};function zn(t,r,o){const a=t.theme||{};if(Array.isArray(r)){const c=a.breakpoints||wg;return r.reduce((u,f,h)=>(u[c.up(c.keys[h])]=o(r[h]),u),{})}if(typeof r=="object"){const c=a.breakpoints||wg;return Object.keys(r).reduce((u,f)=>{if(xF(c.keys,f)){const h=bF(a.containerQueries?a:kF,f);h&&(u[h]=o(r[f],f))}else if(Object.keys(c.values||vl).includes(f)){const h=c.up(f);u[h]=o(r[f],f)}else{const h=f;u[h]=r[h]}return u},{})}return o(r)}function AF(t={}){return t.keys?.reduce((o,a)=>{const s=t.up(a);return o[s]={},o},{})||{}}function DF(t,r){return t.reduce((o,a)=>{const s=o[a];return(!s||Object.keys(s).length===0)&&delete o[a],o},r)}function zy(t){if(typeof t!="string")throw new Error(Gr(7));return t.charAt(0).toUpperCase()+t.slice(1)}function yl(t,r,o=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&o){const a=`vars.${r}`.split(".").reduce((s,c)=>s&&s[c]?s[c]:null,t);if(a!=null)return a}return r.split(".").reduce((a,s)=>a&&a[s]!=null?a[s]:null,t)}function Ys(t,r,o,a=o){let s;return typeof t=="function"?s=t(o):Array.isArray(t)?s=t[o]||a:s=yl(t,o)||a,r&&(s=r(s,a,t)),s}function tt(t){const{prop:r,cssProperty:o=t.prop,themeKey:a,transform:s}=t,c=u=>{if(u[r]==null)return null;const f=u[r],h=u.theme,g=yl(h,a)||{};return zn(u,f,v=>{let y=Ys(g,s,v);return v===y&&typeof v=="string"&&(y=Ys(g,s,`${r}${v==="default"?"":zy(v)}`,v)),o===!1?y:{[o]:y}})};return c.propTypes={},c.filterProps=[r],c}function FF(t){const r={};return o=>(r[o]===void 0&&(r[o]=t(o)),r[o])}const BF={m:"margin",p:"padding"},PF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RF=FF(t=>{if(t.length>2)if(Cg[t])t=Cg[t];else return[t];const[r,o]=t.split(""),a=BF[r],s=PF[o]||"";return Array.isArray(s)?s.map(c=>a+c):[a+s]}),wf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wf,...Cf];function da(t,r,o,a){const s=yl(t,r,!0)??o;return typeof s=="number"||typeof s=="string"?c=>typeof c=="string"?c:typeof s=="string"?`calc(${c} * ${s})`:s*c:Array.isArray(s)?c=>{if(typeof c=="string")return c;const u=Math.abs(c),f=s[u];return c>=0?f:typeof f=="number"?-f:`-${f}`}:typeof s=="function"?s:()=>{}}function xf(t){return da(t,"spacing",8)}function fa(t,r){return typeof r=="string"||r==null?r:t(r)}function _F(t,r){return o=>t.reduce((a,s)=>(a[s]=fa(r,o),a),{})}function TF(t,r,o,a){if(!r.includes(o))return null;const s=RF(o),c=_F(s,a),u=t[o];return zn(t,u,c)}function Hy(t,r){const o=xf(t.theme);return Object.keys(t).map(a=>TF(t,r,a,o)).reduce(Vi,{})}function qe(t){return Hy(t,wf)}qe.propTypes={};qe.filterProps=wf;function Ze(t){return Hy(t,Cf)}Ze.propTypes={};Ze.filterProps=Cf;function Vy(t=8,r=xf({spacing:t})){if(t.mui)return t;const o=(...a)=>(a.length===0?[1]:a).map(c=>{const u=r(c);return typeof u=="number"?`${u}px`:u}).join(" ");return o.mui=!0,o}function wl(...t){const r=t.reduce((a,s)=>(s.filterProps.forEach(c=>{a[c]=s}),a),{}),o=a=>Object.keys(a).reduce((s,c)=>r[c]?Vi(s,r[c](a)):s,{});return o.propTypes={},o.filterProps=t.reduce((a,s)=>a.concat(s.filterProps),[]),o}function Ut(t){return typeof t!="number"?t:`${t}px solid`}function Zt(t,r){return tt({prop:t,themeKey:"borders",transform:r})}const IF=Zt("border",Ut),MF=Zt("borderTop",Ut),OF=Zt("borderRight",Ut),NF=Zt("borderBottom",Ut),LF=Zt("borderLeft",Ut),jF=Zt("borderColor"),WF=Zt("borderTopColor"),$F=Zt("borderRightColor"),zF=Zt("borderBottomColor"),HF=Zt("borderLeftColor"),VF=Zt("outline",Ut),UF=Zt("outlineColor"),Cl=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=da(t.theme,"shape.borderRadius",4),o=a=>({borderRadius:fa(r,a)});return zn(t,t.borderRadius,o)}return null};Cl.propTypes={};Cl.filterProps=["borderRadius"];wl(IF,MF,OF,NF,LF,jF,WF,$F,zF,HF,Cl,VF,UF);const xl=t=>{if(t.gap!==void 0&&t.gap!==null){const r=da(t.theme,"spacing",8),o=a=>({gap:fa(r,a)});return zn(t,t.gap,o)}return null};xl.propTypes={};xl.filterProps=["gap"];const bl=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=da(t.theme,"spacing",8),o=a=>({columnGap:fa(r,a)});return zn(t,t.columnGap,o)}return null};bl.propTypes={};bl.filterProps=["columnGap"];const El=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=da(t.theme,"spacing",8),o=a=>({rowGap:fa(r,a)});return zn(t,t.rowGap,o)}return null};El.propTypes={};El.filterProps=["rowGap"];const GF=tt({prop:"gridColumn"}),KF=tt({prop:"gridRow"}),YF=tt({prop:"gridAutoFlow"}),XF=tt({prop:"gridAutoColumns"}),QF=tt({prop:"gridAutoRows"}),qF=tt({prop:"gridTemplateColumns"}),ZF=tt({prop:"gridTemplateRows"}),JF=tt({prop:"gridTemplateAreas"}),e4=tt({prop:"gridArea"});wl(xl,bl,El,GF,KF,YF,XF,QF,qF,ZF,JF,e4);function zo(t,r){return r==="grey"?r:t}const t4=tt({prop:"color",themeKey:"palette",transform:zo}),n4=tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),r4=tt({prop:"backgroundColor",themeKey:"palette",transform:zo});wl(t4,n4,r4);function Nt(t){return t<=1&&t!==0?`${t*100}%`:t}const o4=tt({prop:"width",transform:Nt}),bf=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=o=>{const a=t.theme?.breakpoints?.values?.[o]||vl[o];return a?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Nt(o)}};return zn(t,t.maxWidth,r)}return null};bf.filterProps=["maxWidth"];const i4=tt({prop:"minWidth",transform:Nt}),a4=tt({prop:"height",transform:Nt}),s4=tt({prop:"maxHeight",transform:Nt}),l4=tt({prop:"minHeight",transform:Nt});tt({prop:"size",cssProperty:"width",transform:Nt});tt({prop:"size",cssProperty:"height",transform:Nt});const c4=tt({prop:"boxSizing"});wl(o4,bf,i4,a4,s4,l4,c4);const Sl={border:{themeKey:"borders",transform:Ut},borderTop:{themeKey:"borders",transform:Ut},borderRight:{themeKey:"borders",transform:Ut},borderBottom:{themeKey:"borders",transform:Ut},borderLeft:{themeKey:"borders",transform:Ut},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ut},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cl},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Ze},pt:{style:Ze},pr:{style:Ze},pb:{style:Ze},pl:{style:Ze},px:{style:Ze},py:{style:Ze},padding:{style:Ze},paddingTop:{style:Ze},paddingRight:{style:Ze},paddingBottom:{style:Ze},paddingLeft:{style:Ze},paddingX:{style:Ze},paddingY:{style:Ze},paddingInline:{style:Ze},paddingInlineStart:{style:Ze},paddingInlineEnd:{style:Ze},paddingBlock:{style:Ze},paddingBlockStart:{style:Ze},paddingBlockEnd:{style:Ze},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xl},rowGap:{style:El},columnGap:{style:bl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nt},maxWidth:{style:bf},minWidth:{transform:Nt},height:{transform:Nt},maxHeight:{transform:Nt},minHeight:{transform:Nt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function u4(...t){const r=t.reduce((a,s)=>a.concat(Object.keys(s)),[]),o=new Set(r);return t.every(a=>o.size===Object.keys(a).length)}function d4(t,r){return typeof t=="function"?t(r):t}function f4(){function t(o,a,s,c){const u={[o]:a,theme:s},f=c[o];if(!f)return{[o]:a};const{cssProperty:h=o,themeKey:g,transform:C,style:v}=f;if(a==null)return null;if(g==="typography"&&a==="inherit")return{[o]:a};const y=yl(s,g)||{};return v?v(u):zn(u,a,k=>{let b=Ys(y,C,k);return k===b&&typeof k=="string"&&(b=Ys(y,C,`${o}${k==="default"?"":zy(k)}`,k)),h===!1?b:{[h]:b}})}function r(o){const{sx:a,theme:s={}}=o||{};if(!a)return null;const c=s.unstable_sxConfig??Sl;function u(f){let h=f;if(typeof f=="function")h=f(s);else if(typeof f!="object")return f;if(!h)return null;const g=AF(s.breakpoints),C=Object.keys(g);let v=g;return Object.keys(h).forEach(y=>{const E=d4(h[y],s);if(E!=null)if(typeof E=="object")if(c[y])v=Vi(v,t(y,E,s,c));else{const k=zn({theme:s},E,b=>({[y]:b}));u4(k,E)?v[y]=r({sx:E,theme:s}):v=Vi(v,k)}else v=Vi(v,t(y,E,s,c))}),CF(s,DF(C,v))}return Array.isArray(a)?a.map(u):u(a)}return r}const kl=f4();kl.filterProps=["sx"];function p4(t,r){const o=this;if(o.vars){if(!o.colorSchemes?.[t]||typeof o.getColorSchemeSelector!="function")return{};let a=o.getColorSchemeSelector(t);return a==="&"?r:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:r})}return o.palette.mode===t?r:{}}function m4(t={},...r){const{breakpoints:o={},palette:a={},spacing:s,shape:c={},...u}=t,f=wF(o),h=Vy(s);let g=Lt({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:h,shape:{...SF,...c}},u);return g=EF(g),g.applyStyles=p4,g=r.reduce((C,v)=>Lt(C,v),g),g.unstable_sxConfig={...Sl,...u?.unstable_sxConfig},g.unstable_sx=function(v){return kl({sx:v,theme:this})},g}function h4(t,r=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,o))}function Ef(t,r=0,o=1){return h4(t,r,o)}function g4(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let o=t.match(r);return o&&o[0].length===1&&(o=o.map(a=>a+a)),o?`rgb${o.length===4?"a":""}(${o.map((a,s)=>s<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function wr(t){if(t.type)return t;if(t.charAt(0)==="#")return wr(g4(t));const r=t.indexOf("("),o=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Gr(9,t));let a=t.substring(r+1,t.length-1),s;if(o==="color"){if(a=a.split(" "),s=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(Gr(10,s))}else a=a.split(",");return a=a.map(c=>parseFloat(c)),{type:o,values:a,colorSpace:s}}const v4=t=>{const r=wr(t);return r.values.slice(0,3).map((o,a)=>r.type.includes("hsl")&&a!==0?`${o}%`:o).join(" ")},zi=(t,r)=>{try{return v4(t)}catch{return t}};function Al(t){const{type:r,colorSpace:o}=t;let{values:a}=t;return r.includes("rgb")?a=a.map((s,c)=>c<3?parseInt(s,10):s):r.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),r.includes("color")?a=`${o} ${a.join(" ")}`:a=`${a.join(", ")}`,`${r}(${a})`}function Uy(t){t=wr(t);const{values:r}=t,o=r[0],a=r[1]/100,s=r[2]/100,c=a*Math.min(s,1-s),u=(g,C=(g+o/30)%12)=>s-c*Math.max(Math.min(C-3,9-C,1),-1);let f="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return t.type==="hsla"&&(f+="a",h.push(r[3])),Al({type:f,values:h})}function md(t){t=wr(t);let r=t.type==="hsl"||t.type==="hsla"?wr(Uy(t)).values:t.values;return r=r.map(o=>(t.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function y4(t,r){const o=md(t),a=md(r);return(Math.max(o,a)+.05)/(Math.min(o,a)+.05)}function w4(t,r){return t=wr(t),r=Ef(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,Al(t)}function Ms(t,r,o){try{return w4(t,r)}catch{return t}}function Sf(t,r){if(t=wr(t),r=Ef(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]*=1-r;return Al(t)}function je(t,r,o){try{return Sf(t,r)}catch{return t}}function kf(t,r){if(t=wr(t),r=Ef(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let o=0;o<3;o+=1)t.values[o]+=(255-t.values[o])*r;else if(t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]+=(1-t.values[o])*r;return Al(t)}function We(t,r,o){try{return kf(t,r)}catch{return t}}function C4(t,r=.15){return md(t)>.5?Sf(t,r):kf(t,r)}function Os(t,r,o){try{return C4(t,r)}catch{return t}}function x4(t=""){function r(...a){if(!a.length)return"";const s=a[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${r(...a.slice(1))})`:`, ${s}`}return(a,...s)=>`var(--${t?`${t}-`:""}${a}${r(...s)})`}const xg=(t,r,o,a=[])=>{let s=t;r.forEach((c,u)=>{u===r.length-1?Array.isArray(s)?s[Number(c)]=o:s&&typeof s=="object"&&(s[c]=o):s&&typeof s=="object"&&(s[c]||(s[c]=a.includes(c)?[]:{}),s=s[c])})},b4=(t,r,o)=>{function a(s,c=[],u=[]){Object.entries(s).forEach(([f,h])=>{(!o||o&&!o([...c,f]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?a(h,[...c,f],Array.isArray(h)?[...u,f]:u):r([...c,f],h,u))})}a(t)},E4=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>t.includes(a))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Nu(t,r){const{prefix:o,shouldSkipGeneratingVar:a}=r||{},s={},c={},u={};return b4(t,(f,h,g)=>{if((typeof h=="string"||typeof h=="number")&&(!a||!a(f,h))){const C=`--${o?`${o}-`:""}${f.join("-")}`,v=E4(f,h);Object.assign(s,{[C]:v}),xg(c,f,`var(${C})`,g),xg(u,f,`var(${C}, ${v})`,g)}},f=>f[0]==="vars"),{css:s,vars:c,varsWithDefaults:u}}function S4(t,r={}){const{getSelector:o=A,disableCssColorScheme:a,colorSchemeSelector:s}=r,{colorSchemes:c={},components:u,defaultColorScheme:f="light",...h}=t,{vars:g,css:C,varsWithDefaults:v}=Nu(h,r);let y=v;const E={},{[f]:k,...b}=c;if(Object.entries(b||{}).forEach(([B,F])=>{const{vars:N,css:W,varsWithDefaults:H}=Nu(F,r);y=Lt(y,H),E[B]={css:W,vars:N}}),k){const{css:B,vars:F,varsWithDefaults:N}=Nu(k,r);y=Lt(y,N),E[f]={css:B,vars:F}}function A(B,F){let N=s;if(s==="class"&&(N=".%s"),s==="data"&&(N="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(N=`[${s}="%s"]`),B){if(N==="media")return t.defaultColorScheme===B?":root":{[`@media (prefers-color-scheme: ${c[B]?.palette?.mode||B})`]:{":root":F}};if(N)return t.defaultColorScheme===B?`:root, ${N.replace("%s",String(B))}`:N.replace("%s",String(B))}return":root"}return{vars:y,generateThemeVars:()=>{let B={...g};return Object.entries(E).forEach(([,{vars:F}])=>{B=Lt(B,F)}),B},generateStyleSheets:()=>{const B=[],F=t.defaultColorScheme||"light";function N(j,K){Object.keys(K).length&&B.push(typeof j=="string"?{[j]:{...K}}:j)}N(o(void 0,{...C}),C);const{[F]:W,...H}=E;if(W){const{css:j}=W,K=c[F]?.palette?.mode,S=!a&&K?{colorScheme:K,...j}:{...j};N(o(F,{...S}),S)}return Object.entries(H).forEach(([j,{css:K}])=>{const S=c[j]?.palette?.mode,G=!a&&S?{colorScheme:S,...K}:{...K};N(o(j,{...G}),G)}),B}}}function k4(t){return function(o){return t==="media"?`@media (prefers-color-scheme: ${o})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${o}"] &`:t==="class"?`.${o} &`:t==="data"?`[data-${o}] &`:`${t.replace("%s",o)} &`:"&"}}const ea={black:"#000",white:"#fff"},A4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},_o={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},To={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},$i={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Io={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Mo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Oo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Gy(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ea.white,default:ea.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const D4=Gy();function Ky(){return{text:{primary:ea.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ea.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const bg=Ky();function Eg(t,r,o,a){const s=a.light||a,c=a.dark||a*1.5;t[r]||(t.hasOwnProperty(o)?t[r]=t[o]:r==="light"?t.light=kf(t.main,s):r==="dark"&&(t.dark=Sf(t.main,c)))}function F4(t="light"){return t==="dark"?{main:Io[200],light:Io[50],dark:Io[400]}:{main:Io[700],light:Io[400],dark:Io[800]}}function B4(t="light"){return t==="dark"?{main:_o[200],light:_o[50],dark:_o[400]}:{main:_o[500],light:_o[300],dark:_o[700]}}function P4(t="light"){return t==="dark"?{main:To[500],light:To[300],dark:To[700]}:{main:To[700],light:To[400],dark:To[800]}}function R4(t="light"){return t==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:Mo[700],light:Mo[500],dark:Mo[900]}}function _4(t="light"){return t==="dark"?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[800],light:Oo[500],dark:Oo[900]}}function T4(t="light"){return t==="dark"?{main:$i[400],light:$i[300],dark:$i[700]}:{main:"#ed6c02",light:$i[500],dark:$i[900]}}function Af(t){const{mode:r="light",contrastThreshold:o=3,tonalOffset:a=.2,...s}=t,c=t.primary||F4(r),u=t.secondary||B4(r),f=t.error||P4(r),h=t.info||R4(r),g=t.success||_4(r),C=t.warning||T4(r);function v(b){return y4(b,bg.text.primary)>=o?bg.text.primary:D4.text.primary}const y=({color:b,name:A,mainShade:_=500,lightShade:R=300,darkShade:B=700})=>{if(b={...b},!b.main&&b[_]&&(b.main=b[_]),!b.hasOwnProperty("main"))throw new Error(Gr(11,A?` (${A})`:"",_));if(typeof b.main!="string")throw new Error(Gr(12,A?` (${A})`:"",JSON.stringify(b.main)));return Eg(b,"light",R,a),Eg(b,"dark",B,a),b.contrastText||(b.contrastText=v(b.main)),b};let E;return r==="light"?E=Gy():r==="dark"&&(E=Ky()),Lt({common:{...ea},mode:r,primary:y({color:c,name:"primary"}),secondary:y({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:f,name:"error"}),warning:y({color:C,name:"warning"}),info:y({color:h,name:"info"}),success:y({color:g,name:"success"}),grey:A4,contrastThreshold:o,getContrastText:v,augmentColor:y,tonalOffset:a,...E},s)}function I4(t){const r={};return Object.entries(t).forEach(a=>{const[s,c]=a;typeof c=="object"&&(r[s]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),r}function M4(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function O4(t){return Math.round(t*1e5)/1e5}const Sg={textTransform:"uppercase"},kg='"Roboto", "Helvetica", "Arial", sans-serif';function N4(t,r){const{fontFamily:o=kg,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:g,pxToRem:C,...v}=typeof r=="function"?r(t):r,y=a/14,E=C||(A=>`${A/h*y}rem`),k=(A,_,R,B,F)=>({fontFamily:o,fontWeight:A,fontSize:E(_),lineHeight:R,...o===kg?{letterSpacing:`${O4(B/_)}em`}:{},...F,...g}),b={h1:k(s,96,1.167,-1.5),h2:k(s,60,1.2,-.5),h3:k(c,48,1.167,0),h4:k(c,34,1.235,.25),h5:k(c,24,1.334,0),h6:k(u,20,1.6,.15),subtitle1:k(c,16,1.75,.15),subtitle2:k(u,14,1.57,.1),body1:k(c,16,1.5,.15),body2:k(c,14,1.43,.15),button:k(u,14,1.75,.4,Sg),caption:k(c,12,1.66,.4),overline:k(c,12,2.66,1,Sg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lt({htmlFontSize:h,pxToRem:E,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:f,...b},v,{clone:!1})}const L4=.2,j4=.14,W4=.12;function Ge(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${L4})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${j4})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${W4})`].join(",")}const $4=["none",Ge(0,2,1,-1,0,1,1,0,0,1,3,0),Ge(0,3,1,-2,0,2,2,0,0,1,5,0),Ge(0,3,3,-2,0,3,4,0,0,1,8,0),Ge(0,2,4,-1,0,4,5,0,0,1,10,0),Ge(0,3,5,-1,0,5,8,0,0,1,14,0),Ge(0,3,5,-1,0,6,10,0,0,1,18,0),Ge(0,4,5,-2,0,7,10,1,0,2,16,1),Ge(0,5,5,-3,0,8,10,1,0,3,14,2),Ge(0,5,6,-3,0,9,12,1,0,3,16,2),Ge(0,6,6,-3,0,10,14,1,0,4,18,3),Ge(0,6,7,-4,0,11,15,1,0,4,20,3),Ge(0,7,8,-4,0,12,17,2,0,5,22,4),Ge(0,7,8,-4,0,13,19,2,0,5,24,4),Ge(0,7,9,-4,0,14,21,2,0,5,26,4),Ge(0,8,9,-5,0,15,22,2,0,6,28,5),Ge(0,8,10,-5,0,16,24,2,0,6,30,5),Ge(0,8,11,-5,0,17,26,2,0,6,32,5),Ge(0,9,11,-5,0,18,28,2,0,7,34,6),Ge(0,9,12,-6,0,19,29,2,0,7,36,6),Ge(0,10,13,-6,0,20,31,3,0,8,38,7),Ge(0,10,13,-6,0,21,33,3,0,8,40,7),Ge(0,10,14,-6,0,22,35,3,0,8,42,7),Ge(0,11,14,-7,0,23,36,3,0,9,44,8),Ge(0,11,15,-7,0,24,38,3,0,9,46,8)],z4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ag(t){return`${Math.round(t)}ms`}function V4(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function U4(t){const r={...z4,...t.easing},o={...H4,...t.duration};return{getAutoHeightDuration:V4,create:(s=["all"],c={})=>{const{duration:u=o.standard,easing:f=r.easeInOut,delay:h=0,...g}=c;return(Array.isArray(s)?s:[s]).map(C=>`${C} ${typeof u=="string"?u:Ag(u)} ${f} ${typeof h=="string"?h:Ag(h)}`).join(",")},...t,easing:r,duration:o}}const G4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function K4(t){return pr(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Yy(t={}){const r={...t};function o(a){const s=Object.entries(a);for(let c=0;c<s.length;c++){const[u,f]=s[c];!K4(f)||u.startsWith("unstable_")?delete a[u]:pr(f)&&(a[u]={...f},o(a[u]))}}return o(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
194
-
195
- const theme = ${JSON.stringify(r,null,2)};
196
-
197
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
198
- theme.transitions = createTransitions(theme.transitions || {});
199
-
200
- export default theme;`}function hd(t={},...r){const{breakpoints:o,mixins:a={},spacing:s,palette:c={},transitions:u={},typography:f={},shape:h,...g}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Gr(20));const C=Af(c),v=m4(t);let y=Lt(v,{mixins:M4(v.breakpoints,a),palette:C,shadows:$4.slice(),typography:N4(C,f),transitions:U4(u),zIndex:{...G4}});return y=Lt(y,g),y=r.reduce((E,k)=>Lt(E,k),y),y.unstable_sxConfig={...Sl,...g?.unstable_sxConfig},y.unstable_sx=function(k){return kl({sx:k,theme:this})},y.toRuntimeSource=Yy,y}function Y4(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const X4=[...Array(25)].map((t,r)=>{if(r===0)return"none";const o=Y4(r);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function Xy(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Qy(t){return t==="dark"?X4:[]}function Q4(t){const{palette:r={mode:"light"},opacity:o,overlays:a,...s}=t,c=Af(r);return{palette:c,opacity:{...Xy(c.mode),...o},overlays:a||Qy(c.mode),...s}}function q4(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Z4=t=>[...[...Array(25)].map((r,o)=>`--${t?`${t}-`:""}overlays-${o}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],J4=t=>(r,o)=>{const a=t.rootSelector||":root",s=t.colorSchemeSelector;let c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(c=`[${s}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const u={};return Z4(t.cssVarPrefix).forEach(f=>{u[f]=o[f],delete o[f]}),c==="media"?{[a]:o,"@media (prefers-color-scheme: dark)":{[a]:u}}:c?{[c.replace("%s",r)]:u,[`${a}, ${c.replace("%s",r)}`]:o}:{[a]:{...o,...u}}}if(c&&c!=="media")return`${a}, ${c.replace("%s",String(r))}`}else if(r){if(c==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[a]:o}};if(c)return c.replace("%s",String(r))}return a};function e5(t,r){r.forEach(o=>{t[o]||(t[o]={})})}function U(t,r,o){!t[r]&&o&&(t[r]=o)}function Hi(t){return typeof t!="string"||!t.startsWith("hsl")?t:Uy(t)}function Tn(t,r){`${r}Channel`in t||(t[`${r}Channel`]=zi(Hi(t[r])))}function t5(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const yn=t=>{try{return t()}catch{}},n5=(t="mui")=>x4(t);function Lu(t,r,o,a){if(!r)return;r=r===!0?{}:r;const s=a==="dark"?"dark":"light";if(!o){t[a]=Q4({...r,palette:{mode:s,...r?.palette}});return}const{palette:c,...u}=hd({...o,palette:{mode:s,...r?.palette}});return t[a]={...r,palette:c,opacity:{...Xy(s),...r?.opacity},overlays:r?.overlays||Qy(s)},u}function r5(t={},...r){const{colorSchemes:o={light:!0},defaultColorScheme:a,disableCssColorScheme:s=!1,cssVarPrefix:c="mui",shouldSkipGeneratingVar:u=q4,colorSchemeSelector:f=o.light&&o.dark?"media":void 0,rootSelector:h=":root",...g}=t,C=Object.keys(o)[0],v=a||(o.light&&C!=="light"?"light":C),y=n5(c),{[v]:E,light:k,dark:b,...A}=o,_={...A};let R=E;if((v==="dark"&&!("dark"in o)||v==="light"&&!("light"in o))&&(R=!0),!R)throw new Error(Gr(21,v));const B=Lu(_,R,g,v);k&&!_.light&&Lu(_,k,void 0,"light"),b&&!_.dark&&Lu(_,b,void 0,"dark");let F={defaultColorScheme:v,...B,cssVarPrefix:c,colorSchemeSelector:f,rootSelector:h,getCssVar:y,colorSchemes:_,font:{...I4(B.typography),...B.font},spacing:t5(g.spacing)};Object.keys(F.colorSchemes).forEach(K=>{const S=F.colorSchemes[K].palette,G=Y=>{const te=Y.split("-"),ie=te[1],he=te[2];return y(Y,S[ie][he])};if(S.mode==="light"&&(U(S.common,"background","#fff"),U(S.common,"onBackground","#000")),S.mode==="dark"&&(U(S.common,"background","#000"),U(S.common,"onBackground","#fff")),e5(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){U(S.Alert,"errorColor",je(S.error.light,.6)),U(S.Alert,"infoColor",je(S.info.light,.6)),U(S.Alert,"successColor",je(S.success.light,.6)),U(S.Alert,"warningColor",je(S.warning.light,.6)),U(S.Alert,"errorFilledBg",G("palette-error-main")),U(S.Alert,"infoFilledBg",G("palette-info-main")),U(S.Alert,"successFilledBg",G("palette-success-main")),U(S.Alert,"warningFilledBg",G("palette-warning-main")),U(S.Alert,"errorFilledColor",yn(()=>S.getContrastText(S.error.main))),U(S.Alert,"infoFilledColor",yn(()=>S.getContrastText(S.info.main))),U(S.Alert,"successFilledColor",yn(()=>S.getContrastText(S.success.main))),U(S.Alert,"warningFilledColor",yn(()=>S.getContrastText(S.warning.main))),U(S.Alert,"errorStandardBg",We(S.error.light,.9)),U(S.Alert,"infoStandardBg",We(S.info.light,.9)),U(S.Alert,"successStandardBg",We(S.success.light,.9)),U(S.Alert,"warningStandardBg",We(S.warning.light,.9)),U(S.Alert,"errorIconColor",G("palette-error-main")),U(S.Alert,"infoIconColor",G("palette-info-main")),U(S.Alert,"successIconColor",G("palette-success-main")),U(S.Alert,"warningIconColor",G("palette-warning-main")),U(S.AppBar,"defaultBg",G("palette-grey-100")),U(S.Avatar,"defaultBg",G("palette-grey-400")),U(S.Button,"inheritContainedBg",G("palette-grey-300")),U(S.Button,"inheritContainedHoverBg",G("palette-grey-A100")),U(S.Chip,"defaultBorder",G("palette-grey-400")),U(S.Chip,"defaultAvatarColor",G("palette-grey-700")),U(S.Chip,"defaultIconColor",G("palette-grey-700")),U(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(S.LinearProgress,"primaryBg",We(S.primary.main,.62)),U(S.LinearProgress,"secondaryBg",We(S.secondary.main,.62)),U(S.LinearProgress,"errorBg",We(S.error.main,.62)),U(S.LinearProgress,"infoBg",We(S.info.main,.62)),U(S.LinearProgress,"successBg",We(S.success.main,.62)),U(S.LinearProgress,"warningBg",We(S.warning.main,.62)),U(S.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),U(S.Slider,"primaryTrack",We(S.primary.main,.62)),U(S.Slider,"secondaryTrack",We(S.secondary.main,.62)),U(S.Slider,"errorTrack",We(S.error.main,.62)),U(S.Slider,"infoTrack",We(S.info.main,.62)),U(S.Slider,"successTrack",We(S.success.main,.62)),U(S.Slider,"warningTrack",We(S.warning.main,.62));const Y=Os(S.background.default,.8);U(S.SnackbarContent,"bg",Y),U(S.SnackbarContent,"color",yn(()=>S.getContrastText(Y))),U(S.SpeedDialAction,"fabHoverBg",Os(S.background.paper,.15)),U(S.StepConnector,"border",G("palette-grey-400")),U(S.StepContent,"border",G("palette-grey-400")),U(S.Switch,"defaultColor",G("palette-common-white")),U(S.Switch,"defaultDisabledColor",G("palette-grey-100")),U(S.Switch,"primaryDisabledColor",We(S.primary.main,.62)),U(S.Switch,"secondaryDisabledColor",We(S.secondary.main,.62)),U(S.Switch,"errorDisabledColor",We(S.error.main,.62)),U(S.Switch,"infoDisabledColor",We(S.info.main,.62)),U(S.Switch,"successDisabledColor",We(S.success.main,.62)),U(S.Switch,"warningDisabledColor",We(S.warning.main,.62)),U(S.TableCell,"border",We(Ms(S.divider,1),.88)),U(S.Tooltip,"bg",Ms(S.grey[700],.92))}if(S.mode==="dark"){U(S.Alert,"errorColor",We(S.error.light,.6)),U(S.Alert,"infoColor",We(S.info.light,.6)),U(S.Alert,"successColor",We(S.success.light,.6)),U(S.Alert,"warningColor",We(S.warning.light,.6)),U(S.Alert,"errorFilledBg",G("palette-error-dark")),U(S.Alert,"infoFilledBg",G("palette-info-dark")),U(S.Alert,"successFilledBg",G("palette-success-dark")),U(S.Alert,"warningFilledBg",G("palette-warning-dark")),U(S.Alert,"errorFilledColor",yn(()=>S.getContrastText(S.error.dark))),U(S.Alert,"infoFilledColor",yn(()=>S.getContrastText(S.info.dark))),U(S.Alert,"successFilledColor",yn(()=>S.getContrastText(S.success.dark))),U(S.Alert,"warningFilledColor",yn(()=>S.getContrastText(S.warning.dark))),U(S.Alert,"errorStandardBg",je(S.error.light,.9)),U(S.Alert,"infoStandardBg",je(S.info.light,.9)),U(S.Alert,"successStandardBg",je(S.success.light,.9)),U(S.Alert,"warningStandardBg",je(S.warning.light,.9)),U(S.Alert,"errorIconColor",G("palette-error-main")),U(S.Alert,"infoIconColor",G("palette-info-main")),U(S.Alert,"successIconColor",G("palette-success-main")),U(S.Alert,"warningIconColor",G("palette-warning-main")),U(S.AppBar,"defaultBg",G("palette-grey-900")),U(S.AppBar,"darkBg",G("palette-background-paper")),U(S.AppBar,"darkColor",G("palette-text-primary")),U(S.Avatar,"defaultBg",G("palette-grey-600")),U(S.Button,"inheritContainedBg",G("palette-grey-800")),U(S.Button,"inheritContainedHoverBg",G("palette-grey-700")),U(S.Chip,"defaultBorder",G("palette-grey-700")),U(S.Chip,"defaultAvatarColor",G("palette-grey-300")),U(S.Chip,"defaultIconColor",G("palette-grey-300")),U(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(S.LinearProgress,"primaryBg",je(S.primary.main,.5)),U(S.LinearProgress,"secondaryBg",je(S.secondary.main,.5)),U(S.LinearProgress,"errorBg",je(S.error.main,.5)),U(S.LinearProgress,"infoBg",je(S.info.main,.5)),U(S.LinearProgress,"successBg",je(S.success.main,.5)),U(S.LinearProgress,"warningBg",je(S.warning.main,.5)),U(S.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),U(S.Slider,"primaryTrack",je(S.primary.main,.5)),U(S.Slider,"secondaryTrack",je(S.secondary.main,.5)),U(S.Slider,"errorTrack",je(S.error.main,.5)),U(S.Slider,"infoTrack",je(S.info.main,.5)),U(S.Slider,"successTrack",je(S.success.main,.5)),U(S.Slider,"warningTrack",je(S.warning.main,.5));const Y=Os(S.background.default,.98);U(S.SnackbarContent,"bg",Y),U(S.SnackbarContent,"color",yn(()=>S.getContrastText(Y))),U(S.SpeedDialAction,"fabHoverBg",Os(S.background.paper,.15)),U(S.StepConnector,"border",G("palette-grey-600")),U(S.StepContent,"border",G("palette-grey-600")),U(S.Switch,"defaultColor",G("palette-grey-300")),U(S.Switch,"defaultDisabledColor",G("palette-grey-600")),U(S.Switch,"primaryDisabledColor",je(S.primary.main,.55)),U(S.Switch,"secondaryDisabledColor",je(S.secondary.main,.55)),U(S.Switch,"errorDisabledColor",je(S.error.main,.55)),U(S.Switch,"infoDisabledColor",je(S.info.main,.55)),U(S.Switch,"successDisabledColor",je(S.success.main,.55)),U(S.Switch,"warningDisabledColor",je(S.warning.main,.55)),U(S.TableCell,"border",je(Ms(S.divider,1),.68)),U(S.Tooltip,"bg",Ms(S.grey[700],.92))}Tn(S.background,"default"),Tn(S.background,"paper"),Tn(S.common,"background"),Tn(S.common,"onBackground"),Tn(S,"divider"),Object.keys(S).forEach(Y=>{const te=S[Y];Y!=="tonalOffset"&&te&&typeof te=="object"&&(te.main&&U(S[Y],"mainChannel",zi(Hi(te.main))),te.light&&U(S[Y],"lightChannel",zi(Hi(te.light))),te.dark&&U(S[Y],"darkChannel",zi(Hi(te.dark))),te.contrastText&&U(S[Y],"contrastTextChannel",zi(Hi(te.contrastText))),Y==="text"&&(Tn(S[Y],"primary"),Tn(S[Y],"secondary")),Y==="action"&&(te.active&&Tn(S[Y],"active"),te.selected&&Tn(S[Y],"selected")))})}),F=r.reduce((K,S)=>Lt(K,S),F);const N={prefix:c,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:J4(F)},{vars:W,generateThemeVars:H,generateStyleSheets:j}=S4(F,N);return F.vars=W,Object.entries(F.colorSchemes[F.defaultColorScheme]).forEach(([K,S])=>{F[K]=S}),F.generateThemeVars=H,F.generateStyleSheets=j,F.generateSpacing=function(){return Vy(g.spacing,xf(this))},F.getColorSchemeSelector=k4(f),F.spacing=F.generateSpacing(),F.shouldSkipGeneratingVar=u,F.unstable_sxConfig={...Sl,...g?.unstable_sxConfig},F.unstable_sx=function(S){return kl({sx:S,theme:this})},F.toRuntimeSource=Yy,F}function Dg(t,r,o){t.colorSchemes&&o&&(t.colorSchemes[r]={...o!==!0&&o,palette:Af({...o===!0?{}:o.palette,mode:r})})}function o5(t={},...r){const{palette:o,cssVariables:a=!1,colorSchemes:s=o?void 0:{light:!0},defaultColorScheme:c=o?.mode,...u}=t,f=c||"light",h=s?.[f],g={...s,...o?{[f]:{...typeof h!="boolean"&&h,palette:o}}:void 0};if(a===!1){if(!("colorSchemes"in t))return hd(t,...r);let C=o;"palette"in t||g[f]&&(g[f]!==!0?C=g[f].palette:f==="dark"&&(C={mode:"dark"}));const v=hd({...t,palette:C},...r);return v.defaultColorScheme=f,v.colorSchemes=g,v.palette.mode==="light"&&(v.colorSchemes.light={...g.light!==!0&&g.light,palette:v.palette},Dg(v,"dark",g.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...g.dark!==!0&&g.dark,palette:v.palette},Dg(v,"light",g.light)),v}return!o&&!("light"in g)&&f==="light"&&(g.light=!0),r5({...u,colorSchemes:g,defaultColorScheme:f,...typeof a!="boolean"&&a},...r)}const i5=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,gd=t=>{const r=i5.exec(t.trim());if(!r)throw new Error(`createBaseTheme: expected a hex colour, received "${t}". Grounds, inks, lines, accent and semantic roles must be hex so they can be mixed and contrast-measured.`);const o=r[1].length<=4?[...r[1].slice(0,3)].map(a=>a+a).join(""):r[1].slice(0,6);return[Number.parseInt(o.slice(0,2),16),Number.parseInt(o.slice(2,4),16),Number.parseInt(o.slice(4,6),16)]},a5=t=>`#${t.map(r=>Math.round(Math.min(255,Math.max(0,r))).toString(16).padStart(2,"0")).join("")}`,Xs=(t,r,o)=>{const a=gd(t),s=gd(r);return a5([a[0]+(s[0]-a[0])*o,a[1]+(s[1]-a[1])*o,a[2]+(s[2]-a[2])*o])},jo=t=>{const[r,o,a]=gd(t).map(s=>{const c=s/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*r+.7152*o+.0722*a},Fg=(t,r)=>{const o=jo(t),a=jo(r);return(Math.max(o,a)+.05)/(Math.min(o,a)+.05)},s5=t=>{const r=[t.canvas,t.surface,t.elevated,t.sunken,t.ink,t.inkMuted,t.inkDim,t.inkDisabled];let o=r[0],a=r[0];for(const s of r)jo(s)>jo(o)&&(o=s),jo(s)<jo(a)&&(a=s);return{lightest:o,darkest:a}},Ns=(t,r)=>({main:t,light:Xs(t,r.lightest,.3),dark:Xs(t,r.darkest,.3),contrastText:Fg(t,r.darkest)>=Fg(t,r.lightest)?r.darkest:r.lightest}),l5=t=>{const r=o=>Xs(t.lightest,t.darkest,o);return{50:r(.02),100:r(.08),200:r(.17),300:r(.28),400:r(.42),500:r(.55),600:r(.67),700:r(.78),800:r(.88),900:r(.96),A100:r(.08),A200:r(.17),A400:r(.42),A700:r(.78)}},c5=t=>{const r=s5(t),o=l5(r),a={opacity:1,color:t.inkDisabled,cursor:"not-allowed",pointerEvents:"auto"},s={MuiAccordionSummary:{styleOverrides:{root:{"&.Mui-disabled":a}}},MuiAutocomplete:{styleOverrides:{option:{'&[aria-disabled="true"]':a}}},MuiChip:{styleOverrides:{root:{"&.Mui-disabled":a}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":a}}},MuiPaginationItem:{styleOverrides:{root:{"&.Mui-disabled":a}}},MuiRating:{styleOverrides:{root:{"&.Mui-disabled":a}}},MuiTab:{styleOverrides:{root:{"&.Mui-disabled":a}}}};return o5({breakpoints:{values:{xs:0,sm:600,md:900,lg:1300,xl:1800}},spacing:8,shape:{borderRadius:10},shadows:Array.from({length:25},(c,u)=>u===4||u===8||u===16||u===24?t.overlayShadow:"none"),transitions:{duration:{shortest:80,shorter:120,short:180,standard:180,complex:240,enteringScreen:180,leavingScreen:120},easing:{easeInOut:"cubic-bezier(0.65, 0, 0.35, 1)",easeOut:"cubic-bezier(0.25, 1, 0.5, 1)",easeIn:"cubic-bezier(0.5, 0, 0.75, 0)",sharp:"cubic-bezier(0.16, 1, 0.3, 1)"}},palette:{mode:t.mode,background:{default:t.canvas,paper:t.surface},text:{primary:t.ink,secondary:t.inkMuted,disabled:t.inkDisabled},primary:{main:t.accent,light:t.accentHover,dark:t.accentActive,contrastText:t.onAccent},secondary:{main:t.accent,light:t.accentHover,dark:t.accentActive,contrastText:t.onAccent},success:Ns(t.success,r),warning:Ns(t.warning,r),error:Ns(t.danger,r),info:Ns(t.info,r),divider:t.hairline,grey:o,common:{black:r.darkest,white:r.lightest},action:{active:t.inkMuted,hover:t.elevated,hoverOpacity:.06,selected:t.accentWash,selectedOpacity:.12,focus:t.accentWash,focusOpacity:.12,disabled:t.inkDisabled,disabledBackground:t.sunken,disabledOpacity:1,activatedOpacity:.12}},typography:{fontFamily:'"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif',fontSize:16,h1:{fontSize:"1.75rem",lineHeight:1.2,letterSpacing:"-0.02em",fontWeight:600},h2:{fontSize:"1.75rem",lineHeight:1.2,letterSpacing:"-0.02em",fontWeight:600},h3:{fontSize:"1.25rem",lineHeight:1.3,letterSpacing:"-0.012em",fontWeight:600},h4:{fontSize:"1.25rem",lineHeight:1.3,letterSpacing:"-0.012em",fontWeight:600},h5:{fontSize:"1rem",lineHeight:1.4,letterSpacing:"-0.006em",fontWeight:600},h6:{fontSize:"1rem",lineHeight:1.4,letterSpacing:"-0.006em",fontWeight:600},subtitle1:{fontSize:"0.875rem",lineHeight:1.55,fontWeight:600},subtitle2:{fontSize:"0.8125rem",lineHeight:1.5,fontWeight:600},body1:{fontSize:"0.875rem",lineHeight:1.55},body2:{fontSize:"0.8125rem",lineHeight:1.5},caption:{fontSize:"0.75rem",lineHeight:1.45},overline:{fontSize:"0.75rem",lineHeight:1.45,letterSpacing:"0.08em",textTransform:"uppercase"},button:{fontSize:"0.8125rem",lineHeight:1.5,fontWeight:500,textTransform:"none"}},components:{...s,MuiPaper:{styleOverrides:{root:{backgroundImage:"none",backgroundColor:t.surface}}},MuiAppBar:{styleOverrides:{root:{top:0,backgroundColor:t.canvas,backgroundImage:"none",color:t.ink}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:10,paddingTop:12,paddingBottom:12,"&:hover":{backgroundColor:t.elevated},"&.Mui-selected":{backgroundColor:t.accentWash,color:t.accent,"&:hover":{backgroundColor:Xs(t.accentWash,t.accent,.18)}},"&.Mui-disabled":a}}},MuiIconButton:{styleOverrides:{root:{color:t.inkMuted,"&:hover":{backgroundColor:t.elevated,color:t.ink}}}},MuiButton:{styleOverrides:{root:{borderRadius:6,padding:"8px 16px"},contained:{boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},outlined:{borderColor:t.borderControl}}},MuiCard:{styleOverrides:{root:{backgroundColor:t.surface,borderRadius:14,border:`1px solid ${t.hairline}`}}},MuiContainer:{styleOverrides:{maxWidthLg:{maxWidth:"1300px","@media (min-width:1300px)":{maxWidth:"1300px"}},maxWidthXl:{maxWidth:"1800px","@media (min-width:1800px)":{maxWidth:"1800px"}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:t.elevated,color:t.ink,border:`1px solid ${t.hairline}`,borderRadius:6,fontSize:"0.75rem",boxShadow:t.overlayShadow},arrow:{color:t.elevated}}},MuiDivider:{styleOverrides:{root:{borderColor:t.hairline}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:t.surface,"& .MuiOutlinedInput-notchedOutline":{borderColor:t.borderControl},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:t.accent},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:t.accent},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:t.hairline}}}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:t.scrim}}}}})},u5={id:"alucard",name:"Alucard",description:"Dracula's daylight: warm parchment under an indigo accent.",palette:{mode:"light",canvas:"#F1EEDE",surface:"#F8F5EA",elevated:"#FEFDF8",sunken:"#EAE5D2",rowHover:"#EDECE5",rowSelected:"#ECE7D4",ink:"#1F1F1F",inkMuted:"#4E4937",inkDim:"#655F45",inkDisabled:"#9B937A",hairline:"#D8D3C2",borderControl:"#6C664B",accent:"#644AC9",accentHover:"#4E35B0",accentActive:"#402B91",chartBarHover:"#4A27A6",tokenCommand:"#036A96",accentWash:"#F1ECE2",onAccent:"#FFFBEB",accentAlt:"#a3144d",accentAltWash:"#F8E9EC",success:"#14710A",successWash:"#F8F7E4",successBorder:"#17830C",warning:"#813100",warningWash:"#FBF3E1",warningBorder:"#954100",danger:"#C12F21",dangerWash:"#FDF4E4",dangerBorder:"#D85041",info:"#036A96",infoWash:"#F5F5E8",infoBorder:"#037BAE",overlayShadow:"0 12px 32px -12px rgb(31 31 31 / 0.22)",scrim:"rgb(31 31 31 / 0.35)"}},d5={id:"arcade",name:"Arcade",description:"Candy RGB game states glowing on black CRT glass.",palette:{mode:"dark",canvas:"#202021",surface:"#27272A",elevated:"#2D2D31",sunken:"#1A1A1A",rowHover:"#2D2D31",rowSelected:"#303039",ink:"#E8E8E4",inkMuted:"#BEBEB9",inkDim:"#A1A19E",inkDisabled:"#56565C",hairline:"#3C3C43",borderControl:"#797981",accent:"#FFD23F",accentHover:"#FFEB59",accentActive:"#DAB113",chartBarHover:"#F3DD94",tokenCommand:"#52B4FF",accentWash:"#2A2413",onAccent:"#040406",accentAlt:"#c792ff",accentAltWash:"#2A2132",success:"#45E055",successWash:"#122615",successBorder:"#458848",warning:"#FF9430",warningWash:"#2A1C11",warningBorder:"#A46F40",danger:"#FF6660",dangerWash:"#2A1315",dangerBorder:"#B7615E",info:"#52B4FF",infoWash:"#13202C",infoBorder:"#547EA2",overlayShadow:"0 12px 32px -12px rgb(4 4 5 / 0.75)",scrim:"rgb(4 4 5 / 0.65)"}},f5={id:"arctic",name:"Arctic",description:"Slate-blue polar night lit by an aurora-green accent.",palette:{mode:"dark",canvas:"#1A2431",surface:"#232E3D",elevated:"#2A3747",sunken:"#121A25",rowHover:"#2F353E",rowSelected:"#29394E",ink:"#E3ECF4",inkMuted:"#B8CBD9",inkDim:"#95AFBF",inkDisabled:"#425666",hairline:"#33455C",borderControl:"#7187A4",accent:"#68E0A3",accentHover:"#77EEB0",accentActive:"#59D296",chartBarHover:"#A8FFE0",tokenCommand:"#7FBDE8",accentWash:"#1C332F",onAccent:"#121A25",accentAlt:"#b0a3e6",accentAltWash:"#302D3C",success:"#6CC99B",successWash:"#2C4249",successBorder:"#4F8D75",warning:"#DCB45E",warningWash:"#3B3F41",warningBorder:"#937F50",danger:"#F08D90",dangerWash:"#32262E",dangerBorder:"#BD7479",info:"#7FBDE8",infoWash:"#22344C",infoBorder:"#5D85A6",overlayShadow:"0 12px 32px -12px rgb(18 26 37 / 0.7)",scrim:"rgb(18 26 37 / 0.6)"}},p5={id:"autumn",name:"Autumn",description:"Dark oak under maple red and harvest amber.",palette:{mode:"dark",canvas:"#2C2420",surface:"#382D26",elevated:"#3D332A",sunken:"#231E1B",rowHover:"#3A342F",rowSelected:"#453429",ink:"#EDDFD0",inkMuted:"#D9C4AF",inkDim:"#B8A792",inkDisabled:"#55483A",hairline:"#4B3B32",borderControl:"#8E7A6B",accent:"#E08D4F",accentHover:"#EF9A5B",accentActive:"#D18043",chartBarHover:"#FFB978",tokenCommand:"#7FB0D3",accentWash:"#302918",onAccent:"#140E09",accentAlt:"#c599d6",accentAltWash:"#322535",success:"#A2B96A",successWash:"#373222",successBorder:"#798351",warning:"#DDAB35",warningWash:"#3F301B",warningBorder:"#9B7930",danger:"#F37F6F",dangerWash:"#331B14",dangerBorder:"#BA6658",info:"#7FB0D3",infoWash:"#233140",infoBorder:"#658194",overlayShadow:"0 12px 32px -12px rgb(20 14 9 / 0.7)",scrim:"rgb(20 14 9 / 0.6)"}},m5={id:"ayuDark",name:"Ayu Dark",description:"Ayu's night: near-black blue with a bright azure accent.",palette:{mode:"dark",canvas:"#1C2028",surface:"#242934",elevated:"#2C323E",sunken:"#18191C",rowHover:"#2D3037",rowSelected:"#2B3445",ink:"#C6C4BC",inkMuted:"#BAC5CE",inkDim:"#9DA7B2",inkDisabled:"#565B66",hairline:"#3B414B",borderControl:"#727F91",accent:"#59C2FF",accentHover:"#7DCFFF",accentActive:"#09A5FF",chartBarHover:"#77DFFF",tokenCommand:"#D2A6FF",accentWash:"#152431",onAccent:"#0D1017",accentAlt:"#C19A02",accentAltWash:"#282214",success:"#AAD94C",successWash:"#181F1F",successBorder:"#AAD94C",warning:"#FFB454",warningWash:"#232120",warningBorder:"#FFB454",danger:"#F4757C",dangerWash:"#221B23",dangerBorder:"#F07178",info:"#D2A6FF",infoWash:"#222232",infoBorder:"#D2A6FF",overlayShadow:"0 12px 32px -12px rgb(5 6 9 / 0.8)",scrim:"rgb(5 6 9 / 0.65)"}},h5={id:"ayuLight",name:"Ayu Light",description:"Ayu's daylight: white-grey paper with a deep azure accent.",palette:{mode:"light",canvas:"#E7EEF5",surface:"#F2F8FC",elevated:"#FFFFFF",sunken:"#DBE4EB",rowHover:"#E7EDF0",rowSelected:"#DCEBF4",ink:"#42464A",inkMuted:"#494C4F",inkDim:"#525C6B",inkDisabled:"#9AA3AF",hairline:"#CBD2D6",borderControl:"#758295",accent:"#125F94",accentHover:"#0E4B74",accentActive:"#1468A3",chartBarHover:"#004073",tokenCommand:"#8148B8",accentWash:"#D3E0EA",onAccent:"#FFFFFF",accentAlt:"#B8139A",accentAltWash:"#ECDFE8",success:"#516B00",successWash:"#DBE4E1",successBorder:"#536E00",warning:"#855A01",warningWash:"#E0E3E3",warningBorder:"#895C00",danger:"#B23537",dangerWash:"#E4E1E8",dangerBorder:"#B53838",info:"#7F46B6",infoWash:"#DFE1F0",infoBorder:"#8149B9",overlayShadow:"0 12px 32px -12px rgb(92 97 102 / 0.25)",scrim:"rgb(69 73 77 / 0.45)"}},g5={id:"ayuMirage",name:"Ayu Mirage",description:"Ayu's mirage: blue-grey ground with the same azure accent.",palette:{mode:"dark",canvas:"#242936",surface:"#2D3442",elevated:"#353C4B",sunken:"#191D27",rowHover:"#373B44",rowSelected:"#343F54",ink:"#D6D5CE",inkMuted:"#BED6ED",inkDim:"#A4B6CA",inkDisabled:"#707A8C",hairline:"#414B60",borderControl:"#7E8BA4",accent:"#73D0FF",accentHover:"#97DCFF",accentActive:"#23B5FF",chartBarHover:"#8EECFF",tokenCommand:"#DFBFFF",accentWash:"#2A3949",onAccent:"#1F2430",accentAlt:"#E79509",accentAltWash:"#403525",success:"#D5FF80",successWash:"#2F363A",successBorder:"#D5FF80",warning:"#FFD173",warningWash:"#38383B",warningBorder:"#FFD173",danger:"#F39185",dangerWash:"#39333E",dangerBorder:"#F39185",info:"#DFBFFF",infoWash:"#3A3A4D",infoBorder:"#DFBFFF",overlayShadow:"0 12px 32px -12px rgb(16 19 26 / 0.72)",scrim:"rgb(16 19 26 / 0.6)"}},v5={id:"catppuccinFrappe",name:"Catppuccin Frappé",description:"The middle flavour — warm slate under the Catppuccin pastels.",palette:{mode:"dark",canvas:"#303445",surface:"#363B4E",elevated:"#3C4153",sunken:"#2A2D3E",rowHover:"#3E404C",rowSelected:"#3B425C",ink:"#D4DCFB",inkMuted:"#CED8FD",inkDim:"#B0B8D8",inkDisabled:"#737994",hairline:"#4A5064",borderControl:"#949CBB",accent:"#CA9EE6",accentHover:"#DCBEEE",accentActive:"#BA82DF",chartBarHover:"#E9C8FF",tokenCommand:"#91AEEF",accentWash:"#37394E",onAccent:"#232634",accentAlt:"#9CCCFD",accentAltWash:"#293C4F",success:"#A6D189",successWash:"#343948",successBorder:"#8BC365",warning:"#EF9F76",warningWash:"#383848",warningBorder:"#EB8855",danger:"#F1989C",dangerWash:"#38384A",dangerBorder:"#E67F82",info:"#91AEEF",infoWash:"#353B4F",infoBorder:"#769AEB",overlayShadow:"0 12px 32px -12px rgb(35 38 52 / 0.65)",scrim:"rgb(35 38 52 / 0.6)"}},y5={id:"catppuccinLatte",name:"Catppuccin Latte",description:"The light flavour — cool paper under the same Catppuccin pastels.",palette:{mode:"light",canvas:"#E4E7EE",surface:"#EFF1F5",elevated:"#F8F9FA",sunken:"#DADEE6",rowHover:"#E5E8EC",rowSelected:"#DDE3EE",ink:"#3B3E57",inkMuted:"#404359",inkDim:"#585A70",inkDisabled:"#9CA0B0",hairline:"#CACCD5",borderControl:"#7A7E89",accent:"#802EE6",accentHover:"#7A22E0",accentActive:"#6C16C9",chartBarHover:"#6100B8",tokenCommand:"#0B55E4",accentWash:"#E4ECF9",onAccent:"#EFF1F5",accentAlt:"#911D8B",accentAltWash:"#F5E8F2",success:"#257113",successWash:"#DBE1E4",successBorder:"#448E35",warning:"#855A00",warningWash:"#E0E0E4",warningBorder:"#A3762C",danger:"#C60133",dangerWash:"#F6DFE1",dangerBorder:"#E93A4F",info:"#0B55E4",infoWash:"#E3ECFB",infoBorder:"#3276FF",overlayShadow:"0 12px 32px -12px rgb(76 79 105 / 0.22)",scrim:"rgb(76 79 105 / 0.35)"}},w5={id:"catppuccinMacchiato",name:"Catppuccin Macchiato",description:"The deep flavour — cool navy-slate under the same pastels.",palette:{mode:"dark",canvas:"#24273A",surface:"#2A2D42",elevated:"#30334A",sunken:"#1E2132",rowHover:"#30313D",rowSelected:"#2E324E",ink:"#CAD3F5",inkMuted:"#B9C1E1",inkDim:"#9DA4C1",inkDisabled:"#6E738D",hairline:"#3C4056",borderControl:"#939AB7",accent:"#C6A0F6",accentHover:"#DCC5FA",accentActive:"#B27FF3",chartBarHover:"#DEC7FF",tokenCommand:"#8AADF4",accentWash:"#212339",onAccent:"#24273A",accentAlt:"#8EC8FB",accentAltWash:"#0B273A",success:"#A6DA95",successWash:"#292D3D",successBorder:"#88CD71",warning:"#F5A97F",warningWash:"#2B2C3C",warningBorder:"#F2925D",danger:"#ED8796",dangerWash:"#2B2A3D",dangerBorder:"#E96C7F",info:"#8AADF4",infoWash:"#292E43",infoBorder:"#6E99F1",overlayShadow:"0 12px 32px -12px rgb(24 25 38 / 0.65)",scrim:"rgb(24 25 38 / 0.6)"}},C5={id:"catppuccinMocha",name:"Catppuccin Mocha",description:"The original flavour — the deepest navy under the Catppuccin pastels.",palette:{mode:"dark",canvas:"#2A2A3B",surface:"#323142",elevated:"#37364B",sunken:"#242432",rowHover:"#3A3943",rowSelected:"#3C3B53",ink:"#D0D9F7",inkMuted:"#C8D0EC",inkDim:"#A9B0CD",inkDisabled:"#6C7086",hairline:"#3F3F5D",borderControl:"#7D8094",accent:"#CBA6F7",accentHover:"#DCC1FF",accentActive:"#B691E0",chartBarHover:"#E2CCFF",tokenCommand:"#8CB7FD",accentWash:"#303047",onAccent:"#11111B",accentAlt:"#48A6FF",accentAltWash:"#253349",success:"#A6E3A1",successWash:"#4B5E57",successBorder:"#569052",warning:"#FAB387",warningWash:"#5D4B4C",warningBorder:"#B47246",danger:"#F38BA8",dangerWash:"#332434",dangerBorder:"#C5627F",info:"#8CB7FD",infoWash:"#213048",infoBorder:"#5D83C5",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},x5={id:"cyberpunk",name:"Cyberpunk",description:"Construction yellow and glare cyan over violet-black Night City.",palette:{mode:"dark",canvas:"#211F28",surface:"#282332",elevated:"#2E273B",sunken:"#1D1C22",rowHover:"#2C2932",rowSelected:"#302A3F",ink:"#EAE5F2",inkMuted:"#BCB1CF",inkDim:"#A496BF",inkDisabled:"#5A4F70",hairline:"#3D3250",borderControl:"#7F6F97",accent:"#FCEE0A",accentHover:"#FFFF34",accentActive:"#D7CC00",chartBarHover:"#F8EF8F",tokenCommand:"#00F0FF",accentWash:"#2D2814",onAccent:"#070312",accentAlt:"#b98aff",accentAltWash:"#2D2438",success:"#3FE07A",successWash:"#142623",successBorder:"#3E835A",warning:"#FF9E3D",warningWash:"#2D1D1B",warningBorder:"#9C6B44",danger:"#FF5B60",dangerWash:"#2D0D1C",dangerBorder:"#BD545F",info:"#00F0FF",infoWash:"#0C2834",infoBorder:"#24818E",overlayShadow:"0 12px 32px -12px rgb(6 4 9 / 0.75)",scrim:"rgb(6 4 9 / 0.65)"}},b5={id:"desert",name:"Desert",description:"Warm dark sand under a terracotta glow and cactus green.",palette:{mode:"dark",canvas:"#342A1F",surface:"#3E3426",elevated:"#463B2C",sunken:"#29221A",rowHover:"#423C33",rowSelected:"#4C3E2B",ink:"#F0E6D5",inkMuted:"#E2D2BD",inkDim:"#C1B49B",inkDisabled:"#5B503E",hairline:"#554634",borderControl:"#97846C",accent:"#E59D6A",accentHover:"#F4AA77",accentActive:"#D6905D",chartBarHover:"#FFC993",tokenCommand:"#84BAD8",accentWash:"#3D3B24",onAccent:"#1D160C",accentAlt:"#cb9edc",accentAltWash:"#433549",success:"#9AC275",successWash:"#3F3B26",successBorder:"#7A8E5A",warning:"#E2B148",warningWash:"#483920",warningBorder:"#A4823E",danger:"#F88586",dangerWash:"#3B2419",dangerBorder:"#C46E6B",info:"#84BAD8",infoWash:"#2C3843",infoBorder:"#6E8B98",overlayShadow:"0 12px 32px -12px rgb(29 22 12 / 0.7)",scrim:"rgb(29 22 12 / 0.6)"}},E5={id:"dracula",name:"Dracula",description:"Blue-grey ground with the signature Dracula purple.",palette:{mode:"dark",canvas:"#282A36",surface:"#2F3146",elevated:"#383B50",sunken:"#21222C",rowHover:"#383946",rowSelected:"#393C57",ink:"#F8F8F2",inkMuted:"#BFBFBF",inkDim:"#ABB4D1",inkDisabled:"#6272A4",hairline:"#4A4C5E",borderControl:"#7D8BB4",accent:"#C096FC",accentHover:"#D1AEFF",accentActive:"#A884DE",chartBarHover:"#D6BBFE",tokenCommand:"#8BE9FD",accentWash:"#3A374D",onAccent:"#282A36",accentAlt:"#ff79c6",accentAltWash:"#4C3240",success:"#50FA7B",successWash:"#2D433E",successBorder:"#3E9C5C",warning:"#FFB86C",warningWash:"#423B3C",warningBorder:"#A8825D",danger:"#FF8784",dangerWash:"#422F3A",dangerBorder:"#CB6E73",info:"#8BE9FD",infoWash:"#34414E",infoBorder:"#5E93A3",overlayShadow:"0 12px 32px -12px rgb(13 14 20 / 0.65)",scrim:"rgb(13 14 20 / 0.6)"}},S5={id:"dune",name:"Dune",description:"Desert night: warm near-black with a vivid orange.",palette:{mode:"dark",canvas:"#21201E",surface:"#2C2825",elevated:"#362D25",sunken:"#1B1A1A",rowHover:"#322E2C",rowSelected:"#393029",ink:"#F8F3EC",inkMuted:"#C9BCB0",inkDim:"#ACA092",inkDisabled:"#6B6055",hairline:"#49391E",borderControl:"#8A7D6E",accent:"#FF8C38",accentHover:"#FFA75C",accentActive:"#E67016",chartBarHover:"#FFB27A",tokenCommand:"#E8C15A",accentWash:"#2C1C10",onAccent:"#0F0D0B",accentAlt:"#21BCC9",accentAltWash:"#002427",success:"#A3C46B",successWash:"#212317",successBorder:"#6E814E",warning:"#E8C15A",warningWash:"#292314",warningBorder:"#8E783D",danger:"#F66F59",dangerWash:"#291713",dangerBorder:"#BE5E4D",info:"#FF8C38",infoWash:"#2C1C10",infoBorder:"#AF6937",overlayShadow:"0 12px 32px -12px rgb(5 4 3 / 0.7)",scrim:"rgb(5 4 3 / 0.6)"}},k5={id:"duskfox",name:"Duskfox",description:"Nordfox at dusk: the same slate warmed into violet plum.",palette:{mode:"dark",canvas:"#232136",surface:"#2D2A45",elevated:"#373354",sunken:"#191726",rowHover:"#353243",rowSelected:"#383456",ink:"#E0DEF4",inkMuted:"#CDCBE0",inkDim:"#B1ABCC",inkDisabled:"#6E6A86",hairline:"#463F5C",borderControl:"#887BA3",accent:"#72AFC6",accentHover:"#8BBDD0",accentActive:"#68A9C2",chartBarHover:"#98D7EE",tokenCommand:"#9CCFD8",accentWash:"#2E354A",onAccent:"#191726",accentAlt:"#C4A7E7",accentAltWash:"#3B3246",success:"#A3BE8C",successWash:"#31323F",successBorder:"#A3BE8C",warning:"#F6C177",warningWash:"#38313C",warningBorder:"#F6C177",danger:"#F2809F",dangerWash:"#3C2C43",dangerBorder:"#ED7C9C",info:"#9CCFD8",infoWash:"#323649",infoBorder:"#9CCFD8",overlayShadow:"0 12px 32px -12px rgb(14 12 22 / 0.75)",scrim:"rgb(14 12 22 / 0.62)"}},A5={id:"everforest",name:"Everforest",description:"Low-contrast forest night, moss green over warm slate.",palette:{mode:"dark",canvas:"#2D353B",surface:"#343F44",elevated:"#3D484D",sunken:"#232A2E",rowHover:"#3F4649",rowSelected:"#374C55",ink:"#F0E8D6",inkMuted:"#E2EBE3",inkDim:"#BEC9C1",inkDisabled:"#7A8478",hairline:"#4A555C",borderControl:"#89949C",accent:"#ABC584",accentHover:"#B7D28C",accentActive:"#A0C06D",chartBarHover:"#D4F0AD",tokenCommand:"#9ACAC3",accentWash:"#434E52",onAccent:"#2D353B",accentAlt:"#DBA3D0",accentAltWash:"#463E44",success:"#ABC584",successWash:"#3A4442",successBorder:"#A7C080",warning:"#DBBC7F",warningWash:"#454842",warningBorder:"#DBBC7F",danger:"#F5A8A8",dangerWash:"#434147",dangerBorder:"#ECA0A1",info:"#9ACAC3",infoWash:"#42424C",infoBorder:"#DEA3C6",overlayShadow:"0 12px 32px -12px rgb(20 25 27 / 0.7)",scrim:"rgb(20 25 27 / 0.6)"}},D5={id:"everforestLight",name:"Everforest Light",description:"Everforest by daylight: warm paper under a soft olive green.",palette:{mode:"light",canvas:"#EAE4C8",surface:"#F4EDD4",elevated:"#FDF6E3",sunken:"#DCD7BC",rowHover:"#E8E4D5",rowSelected:"#E7DFBF",ink:"#394246",inkMuted:"#38413E",inkDim:"#4E5952",inkDisabled:"#A6B0A0",hairline:"#CAC5AC",borderControl:"#6E7D6D",accent:"#566201",accentHover:"#465001",accentActive:"#373E01",chartBarHover:"#3A4400",tokenCommand:"#235976",accentWash:"#D9DDCE",onAccent:"#FDF6E3",accentAlt:"#A42C7A",accentAltWash:"#E8D7E0",success:"#566201",successWash:"#DAD6B2",successBorder:"#566201",warning:"#795700",warningWash:"#DFD6B4",warningBorder:"#795700",danger:"#B12624",dangerWash:"#E5D3B9",dangerBorder:"#B12724",info:"#235976",infoWash:"#E4D3C1",infoBorder:"#A7247E",overlayShadow:"0 12px 32px -12px rgb(92 106 114 / 0.28)",scrim:"rgb(60 68 66 / 0.45)"}},F5={id:"forest",name:"Forest",description:"Deep pine shadow lit by moss-green light through the canopy.",palette:{mode:"dark",canvas:"#1F2922",surface:"#26332A",elevated:"#2D3A32",sunken:"#1C211E",rowHover:"#303833",rowSelected:"#2A3E31",ink:"#DDE8DD",inkMuted:"#BCD0BD",inkDim:"#9CB19F",inkDisabled:"#465547",hairline:"#334538",borderControl:"#6F8674",accent:"#8FBF68",accentHover:"#9DCD75",accentActive:"#82B15B",chartBarHover:"#BCED93",tokenCommand:"#6FB3C9",accentWash:"#223221",onAccent:"#0A120D",accentAlt:"#b195d6",accentAltWash:"#332A3C",success:"#7CC487",successWash:"#243829",successBorder:"#5A8C63",warning:"#D8AE52",warningWash:"#303522",warningBorder:"#937E43",danger:"#E58579",dangerWash:"#28211C",dangerBorder:"#B16F63",info:"#6FB3C9",infoWash:"#1C2E38",infoBorder:"#5A8792",overlayShadow:"0 12px 32px -12px rgb(10 18 13 / 0.7)",scrim:"rgb(10 18 13 / 0.6)"}},B5={id:"githubLight",name:"GitHub Light",description:"GitHub's daylight canvas, white panels and Primer blue.",palette:{mode:"light",canvas:"#E6EAEE",surface:"#F2F5F8",elevated:"#FFFFFF",sunken:"#DDE2E8",rowHover:"#EBEBF0",rowSelected:"#E5E6F1",ink:"#1F2328",inkMuted:"#3F4751",inkDim:"#575E68",inkDisabled:"#A8B1BB",hairline:"#CBD0D6",borderControl:"#788089",accent:"#015FCB",accentHover:"#0757B3",accentActive:"#05448F",chartBarHover:"#004497",tokenCommand:"#0048A4",accentWash:"#DDF4FF",onAccent:"#FFFFFF",accentAlt:"#7545D2",accentAltWash:"#F5EDFF",success:"#01732C",successWash:"#DAE3E2",successBorder:"#329048",warning:"#885A01",warningWash:"#E1E2E2",warningBorder:"#A6762D",danger:"#C61226",dangerWash:"#FFEBE9",dangerBorder:"#E93F43",info:"#0550AE",infoWash:"#EEF2F8",infoBorder:"#3C7EE1",overlayShadow:"0 12px 32px -12px rgb(31 35 40 / 0.22)",scrim:"rgb(31 35 40 / 0.35)"}},P5={id:"gruvbox",name:"Gruvbox",description:"Retro groove after dark — warm charcoal under the gruvbox brights.",palette:{mode:"dark",canvas:"#282828",surface:"#32302F",elevated:"#3C3836",sunken:"#1D2021",rowHover:"#3A3734",rowSelected:"#403B34",ink:"#EBDBB2",inkMuted:"#E3D2AD",inkDim:"#C2B397",inkDisabled:"#928374",hairline:"#494442",borderControl:"#89827D",accent:"#FABD2F",accentHover:"#FFD75F",accentActive:"#D79921",chartBarHover:"#FFD78C",tokenCommand:"#88AB9E",accentWash:"#32321C",onAccent:"#1D2021",accentAlt:"#DA8DA2",accentAltWash:"#452930",success:"#B8BB26",successWash:"#464730",successBorder:"#868902",warning:"#FF8A32",warningWash:"#45352C",warningBorder:"#D06503",danger:"#FF8671",dangerWash:"#3B2723",dangerBorder:"#DA5B48",info:"#8EB0A3",infoWash:"#28353A",infoBorder:"#698B7E",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},R5={id:"gruvboxLight",name:"Gruvbox Light",description:"Retro groove by daylight, warm cream and faded ink.",palette:{mode:"light",canvas:"#F8EEC4",surface:"#FDF6D8",elevated:"#FFFEF2",sunken:"#EFE2B9",rowHover:"#F1ECDB",rowSelected:"#F0E8C2",ink:"#3C3836",inkMuted:"#4F4640",inkDim:"#685C53",inkDisabled:"#A89984",hairline:"#DDD2B0",borderControl:"#7C6F64",accent:"#076678",accentHover:"#04414D",accentActive:"#022026",chartBarHover:"#004755",tokenCommand:"#3B7050",accentWash:"#F0EBC3",onAccent:"#FBF1C7",accentAlt:"#8f3f71",accentAltWash:"#FEE2F1",success:"#6D6701",successWash:"#EFEFE4",successBorder:"#847E0F",warning:"#8D5A02",warningWash:"#F1EDE7",warningBorder:"#AA6E12",danger:"#9D0006",dangerWash:"#F8E9C0",dangerBorder:"#BC0007",info:"#3B6F50",infoWash:"#F8EFD1",infoBorder:"#578C6C",overlayShadow:"0 12px 32px -12px rgb(60 56 54 / 0.22)",scrim:"rgb(60 56 54 / 0.35)"}},_5={id:"highContrastLight",name:"High Contrast Light",description:"Near-black ink on near-white, every state well past its floor.",palette:{mode:"light",canvas:"#E6E6E6",surface:"#F2F2F2",elevated:"#FFFFFF",sunken:"#D6D6D6",rowHover:"#E9E8ED",rowSelected:"#E4E3EC",ink:"#0A0A0A",inkMuted:"#373737",inkDim:"#515151",inkDisabled:"#8F8F8F",hairline:"#C4C4C4",borderControl:"#6C6C6C",accent:"#0846C1",accentHover:"#003BB3",accentActive:"#0030A5",chartBarHover:"#002393",tokenCommand:"#004A8C",accentWash:"#D6E6FB",onAccent:"#FFFFFF",accentAlt:"#6a1f9e",accentAltWash:"#EEE0F5",success:"#005713",successWash:"#DFE6E0",successBorder:"#438050",warning:"#6B4000",warningWash:"#E7E4DF",warningBorder:"#8D6E40",danger:"#9A0000",dangerWash:"#FCD9D9",dangerBorder:"#B75757",info:"#004A8C",infoWash:"#E3EDF9",infoBorder:"#4579A7",overlayShadow:"0 12px 32px -12px rgb(10 10 10 / 0.22)",scrim:"rgb(10 10 10 / 0.35)"}},T5={id:"iceberg",name:"Iceberg",description:"Cool blue-grey paper with the Iceberg navy.",palette:{mode:"light",canvas:"#E8E9EC",surface:"#F2F3F6",elevated:"#FDFDFF",sunken:"#E0E1E6",rowHover:"#E9E9EE",rowSelected:"#E3E4EF",ink:"#33374C",inkMuted:"#3C4056",inkDim:"#54586D",inkDisabled:"#A0A4B8",hairline:"#CBCCD2",borderControl:"#787D97",accent:"#2D539E",accentHover:"#1E3A7D",accentActive:"#162E63",chartBarHover:"#1F396C",tokenCommand:"#316682",accentWash:"#D5DAE4",onAccent:"#F2F5F9",accentAlt:"#6A520A",accentAltWash:"#DFD9CF",success:"#4B682C",successWash:"#DBE0DB",successBorder:"#6F8855",warning:"#8C5129",warningWash:"#E5DDDA",warningBorder:"#B66F41",danger:"#AA315B",dangerWash:"#E5DAE1",dangerBorder:"#C46084",info:"#306581",infoWash:"#D7DFE5",infoBorder:"#5087A6",overlayShadow:"0 12px 32px -12px rgb(38 42 63 / 0.22)",scrim:"rgb(38 42 63 / 0.35)"}},I5={id:"kanagawaLotus",name:"Kanagawa Lotus",description:"Hokusai by daylight: yellowed paper under indigo and lotus pink.",palette:{mode:"light",canvas:"#DFD7A8",surface:"#E9E2B6",elevated:"#F2ECBC",sunken:"#D3CB9C",rowHover:"#DDD8BE",rowSelected:"#DBD4A6",ink:"#353556",inkMuted:"#484757",inkDim:"#514E4A",inkDisabled:"#8A8980",hairline:"#C2BA8E",borderControl:"#716E61",accent:"#384C70",accentHover:"#2C3C58",accentActive:"#3F557E",chartBarHover:"#1A2C4E",tokenCommand:"#5F4A7F",accentWash:"#CFCEA9",onAccent:"#F2ECBC",accentAlt:"#96350A",accentAltWash:"#EEC3B1",success:"#495933",successWash:"#D2CC9E",successBorder:"#4A5B34",warning:"#6B4F13",warningWash:"#D5CB9B",warningBorder:"#6D5115",danger:"#992B3B",dangerWash:"#D9C89E",dangerBorder:"#9B2C3C",info:"#5F4A7F",infoWash:"#D3CAA4",infoBorder:"#614B81",overlayShadow:"0 12px 32px -12px rgb(84 84 100 / 0.3)",scrim:"rgb(67 67 108 / 0.45)"}},M5={id:"kanagawaWave",name:"Kanagawa Wave",description:"Hokusai ink-wash night, muted paper tones on deep sumi.",palette:{mode:"dark",canvas:"#1F1F28",surface:"#292936",elevated:"#313140",sunken:"#16161D",rowHover:"#313038",rowSelected:"#333347",ink:"#DCD7BA",inkMuted:"#C8C093",inkDim:"#ABA4BA",inkDisabled:"#727169",hairline:"#424353",borderControl:"#7E7E9C",accent:"#94ADDF",accentHover:"#AFC2E7",accentActive:"#83A0DA",chartBarHover:"#BBD6FF",tokenCommand:"#7DAAA1",accentWash:"#2A2D3A",onAccent:"#1F1F28",accentAlt:"#AD8FC7",accentAltWash:"#2D2835",success:"#98BB6C",successWash:"#2A2D2E",successBorder:"#98BB6C",warning:"#E6C384",warningWash:"#343032",warningBorder:"#E6C384",danger:"#FF777A",dangerWash:"#32262F",dangerBorder:"#FF7478",info:"#7DAAA1",infoWash:"#2C3238",infoBorder:"#7CA9A0",overlayShadow:"0 12px 32px -12px rgb(12 12 17 / 0.72)",scrim:"rgb(12 12 17 / 0.62)"}},O5={id:"lavender",name:"Lavender",description:"Purple-grey dusk lit by a soft lavender glow.",palette:{mode:"dark",canvas:"#292633",surface:"#322E3F",elevated:"#393345",sunken:"#212029",rowHover:"#37353F",rowSelected:"#3B364E",ink:"#E6E2F0",inkMuted:"#CBC5DE",inkDim:"#AFA7C6",inkDisabled:"#4C4762",hairline:"#413B5B",borderControl:"#8279A3",accent:"#B9A3E8",accentHover:"#C7B0F6",accentActive:"#AB96DA",chartBarHover:"#E4CDFF",tokenCommand:"#7DB2E2",accentWash:"#272B3B",onAccent:"#110F19",accentAlt:"#FCA8E2",accentAltWash:"#382632",success:"#7FC98F",successWash:"#2D343B",successBorder:"#5D896B",warning:"#DCAE54",warningWash:"#393133",warningBorder:"#987B49",danger:"#EF8595",dangerWash:"#2B1A26",dangerBorder:"#B56978",info:"#7DB2E2",infoWash:"#1C2740",infoBorder:"#6382A4",overlayShadow:"0 12px 32px -12px rgb(17 15 25 / 0.7)",scrim:"rgb(17 15 25 / 0.6)"}},N5={id:"linen",name:"Linen",description:"Cool off-white linen with soft dusty-pastel states.",palette:{mode:"light",canvas:"#DEE0DB",surface:"#E8E9E6",elevated:"#F4F4F1",sunken:"#D3D5D0",rowHover:"#DAE1DF",rowSelected:"#CFDEDA",ink:"#2B2E2C",inkMuted:"#393F3B",inkDim:"#515753",inkDisabled:"#A9B0AA",hairline:"#C1C3BF",borderControl:"#71746F",accent:"#236256",accentHover:"#14564A",accentActive:"#014A3F",chartBarHover:"#003F35",tokenCommand:"#3C5876",accentWash:"#E4E9E2",onAccent:"#F4F4F1",accentAlt:"#68537D",accentAltWash:"#EAE6ED",success:"#335F3C",successWash:"#DADED8",successBorder:"#5E7F64",warning:"#6E5117",warningWash:"#DEDDD5",warningBorder:"#8A754A",danger:"#8A3F3B",dangerWash:"#F0E1DE",dangerBorder:"#A06966",info:"#3C5876",infoWash:"#E5E9EC",infoBorder:"#657A8E",overlayShadow:"0 12px 32px -12px rgb(43 46 44 / 0.22)",scrim:"rgb(43 46 44 / 0.35)"}},L5={id:"localOperatorDark",name:"Local Operator Dark",description:"The default. Warm near-black with the brand green.",palette:{mode:"dark",canvas:"#22201c",surface:"#2b2721",elevated:"#322D22",sunken:"#1d1b19",rowHover:"#302D29",rowSelected:"#372F24",ink:"#f1eee6",inkMuted:"#c2bcaf",inkDim:"#a6a091",inkDisabled:"#5f5a4e",hairline:"#403b2c",borderControl:"#837c6d",accent:"#38c96a",accentHover:"#5ad584",accentActive:"#2bb25c",chartBarHover:"#85DEA3",tokenCommand:"#86b3f2",accentWash:"#16281d",onAccent:"#16130e",accentAlt:"#B0A7F7",accentAltWash:"#242233",success:"#57c785",successWash:"#16281d",successBorder:"#4f8465",warning:"#e0b04b",warningWash:"#2a2213",warningBorder:"#8c773c",danger:"#ef8078",dangerWash:"#2e1b18",dangerBorder:"#ac675d",info:"#86b3f2",infoWash:"#192332",infoBorder:"#5a7ba8",overlayShadow:"0 12px 32px -12px rgb(0 0 0 / 0.6)",scrim:"rgb(0 0 0 / 0.6)"}},j5={id:"localOperatorLight",name:"Local Operator Light",description:"Warm paper and ink, with the brand green.",palette:{mode:"light",canvas:"#f2ede3",surface:"#f7f5ee",elevated:"#fefdfa",sunken:"#ece6d8",rowHover:"#EDECE7",rowSelected:"#EBE7D8",ink:"#211e18",inkMuted:"#4e4940",inkDim:"#656056",inkDisabled:"#9a9488",hairline:"#dad5cb",borderControl:"#857f70",accent:"#137742",accentHover:"#116036",accentActive:"#0c4b2a",chartBarHover:"#0c5830",tokenCommand:"#2368a8",accentWash:"#e7f1e8",onAccent:"#F6FAF8",accentAlt:"#6C5F9A",accentAltWash:"#F0EDF8",success:"#19764a",successWash:"#e6f1ea",successBorder:"#3e6b4e",warning:"#8a5800",warningWash:"#f5ecd9",warningBorder:"#7a5a1e",danger:"#b23a31",dangerWash:"#f7e7e4",dangerBorder:"#96544c",info:"#2368a8",infoWash:"#e9ebef",infoBorder:"#486893",overlayShadow:"0 12px 32px -12px rgb(20 17 12 / 0.25)",scrim:"rgb(20 17 12 / 0.35)"}},W5={id:"matrix",name:"Matrix",description:"Phosphor green rain on a near-black terminal screen.",palette:{mode:"dark",canvas:"#1C211D",surface:"#1F2822",elevated:"#212E24",sunken:"#1B1D1B",rowHover:"#282D2A",rowSelected:"#233329",ink:"#D4E6D6",inkMuted:"#99BD9F",inkDim:"#72AC7F",inkDisabled:"#3A5E43",hairline:"#263F2D",borderControl:"#5E8065",accent:"#22E06A",accentHover:"#4DFA82",accentActive:"#00BE4B",chartBarHover:"#87E3A8",tokenCommand:"#3FD0C9",accentWash:"#092814",onAccent:"#000701",accentAlt:"#a08fe0",accentAltWash:"#241E3A",success:"#3ECF74",successWash:"#0C2615",successBorder:"#428656",warning:"#D8C24A",warningWash:"#202510",warningBorder:"#817A3F",danger:"#FF6B5E",dangerWash:"#261912",dangerBorder:"#AB665B",info:"#3FD0C9",infoWash:"#0D2620",infoBorder:"#40837B",overlayShadow:"0 12px 32px -12px rgb(2 5 3 / 0.75)",scrim:"rgb(2 5 3 / 0.65)"}},$5={id:"mintLight",name:"Mint Light",description:"Crisp white with the cool cast of fresh mint.",palette:{mode:"light",canvas:"#E4F1E7",surface:"#F0F7F2",elevated:"#FBFDFB",sunken:"#D5E8DA",rowHover:"#E8EDEA",rowSelected:"#DCEBE0",ink:"#1C2B21",inkMuted:"#38493E",inkDim:"#4F6155",inkDisabled:"#A3B5A8",hairline:"#C6D4C9",borderControl:"#6D8373",accent:"#00713F",accentHover:"#006434",accentActive:"#005828",chartBarHover:"#004E20",tokenCommand:"#09649B",accentWash:"#DCF2E2",onAccent:"#FBFDFB",accentAlt:"#76569D",accentAltWash:"#F3E9FD",success:"#1D6A3E",successWash:"#E0EDE5",successBorder:"#528E6C",warning:"#7E5800",warningWash:"#E8EBE0",warningBorder:"#987F3C",danger:"#B0312E",dangerWash:"#F9E4E0",dangerBorder:"#BE6A65",info:"#09649B",infoWash:"#E6F0F7",infoBorder:"#4389AF",overlayShadow:"0 12px 32px -12px rgb(28 43 33 / 0.22)",scrim:"rgb(28 43 33 / 0.35)"}},z5={id:"monokai",name:"Monokai",description:"The Monokai scheme: olive-black ground with the acid green.",palette:{mode:"dark",canvas:"#272822",surface:"#2E2F28",elevated:"#39382F",sunken:"#1E1F1A",rowHover:"#353632",rowSelected:"#383B2D",ink:"#F8F8F2",inkMuted:"#BFBFBF",inkDim:"#B1AE9C",inkDisabled:"#75715E",hairline:"#464740",borderControl:"#8E8A73",accent:"#A6E22E",accentHover:"#B6E94E",accentActive:"#8BC220",chartBarHover:"#D0F090",tokenCommand:"#66D9EF",accentWash:"#363E23",onAccent:"#272822",accentAlt:"#B68CFF",accentAltWash:"#382D47",success:"#A6E22E",successWash:"#363E23",successBorder:"#6E8F2A",warning:"#FD971F",warningWash:"#413522",warningBorder:"#B3772D",danger:"#FF77A3",dangerWash:"#40282C",dangerBorder:"#DE527E",info:"#66D9EF",infoWash:"#2F3D3B",infoBorder:"#4F8D97",overlayShadow:"0 12px 32px -12px rgb(15 15 12 / 0.65)",scrim:"rgb(15 15 12 / 0.6)"}},H5={id:"neon",name:"Neon",description:"Tron: near-black blue with cyan and cyberpunk pink.",palette:{mode:"dark",canvas:"#1C2029",surface:"#212737",elevated:"#272E46",sunken:"#1B1B1F",rowHover:"#2B2E38",rowSelected:"#293248",ink:"#E0E0E0",inkMuted:"#BEBECE",inkDim:"#A2A1B4",inkDisabled:"#5E5E70",hairline:"#1F4050",borderControl:"#6F8F99",accent:"#00EFFF",accentHover:"#66F7FF",accentActive:"#00B8D9",chartBarHover:"#B0FAFF",tokenCommand:"#FFA500",accentWash:"#072734",onAccent:"#000E0F",accentAlt:"#FFCBDB",accentAltWash:"#351D25",success:"#2BFF88",successWash:"#0C2925",successBorder:"#1B9256",warning:"#FFA500",warningWash:"#261E15",warningBorder:"#A47221",danger:"#FF5EAF",dangerWash:"#260B28",dangerBorder:"#DB349B",info:"#00EFFF",infoWash:"#072734",infoBorder:"#048997",overlayShadow:"0 12px 32px -12px rgb(0 0 0 / 0.75)",scrim:"rgb(2 4 8 / 0.65)"}},V5={id:"neonNoir",name:"Neon Noir",description:"Rain-dimmed cyan and magenta signs over 3am charcoal.",palette:{mode:"dark",canvas:"#23262B",surface:"#2B2E35",elevated:"#2F343D",sunken:"#1F2124",rowHover:"#333539",rowSelected:"#323846",ink:"#DCDFE4",inkMuted:"#C2C8D5",inkDim:"#A1ABB9",inkDisabled:"#595F6A",hairline:"#3B414B",borderControl:"#757D8B",accent:"#5FC4D4",accentHover:"#7ADDED",accentActive:"#38A3B3",chartBarHover:"#ACD5DE",tokenCommand:"#7AA8D8",accentWash:"#26333B",onAccent:"#090C13",accentAlt:"#b48ec6",accentAltWash:"#363039",success:"#6CC49A",successWash:"#202D2C",successBorder:"#5A8574",warning:"#CFAE62",warningWash:"#2D2B25",warningBorder:"#8B7B5A",danger:"#E47D8D",dangerWash:"#2F242A",dangerBorder:"#A06F79",info:"#7AA8D8",infoWash:"#222A34",infoBorder:"#697F99",overlayShadow:"0 12px 32px -12px rgb(8 9 11 / 0.75)",scrim:"rgb(8 9 11 / 0.65)"}},U5={id:"nightfox",name:"Nightfox",description:"Nordfox night: slate blue under a pale azure accent.",palette:{mode:"dark",canvas:"#192330",surface:"#202D3E",elevated:"#243449",sunken:"#131A24",rowHover:"#2D343E",rowSelected:"#25384F",ink:"#CDCECF",inkMuted:"#B1B2B3",inkDim:"#9BABBE",inkDisabled:"#738091",hairline:"#35465C",borderControl:"#6483AD",accent:"#8FB1DF",accentHover:"#ABC4E7",accentActive:"#7AA3D9",chartBarHover:"#B6DAFF",tokenCommand:"#6FD8DA",accentWash:"#20304A",onAccent:"#131A24",accentAlt:"#AE89EA",accentAltWash:"#312740",success:"#81B29A",successWash:"#26353D",successBorder:"#81B29A",warning:"#DBC074",warningWash:"#2B3236",warningBorder:"#DBC074",danger:"#DD8B9F",dangerWash:"#302F3D",dangerBorder:"#DB899D",info:"#6FD8DA",infoWash:"#213541",infoBorder:"#63CDCF",overlayShadow:"0 12px 32px -12px rgb(10 14 20 / 0.75)",scrim:"rgb(10 14 20 / 0.62)"}},G5={id:"nord",name:"Nord",description:"Arctic blue-grey with a frost cyan accent.",palette:{mode:"dark",canvas:"#2E3440",surface:"#343B49",elevated:"#3A4150",sunken:"#272C36",rowHover:"#3C3F48",rowSelected:"#384257",ink:"#ECEFF4",inkMuted:"#D8DEE9",inkDim:"#AFB8C7",inkDisabled:"#616E88",hairline:"#474E5F",borderControl:"#848FA4",accent:"#88C0D0",accentHover:"#A4DCED",accentActive:"#73AABA",chartBarHover:"#B1EBFB",tokenCommand:"#91B3D4",accentWash:"#2E3D40",onAccent:"#272C36",accentAlt:"#C7A1C6",accentAltWash:"#41383F",success:"#A3BE8C",successWash:"#3E484C",successBorder:"#7C9665",warning:"#EBCB8B",warningWash:"#595754",warningBorder:"#A88A4B",danger:"#F3959F",dangerWash:"#3D323C",dangerBorder:"#CE747E",info:"#90B1D1",infoWash:"#2B3B4E",infoBorder:"#7191B1",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},K5={id:"obsidian",name:"Obsidian",description:"Monochrome: zinc near-black with an off-white accent.",palette:{mode:"dark",canvas:"#202021",surface:"#2A2A2D",elevated:"#353438",sunken:"#1B1B1E",rowHover:"#313135",rowSelected:"#34343D",ink:"#FAFAFA",inkMuted:"#C5C5CE",inkDim:"#A7A7AF",inkDisabled:"#52525B",hairline:"#424244",borderControl:"#7F7F88",accent:"#FAFAFA",accentHover:"#E4E4E7",accentActive:"#D4D4D8",chartBarHover:"#FCFCE4",tokenCommand:"#FAFAFA",accentWash:"#303032",onAccent:"#09090B",accentAlt:"#FDFFAF",accentAltWash:"#30302E",success:"#86BFA1",successWash:"#181F1D",successBorder:"#668777",warning:"#CBAF7E",warningWash:"#201D19",warningBorder:"#8E7D61",danger:"#DE9391",dangerWash:"#231A1B",dangerBorder:"#A17473",info:"#FAFAFA",infoWash:"#262628",infoBorder:"#8E8E8E",overlayShadow:"0 12px 32px -12px rgb(3 3 7 / 0.8)",scrim:"rgb(3 3 7 / 0.65)"}},Y5={id:"ocean",name:"Ocean",description:"Deep-sea blue-green under a pale sea-foam accent.",palette:{mode:"dark",canvas:"#1D2A31",surface:"#223540",elevated:"#273B45",sunken:"#1A2228",rowHover:"#303A41",rowSelected:"#223F4F",ink:"#DCEBEE",inkMuted:"#B7D1D8",inkDim:"#93B4BD",inkDisabled:"#3E565F",hairline:"#2B464F",borderControl:"#648792",accent:"#84E0CF",accentHover:"#92EEDD",accentActive:"#76D2C1",chartBarHover:"#C2FFFF",tokenCommand:"#72B6E4",accentWash:"#1B3935",onAccent:"#081218",accentAlt:"#ab9ce0",accentAltWash:"#363142",success:"#6CC99B",successWash:"#1F3B3E",successBorder:"#508E74",warning:"#D9B45C",warningWash:"#2D3836",warningBorder:"#91804D",danger:"#EF8B85",dangerWash:"#26212A",dangerBorder:"#B36F6D",info:"#72B6E4",infoWash:"#1A2C42",infoBorder:"#5987A7",overlayShadow:"0 12px 32px -12px rgb(8 18 24 / 0.7)",scrim:"rgb(8 18 24 / 0.6)"}},X5={id:"oneDark",name:"One Dark",description:"Atom's night standard — cool charcoal with the One accent row.",palette:{mode:"dark",canvas:"#282C34",surface:"#2F343D",elevated:"#353B46",sunken:"#21252B",rowHover:"#383B41",rowSelected:"#363F4E",ink:"#D3DBE7",inkMuted:"#CBD4E3",inkDim:"#AAB5C4",inkDisabled:"#5C6370",hairline:"#464C58",borderControl:"#848B9E",accent:"#63B1F1",accentHover:"#8DCBFF",accentActive:"#4F9DDC",chartBarHover:"#A0D3FF",tokenCommand:"#5ABAC6",accentWash:"#28333C",onAccent:"#21252B",accentAlt:"#D686ED",accentAltWash:"#372F39",success:"#98C379",successWash:"#3E4943",successBorder:"#6E974E",warning:"#E5C07B",warningWash:"#555048",warningBorder:"#A98641",danger:"#FF8990",dangerWash:"#362A31",dangerBorder:"#DA6870",info:"#58B8C4",infoWash:"#263647",infoBorder:"#3498A4",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},Q5={id:"oneLight",name:"One Light",description:"Atom's daylight standard, cool white with the One accent row.",palette:{mode:"light",canvas:"#EAEAEA",surface:"#F4F4F4",elevated:"#FFFFFF",sunken:"#E1E0E0",rowHover:"#EBEAEF",rowSelected:"#E6E5EE",ink:"#383A42",inkMuted:"#43454F",inkDim:"#5B5C63",inkDisabled:"#A0A1A7",hairline:"#CECED1",borderControl:"#696C77",accent:"#0E54EA",accentHover:"#0D46C1",accentActive:"#0A389B",chartBarHover:"#0039B6",tokenCommand:"#006996",accentWash:"#E5E6EA",onAccent:"#EAEAEA",accentAlt:"#a626a4",accentAltWash:"#E9E5E8",success:"#376E36",successWash:"#E2E5E2",successBorder:"#41813F",warning:"#845A00",warningWash:"#E5E4E0",warningBorder:"#996901",danger:"#BC281A",dangerWash:"#E9E4E4",dangerBorder:"#DA3020",info:"#006996",infoWash:"#E1E5E7",infoBorder:"#017AAE",overlayShadow:"0 12px 32px -12px rgb(56 58 66 / 0.22)",scrim:"rgb(56 58 66 / 0.35)"}},q5={id:"outrun",name:"Outrun",description:"Sunset magenta and grid cyan racing over midnight blue.",palette:{mode:"dark",canvas:"#1A1E37",surface:"#232543",elevated:"#262B4B",sunken:"#171A2B",rowHover:"#2C2C3E",rowSelected:"#2B2D51",ink:"#E6E6F2",inkMuted:"#B6B8D9",inkDim:"#9A9DC7",inkDisabled:"#555780",hairline:"#323762",borderControl:"#7175AD",accent:"#FF607B",accentHover:"#FF4578",accentActive:"#EF0156",chartBarHover:"#FF88A9",tokenCommand:"#2DE2E6",accentWash:"#2C1230",onAccent:"#050522",accentAlt:"#a48fff",accentAltWash:"#1D1838",success:"#3FE0A0",successWash:"#142B38",successBorder:"#3D8575",warning:"#F9C80E",warningWash:"#2C2825",warningBorder:"#8D7731",danger:"#FF6C11",dangerWash:"#2C1C26",dangerBorder:"#AF6648",info:"#2DE2E6",infoWash:"#112B42",infoBorder:"#368393",overlayShadow:"0 12px 32px -12px rgb(5 6 16 / 0.75)",scrim:"rgb(5 6 16 / 0.65)"}},Z5={id:"palenight",name:"Palenight",description:"Material Palenight: deep navy under a soft violet accent.",palette:{mode:"dark",canvas:"#292D3E",surface:"#2F3446",elevated:"#353B4E",sunken:"#232736",rowHover:"#363843",rowSelected:"#333A53",ink:"#EEFFFF",inkMuted:"#C3CAEB",inkDim:"#A8ADC6",inkDisabled:"#676E95",hairline:"#43475B",borderControl:"#8287A8",accent:"#C792EA",accentHover:"#D9B4F1",accentActive:"#B874E4",chartBarHover:"#EEB8FF",tokenCommand:"#89DDFF",accentWash:"#2F3145",onAccent:"#252939",accentAlt:"#82aaff",accentAltWash:"#22293D",success:"#C3E88D",successWash:"#2D3240",successBorder:"#AADF5E",warning:"#F78C6C",warningWash:"#303040",warningBorder:"#F5724B",danger:"#FF7E96",dangerWash:"#303041",dangerBorder:"#FF7E96",info:"#89DDFF",infoWash:"#2C3345",infoBorder:"#50CCFF",overlayShadow:"0 12px 32px -12px rgb(32 35 49 / 0.65)",scrim:"rgb(32 35 49 / 0.6)"}},J5={id:"paper",name:"Paper",description:"Warm cream paper with brown ink, an open book in good light.",palette:{mode:"light",canvas:"#E8E0CD",surface:"#EFE8D9",elevated:"#F9F3E6",sunken:"#DFD7C1",rowHover:"#E3DFD6",rowSelected:"#E4DAC4",ink:"#332B20",inkMuted:"#443C31",inkDim:"#5D5445",inkDisabled:"#B2A78F",hairline:"#CDC4AE",borderControl:"#7F7559",accent:"#884928",accentHover:"#7A3D1D",accentActive:"#6C3212",chartBarHover:"#602707",tokenCommand:"#125C8C",accentWash:"#ECE9CA",onAccent:"#F9F3E6",accentAlt:"#734D8E",accentAltWash:"#F3E1FE",success:"#336318",successWash:"#E0DDCA",successBorder:"#608245",warning:"#775000",warningWash:"#E5DCC8",warningBorder:"#947535",danger:"#A02F22",dangerWash:"#F3DDCD",dangerBorder:"#B56254",info:"#125C8C",infoWash:"#E7EBE2",infoBorder:"#4A7E9D",overlayShadow:"0 12px 32px -12px rgb(51 43 32 / 0.22)",scrim:"rgb(51 43 32 / 0.35)"}},eB={id:"radient",name:"Radient",description:"Radient blue: deep navy ground with a soft blue accent.",palette:{mode:"dark",canvas:"#1B2027",surface:"#25293A",elevated:"#2D324D",sunken:"#181A1D",rowHover:"#2E303B",rowSelected:"#2D344B",ink:"#F2F7FC",inkMuted:"#C2D2E0",inkDim:"#91ABBF",inkDisabled:"#64748B",hairline:"#3C404F",borderControl:"#7A8CA3",accent:"#91B7E9",accentHover:"#BDF0FD",accentActive:"#6E9AD4",chartBarHover:"#C1D7F3",tokenCommand:"#E3B457",accentWash:"#1F2835",onAccent:"#10151C",accentAlt:"#D4D6F6",accentAltWash:"#252734",success:"#63D2A0",successWash:"#1A2C2C",successBorder:"#4C8C73",warning:"#E3B457",warningWash:"#292823",warningBorder:"#957C4B",danger:"#EF7E86",dangerWash:"#2B2229",dangerBorder:"#B16C72",info:"#91B7E9",infoWash:"#1F2835",infoBorder:"#6A81A0",overlayShadow:"0 12px 32px -12px rgb(4 6 10 / 0.7)",scrim:"rgb(4 6 10 / 0.6)"}},tB={id:"rosePine",name:"Rosé Pine",description:"Dusty rose and muted pine on a deep plum night.",palette:{mode:"dark",canvas:"#2b2936",surface:"#322f42",elevated:"#37334b",sunken:"#24232d",rowHover:"#36333F",rowSelected:"#38344E",ink:"#e0def4",inkMuted:"#c7c4df",inkDim:"#aaa6c4",inkDisabled:"#6e6a86",hairline:"#3e3e4d",borderControl:"#8b87a3",accent:"#ebbcba",accentHover:"#f2cfcd",accentActive:"#d9a5a3",chartBarHover:"#FFE5E2",tokenCommand:"#a4d7e0",accentWash:"#392e3a",onAccent:"#191724",accentAlt:"#c4a7e7",accentAltWash:"#352f3c",success:"#6aa6c3",successWash:"#1a2730",successBorder:"#4b86a2",warning:"#f6c177",warningWash:"#2b2419",warningBorder:"#977c4a",danger:"#f37699",dangerWash:"#2e1c26",dangerBorder:"#b5697d",info:"#a4d7e0",infoWash:"#1a2a2e",infoBorder:"#55878f",overlayShadow:"0 12px 32px -12px rgb(14 12 20 / 0.7)",scrim:"rgb(14 12 20 / 0.6)"}},nB={id:"rosePineDawn",name:"Rosé Pine Dawn",description:"Rosé Pine by daylight: warm rose paper with pine and gold ink.",palette:{mode:"light",canvas:"#f3ece5",surface:"#f9f4f0",elevated:"#fdfcfa",sunken:"#f2e7da",rowHover:"#F1ECE8",rowSelected:"#F3E7DD",ink:"#464268",inkMuted:"#544e6c",inkDim:"#636071",inkDisabled:"#9893a5",hairline:"#e1d8d1",borderControl:"#8f828a",accent:"#9e5350",accentHover:"#8b4644",accentActive:"#743a38",chartBarHover:"#7e3635",tokenCommand:"#10746E",accentWash:"#fbece8",onAccent:"#fffaf3",accentAlt:"#755F8C",accentAltWash:"#F3EDF8",success:"#286983",successWash:"#e4edf1",successBorder:"#5c8ba0",warning:"#975b00",warningWash:"#f6ead6",warningBorder:"#a47f41",danger:"#9f5069",dangerWash:"#fcebef",dangerBorder:"#ac7687",info:"#10746E",infoWash:"#e2eeef",infoBorder:"#538f92",overlayShadow:"0 12px 32px -12px rgb(87 82 121 / 0.24)",scrim:"rgb(87 82 121 / 0.4)"}},rB={id:"rosePineMoon",name:"Rosé Pine Moon",description:"Rosé Pine lifted: the same rose and pine over a softer violet.",palette:{mode:"dark",canvas:"#232136",surface:"#2a273f",elevated:"#2F2B47",sunken:"#1b192a",rowHover:"#322F3E",rowSelected:"#353150",ink:"#e0def4",inkMuted:"#c9c6e0",inkDim:"#aaa7c3",inkDisabled:"#6e6a86",hairline:"#414057",borderControl:"#8f8ba9",accent:"#eaaca9",accentHover:"#f2c2bf",accentActive:"#d69793",chartBarHover:"#FFD6D2",tokenCommand:"#A0D4DD",accentWash:"#382b38",onAccent:"#232136",accentAlt:"#c4a7e7",accentAltWash:"#332C3B",success:"#4eadd9",successWash:"#22303c",successBorder:"#4B8AA9",warning:"#f6c177",warningWash:"#37301f",warningBorder:"#9A8050",danger:"#f97a9e",dangerWash:"#38222e",dangerBorder:"#B86C85",info:"#A0D4DD",infoWash:"#23343a",infoBorder:"#5B8A94",overlayShadow:"0 12px 32px -12px rgb(20 18 32 / 0.7)",scrim:"rgb(20 18 32 / 0.6)"}},oB={id:"rosewood",name:"Rosewood",description:"Dark rosewood with dried-rose reds and a glint of brass.",palette:{mode:"dark",canvas:"#302122",surface:"#392A2B",elevated:"#403232",sunken:"#251C1D",rowHover:"#3B3232",rowSelected:"#483133",ink:"#EEE0DC",inkMuted:"#D9C1BC",inkDim:"#B9A49F",inkDisabled:"#584745",hairline:"#4F3A39",borderControl:"#927975",accent:"#E895B5",accentHover:"#F7A3C3",accentActive:"#D988A8",chartBarHover:"#FFC4E4",tokenCommand:"#82B1D4",accentWash:"#31281D",onAccent:"#170C0D",accentAlt:"#B7A0DD",accentAltWash:"#2D2733",success:"#94BD80",successWash:"#38312A",successBorder:"#718460",warning:"#D8AB58",warningWash:"#412F25",warningBorder:"#997947",danger:"#EA8378",dangerWash:"#371C1C",dangerBorder:"#B66961",info:"#82B1D4",infoWash:"#263140",infoBorder:"#698197",overlayShadow:"0 12px 32px -12px rgb(23 12 13 / 0.7)",scrim:"rgb(23 12 13 / 0.6)"}},iB={id:"sage",name:"Sage",description:"Light and green: floral white paper with a deep sage ink.",palette:{mode:"light",canvas:"#F2EDE0",surface:"#FAF6EB",elevated:"#FFFEF9",sunken:"#E8E1CF",rowHover:"#EFEDE6",rowSelected:"#EEE8D5",ink:"#222C1F",inkMuted:"#404935",inkDim:"#556147",inkDisabled:"#96A088",hairline:"#D5D3C5",borderControl:"#68865F",accent:"#476D49",accentHover:"#35563A",accentActive:"#294229",chartBarHover:"#334F35",tokenCommand:"#3A659F",accentWash:"#E6E9D8",onAccent:"#F4F6F4",accentAlt:"#785791",accentAltWash:"#EEE4F4",success:"#446F26",successWash:"#E9EBD3",successBorder:"#5F8D32",warning:"#825C06",warningWash:"#EAE2CC",warningBorder:"#967E42",danger:"#A8402F",dangerWash:"#EDDED0",dangerBorder:"#B76D5C",info:"#3A659F",infoWash:"#E9E9E7",infoBorder:"#6181B7",overlayShadow:"0 12px 32px -12px rgb(34 44 31 / 0.22)",scrim:"rgb(34 44 31 / 0.35)"}},aB={id:"solarizedDark",name:"Solarized Dark",description:"Schoonover's precision dark — deep teal-black with a cyan accent.",palette:{mode:"dark",canvas:"#002B36",surface:"#05333F",elevated:"#093A46",sunken:"#00252E",rowHover:"#22373E",rowSelected:"#003C4C",ink:"#C2CECE",inkMuted:"#B9C8C8",inkDim:"#98ACAE",inkDisabled:"#586E75",hairline:"#1E4955",borderControl:"#5B8893",accent:"#3DB0A5",accentHover:"#53C3B8",accentActive:"#249D94",chartBarHover:"#66D5C9",tokenCommand:"#53A7EB",accentWash:"#00323B",onAccent:"#00252E",accentAlt:"#9497E1",accentAltWash:"#2A2B41",success:"#94A91F",successWash:"#0B3338",successBorder:"#778A01",warning:"#C79A27",warningWash:"#223B3A",warningBorder:"#A37B02",danger:"#FF776B",dangerWash:"#2A2028",dangerBorder:"#DA554C",info:"#49A6EC",infoWash:"#023241",infoBorder:"#2087CB",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},sB={id:"solarizedLight",name:"Solarized Light",description:"Schoonover's precision light — warm paper with the Solarized hues.",palette:{mode:"light",canvas:"#F4EDDB",surface:"#F9F5E9",elevated:"#FEFDF9",sunken:"#E5DFCC",rowHover:"#EEECE5",rowSelected:"#EDE7D3",ink:"#073642",inkMuted:"#33484F",inkDim:"#4B5F67",inkDisabled:"#93A1A1",hairline:"#D6CFB8",borderControl:"#867F63",accent:"#12689E",accentHover:"#155B8A",accentActive:"#0F4770",chartBarHover:"#024B78",tokenCommand:"#007469",accentWash:"#EAEFD2",onAccent:"#FFFEFA",accentAlt:"#7651A4",accentAltWash:"#F4E8FF",success:"#5A6A01",successWash:"#EDE9CF",successBorder:"#758629",warning:"#7E5E00",warningWash:"#F2E8D0",warningBorder:"#9C7A2A",danger:"#C5131C",dangerWash:"#FCEFE6",dangerBorder:"#E8413C",info:"#016F65",infoWash:"#E4ECEC",infoBorder:"#2D8D82",overlayShadow:"0 12px 32px -12px rgb(7 54 66 / 0.22)",scrim:"rgb(7 54 66 / 0.35)"}},lB={id:"synth",name:"Synth",description:"Synthwave: deep purple night with hot pink and neon blue.",palette:{mode:"dark",canvas:"#231C32",surface:"#2E1D42",elevated:"#36274D",sunken:"#1C1A20",rowHover:"#32273E",rowSelected:"#39294A",ink:"#F7F2FB",inkMuted:"#C7B8D8",inkDim:"#AB9BBD",inkDisabled:"#6B5C7D",hairline:"#64224E",borderControl:"#8A7BA0",accent:"#FF618E",accentHover:"#FF79B0",accentActive:"#F50057",chartBarHover:"#FF92B5",tokenCommand:"#00E5FF",accentWash:"#2E0E2C",onAccent:"#120720",accentAlt:"#3AAC75",accentAltWash:"#002010",success:"#4DE8A8",successWash:"#192230",successBorder:"#37886F",warning:"#FFA500",warningWash:"#2E1A1C",warningBorder:"#A76E21",danger:"#FF6B6B",dangerWash:"#2E1329",dangerBorder:"#BE5C66",info:"#00E5FF",infoWash:"#10223B",infoBorder:"#1585A0",overlayShadow:"0 12px 32px -12px rgb(6 2 13 / 0.75)",scrim:"rgb(6 2 13 / 0.65)"}},cB={id:"synthwave",name:"Synthwave '84",description:"Hot pink and cyan on a deep purple-navy night drive.",palette:{mode:"dark",canvas:"#262335",surface:"#2D2A41",elevated:"#332F4A",sunken:"#1E1B2A",rowHover:"#33313F",rowSelected:"#363250",ink:"#F2EFF8",inkMuted:"#BCB3D4",inkDim:"#9DA4D6",inkDisabled:"#6D6688",hairline:"#443F5E",borderControl:"#837CA2",accent:"#FF7EDB",accentHover:"#FF97F5",accentActive:"#DB5DBA",chartBarHover:"#F9B0E8",tokenCommand:"#36F9F6",accentWash:"#422F4B",onAccent:"#151123",accentAlt:"#A397D6",accentAltWash:"#302B48",success:"#72F1B8",successWash:"#303E46",successBorder:"#538B7A",warning:"#FEDE5D",warningWash:"#423B3A",warningBorder:"#90804F",danger:"#FF7173",dangerWash:"#422D3D",dangerBorder:"#B36D76",info:"#36F9F6",infoWash:"#283F4E",infoBorder:"#378C95",overlayShadow:"0 12px 32px -12px rgb(15 14 21 / 0.75)",scrim:"rgb(15 14 21 / 0.65)"}},uB={id:"tokyoNight",name:"Tokyo Night",description:"Deep blue-purple night with a bright blue accent.",palette:{mode:"dark",canvas:"#2A2A35",surface:"#313448",elevated:"#363A55",sunken:"#23232A",rowHover:"#3A3B48",rowSelected:"#3A3E59",ink:"#D5DCFF",inkMuted:"#CCD4FA",inkDim:"#ACB3D4",inkDisabled:"#565F89",hairline:"#3F4664",borderControl:"#7A83AF",accent:"#7CA4F9",accentHover:"#9EBCFF",accentActive:"#6D8FDA",chartBarHover:"#B3CBFF",tokenCommand:"#7DCFFF",accentWash:"#363A50",onAccent:"#1A1B26",accentAlt:"#bb9af7",accentAltWash:"#40374D",success:"#9ECE6A",successWash:"#2A302E",successBorder:"#738E5B",warning:"#E0AF68",warningWash:"#322D2E",warningBorder:"#9D815D",danger:"#FE7C94",dangerWash:"#352632",dangerBorder:"#BE6E80",info:"#7DCFFF",infoWash:"#263140",infoBorder:"#5D8BAA",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.7)",scrim:"rgb(9 9 14 / 0.6)"}},dB={id:"tokyoNightDay",name:"Tokyo Night Day",description:"Tokyo Night at noon — cool paper under the same neon hues.",palette:{mode:"light",canvas:"#E1E2E7",surface:"#EAEBEE",elevated:"#F3F4F5",sunken:"#D8DAE1",rowHover:"#E1E2E6",rowSelected:"#DBDCE7",ink:"#223D7B",inkMuted:"#34427D",inkDim:"#4F577F",inkDisabled:"#8990B3",hairline:"#C5C9DB",borderControl:"#6172B0",accent:"#135BBE",accentHover:"#104895",accentActive:"#0C3671",chartBarHover:"#003F90",tokenCommand:"#016689",accentWash:"#DEE1EB",onAccent:"#E1E2E7",accentAlt:"#7B2AE4",accentAltWash:"#E5DFE9",success:"#4E6632",successWash:"#DADCDE",successBorder:"#5B783A",warning:"#755A33",warningWash:"#DBDADC",warningBorder:"#896A3D",danger:"#BE063D",dangerWash:"#E0DDE3",dangerBorder:"#DC0A47",info:"#016689",infoWash:"#D8DDE3",infoBorder:"#0078A1",overlayShadow:"0 12px 32px -12px rgb(37 65 128 / 0.22)",scrim:"rgb(37 65 128 / 0.35)"}},fB={id:"tokyoNightStorm",name:"Tokyo Night Storm",description:"The brighter night — indigo storm skies under the same neon accents.",palette:{mode:"dark",canvas:"#24283B",surface:"#2B3048",elevated:"#303652",sunken:"#1D2032",rowHover:"#353745",rowSelected:"#323958",ink:"#CAD4FF",inkMuted:"#C1CBF5",inkDim:"#A1ACD5",inkDisabled:"#565F89",hairline:"#3F4662",borderControl:"#7B84AB",accent:"#7BA2F8",accentHover:"#9EBCFF",accentActive:"#6D8FDA",chartBarHover:"#AAC6FF",tokenCommand:"#7DCFFF",accentWash:"#283349",onAccent:"#1D2032",accentAlt:"#bb9af7",accentAltWash:"#372F45",success:"#9ECE6A",successWash:"#40504B",successBorder:"#65922C",warning:"#E0AF68",warningWash:"#4C4649",warningBorder:"#AB7D34",danger:"#FE7C94",dangerWash:"#3A2C3D",dangerBorder:"#D95B74",info:"#7DCFFF",infoWash:"#263A52",infoBorder:"#398DBA",overlayShadow:"0 12px 32px -12px rgb(9 9 14 / 0.65)",scrim:"rgb(9 9 14 / 0.6)"}},pB={id:"tron",name:"Tron",description:"Electric cyan circuitry on the Grid's blue-black.",palette:{mode:"dark",canvas:"#1D2025",surface:"#1F2734",elevated:"#232D3D",sunken:"#1A1B1E",rowHover:"#282D35",rowSelected:"#243043",ink:"#D8E6F2",inkMuted:"#A5BED2",inkDim:"#83A4BE",inkDisabled:"#44596D",hairline:"#283C4F",borderControl:"#617C98",accent:"#00D8FF",accentHover:"#48F2FF",accentActive:"#00B7DD",chartBarHover:"#A8E3F5",tokenCommand:"#7AB8FF",accentWash:"#052631",onAccent:"#00050D",accentAlt:"#a496ff",accentAltWash:"#232032",success:"#3FE0B0",successWash:"#0D2727",successBorder:"#3D8673",warning:"#E8C14A",warningWash:"#232319",warningBorder:"#887844",danger:"#FF7A2F",dangerWash:"#261916",dangerBorder:"#A96A49",info:"#7AB8FF",infoWash:"#152131",infoBorder:"#5E7BA1",overlayShadow:"0 12px 32px -12px rgb(2 4 7 / 0.75)",scrim:"rgb(2 4 7 / 0.65)"}},mB={id:"vaporwave",name:"Vaporwave",description:"Dusty pink and faded teal pastels on deep mall-purple.",palette:{mode:"dark",canvas:"#2E2540",surface:"#372C4B",elevated:"#3C3154",sunken:"#261F38",rowHover:"#3D3548",rowSelected:"#43365A",ink:"#EDE8F2",inkMuted:"#D5C7E9",inkDim:"#B7A9D4",inkDisabled:"#685B82",hairline:"#483D65",borderControl:"#8878A9",accent:"#F7A8D8",accentHover:"#FFC1F2",accentActive:"#D488B7",chartBarHover:"#F1CDE7",tokenCommand:"#7BD7E3",accentWash:"#463552",onAccent:"#150824",accentAlt:"#A8A9F9",accentAltWash:"#383958",success:"#8FE6C0",successWash:"#2E3243",successBorder:"#628783",warning:"#F0CD8A",warningWash:"#3A2F3C",warningBorder:"#917D6A",danger:"#F6838D",dangerWash:"#3A253C",dangerBorder:"#AB6F81",info:"#7BD7E3",infoWash:"#2B3047",infoBorder:"#608599",overlayShadow:"0 12px 32px -12px rgb(12 9 19 / 0.75)",scrim:"rgb(12 9 19 / 0.65)"}},hB=[L5,j5,E5,S5,iB,z5,uB,T5,eB,H5,K5,lB,C5,y5,fB,P5,G5,X5,aB,tB,rB,nB,u5,R5,dB,Q5,v5,w5,Z5,A5,D5,M5,I5,m5,g5,h5,U5,k5,cB,W5,pB,x5,mB,q5,V5,d5,F5,Y5,b5,p5,O5,f5,oB,sB,B5,J5,N5,_5,$5],Bg=Object.fromEntries(hB.map(t=>[t.id,{id:t.id,name:t.name,description:t.description,theme:c5(t.palette)}])),qy="localOperatorDark",gB=t=>Bg[t]||Bg[qy],vB=t=>{const r=gB(t),o=document.documentElement;o.dataset.theme=r.id,o.classList.toggle("dark",r.theme.palette.mode==="dark")};typeof document<"u"&&!document.documentElement.dataset.theme&&vB(qy);const yB=()=>!1,wB=m.createContext(null),ju={didCatch:!1,error:null};let CB=class extends m.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ju}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var o,a,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{args:c,reason:"imperative-api"}),this.setState(ju)}}componentDidCatch(r,o){var a,s;(a=(s=this.props).onError)===null||a===void 0||a.call(s,r,o)}componentDidUpdate(r,o){const{didCatch:a}=this.state,{resetKeys:s}=this.props;if(a&&o.error!==null&&xB(r.resetKeys,s)){var c,u;(c=(u=this.props).onReset)===null||c===void 0||c.call(u,{next:s,prev:r.resetKeys,reason:"keys"}),this.setState(ju)}}render(){const{children:r,fallbackRender:o,FallbackComponent:a,fallback:s}=this.props,{didCatch:c,error:u}=this.state;let f=r;if(c){const h={error:u,resetErrorBoundary:this.resetErrorBoundary};if(typeof o=="function")f=o(h);else if(a)f=m.createElement(a,h);else if(s!==void 0)f=s;else throw u}return m.createElement(wB.Provider,{value:{didCatch:c,error:u,resetErrorBoundary:this.resetErrorBoundary}},f)}};function xB(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==r.length||t.some((o,a)=>!Object.is(o,r[a]))}const bB=({error:t,resetErrorBoundary:r})=>w.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-6 p-8 text-center",children:[w.jsx(Yg,{size:48,"aria-hidden":"true",className:"text-danger"}),w.jsxs("div",{className:"flex flex-col gap-2",children:[w.jsx("h2",{className:"text-title text-ink",children:"Something went wrong"}),w.jsx("p",{className:"max-w-150 text-body text-ink-muted",children:"The application encountered an error. Try again, or contact support if the problem persists."})]}),w.jsxs(ua,{variant:"primary",onClick:r,children:[w.jsx(wx,{"aria-hidden":"true"}),"Try again"]}),yB()]}),rP=({children:t,fallback:r})=>{const o=(a,s)=>{console.error("Error caught by ErrorBoundary:",a,s)};return w.jsx(CB,{FallbackComponent:r?()=>w.jsx(w.Fragment,{children:r}):bB,onError:o,children:t})},oP=""+new URL("icon-tV2fhamD.png",import.meta.url).href;export{m4 as $,Ax as A,ua as B,rx as C,qy as D,rP as E,bd as F,hx as G,DB as H,Ay as I,rD as J,BD as K,DD as L,Dy as M,dD as N,Ry as O,FD as P,rF as Q,SB as R,By as S,hF as T,WD as U,iD as V,BB as W,Ed as X,xd as Y,wx as Z,Bg as _,xt as a,pr as a0,Sl as a1,kl as a2,Uo as a3,_g as a4,o5 as a5,kB as a6,zy as a7,w4 as a8,Y4 as a9,pF as aA,cx as aB,sx as aC,GB as aD,gB as aE,kD as aF,dx as aG,mr as aH,SD as aI,bD as aJ,tP as aK,JB as aL,JD as aM,eF as aN,tF as aO,yB as aP,Go as aa,Gr as ab,Lt as ac,QD as ad,UB as ae,pD as af,mD as ag,gD as ah,hD as ai,vD as aj,Yg as ak,N4 as al,yd as am,PD as an,EB as ao,oF as ap,iF as aq,lF as ar,cF as as,aF as at,uF as au,ix as av,qB as aw,ZB as ax,eP as ay,fF as az,XB as b,se as c,zD as d,QB as e,HD as f,UD as g,nF as h,Dx as i,w as j,Fx as k,KD as l,J3 as m,tD as n,Ty as o,vd as p,AB as q,m as r,FB as s,oP as t,vB as u,Z1 as v,KB as w,YB as x,CD as y,xD as z};