@rynx-ai/daemon 0.1.10 → 0.1.11-beta.2

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 (117) hide show
  1. package/bundled-plugins/.rynx-plugin/marketplace.json +10 -0
  2. package/bundled-plugins/plugins/lark/.rynx-plugin/plugin.json +37 -0
  3. package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.d.ts +48 -0
  4. package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.js +54 -0
  5. package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-mirror.d.ts +85 -0
  6. package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-mirror.js +333 -0
  7. package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-watcher.d.ts +109 -0
  8. package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-watcher.js +347 -0
  9. package/bundled-plugins/plugins/lark/dist/host-adapters.d.ts +95 -0
  10. package/bundled-plugins/plugins/lark/dist/host-adapters.js +504 -0
  11. package/bundled-plugins/plugins/lark/dist/index.d.ts +7 -0
  12. package/bundled-plugins/plugins/lark/dist/index.js +7 -0
  13. package/bundled-plugins/plugins/lark/dist/lark-card-stream.d.ts +363 -0
  14. package/bundled-plugins/plugins/lark/dist/lark-card-stream.js +1335 -0
  15. package/bundled-plugins/plugins/lark/dist/lark-config-store.d.ts +30 -0
  16. package/bundled-plugins/plugins/lark/dist/lark-config-store.js +135 -0
  17. package/bundled-plugins/plugins/lark/dist/lark-content.d.ts +30 -0
  18. package/bundled-plugins/plugins/lark/dist/lark-content.js +138 -0
  19. package/bundled-plugins/plugins/lark/dist/lark-conversation-directory.d.ts +65 -0
  20. package/bundled-plugins/plugins/lark/dist/lark-conversation-directory.js +106 -0
  21. package/bundled-plugins/plugins/lark/dist/lark-diff-card.d.ts +25 -0
  22. package/bundled-plugins/plugins/lark/dist/lark-diff-card.js +58 -0
  23. package/bundled-plugins/plugins/lark/dist/lark-fork-transcript.d.ts +16 -0
  24. package/bundled-plugins/plugins/lark/dist/lark-fork-transcript.js +141 -0
  25. package/bundled-plugins/plugins/lark/dist/lark-resume-card.d.ts +31 -0
  26. package/bundled-plugins/plugins/lark/dist/lark-resume-card.js +105 -0
  27. package/bundled-plugins/plugins/lark/dist/lark-runtime-state-store.d.ts +18 -0
  28. package/bundled-plugins/plugins/lark/dist/lark-runtime-state-store.js +95 -0
  29. package/bundled-plugins/plugins/lark/dist/lark-sdk/client.d.ts +8 -0
  30. package/bundled-plugins/plugins/lark/dist/lark-sdk/client.js +32 -0
  31. package/bundled-plugins/plugins/lark/dist/lark-sdk/index.d.ts +1 -0
  32. package/bundled-plugins/plugins/lark/dist/lark-sdk/index.js +1 -0
  33. package/bundled-plugins/plugins/lark/dist/lark-sender.d.ts +114 -0
  34. package/bundled-plugins/plugins/lark/dist/lark-sender.js +323 -0
  35. package/bundled-plugins/plugins/lark/dist/lark-session-store.d.ts +13 -0
  36. package/bundled-plugins/plugins/lark/dist/lark-session-store.js +14 -0
  37. package/bundled-plugins/plugins/lark/dist/lark-settings-card.d.ts +55 -0
  38. package/bundled-plugins/plugins/lark/dist/lark-settings-card.js +158 -0
  39. package/bundled-plugins/plugins/lark/dist/lark-setup.d.ts +39 -0
  40. package/bundled-plugins/plugins/lark/dist/lark-setup.js +103 -0
  41. package/bundled-plugins/plugins/lark/dist/lark.d.ts +507 -0
  42. package/bundled-plugins/plugins/lark/dist/lark.js +1977 -0
  43. package/bundled-plugins/plugins/lark/dist/runtime.d.ts +13 -0
  44. package/bundled-plugins/plugins/lark/dist/runtime.js +131316 -0
  45. package/bundled-plugins/plugins/lark/dist/settings.d.ts +7 -0
  46. package/bundled-plugins/plugins/lark/dist/settings.js +126958 -0
  47. package/bundled-plugins/plugins/lark/package.json +57 -0
  48. package/bundled-plugins/plugins/lark/ui/assets/index-B2dhMlMU.css +1 -0
  49. package/bundled-plugins/plugins/lark/ui/assets/index-D9N-AkLX.js +201 -0
  50. package/bundled-plugins/plugins/lark/ui/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  51. package/bundled-plugins/plugins/lark/ui/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  52. package/bundled-plugins/plugins/lark/ui/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  53. package/bundled-plugins/plugins/lark/ui/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  54. package/bundled-plugins/plugins/lark/ui/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  55. package/bundled-plugins/plugins/lark/ui/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  56. package/bundled-plugins/plugins/lark/ui/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  57. package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  58. package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  59. package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  60. package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  61. package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  62. package/bundled-plugins/plugins/lark/ui/index.html +13 -0
  63. package/dist/bundled-plugins.d.ts +15 -0
  64. package/dist/bundled-plugins.js +134 -0
  65. package/dist/cli.js +26 -208
  66. package/dist/control-deps.js +2 -79
  67. package/dist/daemon-server.d.ts +4 -1
  68. package/dist/daemon-server.js +167 -57
  69. package/dist/db.js +145 -124
  70. package/dist/index-daemon.js +25 -4
  71. package/dist/migrations/cleanup-legacy-sessions.d.ts +1 -1
  72. package/dist/migrations/cleanup-legacy-sessions.js +33 -15
  73. package/dist/official-plugins.d.ts +2 -0
  74. package/dist/official-plugins.js +2 -0
  75. package/dist/plugin-cli.d.ts +1 -3
  76. package/dist/plugin-cli.js +56 -45
  77. package/dist/plugin-host-leases.d.ts +4 -0
  78. package/dist/plugin-host-leases.js +7 -0
  79. package/dist/plugin-host-rpc.d.ts +42 -4
  80. package/dist/plugin-host-rpc.js +144 -34
  81. package/dist/plugin-installer.d.ts +24 -55
  82. package/dist/plugin-installer.js +202 -415
  83. package/dist/plugin-management-service.d.ts +30 -23
  84. package/dist/plugin-management-service.js +290 -105
  85. package/dist/plugin-marketplace.d.ts +35 -0
  86. package/dist/plugin-marketplace.js +299 -0
  87. package/dist/plugin-package.d.ts +22 -24
  88. package/dist/plugin-package.js +520 -571
  89. package/dist/plugin-skill-context.d.ts +4 -0
  90. package/dist/plugin-skill-context.js +35 -0
  91. package/dist/plugin-store.d.ts +36 -37
  92. package/dist/plugin-store.js +140 -92
  93. package/dist/plugin-supervisor.d.ts +45 -125
  94. package/dist/plugin-supervisor.js +516 -1053
  95. package/dist/pm2.js +15 -10
  96. package/dist/runtime-project-store.d.ts +9 -0
  97. package/dist/runtime-project-store.js +83 -0
  98. package/dist/session-fallback-workspace.d.ts +22 -0
  99. package/dist/session-fallback-workspace.js +120 -0
  100. package/dist/session-fork-store.d.ts +41 -0
  101. package/dist/session-fork-store.js +288 -0
  102. package/dist/session-launch-operations.d.ts +14 -2
  103. package/dist/session-launch-operations.js +34 -2
  104. package/dist/session-meta-store.d.ts +7 -9
  105. package/dist/session-meta-store.js +28 -49
  106. package/dist/setup.js +26 -14
  107. package/package.json +14 -11
  108. package/dist/channel-store.d.ts +0 -22
  109. package/dist/channel-store.js +0 -65
  110. package/dist/instance-store.d.ts +0 -38
  111. package/dist/instance-store.js +0 -85
  112. package/dist/plugin-install-restart.d.ts +0 -13
  113. package/dist/plugin-install-restart.js +0 -24
  114. package/dist/plugin-runtime-control.d.ts +0 -2
  115. package/dist/plugin-runtime-control.js +0 -37
  116. package/dist/registry.d.ts +0 -10
  117. package/dist/registry.js +0 -52
@@ -0,0 +1,201 @@
1
+ var Ix=Object.defineProperty;var Pp=l=>{throw TypeError(l)};var Fx=(l,r,o)=>r in l?Ix(l,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[r]=o;var Zp=(l,r,o)=>Fx(l,typeof r!="symbol"?r+"":r,o),Kp=(l,r,o)=>r.has(l)||Pp("Cannot "+o);var Ke=(l,r,o)=>(Kp(l,r,"read from private field"),o?o.call(l):r.get(l)),Un=(l,r,o)=>r.has(l)?Pp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(l):r.set(l,o),Hn=(l,r,o,i)=>(Kp(l,r,"write to private field"),i?i.call(l,o):r.set(l,o),o);var $p=(l,r,o,i)=>({set _(s){Hn(l,r,s,o)},get _(){return Ke(l,r,i)}});function Wx(l,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in l)){const f=Object.getOwnPropertyDescriptor(i,s);f&&Object.defineProperty(l,s,f.get?f:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(s){if(s.ep)return;s.ep=!0;const f=o(s);fetch(s.href,f)}})();function by(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Qu={exports:{}},ii={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 Jp;function ew(){if(Jp)return ii;Jp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var m in s)m!=="key"&&(f[m]=s[m])}else f=s;return s=f.ref,{$$typeof:l,type:i,key:d,ref:s!==void 0?s:null,props:f}}return ii.Fragment=r,ii.jsx=o,ii.jsxs=o,ii}var Ip;function tw(){return Ip||(Ip=1,Qu.exports=ew()),Qu.exports}var y=tw();const nw=1024*1024,lw=3e4;var qn,nr,yi,wl,El,Wl,hc,ea;class aw{constructor(){Un(this,qn,new Map);Un(this,nr,new Set);Un(this,yi,r=>this.acceptConnection(r));Un(this,wl);Un(this,El,!1);Un(this,Wl,!1);Un(this,hc,1);Un(this,ea);Zp(this,"host",{openExternal:async r=>(await this.request("host.openExternal",{url:r})).opened===!0});window.addEventListener("message",Ke(this,yi))}get connected(){return Ke(this,El)}get error(){return Ke(this,ea)}subscribe(r){return Ke(this,nr).add(r),r(),()=>Ke(this,nr).delete(r)}call(r,...o){return this.request(r,o[0])}destroy(){var r;Ke(this,Wl)||(Hn(this,Wl,!0),window.removeEventListener("message",Ke(this,yi)),(r=Ke(this,wl))==null||r.close(),Hn(this,wl,void 0),Hn(this,El,!1),this.rejectPending(new Error("Rynx connection closed")),this.notify())}request(r,o){if(!Ke(this,wl)||!Ke(this,El)||Ke(this,Wl))return Promise.reject(new Error("Rynx connection is unavailable"));const i=$p(this,hc)._++,s={id:i,method:r,params:o};return new TextEncoder().encode(JSON.stringify(s)).byteLength>nw?Promise.reject(new Error("Request exceeds 1 MiB")):new Promise((f,d)=>{const m=window.setTimeout(()=>{Ke(this,qn).delete(i),d(new Error("Rynx request timed out"))},lw);Ke(this,qn).set(i,{resolve:f,reject:d,timeout:m}),Ke(this,wl).postMessage(s)})}acceptConnection(r){var i;if(Ke(this,Wl)||Ke(this,El)||r.source!==parent||!jf(r.data)||r.data.type!=="rynx-plugin-connect")return;const o=(i=r.ports)==null?void 0:i[0];o&&(Hn(this,wl,o),Hn(this,El,!0),Hn(this,ea,void 0),Fp(r.data.appearance),o.onmessage=s=>this.acceptPortMessage(s.data),o.onmessageerror=()=>{Hn(this,ea,"Rynx returned an unreadable response"),this.rejectPending(new Error(Ke(this,ea))),this.notify()},o.start(),this.notify())}acceptPortMessage(r){if(!jf(r))return;if(r.type==="rynx-host-appearance"){Fp(r.appearance);return}if(typeof r.id!="number")return;const o=Ke(this,qn).get(r.id);o&&(Ke(this,qn).delete(r.id),window.clearTimeout(o.timeout),typeof r.error=="string"&&r.error?o.reject(new Error(r.error)):o.resolve(r.result))}rejectPending(r){for(const o of Ke(this,qn).values())window.clearTimeout(o.timeout),o.reject(r);Ke(this,qn).clear()}notify(){for(const r of Ke(this,nr))r()}}qn=new WeakMap,nr=new WeakMap,yi=new WeakMap,wl=new WeakMap,El=new WeakMap,Wl=new WeakMap,hc=new WeakMap,ea=new WeakMap;function Fp(l){if(!jf(l))return;const r=l.colorScheme;r!=="light"&&r!=="dark"||(document.documentElement.dataset.theme=r,document.documentElement.classList.toggle("dark",r==="dark"))}function jf(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}var Pu={exports:{}},oi={},Zu={exports:{}},Ku={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 Wp;function rw(){return Wp||(Wp=1,(function(l){function r(U,F){var ee=U.length;U.push(F);e:for(;0<ee;){var de=ee-1>>>1,W=U[de];if(0<s(W,F))U[de]=F,U[ee]=W,ee=de;else break e}}function o(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var F=U[0],ee=U.pop();if(ee!==F){U[0]=ee;e:for(var de=0,W=U.length,M=W>>>1;de<M;){var Q=2*(de+1)-1,ne=U[Q],re=Q+1,ie=U[re];if(0>s(ne,ee))re<W&&0>s(ie,ne)?(U[de]=ie,U[re]=ee,de=re):(U[de]=ne,U[Q]=ee,de=Q);else if(re<W&&0>s(ie,ee))U[de]=ie,U[re]=ee,de=re;else break e}}return F}function s(U,F){var ee=U.sortIndex-F.sortIndex;return ee!==0?ee:U.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();l.unstable_now=function(){return d.now()-m}}var h=[],p=[],S=1,b=null,E=3,x=!1,C=!1,A=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function j(U){for(var F=o(p);F!==null;){if(F.callback===null)i(p);else if(F.startTime<=U)i(p),F.sortIndex=F.expirationTime,r(h,F);else break;F=o(p)}}function P(U){if(A=!1,j(U),!C)if(o(h)!==null)C=!0,q||(q=!0,$());else{var F=o(p);F!==null&&pe(P,F.startTime-U)}}var q=!1,O=-1,B=5,Z=-1;function X(){return _?!0:!(l.unstable_now()-Z<B)}function Y(){if(_=!1,q){var U=l.unstable_now();Z=U;var F=!0;try{e:{C=!1,A&&(A=!1,z(O),O=-1),x=!0;var ee=E;try{t:{for(j(U),b=o(h);b!==null&&!(b.expirationTime>U&&X());){var de=b.callback;if(typeof de=="function"){b.callback=null,E=b.priorityLevel;var W=de(b.expirationTime<=U);if(U=l.unstable_now(),typeof W=="function"){b.callback=W,j(U),F=!0;break t}b===o(h)&&i(h),j(U)}else i(h);b=o(h)}if(b!==null)F=!0;else{var M=o(p);M!==null&&pe(P,M.startTime-U),F=!1}}break e}finally{b=null,E=ee,x=!1}F=void 0}}finally{F?$():q=!1}}}var $;if(typeof T=="function")$=function(){T(Y)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,le=te.port2;te.port1.onmessage=Y,$=function(){le.postMessage(null)}}else $=function(){R(Y,0)};function pe(U,F){O=R(function(){U(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return E},l.unstable_next=function(U){switch(E){case 1:case 2:case 3:var F=3;break;default:F=E}var ee=E;E=F;try{return U()}finally{E=ee}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(U,F){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=E;E=U;try{return F()}finally{E=ee}},l.unstable_scheduleCallback=function(U,F,ee){var de=l.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?de+ee:de):ee=de,U){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ee+W,U={id:S++,callback:F,priorityLevel:U,startTime:ee,expirationTime:W,sortIndex:-1},ee>de?(U.sortIndex=ee,r(p,U),o(h)===null&&U===o(p)&&(A?(z(O),O=-1):A=!0,pe(P,ee-de))):(U.sortIndex=W,r(h,U),C||x||(C=!0,q||(q=!0,$()))),U},l.unstable_shouldYield=X,l.unstable_wrapCallback=function(U){var F=E;return function(){var ee=E;E=F;try{return U.apply(this,arguments)}finally{E=ee}}}})(Ku)),Ku}var ev;function iw(){return ev||(ev=1,Zu.exports=rw()),Zu.exports}var $u={exports:{}},ye={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and 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 tv;function ow(){if(tv)return ye;tv=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),E=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=E&&M[E]||M["@@iterator"],typeof M=="function"?M:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,_={};function R(M,Q,ne){this.props=M,this.context=Q,this.refs=_,this.updater=ne||C}R.prototype.isReactComponent={},R.prototype.setState=function(M,Q){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Q,"setState")},R.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function z(){}z.prototype=R.prototype;function T(M,Q,ne){this.props=M,this.context=Q,this.refs=_,this.updater=ne||C}var j=T.prototype=new z;j.constructor=T,A(j,R.prototype),j.isPureReactComponent=!0;var P=Array.isArray;function q(){}var O={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function Z(M,Q,ne){var re=ne.ref;return{$$typeof:l,type:M,key:Q,ref:re!==void 0?re:null,props:ne}}function X(M,Q){return Z(M.type,Q,M.props)}function Y(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function $(M){var Q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ne){return Q[ne]})}var te=/\/+/g;function le(M,Q){return typeof M=="object"&&M!==null&&M.key!=null?$(""+M.key):Q.toString(36)}function pe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(q,q):(M.status="pending",M.then(function(Q){M.status==="pending"&&(M.status="fulfilled",M.value=Q)},function(Q){M.status==="pending"&&(M.status="rejected",M.reason=Q)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,Q,ne,re,ie){var ue=typeof M;(ue==="undefined"||ue==="boolean")&&(M=null);var ae=!1;if(M===null)ae=!0;else switch(ue){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(M.$$typeof){case l:case r:ae=!0;break;case S:return ae=M._init,U(ae(M._payload),Q,ne,re,ie)}}if(ae)return ie=ie(M),ae=re===""?"."+le(M,0):re,P(ie)?(ne="",ae!=null&&(ne=ae.replace(te,"$&/")+"/"),U(ie,Q,ne,"",function(we){return we})):ie!=null&&(Y(ie)&&(ie=X(ie,ne+(ie.key==null||M&&M.key===ie.key?"":(""+ie.key).replace(te,"$&/")+"/")+ae)),Q.push(ie)),1;ae=0;var ge=re===""?".":re+":";if(P(M))for(var fe=0;fe<M.length;fe++)re=M[fe],ue=ge+le(re,fe),ae+=U(re,Q,ne,ue,ie);else if(fe=x(M),typeof fe=="function")for(M=fe.call(M),fe=0;!(re=M.next()).done;)re=re.value,ue=ge+le(re,fe++),ae+=U(re,Q,ne,ue,ie);else if(ue==="object"){if(typeof M.then=="function")return U(pe(M),Q,ne,re,ie);throw Q=String(M),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ae}function F(M,Q,ne){if(M==null)return M;var re=[],ie=0;return U(M,re,"","",function(ue){return Q.call(ne,ue,ie++)}),re}function ee(M){if(M._status===-1){var Q=M._result;Q=Q(),Q.then(function(ne){(M._status===0||M._status===-1)&&(M._status=1,M._result=ne)},function(ne){(M._status===0||M._status===-1)&&(M._status=2,M._result=ne)}),M._status===-1&&(M._status=0,M._result=Q)}if(M._status===1)return M._result.default;throw M._result}var de=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},W={map:F,forEach:function(M,Q,ne){F(M,function(){Q.apply(this,arguments)},ne)},count:function(M){var Q=0;return F(M,function(){Q++}),Q},toArray:function(M){return F(M,function(Q){return Q})||[]},only:function(M){if(!Y(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ye.Activity=b,ye.Children=W,ye.Component=R,ye.Fragment=o,ye.Profiler=s,ye.PureComponent=T,ye.StrictMode=i,ye.Suspense=h,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,ye.__COMPILER_RUNTIME={__proto__:null,c:function(M){return O.H.useMemoCache(M)}},ye.cache=function(M){return function(){return M.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(M,Q,ne){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var re=A({},M.props),ie=M.key;if(Q!=null)for(ue in Q.key!==void 0&&(ie=""+Q.key),Q)!B.call(Q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Q.ref===void 0||(re[ue]=Q[ue]);var ue=arguments.length-2;if(ue===1)re.children=ne;else if(1<ue){for(var ae=Array(ue),ge=0;ge<ue;ge++)ae[ge]=arguments[ge+2];re.children=ae}return Z(M.type,ie,re)},ye.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},ye.createElement=function(M,Q,ne){var re,ie={},ue=null;if(Q!=null)for(re in Q.key!==void 0&&(ue=""+Q.key),Q)B.call(Q,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ie[re]=Q[re]);var ae=arguments.length-2;if(ae===1)ie.children=ne;else if(1<ae){for(var ge=Array(ae),fe=0;fe<ae;fe++)ge[fe]=arguments[fe+2];ie.children=ge}if(M&&M.defaultProps)for(re in ae=M.defaultProps,ae)ie[re]===void 0&&(ie[re]=ae[re]);return Z(M,ue,ie)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(M){return{$$typeof:m,render:M}},ye.isValidElement=Y,ye.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:ee}},ye.memo=function(M,Q){return{$$typeof:p,type:M,compare:Q===void 0?null:Q}},ye.startTransition=function(M){var Q=O.T,ne={};O.T=ne;try{var re=M(),ie=O.S;ie!==null&&ie(ne,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(q,de)}catch(ue){de(ue)}finally{Q!==null&&ne.types!==null&&(Q.types=ne.types),O.T=Q}},ye.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},ye.use=function(M){return O.H.use(M)},ye.useActionState=function(M,Q,ne){return O.H.useActionState(M,Q,ne)},ye.useCallback=function(M,Q){return O.H.useCallback(M,Q)},ye.useContext=function(M){return O.H.useContext(M)},ye.useDebugValue=function(){},ye.useDeferredValue=function(M,Q){return O.H.useDeferredValue(M,Q)},ye.useEffect=function(M,Q){return O.H.useEffect(M,Q)},ye.useEffectEvent=function(M){return O.H.useEffectEvent(M)},ye.useId=function(){return O.H.useId()},ye.useImperativeHandle=function(M,Q,ne){return O.H.useImperativeHandle(M,Q,ne)},ye.useInsertionEffect=function(M,Q){return O.H.useInsertionEffect(M,Q)},ye.useLayoutEffect=function(M,Q){return O.H.useLayoutEffect(M,Q)},ye.useMemo=function(M,Q){return O.H.useMemo(M,Q)},ye.useOptimistic=function(M,Q){return O.H.useOptimistic(M,Q)},ye.useReducer=function(M,Q,ne){return O.H.useReducer(M,Q,ne)},ye.useRef=function(M){return O.H.useRef(M)},ye.useState=function(M){return O.H.useState(M)},ye.useSyncExternalStore=function(M,Q,ne){return O.H.useSyncExternalStore(M,Q,ne)},ye.useTransition=function(){return O.H.useTransition()},ye.version="19.2.7",ye}var nv;function ld(){return nv||(nv=1,$u.exports=ow()),$u.exports}var Ju={exports:{}},pt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 lv;function cw(){if(lv)return pt;lv=1;var l=ld();function r(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(h,p,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:h,containerInfo:p,implementation:S}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,pt.createPortal=function(h,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(h,p,null,S)},pt.flushSync=function(h){var p=d.T,S=i.p;try{if(d.T=null,i.p=2,h)return h()}finally{d.T=p,i.p=S,i.d.f()}},pt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},pt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},pt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var S=p.as,b=m(S,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:x}):S==="script"&&i.d.X(h,{crossOrigin:b,integrity:E,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},pt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},pt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,b=m(S,p.crossOrigin);i.d.L(h,S,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},pt.preloadModule=function(h,p){if(typeof h=="string")if(p){var S=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},pt.requestFormReset=function(h){i.d.r(h)},pt.unstable_batchedUpdates=function(h,p){return h(p)},pt.useFormState=function(h,p,S){return d.H.useFormState(h,p,S)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.2.7",pt}var av;function Sy(){if(av)return Ju.exports;av=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Ju.exports=cw(),Ju.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var rv;function sw(){if(rv)return oi;rv=1;var l=iw(),r=ld(),o=Sy();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(a=c.return,a!==null){n=a;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return h(c),e;if(u===a)return h(c),t;u=u.sibling}throw Error(i(188))}if(n.return!==a.return)n=c,a=u;else{for(var g=!1,w=c.child;w;){if(w===n){g=!0,n=c,a=u;break}if(w===a){g=!0,a=c,n=u;break}w=w.sibling}if(!g){for(w=u.child;w;){if(w===n){g=!0,n=u,a=c;break}if(w===a){g=!0,a=u,n=c;break}w=w.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case R:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case q:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case T:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case j:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case O:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var pe=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},de=[],W=-1;function M(e){return{current:e}}function Q(e){0>W||(e.current=de[W],de[W]=null,W--)}function ne(e,t){W++,de[W]=e.current,e.current=t}var re=M(null),ie=M(null),ue=M(null),ae=M(null);function ge(e,t){switch(ne(ue,t),ne(ie,e),ne(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gp(t),e=pp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(re),ne(re,e)}function fe(){Q(re),Q(ie),Q(ue)}function we(e){e.memoizedState!==null&&ne(ae,e);var t=re.current,n=pp(t,e.type);t!==n&&(ne(ie,e),ne(re,n))}function Se(e){ie.current===e&&(Q(re),Q(ie)),ae.current===e&&(Q(ae),ni._currentValue=ee)}var Ae,st;function Pe(e){if(Ae===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||"",st=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ae+e+st}var an=!1;function yn(e,t){if(!e||an)return"";an=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(G){var V=G}Reflect.construct(e,[],I)}else{try{I.call()}catch(G){V=G}e.call(I.prototype)}}else{try{throw Error()}catch(G){V=G}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),g=u[0],w=u[1];if(g&&w){var N=g.split(`
44
+ `),k=w.split(`
45
+ `);for(c=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;if(a===N.length||c===k.length)for(a=N.length-1,c=k.length-1;1<=a&&0<=c&&N[a]!==k[c];)c--;for(;1<=a&&0<=c;a--,c--)if(N[a]!==k[c]){if(a!==1||c!==1)do if(a--,c--,0>c||N[a]!==k[c]){var K=`
46
+ `+N[a].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=a&&0<=c);break}}}finally{an=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function Dl(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return yn(e.type,!1);case 11:return yn(e.type.render,!1);case 1:return yn(e.type,!0);case 31:return Pe("Activity");default:return""}}function Ai(e){try{var t="",n=null;do t+=Dl(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var mr=Object.prototype.hasOwnProperty,Zn=l.unstable_scheduleCallback,Dc=l.unstable_cancelCallback,_1=l.unstable_shouldYield,M1=l.unstable_requestPaint,Tt=l.unstable_now,O1=l.unstable_getCurrentPriorityLevel,Zd=l.unstable_ImmediatePriority,Kd=l.unstable_UserBlockingPriority,Ci=l.unstable_NormalPriority,D1=l.unstable_LowPriority,$d=l.unstable_IdlePriority,z1=l.log,j1=l.unstable_setDisableYieldValue,hr=null,Rt=null;function Kn(e){if(typeof z1=="function"&&j1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(hr,e)}catch{}}var Nt=Math.clz32?Math.clz32:U1,B1=Math.log,L1=Math.LN2;function U1(e){return e>>>=0,e===0?32:31-(B1(e)/L1|0)|0}var Ti=256,Ri=262144,Ni=4194304;function zl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _i(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var c=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var w=a&134217727;return w!==0?(a=w&~u,a!==0?c=zl(a):(g&=w,g!==0?c=zl(g):n||(n=w&~e,n!==0&&(c=zl(n))))):(w=a&~u,w!==0?c=zl(w):g!==0?c=zl(g):n||(n=a&~e,n!==0&&(c=zl(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function gr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function H1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jd(){var e=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),e}function zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k1(e,t,n,a,c,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var w=e.entanglements,N=e.expirationTimes,k=e.hiddenUpdates;for(n=g&~n;0<n;){var K=31-Nt(n),I=1<<K;w[K]=0,N[K]=-1;var V=k[K];if(V!==null)for(k[K]=null,K=0;K<V.length;K++){var G=V[K];G!==null&&(G.lane&=-536870913)}n&=~I}a!==0&&Id(e,a,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function Id(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),c=1<<a;c&t|e[a]&t&&(e[a]|=t),n&=~c}}function Wd(e,t){var n=t&-t;return n=(n&42)!==0?1:jc(n),(n&(e.suspendedLanes|t))!==0?0:n}function jc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function em(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:kp(e.type))}function tm(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var $n=Math.random().toString(36).slice(2),ut="__reactFiber$"+$n,bt="__reactProps$"+$n,ua="__reactContainer$"+$n,Lc="__reactEvents$"+$n,q1="__reactListeners$"+$n,V1="__reactHandles$"+$n,nm="__reactResources$"+$n,vr="__reactMarker$"+$n;function Uc(e){delete e[ut],delete e[bt],delete e[Lc],delete e[q1],delete e[V1]}function fa(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ua]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ep(e);e!==null;){if(n=e[ut])return n;e=Ep(e)}return t}e=n,n=e.parentNode}return null}function da(e){if(e=e[ut]||e[ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ma(e){var t=e[nm];return t||(t=e[nm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[vr]=!0}var lm=new Set,am={};function jl(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(am[e]=t,e=0;e<t.length;e++)lm.add(t[e])}var Y1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rm={},im={};function G1(e){return mr.call(im,e)?!0:mr.call(rm,e)?!1:Y1.test(e)?im[e]=!0:(rm[e]=!0,!1)}function Mi(e,t,n){if(G1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Oi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function om(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X1(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hc(e){if(!e._valueTracker){var t=om(e)?"checked":"value";e._valueTracker=X1(e,t,""+e[t])}}function cm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=om(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Di(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Q1=/[\n"\\]/g;function kt(e){return e.replace(Q1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kc(e,t,n,a,c,u,g,w){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?qc(e,g,Ht(t)):n!=null?qc(e,g,Ht(n)):a!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ht(w):e.removeAttribute("name")}function sm(e,t,n,a,c,u,g,w){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Hc(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(t):n,w||t===e.value||(e.value=t),e.defaultValue=t}a=a??c,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=w?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Hc(e)}function qc(e,t,n){t==="number"&&Di(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ga(e,t,n,a){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function um(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function fm(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(i(92));if(pe(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Hc(e)}function pa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var P1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dm(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||P1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function mm(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var c in t)a=t[c],t.hasOwnProperty(c)&&n[c]!==a&&dm(e,c,a)}else for(var u in t)t.hasOwnProperty(u)&&dm(e,u,t[u])}function Vc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Z1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),K1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function zi(e){return K1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sn(){}var Yc=null;function Gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,ya=null;function hm(e){var t=da(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(kc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var c=a[bt]||null;if(!c)throw Error(i(90));kc(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&cm(a)}break e;case"textarea":um(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ga(e,!!n.multiple,t,!1)}}}var Xc=!1;function gm(e,t,n){if(Xc)return e(t,n);Xc=!0;try{var a=e(t);return a}finally{if(Xc=!1,(va!==null||ya!==null)&&(xo(),va&&(t=va,e=ya,ya=va=null,hm(t),e)))for(t=0;t<e.length;t++)hm(e[t])}}function br(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=!1;if(xn)try{var Sr={};Object.defineProperty(Sr,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",Sr,Sr),window.removeEventListener("test",Sr,Sr)}catch{Qc=!1}var Jn=null,Pc=null,ji=null;function pm(){if(ji)return ji;var e,t=Pc,n=t.length,a,c="value"in Jn?Jn.value:Jn.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===c[u-a];a++);return ji=c.slice(e,1<a?1-a:void 0)}function Bi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Li(){return!0}function vm(){return!1}function St(e){function t(n,a,c,u,g){this._reactName=n,this._targetInst=c,this.type=a,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(n=e[w],this[w]=n?n(u):u[w]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Li:vm,this.isPropagationStopped=vm,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Li)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Li)},persist:function(){},isPersistent:Li}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=St(Bl),xr=b({},Bl,{view:0,detail:0}),$1=St(xr),Zc,Kc,wr,Hi=b({},xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jc,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!==wr&&(wr&&e.type==="mousemove"?(Zc=e.screenX-wr.screenX,Kc=e.screenY-wr.screenY):Kc=Zc=0,wr=e),Zc)},movementY:function(e){return"movementY"in e?e.movementY:Kc}}),ym=St(Hi),J1=b({},Hi,{dataTransfer:0}),I1=St(J1),F1=b({},xr,{relatedTarget:0}),$c=St(F1),W1=b({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),eS=St(W1),tS=b({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nS=St(tS),lS=b({},Bl,{data:0}),bm=St(lS),aS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rS={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"},iS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iS[e])?!!t[e]:!1}function Jc(){return oS}var cS=b({},xr,{key:function(e){if(e.key){var t=aS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jc,charCode:function(e){return e.type==="keypress"?Bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sS=St(cS),uS=b({},Hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=St(uS),fS=b({},xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jc}),dS=St(fS),mS=b({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),hS=St(mS),gS=b({},Hi,{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}),pS=St(gS),vS=b({},Bl,{newState:0,oldState:0}),yS=St(vS),bS=[9,13,27,32],Ic=xn&&"CompositionEvent"in window,Er=null;xn&&"documentMode"in document&&(Er=document.documentMode);var SS=xn&&"TextEvent"in window&&!Er,xm=xn&&(!Ic||Er&&8<Er&&11>=Er),wm=" ",Em=!1;function Am(e,t){switch(e){case"keyup":return bS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ba=!1;function xS(e,t){switch(e){case"compositionend":return Cm(t);case"keypress":return t.which!==32?null:(Em=!0,wm);case"textInput":return e=t.data,e===wm&&Em?null:e;default:return null}}function wS(e,t){if(ba)return e==="compositionend"||!Ic&&Am(e,t)?(e=pm(),ji=Pc=Jn=null,ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xm&&t.locale!=="ko"?null:t.data;default:return null}}var ES={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 Tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ES[e.type]:t==="textarea"}function Rm(e,t,n,a){va?ya?ya.push(a):ya=[a]:va=a,t=No(t,"onChange"),0<t.length&&(n=new Ui("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ar=null,Cr=null;function AS(e){sp(e,0)}function ki(e){var t=yr(e);if(cm(t))return e}function Nm(e,t){if(e==="change")return t}var _m=!1;if(xn){var Fc;if(xn){var Wc="oninput"in document;if(!Wc){var Mm=document.createElement("div");Mm.setAttribute("oninput","return;"),Wc=typeof Mm.oninput=="function"}Fc=Wc}else Fc=!1;_m=Fc&&(!document.documentMode||9<document.documentMode)}function Om(){Ar&&(Ar.detachEvent("onpropertychange",Dm),Cr=Ar=null)}function Dm(e){if(e.propertyName==="value"&&ki(Cr)){var t=[];Rm(t,Cr,e,Gc(e)),gm(AS,t)}}function CS(e,t,n){e==="focusin"?(Om(),Ar=t,Cr=n,Ar.attachEvent("onpropertychange",Dm)):e==="focusout"&&Om()}function TS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ki(Cr)}function RS(e,t){if(e==="click")return ki(t)}function NS(e,t){if(e==="input"||e==="change")return ki(t)}function _S(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:_S;function Tr(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var c=n[a];if(!mr.call(t,c)||!_t(e[c],t[c]))return!1}return!0}function zm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jm(e,t){var n=zm(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zm(n)}}function Bm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Di(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Di(e.document)}return t}function es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var MS=xn&&"documentMode"in document&&11>=document.documentMode,Sa=null,ts=null,Rr=null,ns=!1;function Um(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ns||Sa==null||Sa!==Di(a)||(a=Sa,"selectionStart"in a&&es(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Rr&&Tr(Rr,a)||(Rr=a,a=No(ts,"onSelect"),0<a.length&&(t=new Ui("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Sa)))}function Ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xa={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionrun:Ll("Transition","TransitionRun"),transitionstart:Ll("Transition","TransitionStart"),transitioncancel:Ll("Transition","TransitionCancel"),transitionend:Ll("Transition","TransitionEnd")},ls={},Hm={};xn&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete xa.animationend.animation,delete xa.animationiteration.animation,delete xa.animationstart.animation),"TransitionEvent"in window||delete xa.transitionend.transition);function Ul(e){if(ls[e])return ls[e];if(!xa[e])return e;var t=xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hm)return ls[e]=t[n];return e}var km=Ul("animationend"),qm=Ul("animationiteration"),Vm=Ul("animationstart"),OS=Ul("transitionrun"),DS=Ul("transitionstart"),zS=Ul("transitioncancel"),Ym=Ul("transitionend"),Gm=new Map,as="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");as.push("scrollEnd");function It(e,t){Gm.set(e,t),jl(t,[e])}var qi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],wa=0,rs=0;function Vi(){for(var e=wa,t=rs=wa=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];qt[t++]=null;var u=qt[t];if(qt[t++]=null,a!==null&&c!==null){var g=a.pending;g===null?c.next=c:(c.next=g.next,g.next=c),a.pending=c}u!==0&&Xm(n,c,u)}}function Yi(e,t,n,a){qt[wa++]=e,qt[wa++]=t,qt[wa++]=n,qt[wa++]=a,rs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function is(e,t,n,a){return Yi(e,t,n,a),Gi(e)}function Hl(e,t){return Yi(e,null,null,t),Gi(e)}function Xm(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-Nt(n),e=u.hiddenUpdates,a=e[c],a===null?e[c]=[t]:a.push(t),t.lane=n|536870912),u):null}function Gi(e){if(50<$r)throw $r=0,gu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ea={};function jS(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,a){return new jS(e,t,n,a)}function os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qm(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xi(e,t,n,a,c,u){var g=0;if(a=e,typeof e=="function")os(e)&&(g=1);else if(typeof e=="string")g=kx(e,n,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=Mt(31,n,t,c),e.elementType=Z,e.lanes=u,e;case A:return kl(n.children,c,u,t);case _:g=8,c|=24;break;case R:return e=Mt(12,n,t,c|2),e.elementType=R,e.lanes=u,e;case P:return e=Mt(13,n,t,c),e.elementType=P,e.lanes=u,e;case q:return e=Mt(19,n,t,c),e.elementType=q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:g=10;break e;case z:g=9;break e;case j:g=11;break e;case O:g=14;break e;case B:g=16,a=null;break e}g=29,n=Error(i(130,e===null?"null":typeof e,"")),a=null}return t=Mt(g,n,t,c),t.elementType=e,t.type=a,t.lanes=u,t}function kl(e,t,n,a){return e=Mt(7,e,a,t),e.lanes=n,e}function cs(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Pm(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function ss(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var n=Zm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ai(t)},Zm.set(e,t),t)}return{value:e,source:t,stack:Ai(t)}}var Aa=[],Ca=0,Qi=null,Nr=0,Yt=[],Gt=0,In=null,rn=1,on="";function En(e,t){Aa[Ca++]=Nr,Aa[Ca++]=Qi,Qi=e,Nr=t}function Km(e,t,n){Yt[Gt++]=rn,Yt[Gt++]=on,Yt[Gt++]=In,In=e;var a=rn;e=on;var c=32-Nt(a)-1;a&=~(1<<c),n+=1;var u=32-Nt(t)+c;if(30<u){var g=c-c%5;u=(a&(1<<g)-1).toString(32),a>>=g,c-=g,rn=1<<32-Nt(t)+c|n<<c|a,on=u+e}else rn=1<<u|n<<c|a,on=e}function us(e){e.return!==null&&(En(e,1),Km(e,1,0))}function fs(e){for(;e===Qi;)Qi=Aa[--Ca],Aa[Ca]=null,Nr=Aa[--Ca],Aa[Ca]=null;for(;e===In;)In=Yt[--Gt],Yt[Gt]=null,on=Yt[--Gt],Yt[Gt]=null,rn=Yt[--Gt],Yt[Gt]=null}function $m(e,t){Yt[Gt++]=rn,Yt[Gt++]=on,Yt[Gt++]=In,rn=t.id,on=t.overflow,In=e}var ft=null,Xe=null,Me=!1,Fn=null,Xt=!1,ds=Error(i(519));function Wn(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _r(Vt(t,e)),ds}function Jm(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ut]=e,t[bt]=a,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<Ir.length;n++)Te(Ir[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),sm(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),fm(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||mp(t.textContent,n)?(a.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),a.onScroll!=null&&Te("scroll",t),a.onScrollEnd!=null&&Te("scrollend",t),a.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||Wn(e,!0)}function Im(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ft=ft.return}}function Ta(e){if(e!==ft)return!1;if(!Me)return Im(e),Me=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Mu(e.type,e.memoizedProps)),n=!n),n&&Xe&&Wn(e),Im(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=wp(e)}else t===27?(t=Xe,ml(e.type)?(e=Bu,Bu=null,Xe=e):Xe=t):Xe=ft?Pt(e.stateNode.nextSibling):null;return!0}function ql(){Xe=ft=null,Me=!1}function ms(){var e=Fn;return e!==null&&(At===null?At=e:At.push.apply(At,e),Fn=null),e}function _r(e){Fn===null?Fn=[e]:Fn.push(e)}var hs=M(null),Vl=null,An=null;function el(e,t,n){ne(hs,t._currentValue),t._currentValue=n}function Cn(e){e._currentValue=hs.current,Q(hs)}function gs(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ps(e,t,n,a){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var g=c.child;u=u.firstContext;e:for(;u!==null;){var w=u;u=c;for(var N=0;N<t.length;N++)if(w.context===t[N]){u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),gs(u.return,n,e),a||(g=null);break e}u=w.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(i(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),gs(g,n,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Ra(e,t,n,a){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var w=c.type;_t(c.pendingProps.value,g.value)||(e!==null?e.push(w):e=[w])}}else if(c===ae.current){if(g=c.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ni):e=[ni])}c=c.return}e!==null&&ps(t,e,n,a),t.flags|=262144}function Pi(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Vl=e,An=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Fm(Vl,e)}function Zi(e,t){return Vl===null&&Yl(e),Fm(e,t)}function Fm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},An===null){if(e===null)throw Error(i(308));An=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else An=An.next=t;return n}var BS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},LS=l.unstable_scheduleCallback,US=l.unstable_NormalPriority,We={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vs(){return{controller:new BS,data:new Map,refCount:0}}function Mr(e){e.refCount--,e.refCount===0&&LS(US,function(){e.controller.abort()})}var Or=null,ys=0,Na=0,_a=null;function HS(e,t){if(Or===null){var n=Or=[];ys=0,Na=xu(),_a={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ys++,t.then(Wm,Wm),t}function Wm(){if(--ys===0&&Or!==null){_a!==null&&(_a.status="fulfilled");var e=Or;Or=null,Na=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kS(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(a.status="rejected",a.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),a}var eh=U.S;U.S=function(e,t){Ug=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&HS(e,t),eh!==null&&eh(e,t)};var Gl=M(null);function bs(){var e=Gl.current;return e!==null?e:Ye.pooledCache}function Ki(e,t){t===null?ne(Gl,Gl.current):ne(Gl,t.pool)}function th(){var e=bs();return e===null?null:{parent:We._currentValue,pool:e}}var Ma=Error(i(460)),Ss=Error(i(474)),$i=Error(i(542)),Ji={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sn,Sn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e;default:if(typeof t.status=="string")t.then(Sn,Sn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=a}},function(a){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e}throw Ql=t,Ma}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ql=n,Ma):n}}var Ql=null;function ah(){if(Ql===null)throw Error(i(459));var e=Ql;return Ql=null,e}function rh(e){if(e===Ma||e===$i)throw Error(i(483))}var Oa=null,Dr=0;function Ii(e){var t=Dr;return Dr+=1,Oa===null&&(Oa=[]),lh(Oa,e,t)}function zr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ih(e){function t(L,D){if(e){var H=L.deletions;H===null?(L.deletions=[D],L.flags|=16):H.push(D)}}function n(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function a(L){for(var D=new Map;L!==null;)L.key!==null?D.set(L.key,L):D.set(L.index,L),L=L.sibling;return D}function c(L,D){return L=wn(L,D),L.index=0,L.sibling=null,L}function u(L,D,H){return L.index=H,e?(H=L.alternate,H!==null?(H=H.index,H<D?(L.flags|=67108866,D):H):(L.flags|=67108866,D)):(L.flags|=1048576,D)}function g(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function w(L,D,H,J){return D===null||D.tag!==6?(D=cs(H,L.mode,J),D.return=L,D):(D=c(D,H),D.return=L,D)}function N(L,D,H,J){var he=H.type;return he===A?K(L,D,H.props.children,J,H.key):D!==null&&(D.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===B&&Xl(he)===D.type)?(D=c(D,H.props),zr(D,H),D.return=L,D):(D=Xi(H.type,H.key,H.props,null,L.mode,J),zr(D,H),D.return=L,D)}function k(L,D,H,J){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=ss(H,L.mode,J),D.return=L,D):(D=c(D,H.children||[]),D.return=L,D)}function K(L,D,H,J,he){return D===null||D.tag!==7?(D=kl(H,L.mode,J,he),D.return=L,D):(D=c(D,H),D.return=L,D)}function I(L,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=cs(""+D,L.mode,H),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return H=Xi(D.type,D.key,D.props,null,L.mode,H),zr(H,D),H.return=L,H;case C:return D=ss(D,L.mode,H),D.return=L,D;case B:return D=Xl(D),I(L,D,H)}if(pe(D)||$(D))return D=kl(D,L.mode,H,null),D.return=L,D;if(typeof D.then=="function")return I(L,Ii(D),H);if(D.$$typeof===T)return I(L,Zi(L,D),H);Fi(L,D)}return null}function V(L,D,H,J){var he=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return he!==null?null:w(L,D,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===he?N(L,D,H,J):null;case C:return H.key===he?k(L,D,H,J):null;case B:return H=Xl(H),V(L,D,H,J)}if(pe(H)||$(H))return he!==null?null:K(L,D,H,J,null);if(typeof H.then=="function")return V(L,D,Ii(H),J);if(H.$$typeof===T)return V(L,D,Zi(L,H),J);Fi(L,H)}return null}function G(L,D,H,J,he){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return L=L.get(H)||null,w(D,L,""+J,he);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return L=L.get(J.key===null?H:J.key)||null,N(D,L,J,he);case C:return L=L.get(J.key===null?H:J.key)||null,k(D,L,J,he);case B:return J=Xl(J),G(L,D,H,J,he)}if(pe(J)||$(J))return L=L.get(H)||null,K(D,L,J,he,null);if(typeof J.then=="function")return G(L,D,H,Ii(J),he);if(J.$$typeof===T)return G(L,D,H,Zi(D,J),he);Fi(D,J)}return null}function se(L,D,H,J){for(var he=null,De=null,me=D,xe=D=0,_e=null;me!==null&&xe<H.length;xe++){me.index>xe?(_e=me,me=null):_e=me.sibling;var ze=V(L,me,H[xe],J);if(ze===null){me===null&&(me=_e);break}e&&me&&ze.alternate===null&&t(L,me),D=u(ze,D,xe),De===null?he=ze:De.sibling=ze,De=ze,me=_e}if(xe===H.length)return n(L,me),Me&&En(L,xe),he;if(me===null){for(;xe<H.length;xe++)me=I(L,H[xe],J),me!==null&&(D=u(me,D,xe),De===null?he=me:De.sibling=me,De=me);return Me&&En(L,xe),he}for(me=a(me);xe<H.length;xe++)_e=G(me,L,xe,H[xe],J),_e!==null&&(e&&_e.alternate!==null&&me.delete(_e.key===null?xe:_e.key),D=u(_e,D,xe),De===null?he=_e:De.sibling=_e,De=_e);return e&&me.forEach(function(yl){return t(L,yl)}),Me&&En(L,xe),he}function ve(L,D,H,J){if(H==null)throw Error(i(151));for(var he=null,De=null,me=D,xe=D=0,_e=null,ze=H.next();me!==null&&!ze.done;xe++,ze=H.next()){me.index>xe?(_e=me,me=null):_e=me.sibling;var yl=V(L,me,ze.value,J);if(yl===null){me===null&&(me=_e);break}e&&me&&yl.alternate===null&&t(L,me),D=u(yl,D,xe),De===null?he=yl:De.sibling=yl,De=yl,me=_e}if(ze.done)return n(L,me),Me&&En(L,xe),he;if(me===null){for(;!ze.done;xe++,ze=H.next())ze=I(L,ze.value,J),ze!==null&&(D=u(ze,D,xe),De===null?he=ze:De.sibling=ze,De=ze);return Me&&En(L,xe),he}for(me=a(me);!ze.done;xe++,ze=H.next())ze=G(me,L,xe,ze.value,J),ze!==null&&(e&&ze.alternate!==null&&me.delete(ze.key===null?xe:ze.key),D=u(ze,D,xe),De===null?he=ze:De.sibling=ze,De=ze);return e&&me.forEach(function(Jx){return t(L,Jx)}),Me&&En(L,xe),he}function Ve(L,D,H,J){if(typeof H=="object"&&H!==null&&H.type===A&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var he=H.key;D!==null;){if(D.key===he){if(he=H.type,he===A){if(D.tag===7){n(L,D.sibling),J=c(D,H.props.children),J.return=L,L=J;break e}}else if(D.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===B&&Xl(he)===D.type){n(L,D.sibling),J=c(D,H.props),zr(J,H),J.return=L,L=J;break e}n(L,D);break}else t(L,D);D=D.sibling}H.type===A?(J=kl(H.props.children,L.mode,J,H.key),J.return=L,L=J):(J=Xi(H.type,H.key,H.props,null,L.mode,J),zr(J,H),J.return=L,L=J)}return g(L);case C:e:{for(he=H.key;D!==null;){if(D.key===he)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){n(L,D.sibling),J=c(D,H.children||[]),J.return=L,L=J;break e}else{n(L,D);break}else t(L,D);D=D.sibling}J=ss(H,L.mode,J),J.return=L,L=J}return g(L);case B:return H=Xl(H),Ve(L,D,H,J)}if(pe(H))return se(L,D,H,J);if($(H)){if(he=$(H),typeof he!="function")throw Error(i(150));return H=he.call(H),ve(L,D,H,J)}if(typeof H.then=="function")return Ve(L,D,Ii(H),J);if(H.$$typeof===T)return Ve(L,D,Zi(L,H),J);Fi(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(n(L,D.sibling),J=c(D,H),J.return=L,L=J):(n(L,D),J=cs(H,L.mode,J),J.return=L,L=J),g(L)):n(L,D)}return function(L,D,H,J){try{Dr=0;var he=Ve(L,D,H,J);return Oa=null,he}catch(me){if(me===Ma||me===$i)throw me;var De=Mt(29,me,null,L.mode);return De.lanes=J,De.return=L,De}finally{}}}var Pl=ih(!0),oh=ih(!1),tl=!1;function xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ws(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,t=Gi(e),Xm(e,null,n),t}return Yi(e,a,t,n),Gi(e)}function jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Fd(e,n)}}function Es(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var As=!1;function Br(){if(As){var e=_a;if(e!==null)throw e}}function Lr(e,t,n,a){As=!1;var c=e.updateQueue;tl=!1;var u=c.firstBaseUpdate,g=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var N=w,k=N.next;N.next=null,g===null?u=k:g.next=k,g=N;var K=e.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==g&&(w===null?K.firstBaseUpdate=k:w.next=k,K.lastBaseUpdate=N))}if(u!==null){var I=c.baseState;g=0,K=k=N=null,w=u;do{var V=w.lane&-536870913,G=V!==w.lane;if(G?(Ne&V)===V:(a&V)===V){V!==0&&V===Na&&(As=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var se=e,ve=w;V=t;var Ve=n;switch(ve.tag){case 1:if(se=ve.payload,typeof se=="function"){I=se.call(Ve,I,V);break e}I=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ve.payload,V=typeof se=="function"?se.call(Ve,I,V):se,V==null)break e;I=b({},I,V);break e;case 2:tl=!0}}V=w.callback,V!==null&&(e.flags|=64,G&&(e.flags|=8192),G=c.callbacks,G===null?c.callbacks=[V]:G.push(V))}else G={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(k=K=G,N=I):K=K.next=G,g|=V;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;G=w,w=G.next,G.next=null,c.lastBaseUpdate=G,c.shared.pending=null}}while(!0);K===null&&(N=I),c.baseState=N,c.firstBaseUpdate=k,c.lastBaseUpdate=K,u===null&&(c.shared.lanes=0),cl|=g,e.lanes=g,e.memoizedState=I}}function ch(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function sh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ch(n[e],t)}var Da=M(null),Wi=M(0);function uh(e,t){e=jn,ne(Wi,e),ne(Da,t),jn=e|t.baseLanes}function Cs(){ne(Wi,jn),ne(Da,Da.current)}function Ts(){jn=Wi.current,Q(Da),Q(Wi)}var Ot=M(null),Qt=null;function al(e){var t=e.alternate;ne(Ie,Ie.current&1),ne(Ot,e),Qt===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(Qt=e)}function Rs(e){ne(Ie,Ie.current),ne(Ot,e),Qt===null&&(Qt=e)}function fh(e){e.tag===22?(ne(Ie,Ie.current),ne(Ot,e),Qt===null&&(Qt=e)):rl()}function rl(){ne(Ie,Ie.current),ne(Ot,Ot.current)}function Dt(e){Q(Ot),Qt===e&&(Qt=null),Q(Ie)}var Ie=M(0);function eo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||zu(n)||ju(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tn=0,be=null,ke=null,et=null,to=!1,za=!1,Zl=!1,no=0,Ur=0,ja=null,qS=0;function $e(){throw Error(i(321))}function Ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function _s(e,t,n,a,c,u){return Tn=u,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Kh:Xs,Zl=!1,u=n(a,c),Zl=!1,za&&(u=mh(t,n,a,c)),dh(e),u}function dh(e){U.H=qr;var t=ke!==null&&ke.next!==null;if(Tn=0,et=ke=be=null,to=!1,Ur=0,ja=null,t)throw Error(i(300));e===null||tt||(e=e.dependencies,e!==null&&Pi(e)&&(tt=!0))}function mh(e,t,n,a){be=e;var c=0;do{if(za&&(ja=null),Ur=0,za=!1,25<=c)throw Error(i(301));if(c+=1,et=ke=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=$h,u=t(n,a)}while(za);return u}function VS(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Hr(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(be.flags|=1024),t}function Ms(){var e=no!==0;return no=0,e}function Os(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ds(e){if(to){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}to=!1}Tn=0,et=ke=be=null,za=!1,Ur=no=0,ja=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?be.memoizedState=et=e:et=et.next=e,et}function Fe(){if(ke===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=et===null?be.memoizedState:et.next;if(t!==null)et=t,ke=e;else{if(e===null)throw be.alternate===null?Error(i(467)):Error(i(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},et===null?be.memoizedState=et=e:et=et.next=e}return et}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hr(e){var t=Ur;return Ur+=1,ja===null&&(ja=[]),e=lh(ja,e,t),t=be,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Kh:Xs),e}function ao(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hr(e);if(e.$$typeof===T)return dt(e)}throw Error(i(438,String(e)))}function zs(e){var t=null,n=be.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=be.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=lo(),be.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=X;return t.index++,n}function Rn(e,t){return typeof t=="function"?t(e):t}function ro(e){var t=Fe();return js(t,ke,e)}function js(e,t,n){var a=e.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=n;var c=e.baseQueue,u=a.pending;if(u!==null){if(c!==null){var g=c.next;c.next=u.next,u.next=g}t.baseQueue=c=u,a.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var w=g=null,N=null,k=t,K=!1;do{var I=k.lane&-536870913;if(I!==k.lane?(Ne&I)===I:(Tn&I)===I){var V=k.revertLane;if(V===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),I===Na&&(K=!0);else if((Tn&V)===V){k=k.next,V===Na&&(K=!0);continue}else I={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},N===null?(w=N=I,g=u):N=N.next=I,be.lanes|=V,cl|=V;I=k.action,Zl&&n(u,I),u=k.hasEagerState?k.eagerState:n(u,I)}else V={lane:I,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},N===null?(w=N=V,g=u):N=N.next=V,be.lanes|=I,cl|=I;k=k.next}while(k!==null&&k!==t);if(N===null?g=u:N.next=w,!_t(u,e.memoizedState)&&(tt=!0,K&&(n=_a,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=N,a.lastRenderedState=u}return c===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bs(e){var t=Fe(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do u=e(u,g.action),g=g.next;while(g!==c);_t(u,t.memoizedState)||(tt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function hh(e,t,n){var a=be,c=Fe(),u=Me;if(u){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!_t((ke||c).memoizedState,n);if(g&&(c.memoizedState=n,tt=!0),c=c.queue,Hs(vh.bind(null,a,c,e),[e]),c.getSnapshot!==t||g||et!==null&&et.memoizedState.tag&1){if(a.flags|=2048,Ba(9,{destroy:void 0},ph.bind(null,a,c,n,t),null),Ye===null)throw Error(i(349));u||(Tn&127)!==0||gh(a,t,n)}return n}function gh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t=lo(),be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ph(e,t,n,a){t.value=n,t.getSnapshot=a,yh(t)&&bh(e)}function vh(e,t,n){return n(function(){yh(t)&&bh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function bh(e){var t=Hl(e,2);t!==null&&Ct(t,e,2)}function Ls(e){var t=yt();if(typeof e=="function"){var n=e;if(e=n(),Zl){Kn(!0);try{n()}finally{Kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},t}function Sh(e,t,n,a){return e.baseState=n,js(e,ke,typeof a=="function"?a:Rn)}function YS(e,t,n,a,c){if(co(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};U.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,xh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function xh(e,t){var n=t.action,a=t.payload,c=e.state;if(t.isTransition){var u=U.T,g={};U.T=g;try{var w=n(c,a),N=U.S;N!==null&&N(g,w),wh(e,t,w)}catch(k){Us(e,t,k)}finally{u!==null&&g.types!==null&&(u.types=g.types),U.T=u}}else try{u=n(c,a),wh(e,t,u)}catch(k){Us(e,t,k)}}function wh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Eh(e,t,a)},function(a){return Us(e,t,a)}):Eh(e,t,n)}function Eh(e,t,n){t.status="fulfilled",t.value=n,Ah(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xh(e,n)))}function Us(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Ah(t),t=t.next;while(t!==a)}e.action=null}function Ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function Th(e,t){if(Me){var n=Ye.formState;if(n!==null){e:{var a=be;if(Me){if(Xe){t:{for(var c=Xe,u=Xt;c.nodeType!==8;){if(!u){c=null;break t}if(c=Pt(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Xe=Pt(c.nextSibling),a=c.data==="F!";break e}}Wn(a)}a=!1}a&&(t=n[0])}}return n=yt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=a,n=Qh.bind(null,be,a),a.dispatch=n,a=Ls(!1),u=Gs.bind(null,be,!1,a.queue),a=yt(),c={state:t,dispatch:null,action:e,pending:null},a.queue=c,n=YS.bind(null,be,c,u,n),c.dispatch=n,a.memoizedState=e,[t,n,!1]}function Rh(e){var t=Fe();return Nh(t,ke,e)}function Nh(e,t,n){if(t=js(e,t,Ch)[0],e=ro(Rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hr(t)}catch(g){throw g===Ma?$i:g}else a=t;t=Fe();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(be.flags|=2048,Ba(9,{destroy:void 0},GS.bind(null,c,n),null)),[a,u,e]}function GS(e,t){e.action=t}function _h(e){var t=Fe(),n=ke;if(n!==null)return Nh(t,n,e);Fe(),t=t.memoizedState,n=Fe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ba(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=be.updateQueue,t===null&&(t=lo(),be.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Mh(){return Fe().memoizedState}function io(e,t,n,a){var c=yt();be.flags|=e,c.memoizedState=Ba(1|t,{destroy:void 0},n,a===void 0?null:a)}function oo(e,t,n,a){var c=Fe();a=a===void 0?null:a;var u=c.memoizedState.inst;ke!==null&&a!==null&&Ns(a,ke.memoizedState.deps)?c.memoizedState=Ba(t,u,n,a):(be.flags|=e,c.memoizedState=Ba(1|t,u,n,a))}function Oh(e,t){io(8390656,8,e,t)}function Hs(e,t){oo(2048,8,e,t)}function XS(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=lo(),be.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Dh(e){var t=Fe().memoizedState;return XS({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function zh(e,t){return oo(4,2,e,t)}function jh(e,t){return oo(4,4,e,t)}function Bh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lh(e,t,n){n=n!=null?n.concat([e]):null,oo(4,4,Bh.bind(null,t,e),n)}function ks(){}function Uh(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ns(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Hh(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ns(t,a[1]))return a[0];if(a=e(),Zl){Kn(!0);try{e()}finally{Kn(!1)}}return n.memoizedState=[a,t],a}function qs(e,t,n){return n===void 0||(Tn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=kg(),be.lanes|=e,cl|=e,n)}function kh(e,t,n,a){return _t(n,t)?n:Da.current!==null?(e=qs(e,n,a),_t(e,t)||(tt=!0),e):(Tn&42)===0||(Tn&1073741824)!==0&&(Ne&261930)===0?(tt=!0,e.memoizedState=n):(e=kg(),be.lanes|=e,cl|=e,t)}function qh(e,t,n,a,c){var u=F.p;F.p=u!==0&&8>u?u:8;var g=U.T,w={};U.T=w,Gs(e,!1,t,n);try{var N=c(),k=U.S;if(k!==null&&k(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var K=kS(N,a);kr(e,t,K,Bt(e))}else kr(e,t,a,Bt(e))}catch(I){kr(e,t,{then:function(){},status:"rejected",reason:I},Bt())}finally{F.p=u,g!==null&&w.types!==null&&(g.types=w.types),U.T=g}}function QS(){}function Vs(e,t,n,a){if(e.tag!==5)throw Error(i(476));var c=Vh(e).queue;qh(e,c,t,ee,n===null?QS:function(){return Yh(e),n(a)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),kr(e,t.next.queue,{},Bt())}function Ys(){return dt(ni)}function Gh(){return Fe().memoizedState}function Xh(){return Fe().memoizedState}function PS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Bt();e=nl(n);var a=ll(t,e,n);a!==null&&(Ct(a,t,n),jr(a,t,n)),t={cache:vs()},e.payload=t;return}t=t.return}}function ZS(e,t,n){var a=Bt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},co(e)?Ph(t,n):(n=is(e,t,n,a),n!==null&&(Ct(n,e,a),Zh(n,t,a)))}function Qh(e,t,n){var a=Bt();kr(e,t,n,a)}function kr(e,t,n,a){var c={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(co(e))Ph(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,w=u(g,n);if(c.hasEagerState=!0,c.eagerState=w,_t(w,g))return Yi(e,t,c,0),Ye===null&&Vi(),!1}catch{}finally{}if(n=is(e,t,c,a),n!==null)return Ct(n,e,a),Zh(n,t,a),!0}return!1}function Gs(e,t,n,a){if(a={lane:2,revertLane:xu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},co(e)){if(t)throw Error(i(479))}else t=is(e,n,a,2),t!==null&&Ct(t,e,2)}function co(e){var t=e.alternate;return e===be||t!==null&&t===be}function Ph(e,t){za=to=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Fd(e,n)}}var qr={readContext:dt,use:ao,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};qr.useEffectEvent=$e;var Kh={readContext:dt,use:ao,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Oh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,io(4194308,4,Bh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4194308,4,e,t)},useInsertionEffect:function(e,t){io(4,2,e,t)},useMemo:function(e,t){var n=yt();t=t===void 0?null:t;var a=e();if(Zl){Kn(!0);try{e()}finally{Kn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=yt();if(n!==void 0){var c=n(t);if(Zl){Kn(!0);try{n(t)}finally{Kn(!1)}}}else c=t;return a.memoizedState=a.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},a.queue=e,e=e.dispatch=ZS.bind(null,be,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ls(e);var t=e.queue,n=Qh.bind(null,be,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ks,useDeferredValue:function(e,t){var n=yt();return qs(n,e,t)},useTransition:function(){var e=Ls(!1);return e=qh.bind(null,be,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=be,c=yt();if(Me){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ye===null)throw Error(i(349));(Ne&127)!==0||gh(a,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,Oh(vh.bind(null,a,u,e),[e]),a.flags|=2048,Ba(9,{destroy:void 0},ph.bind(null,a,u,n,t),null),n},useId:function(){var e=yt(),t=Ye.identifierPrefix;if(Me){var n=on,a=rn;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=no++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=qS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:Th,useActionState:Th,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gs.bind(null,be,!0,n),n.dispatch=t,[e,t]},useMemoCache:zs,useCacheRefresh:function(){return yt().memoizedState=PS.bind(null,be)},useEffectEvent:function(e){var t=yt(),n={impl:e};return t.memoizedState=n,function(){if((je&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Xs={readContext:dt,use:ao,useCallback:Uh,useContext:dt,useEffect:Hs,useImperativeHandle:Lh,useInsertionEffect:zh,useLayoutEffect:jh,useMemo:Hh,useReducer:ro,useRef:Mh,useState:function(){return ro(Rn)},useDebugValue:ks,useDeferredValue:function(e,t){var n=Fe();return kh(n,ke.memoizedState,e,t)},useTransition:function(){var e=ro(Rn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Hr(e),t]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:Ys,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var n=Fe();return Sh(n,ke,e,t)},useMemoCache:zs,useCacheRefresh:Xh};Xs.useEffectEvent=Dh;var $h={readContext:dt,use:ao,useCallback:Uh,useContext:dt,useEffect:Hs,useImperativeHandle:Lh,useInsertionEffect:zh,useLayoutEffect:jh,useMemo:Hh,useReducer:Bs,useRef:Mh,useState:function(){return Bs(Rn)},useDebugValue:ks,useDeferredValue:function(e,t){var n=Fe();return ke===null?qs(n,e,t):kh(n,ke.memoizedState,e,t)},useTransition:function(){var e=Bs(Rn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Hr(e),t]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:Ys,useFormState:_h,useActionState:_h,useOptimistic:function(e,t){var n=Fe();return ke!==null?Sh(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:zs,useCacheRefresh:Xh};$h.useEffectEvent=Dh;function Qs(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Bt(),c=nl(a);c.payload=t,n!=null&&(c.callback=n),t=ll(e,c,a),t!==null&&(Ct(t,e,a),jr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Bt(),c=nl(a);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=ll(e,c,a),t!==null&&(Ct(t,e,a),jr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bt(),a=nl(n);a.tag=2,t!=null&&(a.callback=t),t=ll(e,a,n),t!==null&&(Ct(t,e,n),jr(t,e,n))}};function Jh(e,t,n,a,c,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,g):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,a)||!Tr(c,u):!0}function Ih(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function Kl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Fh(e){qi(e)}function Wh(e){console.error(e)}function eg(e){qi(e)}function so(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function tg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Zs(e,t,n){return n=nl(n),n.tag=3,n.payload={element:null},n.callback=function(){so(e,t)},n}function ng(e){return e=nl(e),e.tag=3,e}function lg(e,t,n,a){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=a.value;e.payload=function(){return c(u)},e.callback=function(){tg(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){tg(t,n,a),typeof c!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var w=a.stack;this.componentDidCatch(a.value,{componentStack:w!==null?w:""})})}function KS(e,t,n,a,c){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ra(t,n,c,!0),n=Ot.current,n!==null){switch(n.tag){case 31:case 13:return Qt===null?wo():n.alternate===null&&Je===0&&(Je=3),n.flags&=-257,n.flags|=65536,n.lanes=c,a===Ji?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),yu(e,a,c)),!1;case 22:return n.flags|=65536,a===Ji?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),yu(e,a,c)),!1}throw Error(i(435,n.tag))}return yu(e,a,c),wo(),!1}if(Me)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,a!==ds&&(e=Error(i(422),{cause:a}),_r(Vt(e,n)))):(a!==ds&&(t=Error(i(423),{cause:a}),_r(Vt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,a=Vt(a,n),c=Zs(e.stateNode,a,c),Es(e,c),Je!==4&&(Je=2)),!1;var u=Error(i(520),{cause:a});if(u=Vt(u,n),Kr===null?Kr=[u]:Kr.push(u),Je!==4&&(Je=2),t===null)return!0;a=Vt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Zs(n.stateNode,a,e),Es(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(sl===null||!sl.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=ng(c),lg(c,e,n,a),Es(n,c),!1}n=n.return}while(n!==null);return!1}var Ks=Error(i(461)),tt=!1;function mt(e,t,n,a){t.child=e===null?oh(t,null,n,a):Pl(t,e.child,n,a)}function ag(e,t,n,a,c){n=n.render;var u=t.ref;if("ref"in a){var g={};for(var w in a)w!=="ref"&&(g[w]=a[w])}else g=a;return Yl(t),a=_s(e,t,n,g,u,c),w=Ms(),e!==null&&!tt?(Os(e,t,c),Nn(e,t,c)):(Me&&w&&us(t),t.flags|=1,mt(e,t,a,c),t.child)}function rg(e,t,n,a,c){if(e===null){var u=n.type;return typeof u=="function"&&!os(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,ig(e,t,u,a,c)):(e=Xi(n.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!nu(e,c)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:Tr,n(g,a)&&e.ref===t.ref)return Nn(e,t,c)}return t.flags|=1,e=wn(u,a),e.ref=t.ref,e.return=t,t.child=e}function ig(e,t,n,a,c){if(e!==null){var u=e.memoizedProps;if(Tr(u,a)&&e.ref===t.ref)if(tt=!1,t.pendingProps=a=u,nu(e,c))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Nn(e,t,c)}return $s(e,t,n,a,c)}function og(e,t,n,a){var c=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,c=0;a!==null;)c=c|a.lanes|a.childLanes,a=a.sibling;a=c&~u}else a=0,t.child=null;return cg(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,u!==null?u.cachePool:null),u!==null?uh(t,u):Cs(),fh(t);else return a=t.lanes=536870912,cg(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(Ki(t,u.cachePool),uh(t,u),rl(),t.memoizedState=null):(e!==null&&Ki(t,null),Cs(),rl());return mt(e,t,c,n),t.child}function Vr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cg(e,t,n,a,c){var u=bs();return u=u===null?null:{parent:We._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ki(t,null),Cs(),fh(t),e!==null&&Ra(e,t,a,!0),t.childLanes=c,null}function uo(e,t){return t=mo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sg(e,t,n){return Pl(t,e.child,null,n),e=uo(t,t.pendingProps),e.flags|=2,Dt(t),t.memoizedState=null,e}function $S(e,t,n){var a=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(a.mode==="hidden")return e=uo(t,a),t.lanes=536870912,Vr(null,e);if(Rs(t),(e=Xe)?(e=xp(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:rn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Pm(e),n.return=t,t.child=n,ft=t,Xe=null)):e=null,e===null)throw Wn(t);return t.lanes=536870912,null}return uo(t,a)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(Rs(t),c)if(t.flags&256)t.flags&=-257,t=sg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tt||Ra(e,t,n,!1),c=(n&e.childLanes)!==0,tt||c){if(a=Ye,a!==null&&(g=Wd(a,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,Hl(e,g),Ct(a,e,g),Ks;wo(),t=sg(e,t,n)}else e=u.treeContext,Xe=Pt(g.nextSibling),ft=t,Me=!0,Fn=null,Xt=!1,e!==null&&$m(t,e),t=uo(t,a),t.flags|=4096;return t}return e=wn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $s(e,t,n,a,c){return Yl(t),n=_s(e,t,n,a,void 0,c),a=Ms(),e!==null&&!tt?(Os(e,t,c),Nn(e,t,c)):(Me&&a&&us(t),t.flags|=1,mt(e,t,n,c),t.child)}function ug(e,t,n,a,c,u){return Yl(t),t.updateQueue=null,n=mh(t,a,n,c),dh(e),a=Ms(),e!==null&&!tt?(Os(e,t,u),Nn(e,t,u)):(Me&&a&&us(t),t.flags|=1,mt(e,t,n,u),t.child)}function fg(e,t,n,a,c){if(Yl(t),t.stateNode===null){var u=Ea,g=n.contextType;typeof g=="object"&&g!==null&&(u=dt(g)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ps,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},xs(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?dt(g):Ea,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Qs(t,n,g,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&Ps.enqueueReplaceState(u,u.state,null),Lr(t,a,u,c),Br(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var w=t.memoizedProps,N=Kl(n,w);u.props=N;var k=u.context,K=n.contextType;g=Ea,typeof K=="object"&&K!==null&&(g=dt(K));var I=n.getDerivedStateFromProps;K=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,K||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(w||k!==g)&&Ih(t,u,a,g),tl=!1;var V=t.memoizedState;u.state=V,Lr(t,a,u,c),Br(),k=t.memoizedState,w||V!==k||tl?(typeof I=="function"&&(Qs(t,n,I,a),k=t.memoizedState),(N=tl||Jh(t,n,N,a,V,k,g))?(K||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),u.props=a,u.state=k,u.context=g,a=N):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ws(e,t),g=t.memoizedProps,K=Kl(n,g),u.props=K,I=t.pendingProps,V=u.context,k=n.contextType,N=Ea,typeof k=="object"&&k!==null&&(N=dt(k)),w=n.getDerivedStateFromProps,(k=typeof w=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==I||V!==N)&&Ih(t,u,a,N),tl=!1,V=t.memoizedState,u.state=V,Lr(t,a,u,c),Br();var G=t.memoizedState;g!==I||V!==G||tl||e!==null&&e.dependencies!==null&&Pi(e.dependencies)?(typeof w=="function"&&(Qs(t,n,w,a),G=t.memoizedState),(K=tl||Jh(t,n,K,a,V,G,N)||e!==null&&e.dependencies!==null&&Pi(e.dependencies))?(k||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,G,N),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,G,N)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=G),u.props=a,u.state=G,u.context=N,a=K):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,fo(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Pl(t,e.child,null,c),t.child=Pl(t,null,n,c)):mt(e,t,n,c),t.memoizedState=u.state,e=t.child):e=Nn(e,t,c),e}function dg(e,t,n,a){return ql(),t.flags|=256,mt(e,t,n,a),t.child}var Js={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Is(e){return{baseLanes:e,cachePool:th()}}function Fs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=jt),e}function mg(e,t,n){var a=t.pendingProps,c=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(c?al(t):rl(),(e=Xe)?(e=xp(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:rn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Pm(e),n.return=t,t.child=n,ft=t,Xe=null)):e=null,e===null)throw Wn(t);return ju(e)?t.lanes=32:t.lanes=536870912,null}var w=a.children;return a=a.fallback,c?(rl(),c=t.mode,w=mo({mode:"hidden",children:w},c),a=kl(a,c,n,null),w.return=t,a.return=t,w.sibling=a,t.child=w,a=t.child,a.memoizedState=Is(n),a.childLanes=Fs(e,g,n),t.memoizedState=Js,Vr(null,a)):(al(t),Ws(t,w))}var N=e.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(u)t.flags&256?(al(t),t.flags&=-257,t=eu(e,t,n)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),w=a.fallback,c=t.mode,a=mo({mode:"visible",children:a.children},c),w=kl(w,c,n,null),w.flags|=2,a.return=t,w.return=t,a.sibling=w,t.child=a,Pl(t,e.child,null,n),a=t.child,a.memoizedState=Is(n),a.childLanes=Fs(e,g,n),t.memoizedState=Js,t=Vr(null,a));else if(al(t),ju(w)){if(g=w.nextSibling&&w.nextSibling.dataset,g)var k=g.dgst;g=k,a=Error(i(419)),a.stack="",a.digest=g,_r({value:a,source:null,stack:null}),t=eu(e,t,n)}else if(tt||Ra(e,t,n,!1),g=(n&e.childLanes)!==0,tt||g){if(g=Ye,g!==null&&(a=Wd(g,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,Hl(e,a),Ct(g,e,a),Ks;zu(w)||wo(),t=eu(e,t,n)}else zu(w)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Xe=Pt(w.nextSibling),ft=t,Me=!0,Fn=null,Xt=!1,e!==null&&$m(t,e),t=Ws(t,a.children),t.flags|=4096);return t}return c?(rl(),w=a.fallback,c=t.mode,N=e.child,k=N.sibling,a=wn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,k!==null?w=wn(k,w):(w=kl(w,c,n,null),w.flags|=2),w.return=t,a.return=t,a.sibling=w,t.child=a,Vr(null,a),a=t.child,w=e.child.memoizedState,w===null?w=Is(n):(c=w.cachePool,c!==null?(N=We._currentValue,c=c.parent!==N?{parent:N,pool:N}:c):c=th(),w={baseLanes:w.baseLanes|n,cachePool:c}),a.memoizedState=w,a.childLanes=Fs(e,g,n),t.memoizedState=Js,Vr(e.child,a)):(al(t),n=e.child,e=n.sibling,n=wn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Ws(e,t){return t=mo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mo(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function eu(e,t,n){return Pl(t,e.child,null,n),e=Ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hg(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),gs(e.return,t,n)}function tu(e,t,n,a,c,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:c,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=c,g.treeForkCount=u)}function gg(e,t,n){var a=t.pendingProps,c=a.revealOrder,u=a.tail;a=a.children;var g=Ie.current,w=(g&2)!==0;if(w?(g=g&1|2,t.flags|=128):g&=1,ne(Ie,g),mt(e,t,a,n),a=Me?Nr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hg(e,n,t);else if(e.tag===19)hg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&eo(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),tu(t,!1,c,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&eo(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}tu(t,!0,n,null,u,a);break;case"together":tu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ra(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Pi(e)))}function JS(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),el(t,We,e.memoizedState.cache),ql();break;case 27:case 5:we(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:el(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Rs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(al(t),t.flags|=128,null):(n&t.child.childLanes)!==0?mg(e,t,n):(al(t),e=Nn(e,t,n),e!==null?e.sibling:null);al(t);break;case 19:var c=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ra(e,t,n,!1),a=(n&t.childLanes)!==0),c){if(a)return gg(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ne(Ie,Ie.current),a)break;return null;case 22:return t.lanes=0,og(e,t,n,t.pendingProps);case 24:el(t,We,e.memoizedState.cache)}return Nn(e,t,n)}function pg(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!nu(e,n)&&(t.flags&128)===0)return tt=!1,JS(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,Me&&(t.flags&1048576)!==0&&Km(t,Nr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")os(e)?(a=Kl(e,a),t.tag=1,t=fg(null,t,e,a,n)):(t.tag=0,t=$s(null,t,e,a,n));else{if(e!=null){var c=e.$$typeof;if(c===j){t.tag=11,t=ag(null,t,e,a,n);break e}else if(c===O){t.tag=14,t=rg(null,t,e,a,n);break e}}throw t=le(e)||e,Error(i(306,t,""))}}return t;case 0:return $s(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,c=Kl(a,t.pendingProps),fg(e,t,a,c,n);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));a=t.pendingProps;var u=t.memoizedState;c=u.element,ws(e,t),Lr(t,a,null,n);var g=t.memoizedState;if(a=g.cache,el(t,We,a),a!==u.cache&&ps(t,[We],n,!0),Br(),a=g.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=dg(e,t,a,n);break e}else if(a!==c){c=Vt(Error(i(424)),t),_r(c),t=dg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=Pt(e.firstChild),ft=t,Me=!0,Fn=null,Xt=!0,n=oh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ql(),a===c){t=Nn(e,t,n);break e}mt(e,t,a,n)}t=t.child}return t;case 26:return fo(e,t),e===null?(n=Rp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Me||(n=t.type,e=t.pendingProps,a=_o(ue.current).createElement(n),a[ut]=t,a[bt]=e,ht(a,n,e),it(a),t.stateNode=a):t.memoizedState=Rp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&Me&&(a=t.stateNode=Ap(t.type,t.pendingProps,ue.current),ft=t,Xt=!0,c=Xe,ml(t.type)?(Bu=c,Xe=Pt(a.firstChild)):Xe=c),mt(e,t,t.pendingProps.children,n),fo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((c=a=Xe)&&(a=Tx(a,t.type,t.pendingProps,Xt),a!==null?(t.stateNode=a,ft=t,Xe=Pt(a.firstChild),Xt=!1,c=!0):c=!1),c||Wn(t)),we(t),c=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,a=u.children,Mu(c,u)?a=null:g!==null&&Mu(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=_s(e,t,VS,null,null,n),ni._currentValue=c),fo(e,t),mt(e,t,a,n),t.child;case 6:return e===null&&Me&&((e=n=Xe)&&(n=Rx(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ft=t,Xe=null,e=!0):e=!1),e||Wn(t)),null;case 13:return mg(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Pl(t,null,a,n):mt(e,t,a,n),t.child;case 11:return ag(e,t,t.type,t.pendingProps,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,el(t,t.type,a.value),mt(e,t,a.children,n),t.child;case 9:return c=t.type._context,a=t.pendingProps.children,Yl(t),c=dt(c),a=a(c),t.flags|=1,mt(e,t,a,n),t.child;case 14:return rg(e,t,t.type,t.pendingProps,n);case 15:return ig(e,t,t.type,t.pendingProps,n);case 19:return gg(e,t,n);case 31:return $S(e,t,n);case 22:return og(e,t,n,t.pendingProps);case 24:return Yl(t),a=dt(We),e===null?(c=bs(),c===null&&(c=Ye,u=vs(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:a,cache:c},xs(t),el(t,We,c)):((e.lanes&n)!==0&&(ws(e,t),Lr(t,null,null,n),Br()),c=e.memoizedState,u=t.memoizedState,c.parent!==a?(c={parent:a,cache:a},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),el(t,We,a)):(a=u.cache,el(t,We,a),a!==c.cache&&ps(t,[We],n,!0))),mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function _n(e){e.flags|=4}function lu(e,t,n,a,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Gg())e.flags|=8192;else throw Ql=Ji,Ss}else e.flags&=-16777217}function vg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dp(t))if(Gg())e.flags|=8192;else throw Ql=Ji,Ss}function ho(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jd():536870912,e.lanes|=t,ka|=t)}function Yr(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags&65011712,a|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function IS(e,t,n){var a=t.pendingProps;switch(fs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cn(We),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ta(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ms())),Qe(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(_n(t),u!==null?(Qe(t),vg(t,u)):(Qe(t),lu(t,c,null,a,n))):u?u!==e.memoizedState?(_n(t),Qe(t),vg(t,u)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&_n(t),Qe(t),lu(t,c,e,a,n)),null;case 27:if(Se(t),n=ue.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Qe(t),null}e=re.current,Ta(t)?Jm(t):(e=Ap(c,a,n),t.stateNode=e,_n(t))}return Qe(t),null;case 5:if(Se(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Qe(t),null}if(u=re.current,Ta(t))Jm(t);else{var g=_o(ue.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?g.createElement(c,{is:a.is}):g.createElement(c)}}u[ut]=t,u[bt]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(ht(u,c,a),c){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_n(t)}}return Qe(t),lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=ue.current,Ta(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,c=ft,c!==null)switch(c.tag){case 27:case 5:a=c.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||mp(e.nodeValue,n)),e||Wn(t,!0)}else e=_o(e).createTextNode(a),e[ut]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ta(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[ut]=t}else ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ta(t),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[ut]=t}else ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),c=!1}else c=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,c=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(c=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==c&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ho(t,t.updateQueue),Qe(t),null);case 4:return fe(),e===null&&Cu(t.stateNode.containerInfo),Qe(t),null;case 10:return Cn(t.type),Qe(t),null;case 19:if(Q(Ie),a=t.memoizedState,a===null)return Qe(t),null;if(c=(t.flags&128)!==0,u=a.rendering,u===null)if(c)Yr(a,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=eo(e),u!==null){for(t.flags|=128,Yr(a,!1),e=u.updateQueue,t.updateQueue=e,ho(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qm(n,e),n=n.sibling;return ne(Ie,Ie.current&1|2),Me&&En(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Tt()>bo&&(t.flags|=128,c=!0,Yr(a,!1),t.lanes=4194304)}else{if(!c)if(e=eo(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ho(t,e),Yr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Me)return Qe(t),null}else 2*Tt()-a.renderingStartTime>bo&&n!==536870912&&(t.flags|=128,c=!0,Yr(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Tt(),e.sibling=null,n=Ie.current,ne(Ie,c?n&1|2:n&1),Me&&En(t,a.treeForkCount),e):(Qe(t),null);case 22:case 23:return Dt(t),Ts(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&ho(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Q(Gl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cn(We),Qe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function FS(e,t){switch(fs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(We),fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(i(340));ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ie),null;case 4:return fe(),null;case 10:return Cn(t.type),null;case 22:case 23:return Dt(t),Ts(),e!==null&&Q(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(We),null;case 25:return null;default:return null}}function yg(e,t){switch(fs(t),t.tag){case 3:Cn(We),fe();break;case 26:case 27:case 5:Se(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:Q(Ie);break;case 10:Cn(t.type);break;case 22:case 23:Dt(t),Ts(),e!==null&&Q(Gl);break;case 24:Cn(We)}}function Gr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){a=void 0;var u=n.create,g=n.inst;a=u(),g.destroy=a}n=n.next}while(n!==c)}}catch(w){Ue(t,t.return,w)}}function il(e,t,n){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var u=c.next;a=u;do{if((a.tag&e)===e){var g=a.inst,w=g.destroy;if(w!==void 0){g.destroy=void 0,c=t;var N=n,k=w;try{k()}catch(K){Ue(c,N,K)}}}a=a.next}while(a!==u)}}catch(K){Ue(t,t.return,K)}}function bg(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{sh(t,n)}catch(a){Ue(e,e.return,a)}}}function Sg(e,t,n){n.props=Kl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ue(e,t,a)}}function Xr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(c){Ue(e,t,c)}}function cn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(c){Ue(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Ue(e,t,c)}else n.current=null}function xg(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(c){Ue(e,e.return,c)}}function au(e,t,n){try{var a=e.stateNode;Sx(a,e.type,n,t),a[bt]=t}catch(c){Ue(e,e.return,c)}}function wg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ml(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sn));else if(a!==4&&(a===27&&ml(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}function go(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ml(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(go(e,t,n),e=e.sibling;e!==null;)go(e,t,n),e=e.sibling}function Eg(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ht(t,a,n),t[ut]=e,t[bt]=n}catch(u){Ue(e,e.return,u)}}var Mn=!1,nt=!1,ou=!1,Ag=typeof WeakSet=="function"?WeakSet:Set,ot=null;function WS(e,t){if(e=e.containerInfo,Nu=Lo,e=Lm(e),es(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var c=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,w=-1,N=-1,k=0,K=0,I=e,V=null;t:for(;;){for(var G;I!==n||c!==0&&I.nodeType!==3||(w=g+c),I!==u||a!==0&&I.nodeType!==3||(N=g+a),I.nodeType===3&&(g+=I.nodeValue.length),(G=I.firstChild)!==null;)V=I,I=G;for(;;){if(I===e)break t;if(V===n&&++k===c&&(w=g),V===u&&++K===a&&(N=g),(G=I.nextSibling)!==null)break;I=V,V=I.parentNode}I=G}n=w===-1||N===-1?null:{start:w,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(_u={focusedElem:e,selectionRange:n},Lo=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var se=Kl(n.type,c);e=a.getSnapshotBeforeUpdate(se,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ue(n,n.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Du(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Du(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function Cg(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),a&4&&Gr(5,n);break;case 1:if(Dn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ue(n,n.return,g)}else{var c=Kl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ue(n,n.return,g)}}a&64&&bg(n),a&512&&Xr(n,n.return);break;case 3:if(Dn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{sh(e,t)}catch(g){Ue(n,n.return,g)}}break;case 27:t===null&&a&4&&Eg(n);case 26:case 5:Dn(e,n),t===null&&a&4&&xg(n),a&512&&Xr(n,n.return);break;case 12:Dn(e,n);break;case 31:Dn(e,n),a&4&&Ng(e,n);break;case 13:Dn(e,n),a&4&&_g(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=cx.bind(null,n),Nx(e,n))));break;case 22:if(a=n.memoizedState!==null||Mn,!a){t=t!==null&&t.memoizedState!==null||nt,c=Mn;var u=nt;Mn=a,(nt=t)&&!u?zn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),Mn=c,nt=u}break;case 30:break;default:Dn(e,n)}}function Tg(e){var t=e.alternate;t!==null&&(e.alternate=null,Tg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Uc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ze=null,xt=!1;function On(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(hr,n)}catch{}switch(n.tag){case 26:nt||cn(n,t),On(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nt||cn(n,t);var a=Ze,c=xt;ml(n.type)&&(Ze=n.stateNode,xt=!1),On(e,t,n),Wr(n.stateNode),Ze=a,xt=c;break;case 5:nt||cn(n,t);case 6:if(a=Ze,c=xt,Ze=null,On(e,t,n),Ze=a,xt=c,Ze!==null)if(xt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(u){Ue(n,t,u)}else try{Ze.removeChild(n.stateNode)}catch(u){Ue(n,t,u)}break;case 18:Ze!==null&&(xt?(e=Ze,bp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Za(e)):bp(Ze,n.stateNode));break;case 4:a=Ze,c=xt,Ze=n.stateNode.containerInfo,xt=!0,On(e,t,n),Ze=a,xt=c;break;case 0:case 11:case 14:case 15:il(2,n,t),nt||il(4,n,t),On(e,t,n);break;case 1:nt||(cn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Sg(n,t,a)),On(e,t,n);break;case 21:On(e,t,n);break;case 22:nt=(a=nt)||n.memoizedState!==null,On(e,t,n),nt=a;break;default:On(e,t,n)}}function Ng(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(n){Ue(t,t.return,n)}}}function _g(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(n){Ue(t,t.return,n)}}function ex(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ag),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ag),t;default:throw Error(i(435,e.tag))}}function po(e,t){var n=ex(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var c=sx.bind(null,e,a);a.then(c,c)}})}function wt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],u=e,g=t,w=g;e:for(;w!==null;){switch(w.tag){case 27:if(ml(w.type)){Ze=w.stateNode,xt=!1;break e}break;case 5:Ze=w.stateNode,xt=!1;break e;case 3:case 4:Ze=w.stateNode.containerInfo,xt=!0;break e}w=w.return}if(Ze===null)throw Error(i(160));Rg(u,g,c),Ze=null,xt=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mg(t,e),t=t.sibling}var Ft=null;function Mg(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Et(e),a&4&&(il(3,e,e.return),Gr(3,e),il(5,e,e.return));break;case 1:wt(t,e),Et(e),a&512&&(nt||n===null||cn(n,n.return)),a&64&&Mn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var c=Ft;if(wt(t,e),Et(e),a&512&&(nt||n===null||cn(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(a){case"title":u=c.getElementsByTagName("title")[0],(!u||u[vr]||u[ut]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(a),c.head.insertBefore(u,c.querySelector("head > title"))),ht(u,a,n),u[ut]=e,it(u),a=u;break e;case"link":var g=Mp("link","href",c).get(a+(n.href||""));if(g){for(var w=0;w<g.length;w++)if(u=g[w],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(w,1);break t}}u=c.createElement(a),ht(u,a,n),c.head.appendChild(u);break;case"meta":if(g=Mp("meta","content",c).get(a+(n.content||""))){for(w=0;w<g.length;w++)if(u=g[w],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(w,1);break t}}u=c.createElement(a),ht(u,a,n),c.head.appendChild(u);break;default:throw Error(i(468,a))}u[ut]=e,it(u),a=u}e.stateNode=a}else Op(c,e.type,e.stateNode);else e.stateNode=_p(c,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?Op(c,e.type,e.stateNode):_p(c,a,e.memoizedProps)):a===null&&e.stateNode!==null&&au(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),Et(e),a&512&&(nt||n===null||cn(n,n.return)),n!==null&&a&4&&au(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),Et(e),a&512&&(nt||n===null||cn(n,n.return)),e.flags&32){c=e.stateNode;try{pa(c,"")}catch(se){Ue(e,e.return,se)}}a&4&&e.stateNode!=null&&(c=e.memoizedProps,au(e,c,n!==null?n.memoizedProps:c)),a&1024&&(ou=!0);break;case 6:if(wt(t,e),Et(e),a&4){if(e.stateNode===null)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(se){Ue(e,e.return,se)}}break;case 3:if(Do=null,c=Ft,Ft=Mo(t.containerInfo),wt(t,e),Ft=c,Et(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch(se){Ue(e,e.return,se)}ou&&(ou=!1,Og(e));break;case 4:a=Ft,Ft=Mo(e.stateNode.containerInfo),wt(t,e),Et(e),Ft=a;break;case 12:wt(t,e),Et(e);break;case 31:wt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,po(e,a)));break;case 13:wt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(yo=Tt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,po(e,a)));break;case 22:c=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,k=Mn,K=nt;if(Mn=k||c,nt=K||N,wt(t,e),nt=K,Mn=k,Et(e),a&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||N||Mn||nt||$l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(u=N.stateNode,c)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{w=N.stateNode;var I=N.memoizedProps.style,V=I!=null&&I.hasOwnProperty("display")?I.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(se){Ue(N,N.return,se)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(se){Ue(N,N.return,se)}}}else if(t.tag===18){if(n===null){N=t;try{var G=N.stateNode;c?Sp(G,!0):Sp(N.stateNode,!1)}catch(se){Ue(N,N.return,se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,po(e,n))));break;case 19:wt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,po(e,a)));break;case 30:break;case 21:break;default:wt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(wg(a)){n=a;break}a=a.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode,u=ru(e);go(e,u,c);break;case 5:var g=n.stateNode;n.flags&32&&(pa(g,""),n.flags&=-33);var w=ru(e);go(e,w,g);break;case 3:case 4:var N=n.stateNode.containerInfo,k=ru(e);iu(e,k,N);break;default:throw Error(i(161))}}catch(K){Ue(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Og(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Og(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cg(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),$l(t);break;case 1:cn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Sg(t,t.return,n),$l(t);break;case 27:Wr(t.stateNode);case 26:case 5:cn(t,t.return),$l(t);break;case 22:t.memoizedState===null&&$l(t);break;case 30:$l(t);break;default:$l(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,c=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:zn(c,u,n),Gr(4,u);break;case 1:if(zn(c,u,n),a=u,c=a.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(k){Ue(a,a.return,k)}if(a=u,c=a.updateQueue,c!==null){var w=a.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)ch(N[c],w)}catch(k){Ue(a,a.return,k)}}n&&g&64&&bg(u),Xr(u,u.return);break;case 27:Eg(u);case 26:case 5:zn(c,u,n),n&&a===null&&g&4&&xg(u),Xr(u,u.return);break;case 12:zn(c,u,n);break;case 31:zn(c,u,n),n&&g&4&&Ng(c,u);break;case 13:zn(c,u,n),n&&g&4&&_g(c,u);break;case 22:u.memoizedState===null&&zn(c,u,n),Xr(u,u.return);break;case 30:break;default:zn(c,u,n)}t=t.sibling}}function cu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Mr(n))}function su(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mr(e))}function Wt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dg(e,t,n,a),t=t.sibling}function Dg(e,t,n,a){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,n,a),c&2048&&Gr(9,t);break;case 1:Wt(e,t,n,a);break;case 3:Wt(e,t,n,a),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mr(e)));break;case 12:if(c&2048){Wt(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,w=u.onPostCommit;typeof w=="function"&&w(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ue(t,t.return,N)}}else Wt(e,t,n,a);break;case 31:Wt(e,t,n,a);break;case 13:Wt(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?Wt(e,t,n,a):Qr(e,t):u._visibility&2?Wt(e,t,n,a):(u._visibility|=2,La(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),c&2048&&cu(g,t);break;case 24:Wt(e,t,n,a),c&2048&&su(t.alternate,t);break;default:Wt(e,t,n,a)}}function La(e,t,n,a,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,w=n,N=a,k=g.flags;switch(g.tag){case 0:case 11:case 15:La(u,g,w,N,c),Gr(8,g);break;case 23:break;case 22:var K=g.stateNode;g.memoizedState!==null?K._visibility&2?La(u,g,w,N,c):Qr(u,g):(K._visibility|=2,La(u,g,w,N,c)),c&&k&2048&&cu(g.alternate,g);break;case 24:La(u,g,w,N,c),c&&k&2048&&su(g.alternate,g);break;default:La(u,g,w,N,c)}t=t.sibling}}function Qr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,c=a.flags;switch(a.tag){case 22:Qr(n,a),c&2048&&cu(a.alternate,a);break;case 24:Qr(n,a),c&2048&&su(a.alternate,a);break;default:Qr(n,a)}t=t.sibling}}var Pr=8192;function Ua(e,t,n){if(e.subtreeFlags&Pr)for(e=e.child;e!==null;)zg(e,t,n),e=e.sibling}function zg(e,t,n){switch(e.tag){case 26:Ua(e,t,n),e.flags&Pr&&e.memoizedState!==null&&qx(n,Ft,e.memoizedState,e.memoizedProps);break;case 5:Ua(e,t,n);break;case 3:case 4:var a=Ft;Ft=Mo(e.stateNode.containerInfo),Ua(e,t,n),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Pr,Pr=16777216,Ua(e,t,n),Pr=a):Ua(e,t,n));break;default:Ua(e,t,n)}}function jg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ot=a,Lg(a,e)}jg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bg(e),e=e.sibling}function Bg(e){switch(e.tag){case 0:case 11:case 15:Zr(e),e.flags&2048&&il(9,e,e.return);break;case 3:Zr(e);break;case 12:Zr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vo(e)):Zr(e);break;default:Zr(e)}}function vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ot=a,Lg(a,e)}jg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),vo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,vo(t));break;default:vo(t)}e=e.sibling}}function Lg(e,t){for(;ot!==null;){var n=ot;switch(n.tag){case 0:case 11:case 15:il(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Mr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ot=a;else e:for(n=e;ot!==null;){a=ot;var c=a.sibling,u=a.return;if(Tg(a),a===n){ot=null;break e}if(c!==null){c.return=u,ot=c;break e}ot=u}}}var tx={getCacheForType:function(e){var t=dt(We),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return dt(We).controller.signal}},nx=typeof WeakMap=="function"?WeakMap:Map,je=0,Ye=null,Ce=null,Ne=0,Le=0,zt=null,ol=!1,Ha=!1,uu=!1,jn=0,Je=0,cl=0,Jl=0,fu=0,jt=0,ka=0,Kr=null,At=null,du=!1,yo=0,Ug=0,bo=1/0,So=null,sl=null,at=0,ul=null,qa=null,Bn=0,mu=0,hu=null,Hg=null,$r=0,gu=null;function Bt(){return(je&2)!==0&&Ne!==0?Ne&-Ne:U.T!==null?xu():em()}function kg(){if(jt===0)if((Ne&536870912)===0||Me){var e=Ri;Ri<<=1,(Ri&3932160)===0&&(Ri=262144),jt=e}else jt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),jt}function Ct(e,t,n){(e===Ye&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Va(e,0),fl(e,Ne,jt,!1)),pr(e,n),((je&2)===0||e!==Ye)&&(e===Ye&&((je&2)===0&&(Jl|=n),Je===4&&fl(e,Ne,jt,!1)),sn(e))}function qg(e,t,n){if((je&6)!==0)throw Error(i(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||gr(e,t),c=a?rx(e,t):vu(e,t,!0),u=a;do{if(c===0){Ha&&!a&&fl(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!lx(n)){c=vu(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var w=e;c=Kr;var N=w.current.memoizedState.isDehydrated;if(N&&(Va(w,g).flags|=256),g=vu(w,g,!1),g!==2){if(uu&&!N){w.errorRecoveryDisabledLanes|=u,Jl|=u,c=4;break e}u=At,At=c,u!==null&&(At===null?At=u:At.push.apply(At,u))}c=g}if(u=!1,c!==2)continue}}if(c===1){Va(e,0),fl(e,t,0,!0);break}e:{switch(a=e,u=c,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:fl(a,t,jt,!ol);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=yo+300-Tt(),10<c)){if(fl(a,t,jt,!ol),_i(a,0,!0)!==0)break e;Bn=t,a.timeoutHandle=vp(Vg.bind(null,a,n,At,So,du,t,jt,Jl,ka,ol,u,"Throttled",-0,0),c);break e}Vg(a,n,At,So,du,t,jt,Jl,ka,ol,u,null,-0,0)}}break}while(!0);sn(e)}function Vg(e,t,n,a,c,u,g,w,N,k,K,I,V,G){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},zg(t,u,I);var se=(u&62914560)===u?yo-Tt():(u&4194048)===u?Ug-Tt():0;if(se=Vx(I,se),se!==null){Bn=u,e.cancelPendingCommit=se($g.bind(null,e,t,u,n,a,c,g,w,N,K,I,null,V,G)),fl(e,u,g,!k);return}}$g(e,t,u,n,a,c,g,w,N)}function lx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var c=n[a],u=c.getSnapshot;c=c.value;try{if(!_t(u(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,n,a){t&=~fu,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var c=t;0<c;){var u=31-Nt(c),g=1<<u;a[u]=-1,c&=~g}n!==0&&Id(e,n,t)}function xo(){return(je&6)===0?(Jr(0),!1):!0}function pu(){if(Ce!==null){if(Le===0)var e=Ce.return;else e=Ce,An=Vl=null,Ds(e),Oa=null,Dr=0,e=Ce;for(;e!==null;)yg(e.alternate,e),e=e.return;Ce=null}}function Va(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ex(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Bn=0,pu(),Ye=e,Ce=n=wn(e.current,null),Ne=t,Le=0,zt=null,ol=!1,Ha=gr(e,t),uu=!1,ka=jt=fu=Jl=cl=Je=0,At=Kr=null,du=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var c=31-Nt(a),u=1<<c;t|=e[c],a&=~u}return jn=t,Vi(),n}function Yg(e,t){be=null,U.H=qr,t===Ma||t===$i?(t=ah(),Le=3):t===Ss?(t=ah(),Le=4):Le=t===Ks?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Ce===null&&(Je=1,so(e,Vt(t,e.current)))}function Gg(){var e=Ot.current;return e===null?!0:(Ne&4194048)===Ne?Qt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Qt:!1}function Xg(){var e=U.H;return U.H=qr,e===null?qr:e}function Qg(){var e=U.A;return U.A=tx,e}function wo(){Je=4,ol||(Ne&4194048)!==Ne&&Ot.current!==null||(Ha=!0),(cl&134217727)===0&&(Jl&134217727)===0||Ye===null||fl(Ye,Ne,jt,!1)}function vu(e,t,n){var a=je;je|=2;var c=Xg(),u=Qg();(Ye!==e||Ne!==t)&&(So=null,Va(e,t)),t=!1;var g=Je;e:do try{if(Le!==0&&Ce!==null){var w=Ce,N=zt;switch(Le){case 8:pu(),g=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var k=Le;if(Le=0,zt=null,Ya(e,w,N,k),n&&Ha){g=0;break e}break;default:k=Le,Le=0,zt=null,Ya(e,w,N,k)}}ax(),g=Je;break}catch(K){Yg(e,K)}while(!0);return t&&e.shellSuspendCounter++,An=Vl=null,je=a,U.H=c,U.A=u,Ce===null&&(Ye=null,Ne=0,Vi()),g}function ax(){for(;Ce!==null;)Pg(Ce)}function rx(e,t){var n=je;je|=2;var a=Xg(),c=Qg();Ye!==e||Ne!==t?(So=null,bo=Tt()+500,Va(e,t)):Ha=gr(e,t);e:do try{if(Le!==0&&Ce!==null){t=Ce;var u=zt;t:switch(Le){case 1:Le=0,zt=null,Ya(e,t,u,1);break;case 2:case 9:if(nh(u)){Le=0,zt=null,Zg(t);break}t=function(){Le!==2&&Le!==9||Ye!==e||(Le=7),sn(e)},u.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:nh(u)?(Le=0,zt=null,Zg(t)):(Le=0,zt=null,Ya(e,t,u,7));break;case 5:var g=null;switch(Ce.tag){case 26:g=Ce.memoizedState;case 5:case 27:var w=Ce;if(g?Dp(g):w.stateNode.complete){Le=0,zt=null;var N=w.sibling;if(N!==null)Ce=N;else{var k=w.return;k!==null?(Ce=k,Eo(k)):Ce=null}break t}}Le=0,zt=null,Ya(e,t,u,5);break;case 6:Le=0,zt=null,Ya(e,t,u,6);break;case 8:pu(),Je=6;break e;default:throw Error(i(462))}}ix();break}catch(K){Yg(e,K)}while(!0);return An=Vl=null,U.H=a,U.A=c,je=n,Ce!==null?0:(Ye=null,Ne=0,Vi(),Je)}function ix(){for(;Ce!==null&&!_1();)Pg(Ce)}function Pg(e){var t=pg(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Eo(e):Ce=t}function Zg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ug(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=ug(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:Ds(t);default:yg(n,t),t=Ce=Qm(t,jn),t=pg(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Eo(e):Ce=t}function Ya(e,t,n,a){An=Vl=null,Ds(t),Oa=null,Dr=0;var c=t.return;try{if(KS(e,c,t,n,Ne)){Je=1,so(e,Vt(n,e.current)),Ce=null;return}}catch(u){if(c!==null)throw Ce=c,u;Je=1,so(e,Vt(n,e.current)),Ce=null;return}t.flags&32768?(Me||a===1?e=!0:Ha||(Ne&536870912)!==0?e=!1:(ol=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Kg(t,e)):Eo(t)}function Eo(e){var t=e;do{if((t.flags&32768)!==0){Kg(t,ol);return}e=t.return;var n=IS(t.alternate,t,jn);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Je===0&&(Je=5)}function Kg(e,t){do{var n=FS(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);Je=6,Ce=null}function $g(e,t,n,a,c,u,g,w,N){e.cancelPendingCommit=null;do Ao();while(at!==0);if((je&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=rs,k1(e,n,u,g,w,N),e===Ye&&(Ce=Ye=null,Ne=0),qa=t,ul=e,Bn=n,mu=u,hu=c,Hg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ux(Ci,function(){return ep(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,c=F.p,F.p=2,g=je,je|=4;try{WS(e,t,n)}finally{je=g,F.p=c,U.T=a}}at=1,Jg(),Ig(),Fg()}}function Jg(){if(at===1){at=0;var e=ul,t=qa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=F.p;F.p=2;var c=je;je|=4;try{Mg(t,e);var u=_u,g=Lm(e.containerInfo),w=u.focusedElem,N=u.selectionRange;if(g!==w&&w&&w.ownerDocument&&Bm(w.ownerDocument.documentElement,w)){if(N!==null&&es(w)){var k=N.start,K=N.end;if(K===void 0&&(K=k),"selectionStart"in w)w.selectionStart=k,w.selectionEnd=Math.min(K,w.value.length);else{var I=w.ownerDocument||document,V=I&&I.defaultView||window;if(V.getSelection){var G=V.getSelection(),se=w.textContent.length,ve=Math.min(N.start,se),Ve=N.end===void 0?ve:Math.min(N.end,se);!G.extend&&ve>Ve&&(g=Ve,Ve=ve,ve=g);var L=jm(w,ve),D=jm(w,Ve);if(L&&D&&(G.rangeCount!==1||G.anchorNode!==L.node||G.anchorOffset!==L.offset||G.focusNode!==D.node||G.focusOffset!==D.offset)){var H=I.createRange();H.setStart(L.node,L.offset),G.removeAllRanges(),ve>Ve?(G.addRange(H),G.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),G.addRange(H))}}}}for(I=[],G=w;G=G.parentNode;)G.nodeType===1&&I.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<I.length;w++){var J=I[w];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Lo=!!Nu,_u=Nu=null}finally{je=c,F.p=a,U.T=n}}e.current=t,at=2}}function Ig(){if(at===2){at=0;var e=ul,t=qa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=F.p;F.p=2;var c=je;je|=4;try{Cg(e,t.alternate,t)}finally{je=c,F.p=a,U.T=n}}at=3}}function Fg(){if(at===4||at===3){at=0,M1();var e=ul,t=qa,n=Bn,a=Hg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,qa=ul=null,Wg(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(sl=null),Bc(n),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(hr,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,c=F.p,F.p=2,U.T=null;try{for(var u=e.onRecoverableError,g=0;g<a.length;g++){var w=a[g];u(w.value,{componentStack:w.stack})}}finally{U.T=t,F.p=c}}(Bn&3)!==0&&Ao(),sn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===gu?$r++:($r=0,gu=e):$r=0,Jr(0)}}function Wg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mr(t)))}function Ao(){return Jg(),Ig(),Fg(),ep()}function ep(){if(at!==5)return!1;var e=ul,t=mu;mu=0;var n=Bc(Bn),a=U.T,c=F.p;try{F.p=32>n?32:n,U.T=null,n=hu,hu=null;var u=ul,g=Bn;if(at=0,qa=ul=null,Bn=0,(je&6)!==0)throw Error(i(331));var w=je;if(je|=4,Bg(u.current),Dg(u,u.current,g,n),je=w,Jr(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(hr,u)}catch{}return!0}finally{F.p=c,U.T=a,Wg(e,t)}}function tp(e,t,n){t=Vt(n,t),t=Zs(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(pr(e,2),sn(e))}function Ue(e,t,n){if(e.tag===3)tp(e,e,n);else for(;t!==null;){if(t.tag===3){tp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(sl===null||!sl.has(a))){e=Vt(n,e),n=ng(2),a=ll(t,n,2),a!==null&&(lg(n,a,t,e),pr(a,2),sn(a));break}}t=t.return}}function yu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new nx;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(n)||(uu=!0,c.add(n),e=ox.bind(null,e,t,n),t.then(e,e))}function ox(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Ne&n)===n&&(Je===4||Je===3&&(Ne&62914560)===Ne&&300>Tt()-yo?(je&2)===0&&Va(e,0):fu|=n,ka===Ne&&(ka=0)),sn(e)}function np(e,t){t===0&&(t=Jd()),e=Hl(e,t),e!==null&&(pr(e,t),sn(e))}function cx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),np(e,n)}function sx(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),np(e,n)}function ux(e,t){return Zn(e,t)}var Co=null,Ga=null,bu=!1,To=!1,Su=!1,dl=0;function sn(e){e!==Ga&&e.next===null&&(Ga===null?Co=Ga=e:Ga=Ga.next=e),To=!0,bu||(bu=!0,dx())}function Jr(e,t){if(!Su&&To){Su=!0;do for(var n=!1,a=Co;a!==null;){if(e!==0){var c=a.pendingLanes;if(c===0)var u=0;else{var g=a.suspendedLanes,w=a.pingedLanes;u=(1<<31-Nt(42|e)+1)-1,u&=c&~(g&~w),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,ip(a,u))}else u=Ne,u=_i(a,a===Ye?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||gr(a,u)||(n=!0,ip(a,u));a=a.next}while(n);Su=!1}}function fx(){lp()}function lp(){To=bu=!1;var e=0;dl!==0&&wx()&&(e=dl);for(var t=Tt(),n=null,a=Co;a!==null;){var c=a.next,u=ap(a,t);u===0?(a.next=null,n===null?Co=c:n.next=c,c===null&&(Ga=n)):(n=a,(e!==0||(u&3)!==0)&&(To=!0)),a=c}at!==0&&at!==5||Jr(e),dl!==0&&(dl=0)}function ap(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-Nt(u),w=1<<g,N=c[g];N===-1?((w&n)===0||(w&a)!==0)&&(c[g]=H1(w,t)):N<=t&&(e.expiredLanes|=w),u&=~w}if(t=Ye,n=Ne,n=_i(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Dc(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Dc(a),Bc(n)){case 2:case 8:n=Kd;break;case 32:n=Ci;break;case 268435456:n=$d;break;default:n=Ci}return a=rp.bind(null,e),n=Zn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Dc(a),e.callbackPriority=2,e.callbackNode=null,2}function rp(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ao()&&e.callbackNode!==n)return null;var a=Ne;return a=_i(e,e===Ye?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qg(e,a,t),ap(e,Tt()),e.callbackNode!=null&&e.callbackNode===n?rp.bind(null,e):null)}function ip(e,t){if(Ao())return null;qg(e,t,!0)}function dx(){Ax(function(){(je&6)!==0?Zn(Zd,fx):lp()})}function xu(){if(dl===0){var e=Na;e===0&&(e=Ti,Ti<<=1,(Ti&261888)===0&&(Ti=256)),dl=e}return dl}function op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function cp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function mx(e,t,n,a,c){if(t==="submit"&&n&&n.stateNode===c){var u=op((c[bt]||null).action),g=a.submitter;g&&(t=(t=g[bt]||null)?op(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var w=new Ui("action","action",null,a,c);e.push({event:w,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(dl!==0){var N=g?cp(c,g):new FormData(c);Vs(n,{pending:!0,data:N,method:c.method,action:u},null,N)}}else typeof u=="function"&&(w.preventDefault(),N=g?cp(c,g):new FormData(c),Vs(n,{pending:!0,data:N,method:c.method,action:u},u,N))},currentTarget:c}]})}}for(var wu=0;wu<as.length;wu++){var Eu=as[wu],hx=Eu.toLowerCase(),gx=Eu[0].toUpperCase()+Eu.slice(1);It(hx,"on"+gx)}It(km,"onAnimationEnd"),It(qm,"onAnimationIteration"),It(Vm,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(OS,"onTransitionRun"),It(DS,"onTransitionStart"),It(zS,"onTransitionCancel"),It(Ym,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),px=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ir));function sp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],c=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var g=a.length-1;0<=g;g--){var w=a[g],N=w.instance,k=w.currentTarget;if(w=w.listener,N!==u&&c.isPropagationStopped())break e;u=w,c.currentTarget=k;try{u(c)}catch(K){qi(K)}c.currentTarget=null,u=N}else for(g=0;g<a.length;g++){if(w=a[g],N=w.instance,k=w.currentTarget,w=w.listener,N!==u&&c.isPropagationStopped())break e;u=w,c.currentTarget=k;try{u(c)}catch(K){qi(K)}c.currentTarget=null,u=N}}}}function Te(e,t){var n=t[Lc];n===void 0&&(n=t[Lc]=new Set);var a=e+"__bubble";n.has(a)||(up(t,e,2,!1),n.add(a))}function Au(e,t,n){var a=0;t&&(a|=4),up(n,e,a,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function Cu(e){if(!e[Ro]){e[Ro]=!0,lm.forEach(function(n){n!=="selectionchange"&&(px.has(n)||Au(n,!1,e),Au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,Au("selectionchange",!1,t))}}function up(e,t,n,a){switch(kp(t)){case 2:var c=Xx;break;case 8:c=Qx;break;default:c=qu}n=c.bind(null,t,n,e),c=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Tu(e,t,n,a,c){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var w=a.stateNode.containerInfo;if(w===c)break;if(g===4)for(g=a.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;w!==null;){if(g=fa(w),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){a=u=g;continue e}w=w.parentNode}}a=a.return}gm(function(){var k=u,K=Gc(n),I=[];e:{var V=Gm.get(e);if(V!==void 0){var G=Ui,se=e;switch(e){case"keypress":if(Bi(n)===0)break e;case"keydown":case"keyup":G=sS;break;case"focusin":se="focus",G=$c;break;case"focusout":se="blur",G=$c;break;case"beforeblur":case"afterblur":G=$c;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=I1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=dS;break;case km:case qm:case Vm:G=eS;break;case Ym:G=hS;break;case"scroll":case"scrollend":G=$1;break;case"wheel":G=pS;break;case"copy":case"cut":case"paste":G=nS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Sm;break;case"toggle":case"beforetoggle":G=yS}var ve=(t&4)!==0,Ve=!ve&&(e==="scroll"||e==="scrollend"),L=ve?V!==null?V+"Capture":null:V;ve=[];for(var D=k,H;D!==null;){var J=D;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||L===null||(J=br(D,L),J!=null&&ve.push(Fr(D,J,H))),Ve)break;D=D.return}0<ve.length&&(V=new G(V,se,null,n,K),I.push({event:V,listeners:ve}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",V&&n!==Yc&&(se=n.relatedTarget||n.fromElement)&&(fa(se)||se[ua]))break e;if((G||V)&&(V=K.window===K?K:(V=K.ownerDocument)?V.defaultView||V.parentWindow:window,G?(se=n.relatedTarget||n.toElement,G=k,se=se?fa(se):null,se!==null&&(Ve=f(se),ve=se.tag,se!==Ve||ve!==5&&ve!==27&&ve!==6)&&(se=null)):(G=null,se=k),G!==se)){if(ve=ym,J="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Sm,J="onPointerLeave",L="onPointerEnter",D="pointer"),Ve=G==null?V:yr(G),H=se==null?V:yr(se),V=new ve(J,D+"leave",G,n,K),V.target=Ve,V.relatedTarget=H,J=null,fa(K)===k&&(ve=new ve(L,D+"enter",se,n,K),ve.target=H,ve.relatedTarget=Ve,J=ve),Ve=J,G&&se)t:{for(ve=vx,L=G,D=se,H=0,J=L;J;J=ve(J))H++;J=0;for(var he=D;he;he=ve(he))J++;for(;0<H-J;)L=ve(L),H--;for(;0<J-H;)D=ve(D),J--;for(;H--;){if(L===D||D!==null&&L===D.alternate){ve=L;break t}L=ve(L),D=ve(D)}ve=null}else ve=null;G!==null&&fp(I,V,G,ve,!1),se!==null&&Ve!==null&&fp(I,Ve,se,ve,!0)}}e:{if(V=k?yr(k):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var De=Nm;else if(Tm(V))if(_m)De=NS;else{De=TS;var me=CS}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?k&&Vc(k.elementType)&&(De=Nm):De=RS;if(De&&(De=De(e,k))){Rm(I,De,n,K);break e}me&&me(e,V,k),e==="focusout"&&k&&V.type==="number"&&k.memoizedProps.value!=null&&qc(V,"number",V.value)}switch(me=k?yr(k):window,e){case"focusin":(Tm(me)||me.contentEditable==="true")&&(Sa=me,ts=k,Rr=null);break;case"focusout":Rr=ts=Sa=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,Um(I,n,K);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":Um(I,n,K)}var xe;if(Ic)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else ba?Am(e,n)&&(_e="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_e="onCompositionStart");_e&&(xm&&n.locale!=="ko"&&(ba||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&ba&&(xe=pm()):(Jn=K,Pc="value"in Jn?Jn.value:Jn.textContent,ba=!0)),me=No(k,_e),0<me.length&&(_e=new bm(_e,e,null,n,K),I.push({event:_e,listeners:me}),xe?_e.data=xe:(xe=Cm(n),xe!==null&&(_e.data=xe)))),(xe=SS?xS(e,n):wS(e,n))&&(_e=No(k,"onBeforeInput"),0<_e.length&&(me=new bm("onBeforeInput","beforeinput",null,n,K),I.push({event:me,listeners:_e}),me.data=xe)),mx(I,e,k,n,K)}sp(I,t)})}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function No(e,t){for(var n=t+"Capture",a=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=br(e,n),c!=null&&a.unshift(Fr(e,c,u)),c=br(e,t),c!=null&&a.push(Fr(e,c,u))),e.tag===3)return a;e=e.return}return[]}function vx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fp(e,t,n,a,c){for(var u=t._reactName,g=[];n!==null&&n!==a;){var w=n,N=w.alternate,k=w.stateNode;if(w=w.tag,N!==null&&N===a)break;w!==5&&w!==26&&w!==27||k===null||(N=k,c?(k=br(n,u),k!=null&&g.unshift(Fr(n,k,N))):c||(k=br(n,u),k!=null&&g.push(Fr(n,k,N)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var yx=/\r\n?/g,bx=/\u0000|\uFFFD/g;function dp(e){return(typeof e=="string"?e:""+e).replace(yx,`
49
+ `).replace(bx,"")}function mp(e,t){return t=dp(t),dp(e)===t}function qe(e,t,n,a,c,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||pa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&pa(e,""+a);break;case"className":Oi(e,"class",a);break;case"tabIndex":Oi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,n,a);break;case"style":mm(e,a,u);break;case"data":if(t!=="object"){Oi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=zi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",c.name,c,null),qe(e,t,"formEncType",c.formEncType,c,null),qe(e,t,"formMethod",c.formMethod,c,null),qe(e,t,"formTarget",c.formTarget,c,null)):(qe(e,t,"encType",c.encType,c,null),qe(e,t,"method",c.method,c,null),qe(e,t,"target",c.target,c,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=zi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Sn);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=zi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Mi(e,"popover",a);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Mi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Z1.get(n)||n,Mi(e,n,a))}}function Ru(e,t,n,a,c,u){switch(n){case"style":mm(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof a=="string"?pa(e,a):(typeof a=="number"||typeof a=="bigint")&&pa(e,""+a);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!am.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[bt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,c);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Mi(e,n,a)}}}function ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var a=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":a=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:qe(e,t,u,g,n,null)}}c&&qe(e,t,"srcSet",n.srcSet,n,null),a&&qe(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var w=u=g=c=null,N=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var K=n[a];if(K!=null)switch(a){case"name":c=K;break;case"type":g=K;break;case"checked":N=K;break;case"defaultChecked":k=K;break;case"value":u=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:qe(e,t,a,K,n,null)}}sm(e,u,w,N,k,g,c,!1);return;case"select":Te("invalid",e),a=g=u=null;for(c in n)if(n.hasOwnProperty(c)&&(w=n[c],w!=null))switch(c){case"value":u=w;break;case"defaultValue":g=w;break;case"multiple":a=w;default:qe(e,t,c,w,n,null)}t=u,n=g,e.multiple=!!a,t!=null?ga(e,!!a,t,!1):n!=null&&ga(e,!!a,n,!0);return;case"textarea":Te("invalid",e),u=c=a=null;for(g in n)if(n.hasOwnProperty(g)&&(w=n[g],w!=null))switch(g){case"value":a=w;break;case"defaultValue":c=w;break;case"children":u=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:qe(e,t,g,w,n,null)}fm(e,a,c,u);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:qe(e,t,N,a,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Te(Ir[a],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:qe(e,t,k,a,n,null)}return;default:if(Vc(t)){for(K in n)n.hasOwnProperty(K)&&(a=n[K],a!==void 0&&Ru(e,t,K,a,n,void 0));return}}for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!=null&&qe(e,t,w,a,n,null))}function Sx(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,g=null,w=null,N=null,k=null,K=null;for(G in n){var I=n[G];if(n.hasOwnProperty(G)&&I!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":N=I;default:a.hasOwnProperty(G)||qe(e,t,G,null,a,I)}}for(var V in a){var G=a[V];if(I=n[V],a.hasOwnProperty(V)&&(G!=null||I!=null))switch(V){case"type":u=G;break;case"name":c=G;break;case"checked":k=G;break;case"defaultChecked":K=G;break;case"value":g=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,t));break;default:G!==I&&qe(e,t,V,G,a,I)}}kc(e,g,w,N,k,K,u,c);return;case"select":G=g=w=V=null;for(u in n)if(N=n[u],n.hasOwnProperty(u)&&N!=null)switch(u){case"value":break;case"multiple":G=N;default:a.hasOwnProperty(u)||qe(e,t,u,null,a,N)}for(c in a)if(u=a[c],N=n[c],a.hasOwnProperty(c)&&(u!=null||N!=null))switch(c){case"value":V=u;break;case"defaultValue":w=u;break;case"multiple":g=u;default:u!==N&&qe(e,t,c,u,a,N)}t=w,n=g,a=G,V!=null?ga(e,!!n,V,!1):!!a!=!!n&&(t!=null?ga(e,!!n,t,!0):ga(e,!!n,n?[]:"",!1));return;case"textarea":G=V=null;for(w in n)if(c=n[w],n.hasOwnProperty(w)&&c!=null&&!a.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:qe(e,t,w,null,a,c)}for(g in a)if(c=a[g],u=n[g],a.hasOwnProperty(g)&&(c!=null||u!=null))switch(g){case"value":V=c;break;case"defaultValue":G=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==u&&qe(e,t,g,c,a,u)}um(e,V,G);return;case"option":for(var se in n)if(V=n[se],n.hasOwnProperty(se)&&V!=null&&!a.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:qe(e,t,se,null,a,V)}for(N in a)if(V=a[N],G=n[N],a.hasOwnProperty(N)&&V!==G&&(V!=null||G!=null))switch(N){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:qe(e,t,N,V,a,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in n)V=n[ve],n.hasOwnProperty(ve)&&V!=null&&!a.hasOwnProperty(ve)&&qe(e,t,ve,null,a,V);for(k in a)if(V=a[k],G=n[k],a.hasOwnProperty(k)&&V!==G&&(V!=null||G!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:qe(e,t,k,V,a,G)}return;default:if(Vc(t)){for(var Ve in n)V=n[Ve],n.hasOwnProperty(Ve)&&V!==void 0&&!a.hasOwnProperty(Ve)&&Ru(e,t,Ve,void 0,a,V);for(K in a)V=a[K],G=n[K],!a.hasOwnProperty(K)||V===G||V===void 0&&G===void 0||Ru(e,t,K,V,a,G);return}}for(var L in n)V=n[L],n.hasOwnProperty(L)&&V!=null&&!a.hasOwnProperty(L)&&qe(e,t,L,null,a,V);for(I in a)V=a[I],G=n[I],!a.hasOwnProperty(I)||V===G||V==null&&G==null||qe(e,t,I,V,a,G)}function hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var c=n[a],u=c.transferSize,g=c.initiatorType,w=c.duration;if(u&&w&&hp(g)){for(g=0,w=c.responseEnd,a+=1;a<n.length;a++){var N=n[a],k=N.startTime;if(k>w)break;var K=N.transferSize,I=N.initiatorType;K&&hp(I)&&(N=N.responseEnd,g+=K*(N<w?1:(w-k)/(N-k)))}if(--a,t+=8*(u+g)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Nu=null,_u=null;function _o(e){return e.nodeType===9?e:e.ownerDocument}function gp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ou=null;function wx(){var e=window.event;return e&&e.type==="popstate"?e===Ou?!1:(Ou=e,!0):(Ou=null,!1)}var vp=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,yp=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof yp<"u"?function(e){return yp.resolve(null).then(e).catch(Cx)}:vp;function Cx(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function bp(e,t){var n=t,a=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(c),Za(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Wr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Wr(n);for(var u=n.firstChild;u;){var g=u.nextSibling,w=u.nodeName;u[vr]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&Wr(e.ownerDocument.body);n=c}while(n);Za(t)}function Sp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Du(n),Uc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Tx(e,t,n,a){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[vr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function Rx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function xp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function zu(e){return e.data==="$?"||e.data==="$~"}function ju(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bu=null;function wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Ep(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Ap(e,t,n){switch(t=_o(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Wr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Uc(e)}var Zt=new Map,Cp=new Set;function Mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=F.d;F.d={f:_x,r:Mx,D:Ox,C:Dx,L:zx,m:jx,X:Lx,S:Bx,M:Ux};function _x(){var e=Ln.f(),t=xo();return e||t}function Mx(e){var t=da(e);t!==null&&t.tag===5&&t.type==="form"?Yh(t):Ln.r(e)}var Xa=typeof document>"u"?null:document;function Tp(e,t,n){var a=Xa;if(a&&typeof t=="string"&&t){var c=kt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Cp.has(c)||(Cp.add(c),e={rel:e,crossOrigin:n,href:t},a.querySelector(c)===null&&(t=a.createElement("link"),ht(t,"link",e),it(t),a.head.appendChild(t)))}}function Ox(e){Ln.D(e),Tp("dns-prefetch",e,null)}function Dx(e,t){Ln.C(e,t),Tp("preconnect",e,t)}function zx(e,t,n){Ln.L(e,t,n);var a=Xa;if(a&&e&&t){var c='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+kt(n.imageSizes)+'"]')):c+='[href="'+kt(e)+'"]';var u=c;switch(t){case"style":u=Qa(e);break;case"script":u=Pa(e)}Zt.has(u)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(u,e),a.querySelector(c)!==null||t==="style"&&a.querySelector(ei(u))||t==="script"&&a.querySelector(ti(u))||(t=a.createElement("link"),ht(t,"link",e),it(t),a.head.appendChild(t)))}}function jx(e,t){Ln.m(e,t);var n=Xa;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+kt(a)+'"][href="'+kt(e)+'"]',u=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Pa(e)}if(!Zt.has(u)&&(e=b({rel:"modulepreload",href:e},t),Zt.set(u,e),n.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ti(u)))return}a=n.createElement("link"),ht(a,"link",e),it(a),n.head.appendChild(a)}}}function Bx(e,t,n){Ln.S(e,t,n);var a=Xa;if(a&&e){var c=ma(a).hoistableStyles,u=Qa(e);t=t||"default";var g=c.get(u);if(!g){var w={loading:0,preload:null};if(g=a.querySelector(ei(u)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(u))&&Lu(e,n);var N=g=a.createElement("link");it(N),ht(N,"link",e),N._p=new Promise(function(k,K){N.onload=k,N.onerror=K}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Oo(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:w},c.set(u,g)}}}function Lx(e,t){Ln.X(e,t);var n=Xa;if(n&&e){var a=ma(n).hoistableScripts,c=Pa(e),u=a.get(c);u||(u=n.querySelector(ti(c)),u||(e=b({src:e,async:!0},t),(t=Zt.get(c))&&Uu(e,t),u=n.createElement("script"),it(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(c,u))}}function Ux(e,t){Ln.M(e,t);var n=Xa;if(n&&e){var a=ma(n).hoistableScripts,c=Pa(e),u=a.get(c);u||(u=n.querySelector(ti(c)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Zt.get(c))&&Uu(e,t),u=n.createElement("script"),it(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(c,u))}}function Rp(e,t,n,a){var c=(c=ue.current)?Mo(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Qa(n.href),n=ma(c).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Qa(n.href);var u=ma(c).hoistableStyles,g=u.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=c.querySelector(ei(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zt.set(e,n),u||Hx(c,e,n,g.state))),t&&a===null)throw Error(i(528,""));return g}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pa(n),n=ma(c).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Qa(e){return'href="'+kt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function Np(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Hx(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ht(t,"link",n),it(t),e.head.appendChild(t))}function Pa(e){return'[src="'+kt(e)+'"]'}function ti(e){return"script[async]"+e}function _p(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kt(n.href)+'"]');if(a)return t.instance=a,it(a),a;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),it(a),ht(a,"style",c),Oo(a,n.precedence,e),t.instance=a;case"stylesheet":c=Qa(n.href);var u=e.querySelector(ei(c));if(u)return t.state.loading|=4,t.instance=u,it(u),u;a=Np(n),(c=Zt.get(c))&&Lu(a,c),u=(e.ownerDocument||e).createElement("link"),it(u);var g=u;return g._p=new Promise(function(w,N){g.onload=w,g.onerror=N}),ht(u,"link",a),t.state.loading|=4,Oo(u,n.precedence,e),t.instance=u;case"script":return u=Pa(n.src),(c=e.querySelector(ti(u)))?(t.instance=c,it(c),c):(a=n,(c=Zt.get(u))&&(a=b({},n),Uu(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),it(c),ht(c,"link",a),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Oo(a,n.precedence,e));return t.instance}function Oo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,u=c,g=0;g<a.length;g++){var w=a[g];if(w.dataset.precedence===t)u=w;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Do=null;function Mp(e,t,n){if(Do===null){var a=new Map,c=Do=new Map;c.set(n,a)}else c=Do,a=c.get(n),a||(a=new Map,c.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[vr]||u[ut]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var w=a.get(g);w?w.push(u):a.set(g,[u])}}return a}function Op(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Dp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qx(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=Qa(a.href),u=t.querySelector(ei(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,it(u);return}u=t.ownerDocument||t,a=Np(a),(c=Zt.get(c))&&Lu(a,c),u=u.createElement("link"),it(u);var g=u;g._p=new Promise(function(w,N){g.onload=w,g.onerror=N}),ht(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=zo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hu=0;function Vx(e,t){return e.stylesheets&&e.count===0&&Bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Bo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Hu===0&&(Hu=62500*xx());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Hu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(c)}}:null}function zo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var jo=null;function Bo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,jo=new Map,t.forEach(Yx,e),jo=null,zo.call(e))}function Yx(e,t){if(!(t.state.loading&4)){var n=jo.get(e);if(n)var a=n.get(null);else{n=new Map,jo.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var g=c[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}c=t.instance,g=c.getAttribute("data-precedence"),u=n.get(g)||a,u===a&&n.set(null,c),n.set(g,c),this.count++,a=zo.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ni={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Gx(e,t,n,a,c,u,g,w,N){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=a,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function zp(e,t,n,a,c,u,g,w,N,k,K,I){return e=new Gx(e,t,n,g,N,k,K,I,w),t=1,u===!0&&(t|=24),u=Mt(3,null,null,t),e.current=u,u.stateNode=e,t=vs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},xs(u),e}function jp(e){return e?(e=Ea,e):Ea}function Bp(e,t,n,a,c,u){c=jp(c),a.context===null?a.context=c:a.pendingContext=c,a=nl(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=ll(e,a,t),n!==null&&(Ct(n,e,t),jr(n,e,t))}function Lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ku(e,t){Lp(e,t),(e=e.alternate)&&Lp(e,t)}function Up(e){if(e.tag===13||e.tag===31){var t=Hl(e,67108864);t!==null&&Ct(t,e,67108864),ku(e,67108864)}}function Hp(e){if(e.tag===13||e.tag===31){var t=Bt();t=jc(t);var n=Hl(e,t);n!==null&&Ct(n,e,t),ku(e,t)}}var Lo=!0;function Xx(e,t,n,a){var c=U.T;U.T=null;var u=F.p;try{F.p=2,qu(e,t,n,a)}finally{F.p=u,U.T=c}}function Qx(e,t,n,a){var c=U.T;U.T=null;var u=F.p;try{F.p=8,qu(e,t,n,a)}finally{F.p=u,U.T=c}}function qu(e,t,n,a){if(Lo){var c=Vu(a);if(c===null)Tu(e,t,a,Uo,n),qp(e,a);else if(Zx(c,e,t,n,a))a.stopPropagation();else if(qp(e,a),t&4&&-1<Px.indexOf(e)){for(;c!==null;){var u=da(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=zl(u.pendingLanes);if(g!==0){var w=u;for(w.pendingLanes|=2,w.entangledLanes|=2;g;){var N=1<<31-Nt(g);w.entanglements[1]|=N,g&=~N}sn(u),(je&6)===0&&(bo=Tt()+500,Jr(0))}}break;case 31:case 13:w=Hl(u,2),w!==null&&Ct(w,u,2),xo(),ku(u,2)}if(u=Vu(a),u===null&&Tu(e,t,a,Uo,n),u===c)break;c=u}c!==null&&a.stopPropagation()}else Tu(e,t,a,null,n)}}function Vu(e){return e=Gc(e),Yu(e)}var Uo=null;function Yu(e){if(Uo=null,e=fa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Uo=e,null}function kp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(O1()){case Zd:return 2;case Kd:return 8;case Ci:case D1:return 32;case $d:return 268435456;default:return 32}default:return 32}}var Gu=!1,hl=null,gl=null,pl=null,li=new Map,ai=new Map,vl=[],Px="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qp(e,t){switch(e){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ri(e,t,n,a,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[c]},t!==null&&(t=da(t),t!==null&&Up(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Zx(e,t,n,a,c){switch(t){case"focusin":return hl=ri(hl,e,t,n,a,c),!0;case"dragenter":return gl=ri(gl,e,t,n,a,c),!0;case"mouseover":return pl=ri(pl,e,t,n,a,c),!0;case"pointerover":var u=c.pointerId;return li.set(u,ri(li.get(u)||null,e,t,n,a,c)),!0;case"gotpointercapture":return u=c.pointerId,ai.set(u,ri(ai.get(u)||null,e,t,n,a,c)),!0}return!1}function Vp(e){var t=fa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,tm(e.priority,function(){Hp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,tm(e.priority,function(){Hp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Yc=a,n.target.dispatchEvent(a),Yc=null}else return t=da(n),t!==null&&Up(t),e.blockedOn=n,!1;t.shift()}return!0}function Yp(e,t,n){Ho(e)&&n.delete(t)}function Kx(){Gu=!1,hl!==null&&Ho(hl)&&(hl=null),gl!==null&&Ho(gl)&&(gl=null),pl!==null&&Ho(pl)&&(pl=null),li.forEach(Yp),ai.forEach(Yp)}function ko(e,t){e.blockedOn===t&&(e.blockedOn=null,Gu||(Gu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Kx)))}var qo=null;function Gp(e){qo!==e&&(qo=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){qo===e&&(qo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],c=e[t+2];if(typeof a!="function"){if(Yu(a||n)===null)continue;break}var u=da(n);u!==null&&(e.splice(t,3),t-=3,Vs(u,{pending:!0,data:c,method:n.method,action:a},a,c))}}))}function Za(e){function t(N){return ko(N,e)}hl!==null&&ko(hl,e),gl!==null&&ko(gl,e),pl!==null&&ko(pl,e),li.forEach(t),ai.forEach(t);for(var n=0;n<vl.length;n++){var a=vl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<vl.length&&(n=vl[0],n.blockedOn===null);)Vp(n),n.blockedOn===null&&vl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var c=n[a],u=n[a+1],g=c[bt]||null;if(typeof u=="function")g||Gp(n);else if(g){var w=null;if(u&&u.hasAttribute("formAction")){if(c=u,g=u[bt]||null)w=g.formAction;else if(Yu(c)!==null)continue}else w=g.action;typeof w=="function"?n[a+1]=w:(n.splice(a,3),a-=3),Gp(n)}}}function Xp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Xu(e){this._internalRoot=e}Vo.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,a=Bt();Bp(n,a,e,t,null,null)},Vo.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bp(e.current,2,null,e,null,null),xo(),t[ua]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=em();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vl.length&&t!==0&&t<vl[n].priority;n++);vl.splice(n,0,e),n===0&&Vp(e)}};var Qp=r.version;if(Qp!=="19.2.7")throw Error(i(527,Qp,"19.2.7"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var $x={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{hr=Yo.inject($x),Rt=Yo}catch{}}return oi.createRoot=function(e,t){if(!s(e))throw Error(i(299));var n=!1,a="",c=Fh,u=Wh,g=eg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=zp(e,1,!1,null,null,n,a,null,c,u,g,Xp),e[ua]=t.current,Cu(e),new Xu(t)},oi.hydrateRoot=function(e,t,n){if(!s(e))throw Error(i(299));var a=!1,c="",u=Fh,g=Wh,w=eg,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=zp(e,1,!0,t,n??null,a,c,N,u,g,w,Xp),t.context=jp(null),n=t.current,a=Bt(),a=jc(a),c=nl(a),c.callback=null,ll(n,c,a),n=a,t.current.lanes=n,pr(t,n),sn(t),e[ua]=t.current,Cu(e),new Vo(t)},oi.version="19.2.7",oi}var iv;function uw(){if(iv)return Pu.exports;iv=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Pu.exports=sw(),Pu.exports}var fw=uw(),v=ld();const dw=by(v),aa=Wx({__proto__:null,default:dw},[v]);function or(l,r=[]){let o=[];function i(f,d){const m=v.createContext(d);m.displayName=f+"Context";const h=o.length;o=[...o,d];const p=b=>{var R;const{scope:E,children:x,...C}=b,A=((R=E==null?void 0:E[l])==null?void 0:R[h])||m,_=v.useMemo(()=>C,Object.values(C));return y.jsx(A.Provider,{value:_,children:x})};p.displayName=f+"Provider";function S(b,E,x={}){var R;const{optional:C=!1}=x,A=((R=E==null?void 0:E[l])==null?void 0:R[h])||m,_=v.useContext(A);if(_)return _;if(d!==void 0)return d;if(!C)throw new Error(`\`${b}\` must be used within \`${f}\``)}return[p,S]}const s=()=>{const f=o.map(d=>v.createContext(d));return function(m){const h=(m==null?void 0:m[l])||f;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:h}}),[m,h])}};return s.scopeName=l,[i,mw(s,...r)]}function mw(...l){const r=l[0];if(l.length===1)return r;const o=()=>{const i=l.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(f){const d=i.reduce((m,{useScope:h,scopeName:p})=>{const b=h(f)[`__scope${p}`];return{...m,...b}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return o.scopeName=r.scopeName,o}function ov(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function hw(...l){return r=>{let o=!1;const i=l.map(s=>{const f=ov(s,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let s=0;s<i.length;s++){const f=i[s];typeof f=="function"?f():ov(l[s],null)}}}}function He(...l){return v.useCallback(hw(...l),l)}function Ge(l,r,{checkForDefaultPrevented:o=!0}={}){return function(s){if(l==null||l(s),o===!1||!s||!s.defaultPrevented)return r==null?void 0:r(s)}}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},gw=aa[" useId ".trim().toString()]||(()=>{}),pw=0;function Wa(l){const[r,o]=v.useState(gw());return lt(()=>{o(i=>i??String(pw++))},[l]),r?`radix-${r}`:""}var vw=aa[" useInsertionEffect ".trim().toString()]||lt;function Bf({prop:l,defaultProp:r,onChange:o=()=>{},caller:i}){const[s,f,d]=yw({defaultProp:r,onChange:o}),m=l!==void 0,h=m?l:s;{const S=v.useRef(l!==void 0);v.useEffect(()=>{const b=S.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=m},[m,i])}const p=v.useCallback(S=>{var b;if(m){const E=bw(S)?S(l):S;E!==l&&((b=d.current)==null||b.call(d,E))}else f(S)},[m,l,f,d]);return[h,p]}function yw({defaultProp:l,onChange:r}){const[o,i]=v.useState(l),s=v.useRef(o),f=v.useRef(r);return vw(()=>{f.current=r},[r]),v.useEffect(()=>{var d;s.current!==o&&((d=f.current)==null||d.call(f,o),s.current=o)},[o,s]),[o,i,f]}function bw(l){return typeof l=="function"}var cr=Sy();function lr(l){const r=v.forwardRef((o,i)=>{let{children:s,...f}=o,d=null,m=!1;const h=[];cv(s)&&typeof Go=="function"&&(s=Go(s._payload)),v.Children.forEach(s,E=>{var x;if(Cw(E)){m=!0;const C=E;let A="child"in C.props?C.props.child:C.props.children;cv(A)&&typeof Go=="function"&&(A=Go(A._payload)),d=ww(C,A),h.push((x=d==null?void 0:d.props)==null?void 0:x.children)}else h.push(E)}),d?d=v.cloneElement(d,void 0,h):!m&&v.Children.count(s)===1&&v.isValidElement(s)&&(d=s);const p=d?Aw(d):void 0,S=He(i,p);if(!d){if(s||s===0)throw new Error(m?_w(l):Nw(l));return s}const b=Ew(f,d.props??{});return d.type!==v.Fragment&&(b.ref=i?S:p),v.cloneElement(d,b)});return r.displayName=`${l}.Slot`,r}var Sw=lr("Slot"),xw=Symbol.for("radix.slottable"),ww=(l,r)=>{if("child"in l.props){const o=l.props.child;return v.isValidElement(o)?v.cloneElement(o,void 0,l.props.children(o.props.children)):null}return v.isValidElement(r)?r:null};function Ew(l,r){const o={...r};for(const i in r){const s=l[i],f=r[i];/^on[A-Z]/.test(i)?s&&f?o[i]=(...m)=>{const h=f(...m);return s(...m),h}:s&&(o[i]=s):i==="style"?o[i]={...s,...f}:i==="className"&&(o[i]=[s,f].filter(Boolean).join(" "))}return{...l,...o}}function Aw(l){var i,s;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}function Cw(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===xw}var Tw=Symbol.for("react.lazy");function cv(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===Tw&&"_payload"in l&&Rw(l._payload)}function Rw(l){return typeof l=="object"&&l!==null&&"then"in l}var Nw=l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,_w=l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Go=aa[" use ".trim().toString()],Mw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=Mw.reduce((l,r)=>{const o=lr(`Primitive.${r}`),i=v.forwardRef((s,f)=>{const{asChild:d,...m}=s,h=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(h,{...m,ref:f})});return i.displayName=`Primitive.${r}`,{...l,[r]:i}},{});function Ow(l,r){l&&cr.flushSync(()=>l.dispatchEvent(r))}function vt(l){const r=v.useRef(l);return v.useEffect(()=>{r.current=l}),v.useMemo(()=>((...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)}),[])}var Dw="DismissableLayer",Lf="dismissableLayer.update",zw="dismissableLayer.pointerDownOutside",jw="dismissableLayer.focusOutside",sv,ad=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rd=v.forwardRef((l,r)=>{const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...p}=l,S=v.useContext(ad),[b,E]=v.useState(null),x=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=v.useState({}),A=He(r,E),_=Array.from(S.layers),[R]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),z=R?_.indexOf(R):-1,T=b?_.indexOf(b):-1,j=S.layersWithOutsidePointerEventsDisabled.size>0,P=T>=z,q=v.useRef(!1),O=kw(Y=>{f==null||f(Y),m==null||m(Y),Y.defaultPrevented||h==null||h()},{ownerDocument:x,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:q,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(Y=>{if(!(Y instanceof Node))return!1;const $=[...S.branches].some(te=>te.contains(Y));return P&&!$},[S.branches,P])}),B=qw(Y=>{if(i&&q.current)return;const $=Y.target;[...S.branches].some(le=>le.contains($))||(d==null||d(Y),m==null||m(Y),Y.defaultPrevented||h==null||h())},x),Z=b?T===_.length-1:!1,X=vt(Y=>{Y.key==="Escape"&&(s==null||s(Y),!Y.defaultPrevented&&h&&(Y.preventDefault(),h()))});return v.useEffect(()=>{if(Z)return x.addEventListener("keydown",X,{capture:!0}),()=>x.removeEventListener("keydown",X,{capture:!0})},[x,Z,X]),v.useEffect(()=>{if(b)return o&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(sv=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(b)),S.layers.add(b),uv(),()=>{o&&(S.layersWithOutsidePointerEventsDisabled.delete(b),S.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=sv))}},[b,x,o,S]),v.useEffect(()=>()=>{b&&(S.layers.delete(b),S.layersWithOutsidePointerEventsDisabled.delete(b),uv())},[b,S]),v.useEffect(()=>{const Y=()=>C({});return document.addEventListener(Lf,Y),()=>document.removeEventListener(Lf,Y)},[]),y.jsx(Be.div,{...p,ref:A,style:{pointerEvents:j?P?"auto":"none":void 0,...l.style},onFocusCapture:Ge(l.onFocusCapture,B.onFocusCapture),onBlurCapture:Ge(l.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Ge(l.onPointerDownCapture,O.onPointerDownCapture)})});rd.displayName=Dw;var Bw="DismissableLayerBranch",Lw=v.forwardRef((l,r)=>{const o=v.useContext(ad),i=v.useRef(null),s=He(r,i);return v.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),y.jsx(Be.div,{...l,ref:s})});Lw.displayName=Bw;function Uw(){const l=v.useContext(ad),[r,o]=v.useState(null);return v.useEffect(()=>{if(r)return l.dismissableSurfaces.add(r),()=>{l.dismissableSurfaces.delete(r)}},[r,l.dismissableSurfaces]),o}var Hw=()=>!0;function kw(l,r){const{ownerDocument:o=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:f,shouldHandlePointerDownOutside:d=Hw}=r,m=vt(l),h=v.useRef(!1),p=v.useRef(!1),S=v.useRef(new Map),b=v.useRef(()=>{});return v.useEffect(()=>{function E(){p.current=!1,s.current=!1,S.current.clear()}function x(){return Array.from(S.current.values()).some(Boolean)}function C(T){if(!p.current)return;const j=T.target;j instanceof Node&&[...f].some(q=>q.contains(j))||S.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{p.current&&b.current()},0)}function A(T){p.current&&S.current.set(T.type,!1)}const _=T=>{if(T.target&&!h.current){let j=function(){o.removeEventListener("click",b.current);const q=x();E(),q||xy(zw,m,P,{discrete:!0})};if(!d(T.target)){o.removeEventListener("click",b.current),E(),h.current=!1;return}const P={originalEvent:T};p.current=!0,s.current=i&&T.button===0,S.current.clear(),!i||T.button!==0?j():(o.removeEventListener("click",b.current),b.current=j,o.addEventListener("click",b.current,{once:!0}))}else o.removeEventListener("click",b.current),E();h.current=!1},R=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of R)o.addEventListener(T,C,!0),o.addEventListener(T,A);const z=window.setTimeout(()=>{o.addEventListener("pointerdown",_)},0);return()=>{window.clearTimeout(z),o.removeEventListener("pointerdown",_),o.removeEventListener("click",b.current);for(const T of R)o.removeEventListener(T,C,!0),o.removeEventListener(T,A)}},[o,m,i,s,f,d]),{onPointerDownCapture:()=>h.current=!0}}function qw(l,r=globalThis==null?void 0:globalThis.document){const o=vt(l),i=v.useRef(!1);return v.useEffect(()=>{const s=f=>{f.target&&!i.current&&xy(jw,o,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function uv(){const l=new CustomEvent(Lf);document.dispatchEvent(l)}function xy(l,r,o,{discrete:i}){const s=o.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:o});r&&s.addEventListener(l,r,{once:!0}),i?Ow(s,f):s.dispatchEvent(f)}var Iu="focusScope.autoFocusOnMount",Fu="focusScope.autoFocusOnUnmount",fv={bubbles:!1,cancelable:!0},Vw="FocusScope",id=v.forwardRef((l,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:f,...d}=l,[m,h]=v.useState(null),p=vt(s),S=vt(f),b=v.useRef(null),E=He(r,h),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let A=function(T){if(x.paused||!m)return;const j=T.target;m.contains(j)?b.current=j:xl(b.current,{select:!0})},_=function(T){if(x.paused||!m)return;const j=T.relatedTarget;j!==null&&(m.contains(j)||xl(b.current,{select:!0}))},R=function(T){if(document.activeElement===document.body)for(const P of T)P.removedNodes.length>0&&xl(m)};document.addEventListener("focusin",A),document.addEventListener("focusout",_);const z=new MutationObserver(R);return m&&z.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",_),z.disconnect()}}},[i,m,x.paused]),v.useEffect(()=>{if(m){mv.add(x);const A=document.activeElement;if(!m.contains(A)){const R=new CustomEvent(Iu,fv);m.addEventListener(Iu,p),m.dispatchEvent(R),R.defaultPrevented||(Yw(Zw(wy(m)),{select:!0}),document.activeElement===A&&xl(m))}return()=>{m.removeEventListener(Iu,p),setTimeout(()=>{const R=new CustomEvent(Fu,fv);m.addEventListener(Fu,S),m.dispatchEvent(R),R.defaultPrevented||xl(A??document.body,{select:!0}),m.removeEventListener(Fu,S),mv.remove(x)},0)}}},[m,p,S,x]);const C=v.useCallback(A=>{if(!o&&!i||x.paused)return;const _=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,R=document.activeElement;if(_&&R){const z=A.currentTarget,[T,j]=Gw(z);T&&j?!A.shiftKey&&R===j?(A.preventDefault(),o&&xl(T,{select:!0})):A.shiftKey&&R===T&&(A.preventDefault(),o&&xl(j,{select:!0})):R===z&&A.preventDefault()}},[o,i,x.paused]);return y.jsx(Be.div,{tabIndex:-1,...d,ref:E,onKeyDown:C})});id.displayName=Vw;function Yw(l,{select:r=!1}={}){const o=document.activeElement;for(const i of l)if(xl(i,{select:r}),document.activeElement!==o)return}function Gw(l){const r=wy(l),o=dv(r,l),i=dv(r.reverse(),l);return[o,i]}function wy(l){const r=[],o=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function dv(l,r){const o=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const i of l)if(!(o?!i.checkVisibility({checkVisibilityCSS:!0}):Xw(i,{upTo:r})))return i}function Xw(l,{upTo:r}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(r!==void 0&&l===r)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function Qw(l){return l instanceof HTMLInputElement&&"select"in l}function xl(l,{select:r=!1}={}){if(l&&l.focus){const o=document.activeElement;l.focus({preventScroll:!0}),l!==o&&Qw(l)&&r&&l.select()}}var mv=Pw();function Pw(){let l=[];return{add(r){const o=l[0];r!==o&&(o==null||o.pause()),l=hv(l,r),l.unshift(r)},remove(r){var o;l=hv(l,r),(o=l[0])==null||o.resume()}}}function hv(l,r){const o=[...l],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function Zw(l){return l.filter(r=>r.tagName!=="A")}var Kw="Portal",od=v.forwardRef((l,r)=>{var m;const{container:o,...i}=l,[s,f]=v.useState(!1);lt(()=>f(!0),[]);const d=o||s&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return d?cr.createPortal(y.jsx(Be.div,{...i,ref:r}),d):null});od.displayName=Kw;function $w(l,r){return v.useReducer((o,i)=>r[o][i]??o,l)}var bi=l=>{const{present:r,children:o}=l,i=Jw(r),s=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),f=Iw(i.ref,Fw(s));return typeof o=="function"||i.isPresent?v.cloneElement(s,{ref:f}):null};bi.displayName="Presence";function Jw(l){const[r,o]=v.useState(),i=v.useRef(null),s=v.useRef(l),f=v.useRef("none"),d=v.useRef(void 0),m=l?"mounted":"unmounted",[h,p]=$w(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{h==="mounted"?(f.current=d.current??ci(i.current),d.current=void 0):f.current="none"},[h]),lt(()=>{const S=i.current,b=s.current;if(b!==l){const x=f.current,C=ci(S);l?(d.current=C,p("MOUNT")):C==="none"||(S==null?void 0:S.display)==="none"?p("UNMOUNT"):p(b&&x!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=l}},[l,p]),lt(()=>{if(r){let S;const b=r.ownerDocument.defaultView??window,E=C=>{const _=ci(i.current).includes(CSS.escape(C.animationName));if(C.target===r&&_&&(p("ANIMATION_END"),!s.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",S=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},x=C=>{C.target===r&&(f.current=ci(i.current))};return r.addEventListener("animationstart",x),r.addEventListener("animationcancel",E),r.addEventListener("animationend",E),()=>{b.clearTimeout(S),r.removeEventListener("animationstart",x),r.removeEventListener("animationcancel",E),r.removeEventListener("animationend",E)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(S=>{if(S){const b=getComputedStyle(S);i.current=b,d.current=ci(b)}else i.current=null;o(S)},[])}}function gv(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Iw(...l){const r=v.useRef(l);return r.current=l,v.useCallback(o=>{const i=r.current;let s=!1;const f=i.map(d=>{const m=gv(d,o);return!s&&typeof m=="function"&&(s=!0),m});if(s)return()=>{for(let d=0;d<f.length;d++){const m=f[d];typeof m=="function"?m():gv(i[d],null)}}},[])}function ci(l){return(l==null?void 0:l.animationName)||"none"}function Fw(l){var i,s;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}var Xo=0,un=null;function Ey(){v.useEffect(()=>{un||(un={start:pv(),end:pv()});const{start:l,end:r}=un;return document.body.firstElementChild!==l&&document.body.insertAdjacentElement("afterbegin",l),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Xo++,()=>{Xo===1&&(un==null||un.start.remove(),un==null||un.end.remove(),un=null),Xo=Math.max(0,Xo-1)}},[])}function pv(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var mn=function(){return mn=Object.assign||function(r){for(var o,i=1,s=arguments.length;i<s;i++){o=arguments[i];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])}return r},mn.apply(this,arguments)};function Ay(l,r){var o={};for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&r.indexOf(i)<0&&(o[i]=l[i]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(l);s<i.length;s++)r.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(l,i[s])&&(o[i[s]]=l[i[s]]);return o}function Ww(l,r,o){if(o||arguments.length===2)for(var i=0,s=r.length,f;i<s;i++)(f||!(i in r))&&(f||(f=Array.prototype.slice.call(r,0,i)),f[i]=r[i]);return l.concat(f||Array.prototype.slice.call(r))}var tc="right-scroll-bar-position",nc="width-before-scroll-bar",eE="with-scroll-bars-hidden",tE="--removed-body-scroll-bar-size";function Wu(l,r){return typeof l=="function"?l(r):l&&(l.current=r),l}function nE(l,r){var o=v.useState(function(){return{value:l,callback:r,facade:{get current(){return o.value},set current(i){var s=o.value;s!==i&&(o.value=i,o.callback(i,s))}}}})[0];return o.callback=r,o.facade}var lE=typeof window<"u"?v.useLayoutEffect:v.useEffect,vv=new WeakMap;function aE(l,r){var o=nE(null,function(i){return l.forEach(function(s){return Wu(s,i)})});return lE(function(){var i=vv.get(o);if(i){var s=new Set(i),f=new Set(l),d=o.current;s.forEach(function(m){f.has(m)||Wu(m,null)}),f.forEach(function(m){s.has(m)||Wu(m,d)})}vv.set(o,l)},[l]),o}function rE(l){return l}function iE(l,r){r===void 0&&(r=rE);var o=[],i=!1,s={read:function(){if(i)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]:l},useMedium:function(f){var d=r(f,i);return o.push(d),function(){o=o.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(i=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(m){return f(m)},filter:function(){return o}}},assignMedium:function(f){i=!0;var d=[];if(o.length){var m=o;o=[],m.forEach(f),d=o}var h=function(){var S=d;d=[],S.forEach(f)},p=function(){return Promise.resolve().then(h)};p(),o={push:function(S){d.push(S),p()},filter:function(S){return d=d.filter(S),o}}}};return s}function oE(l){l===void 0&&(l={});var r=iE(null);return r.options=mn({async:!0,ssr:!1},l),r}var Cy=function(l){var r=l.sideCar,o=Ay(l,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,mn({},o))};Cy.isSideCarExport=!0;function cE(l,r){return l.useMedium(r),Cy}var Ty=oE(),ef=function(){},gc=v.forwardRef(function(l,r){var o=v.useRef(null),i=v.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),s=i[0],f=i[1],d=l.forwardProps,m=l.children,h=l.className,p=l.removeScrollBar,S=l.enabled,b=l.shards,E=l.sideCar,x=l.noRelative,C=l.noIsolation,A=l.inert,_=l.allowPinchZoom,R=l.as,z=R===void 0?"div":R,T=l.gapMode,j=Ay(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=E,q=aE([o,r]),O=mn(mn({},j),s);return v.createElement(v.Fragment,null,S&&v.createElement(P,{sideCar:Ty,removeScrollBar:p,shards:b,noRelative:x,noIsolation:C,inert:A,setCallbacks:f,allowPinchZoom:!!_,lockRef:o,gapMode:T}),d?v.cloneElement(v.Children.only(m),mn(mn({},O),{ref:q})):v.createElement(z,mn({},O,{className:h,ref:q}),m))});gc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gc.classNames={fullWidth:nc,zeroRight:tc};var sE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uE(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var r=sE();return r&&l.setAttribute("nonce",r),l}function fE(l,r){l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}function dE(l){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(l)}var mE=function(){var l=0,r=null;return{add:function(o){l==0&&(r=uE())&&(fE(r,o),dE(r)),l++},remove:function(){l--,!l&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},hE=function(){var l=mE();return function(r,o){v.useEffect(function(){return l.add(r),function(){l.remove()}},[r&&o])}},Ry=function(){var l=hE(),r=function(o){var i=o.styles,s=o.dynamic;return l(i,s),null};return r},gE={left:0,top:0,right:0,gap:0},tf=function(l){return parseInt(l||"",10)||0},pE=function(l){var r=window.getComputedStyle(document.body),o=r[l==="padding"?"paddingLeft":"marginLeft"],i=r[l==="padding"?"paddingTop":"marginTop"],s=r[l==="padding"?"paddingRight":"marginRight"];return[tf(o),tf(i),tf(s)]},vE=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return gE;var r=pE(l),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},yE=Ry(),er="data-scroll-locked",bE=function(l,r,o,i){var s=l.left,f=l.top,d=l.right,m=l.gap;return o===void 0&&(o="margin"),`
50
+ .`.concat(eE,` {
51
+ overflow: hidden `).concat(i,`;
52
+ padding-right: `).concat(m,"px ").concat(i,`;
53
+ }
54
+ body[`).concat(er,`] {
55
+ overflow: hidden `).concat(i,`;
56
+ overscroll-behavior: contain;
57
+ `).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
58
+ padding-left: `.concat(s,`px;
59
+ padding-top: `).concat(f,`px;
60
+ padding-right: `).concat(d,`px;
61
+ margin-left:0;
62
+ margin-top:0;
63
+ margin-right: `).concat(m,"px ").concat(i,`;
64
+ `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
65
+ }
66
+
67
+ .`).concat(tc,` {
68
+ right: `).concat(m,"px ").concat(i,`;
69
+ }
70
+
71
+ .`).concat(nc,` {
72
+ margin-right: `).concat(m,"px ").concat(i,`;
73
+ }
74
+
75
+ .`).concat(tc," .").concat(tc,` {
76
+ right: 0 `).concat(i,`;
77
+ }
78
+
79
+ .`).concat(nc," .").concat(nc,` {
80
+ margin-right: 0 `).concat(i,`;
81
+ }
82
+
83
+ body[`).concat(er,`] {
84
+ `).concat(tE,": ").concat(m,`px;
85
+ }
86
+ `)},yv=function(){var l=parseInt(document.body.getAttribute(er)||"0",10);return isFinite(l)?l:0},SE=function(){v.useEffect(function(){return document.body.setAttribute(er,(yv()+1).toString()),function(){var l=yv()-1;l<=0?document.body.removeAttribute(er):document.body.setAttribute(er,l.toString())}},[])},xE=function(l){var r=l.noRelative,o=l.noImportant,i=l.gapMode,s=i===void 0?"margin":i;SE();var f=v.useMemo(function(){return vE(s)},[s]);return v.createElement(yE,{styles:bE(f,!r,s,o?"":"!important")})},Uf=!1;if(typeof window<"u")try{var Qo=Object.defineProperty({},"passive",{get:function(){return Uf=!0,!0}});window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch{Uf=!1}var Ka=Uf?{passive:!1}:!1,wE=function(l){return l.tagName==="TEXTAREA"},Ny=function(l,r){if(!(l instanceof Element))return!1;var o=window.getComputedStyle(l);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!wE(l)&&o[r]==="visible")},EE=function(l){return Ny(l,"overflowY")},AE=function(l){return Ny(l,"overflowX")},bv=function(l,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=_y(l,i);if(s){var f=My(l,i),d=f[1],m=f[2];if(d>m)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},CE=function(l){var r=l.scrollTop,o=l.scrollHeight,i=l.clientHeight;return[r,o,i]},TE=function(l){var r=l.scrollLeft,o=l.scrollWidth,i=l.clientWidth;return[r,o,i]},_y=function(l,r){return l==="v"?EE(r):AE(r)},My=function(l,r){return l==="v"?CE(r):TE(r)},RE=function(l,r){return l==="h"&&r==="rtl"?-1:1},NE=function(l,r,o,i,s){var f=RE(l,window.getComputedStyle(r).direction),d=f*i,m=o.target,h=r.contains(m),p=!1,S=d>0,b=0,E=0;do{if(!m)break;var x=My(l,m),C=x[0],A=x[1],_=x[2],R=A-_-f*C;(C||R)&&_y(l,m)&&(b+=R,E+=C);var z=m.parentNode;m=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!h&&m!==document.body||h&&(r.contains(m)||r===m));return(S&&Math.abs(b)<1||!S&&Math.abs(E)<1)&&(p=!0),p},Po=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},Sv=function(l){return[l.deltaX,l.deltaY]},xv=function(l){return l&&"current"in l?l.current:l},_E=function(l,r){return l[0]===r[0]&&l[1]===r[1]},ME=function(l){return`
87
+ .block-interactivity-`.concat(l,` {pointer-events: none;}
88
+ .allow-interactivity-`).concat(l,` {pointer-events: all;}
89
+ `)},OE=0,$a=[];function DE(l){var r=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),s=v.useState(OE++)[0],f=v.useState(Ry)[0],d=v.useRef(l);v.useEffect(function(){d.current=l},[l]),v.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(s));var A=Ww([l.lockRef.current],(l.shards||[]).map(xv),!0).filter(Boolean);return A.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),A.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[l.inert,l.lockRef.current,l.shards]);var m=v.useCallback(function(A,_){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!d.current.allowPinchZoom;var R=Po(A),z=o.current,T="deltaX"in A?A.deltaX:z[0]-R[0],j="deltaY"in A?A.deltaY:z[1]-R[1],P,q=A.target,O=Math.abs(T)>Math.abs(j)?"h":"v";if("touches"in A&&O==="h"&&q.type==="range")return!1;var B=window.getSelection(),Z=B&&B.anchorNode,X=Z?Z===q||Z.contains(q):!1;if(X)return!1;var Y=bv(O,q);if(!Y)return!0;if(Y?P=O:(P=O==="v"?"h":"v",Y=bv(O,q)),!Y)return!1;if(!i.current&&"changedTouches"in A&&(T||j)&&(i.current=P),!P)return!0;var $=i.current||P;return NE($,_,A,$==="h"?T:j)},[]),h=v.useCallback(function(A){var _=A;if(!(!$a.length||$a[$a.length-1]!==f)){var R="deltaY"in _?Sv(_):Po(_),z=r.current.filter(function(P){return P.name===_.type&&(P.target===_.target||_.target===P.shadowParent)&&_E(P.delta,R)})[0];if(z&&z.should){_.cancelable&&_.preventDefault();return}if(!z){var T=(d.current.shards||[]).map(xv).filter(Boolean).filter(function(P){return P.contains(_.target)}),j=T.length>0?m(_,T[0]):!d.current.noIsolation;j&&_.cancelable&&_.preventDefault()}}},[]),p=v.useCallback(function(A,_,R,z){var T={name:A,delta:_,target:R,should:z,shadowParent:zE(R)};r.current.push(T),setTimeout(function(){r.current=r.current.filter(function(j){return j!==T})},1)},[]),S=v.useCallback(function(A){o.current=Po(A),i.current=void 0},[]),b=v.useCallback(function(A){p(A.type,Sv(A),A.target,m(A,l.lockRef.current))},[]),E=v.useCallback(function(A){p(A.type,Po(A),A.target,m(A,l.lockRef.current))},[]);v.useEffect(function(){return $a.push(f),l.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:E}),document.addEventListener("wheel",h,Ka),document.addEventListener("touchmove",h,Ka),document.addEventListener("touchstart",S,Ka),function(){$a=$a.filter(function(A){return A!==f}),document.removeEventListener("wheel",h,Ka),document.removeEventListener("touchmove",h,Ka),document.removeEventListener("touchstart",S,Ka)}},[]);var x=l.removeScrollBar,C=l.inert;return v.createElement(v.Fragment,null,C?v.createElement(f,{styles:ME(s)}):null,x?v.createElement(xE,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function zE(l){for(var r=null;l!==null;)l instanceof ShadowRoot&&(r=l.host,l=l.host),l=l.parentNode;return r}const jE=cE(Ty,DE);var cd=v.forwardRef(function(l,r){return v.createElement(gc,mn({},l,{ref:r,sideCar:jE}))});cd.classNames=gc.classNames;var BE=function(l){if(typeof document>"u")return null;var r=Array.isArray(l)?l[0]:l;return r.ownerDocument.body},Ja=new WeakMap,Zo=new WeakMap,Ko={},nf=0,Oy=function(l){return l&&(l.host||Oy(l.parentNode))},LE=function(l,r){return r.map(function(o){if(l.contains(o))return o;var i=Oy(o);return i&&l.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",l,". Doing nothing"),null)}).filter(function(o){return!!o})},UE=function(l,r,o,i){var s=LE(r,Array.isArray(l)?l:[l]);Ko[o]||(Ko[o]=new WeakMap);var f=Ko[o],d=[],m=new Set,h=new Set(s),p=function(b){!b||m.has(b)||(m.add(b),p(b.parentNode))};s.forEach(p);var S=function(b){!b||h.has(b)||Array.prototype.forEach.call(b.children,function(E){if(m.has(E))S(E);else try{var x=E.getAttribute(i),C=x!==null&&x!=="false",A=(Ja.get(E)||0)+1,_=(f.get(E)||0)+1;Ja.set(E,A),f.set(E,_),d.push(E),A===1&&C&&Zo.set(E,!0),_===1&&E.setAttribute(o,"true"),C||E.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",E,R)}})};return S(r),m.clear(),nf++,function(){d.forEach(function(b){var E=Ja.get(b)-1,x=f.get(b)-1;Ja.set(b,E),f.set(b,x),E||(Zo.has(b)||b.removeAttribute(i),Zo.delete(b)),x||b.removeAttribute(o)}),nf--,nf||(Ja=new WeakMap,Ja=new WeakMap,Zo=new WeakMap,Ko={})}},Dy=function(l,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(l)?l:[l]),s=BE(l);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),UE(i,s,o,"aria-hidden")):function(){return null}},pc="Dialog",[zy,jy]=or(pc),[HE,ln]=zy(pc),sd=l=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:s,onOpenChange:f,modal:d=!0}=l,m=v.useRef(null),h=v.useRef(null),[p,S]=Bf({prop:i,defaultProp:s??!1,onChange:f,caller:pc});return y.jsx(HE,{scope:r,triggerRef:m,contentRef:h,contentId:Wa(),titleId:Wa(),descriptionId:Wa(),open:p,onOpenChange:S,onOpenToggle:v.useCallback(()=>S(b=>!b),[S]),modal:d,children:o})};sd.displayName=pc;var By="DialogTrigger",vc=v.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,s=ln(By,o),f=He(r,s.triggerRef);return y.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":dd(s.open),...i,ref:f,onClick:Ge(l.onClick,s.onOpenToggle)})});vc.displayName=By;var ud="DialogPortal",[kE,Ly]=zy(ud,{forceMount:void 0}),fd=l=>{const{__scopeDialog:r,forceMount:o,children:i,container:s}=l,f=ln(ud,r);return y.jsx(kE,{scope:r,forceMount:o,children:v.Children.map(i,d=>y.jsx(bi,{present:o||f.open,children:y.jsx(od,{asChild:!0,container:s,children:d})}))})};fd.displayName=ud;var oc="DialogOverlay",yc=v.forwardRef((l,r)=>{const o=Ly(oc,l.__scopeDialog),{forceMount:i=o.forceMount,...s}=l,f=ln(oc,l.__scopeDialog);return f.modal?y.jsx(bi,{present:i||f.open,children:y.jsx(VE,{...s,ref:r})}):null});yc.displayName=oc;var qE=lr("DialogOverlay.RemoveScroll"),VE=v.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,s=ln(oc,o),f=Uw(),d=He(r,f);return y.jsx(cd,{as:qE,allowPinchZoom:!0,shards:[s.contentRef],children:y.jsx(Be.div,{"data-state":dd(s.open),...i,ref:d,style:{pointerEvents:"auto",...i.style}})})}),ar="DialogContent",bc=v.forwardRef((l,r)=>{const o=Ly(ar,l.__scopeDialog),{forceMount:i=o.forceMount,...s}=l,f=ln(ar,l.__scopeDialog);return y.jsx(bi,{present:i||f.open,children:f.modal?y.jsx(YE,{...s,ref:r}):y.jsx(GE,{...s,ref:r})})});bc.displayName=ar;var YE=v.forwardRef((l,r)=>{const o=ln(ar,l.__scopeDialog),i=v.useRef(null),s=He(r,o.contentRef,i);return v.useEffect(()=>{const f=i.current;if(f)return Dy(f)},[]),y.jsx(Uy,{...l,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Ge(l.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Ge(l.onPointerDownOutside,f=>{const d=f.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&f.preventDefault()}),onFocusOutside:Ge(l.onFocusOutside,f=>f.preventDefault())})}),GE=v.forwardRef((l,r)=>{const o=ln(ar,l.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return y.jsx(Uy,{...l,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=l.onCloseAutoFocus)==null||d.call(l,f),f.defaultPrevented||(i.current||(m=o.triggerRef.current)==null||m.focus(),f.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:f=>{var h,p;(h=l.onInteractOutside)==null||h.call(l,f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const d=f.target;((p=o.triggerRef.current)==null?void 0:p.contains(d))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&s.current&&f.preventDefault()}})}),Uy=v.forwardRef((l,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:f,...d}=l,m=ln(ar,o);return Ey(),y.jsx(y.Fragment,{children:y.jsx(id,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:f,children:y.jsx(rd,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":dd(m.open),...d,ref:r,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})}),Hy="DialogTitle",Sc=v.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,s=ln(Hy,o);return y.jsx(Be.h2,{id:s.titleId,...i,ref:r})});Sc.displayName=Hy;var ky="DialogDescription",xc=v.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,s=ln(ky,o);return y.jsx(Be.p,{id:s.descriptionId,...i,ref:r})});xc.displayName=ky;var qy="DialogClose",ra=v.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,s=ln(qy,o);return y.jsx(Be.button,{type:"button",...i,ref:r,onClick:Ge(l.onClick,()=>s.onOpenChange(!1))})});ra.displayName=qy;function dd(l){return l?"open":"closed"}var Vy="AlertDialog",[XE]=or(Vy,[jy]),Xn=jy(),Yy=l=>{const{__scopeAlertDialog:r,...o}=l,i=Xn(r);return y.jsx(sd,{...i,...o,modal:!0})};Yy.displayName=Vy;var QE="AlertDialogTrigger",Gy=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,s=Xn(o);return y.jsx(vc,{...s,...i,ref:r})});Gy.displayName=QE;var PE="AlertDialogPortal",Xy=l=>{const{__scopeAlertDialog:r,...o}=l,i=Xn(r);return y.jsx(fd,{...i,...o})};Xy.displayName=PE;var ZE="AlertDialogOverlay",Qy=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,s=Xn(o);return y.jsx(yc,{...s,...i,ref:r})});Qy.displayName=ZE;var Py="AlertDialogContent",[KE,$E]=XE(Py),Zy=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,children:i,...s}=l,f=Xn(o),d=v.useRef(null),m=He(r,d),h=v.useRef(null);return y.jsx(KE,{scope:o,cancelRef:h,children:y.jsx(bc,{role:"alertdialog",...f,...s,ref:m,onOpenAutoFocus:Ge(s.onOpenAutoFocus,p=>{var S;p.preventDefault(),(S=h.current)==null||S.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:i})})});Zy.displayName=Py;var JE="AlertDialogTitle",Ky=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,s=Xn(o);return y.jsx(Sc,{...s,...i,ref:r})});Ky.displayName=JE;var IE="AlertDialogDescription",$y=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,s=Xn(o);return y.jsx(xc,{...s,...i,ref:r})});$y.displayName=IE;var FE="AlertDialogAction",Jy=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,s=Xn(o);return y.jsx(ra,{...s,...i,ref:r})});Jy.displayName=FE;var Iy="AlertDialogCancel",Fy=v.forwardRef((l,r)=>{const{__scopeAlertDialog:o,...i}=l,{cancelRef:s}=$E(Iy,o),f=Xn(o),d=He(r,s);return y.jsx(ra,{...f,...i,ref:d})});Fy.displayName=Iy;var WE=Yy,Wy=Gy,e2=Xy,e0=Qy,t0=Zy,n0=Jy,l0=Fy,a0=Ky,r0=$y;function i0(l){var r,o,i="";if(typeof l=="string"||typeof l=="number")i+=l;else if(typeof l=="object")if(Array.isArray(l)){var s=l.length;for(r=0;r<s;r++)l[r]&&(o=i0(l[r]))&&(i&&(i+=" "),i+=o)}else for(o in l)l[o]&&(i&&(i+=" "),i+=o);return i}function o0(){for(var l,r,o=0,i="",s=arguments.length;o<s;o++)(l=arguments[o])&&(r=i0(l))&&(i&&(i+=" "),i+=r);return i}const t2=(l,r)=>{const o=new Array(l.length+r.length);for(let i=0;i<l.length;i++)o[i]=l[i];for(let i=0;i<r.length;i++)o[l.length+i]=r[i];return o},n2=(l,r)=>({classGroupId:l,validator:r}),c0=(l=new Map,r=null,o)=>({nextPart:l,validators:r,classGroupId:o}),cc="-",wv=[],l2="arbitrary..",a2=l=>{const r=i2(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=l;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return r2(d);const m=d.split(cc),h=m[0]===""&&m.length>1?1:0;return s0(m,h,r)},getConflictingClassGroupIds:(d,m)=>{if(m){const h=i[d],p=o[d];return h?p?t2(p,h):h:p||wv}return o[d]||wv}}},s0=(l,r,o)=>{if(l.length-r===0)return o.classGroupId;const s=l[r],f=o.nextPart.get(s);if(f){const p=s0(l,r+1,f);if(p)return p}const d=o.validators;if(d===null)return;const m=r===0?l.join(cc):l.slice(r).join(cc),h=d.length;for(let p=0;p<h;p++){const S=d[p];if(S.validator(m))return S.classGroupId}},r2=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=l.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?l2+i:void 0})(),i2=l=>{const{theme:r,classGroups:o}=l;return o2(o,r)},o2=(l,r)=>{const o=c0();for(const i in l){const s=l[i];md(s,o,i,r)}return o},md=(l,r,o,i)=>{const s=l.length;for(let f=0;f<s;f++){const d=l[f];c2(d,r,o,i)}},c2=(l,r,o,i)=>{if(typeof l=="string"){s2(l,r,o);return}if(typeof l=="function"){u2(l,r,o,i);return}f2(l,r,o,i)},s2=(l,r,o)=>{const i=l===""?r:u0(r,l);i.classGroupId=o},u2=(l,r,o,i)=>{if(d2(l)){md(l(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(n2(o,l))},f2=(l,r,o,i)=>{const s=Object.entries(l),f=s.length;for(let d=0;d<f;d++){const[m,h]=s[d];md(h,u0(r,m),o,i)}},u0=(l,r)=>{let o=l;const i=r.split(cc),s=i.length;for(let f=0;f<s;f++){const d=i[f];let m=o.nextPart.get(d);m||(m=c0(),o.nextPart.set(d,m)),o=m}return o},d2=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,m2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const s=(f,d)=>{o[f]=d,r++,r>l&&(r=0,i=o,o=Object.create(null))};return{get(f){let d=o[f];if(d!==void 0)return d;if((d=i[f])!==void 0)return s(f,d),d},set(f,d){f in o?o[f]=d:s(f,d)}}},Hf="!",Ev=":",h2=[],Av=(l,r,o,i,s)=>({modifiers:l,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:s}),g2=l=>{const{prefix:r,experimentalParseClassName:o}=l;let i=s=>{const f=[];let d=0,m=0,h=0,p;const S=s.length;for(let A=0;A<S;A++){const _=s[A];if(d===0&&m===0){if(_===Ev){f.push(s.slice(h,A)),h=A+1;continue}if(_==="/"){p=A;continue}}_==="["?d++:_==="]"?d--:_==="("?m++:_===")"&&m--}const b=f.length===0?s:s.slice(h);let E=b,x=!1;b.endsWith(Hf)?(E=b.slice(0,-1),x=!0):b.startsWith(Hf)&&(E=b.slice(1),x=!0);const C=p&&p>h?p-h:void 0;return Av(f,x,E,C)};if(r){const s=r+Ev,f=i;i=d=>d.startsWith(s)?f(d.slice(s.length)):Av(h2,!1,d,void 0,!0)}if(o){const s=i;i=f=>o({className:f,parseClassName:s})}return i},p2=l=>{const r=new Map;return l.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let s=[];for(let f=0;f<o.length;f++){const d=o[f],m=d[0]==="[",h=r.has(d);m||h?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(d)):s.push(d)}return s.length>0&&(s.sort(),i.push(...s)),i}},v2=l=>({cache:m2(l.cacheSize),parseClassName:g2(l),sortModifiers:p2(l),postfixLookupClassGroupIds:y2(l),...a2(l)}),y2=l=>{const r=Object.create(null),o=l.postfixLookupClassGroups;if(o)for(let i=0;i<o.length;i++)r[o[i]]=!0;return r},b2=/\s+/,S2=(l,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:f,postfixLookupClassGroupIds:d}=r,m=[],h=l.trim().split(b2);let p="";for(let S=h.length-1;S>=0;S-=1){const b=h[S],{isExternal:E,modifiers:x,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:_}=o(b);if(E){p=b+(p.length>0?" "+p:p);continue}let R=!!_,z;if(R){const O=A.substring(0,_);z=i(O);const B=z&&d[z]?i(A):void 0;B&&B!==z&&(z=B,R=!1)}else z=i(A);if(!z){if(!R){p=b+(p.length>0?" "+p:p);continue}if(z=i(A),!z){p=b+(p.length>0?" "+p:p);continue}R=!1}const T=x.length===0?"":x.length===1?x[0]:f(x).join(":"),j=C?T+Hf:T,P=j+z;if(m.indexOf(P)>-1)continue;m.push(P);const q=s(z,R);for(let O=0;O<q.length;++O){const B=q[O];m.push(j+B)}p=b+(p.length>0?" "+p:p)}return p},x2=(...l)=>{let r=0,o,i,s="";for(;r<l.length;)(o=l[r++])&&(i=f0(o))&&(s&&(s+=" "),s+=i);return s},f0=l=>{if(typeof l=="string")return l;let r,o="";for(let i=0;i<l.length;i++)l[i]&&(r=f0(l[i]))&&(o&&(o+=" "),o+=r);return o},w2=(l,...r)=>{let o,i,s,f;const d=h=>{const p=r.reduce((S,b)=>b(S),l());return o=v2(p),i=o.cache.get,s=o.cache.set,f=m,m(h)},m=h=>{const p=i(h);if(p)return p;const S=S2(h,o);return s(h,S),S};return f=d,(...h)=>f(x2(...h))},E2=[],rt=l=>{const r=o=>o[l]||E2;return r.isThemeGetter=!0,r},d0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,m0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,C2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T2=/\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$/,R2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bl=l=>A2.test(l),Ee=l=>!!l&&!Number.isNaN(Number(l)),fn=l=>!!l&&Number.isInteger(Number(l)),lf=l=>l.endsWith("%")&&Ee(l.slice(0,-1)),kn=l=>C2.test(l),h0=()=>!0,M2=l=>T2.test(l)&&!R2.test(l),hd=()=>!1,O2=l=>N2.test(l),D2=l=>_2.test(l),z2=l=>!oe(l)&&!ce(l),j2=l=>l.startsWith("@container")&&(l[10]==="/"&&l[11]!==void 0||l[11]==="s"&&l[16]!==void 0&&l.startsWith("-size/",10)||l[11]==="n"&&l[18]!==void 0&&l.startsWith("-normal/",10)),B2=l=>_l(l,v0,hd),oe=l=>d0.test(l),Il=l=>_l(l,y0,M2),Cv=l=>_l(l,G2,Ee),L2=l=>_l(l,S0,h0),U2=l=>_l(l,b0,hd),Tv=l=>_l(l,g0,hd),H2=l=>_l(l,p0,D2),$o=l=>_l(l,x0,O2),ce=l=>m0.test(l),si=l=>ia(l,y0),k2=l=>ia(l,b0),Rv=l=>ia(l,g0),q2=l=>ia(l,v0),V2=l=>ia(l,p0),Jo=l=>ia(l,x0,!0),Y2=l=>ia(l,S0,!0),_l=(l,r,o)=>{const i=d0.exec(l);return i?i[1]?r(i[1]):o(i[2]):!1},ia=(l,r,o=!1)=>{const i=m0.exec(l);return i?i[1]?r(i[1]):o:!1},g0=l=>l==="position"||l==="percentage",p0=l=>l==="image"||l==="url",v0=l=>l==="length"||l==="size"||l==="bg-size",y0=l=>l==="length",G2=l=>l==="number",b0=l=>l==="family-name",S0=l=>l==="number"||l==="weight",x0=l=>l==="shadow",X2=()=>{const l=rt("color"),r=rt("font"),o=rt("text"),i=rt("font-weight"),s=rt("tracking"),f=rt("leading"),d=rt("breakpoint"),m=rt("container"),h=rt("spacing"),p=rt("radius"),S=rt("shadow"),b=rt("inset-shadow"),E=rt("text-shadow"),x=rt("drop-shadow"),C=rt("blur"),A=rt("perspective"),_=rt("aspect"),R=rt("ease"),z=rt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...j(),ce,oe],q=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],B=()=>[ce,oe,h],Z=()=>[bl,"full","auto",...B()],X=()=>[fn,"none","subgrid",ce,oe],Y=()=>["auto",{span:["full",fn,ce,oe]},fn,ce,oe],$=()=>[fn,"auto",ce,oe],te=()=>["auto","min","max","fr",ce,oe],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...B()],F=()=>[bl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],ee=()=>[bl,"screen","full","dvw","lvw","svw","min","max","fit",...B()],de=()=>[bl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],W=()=>[l,ce,oe],M=()=>[...j(),Rv,Tv,{position:[ce,oe]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",q2,B2,{size:[ce,oe]}],re=()=>[lf,si,Il],ie=()=>["","none","full",p,ce,oe],ue=()=>["",Ee,si,Il],ae=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ee,lf,Rv,Tv],we=()=>["","none",C,ce,oe],Se=()=>["none",Ee,ce,oe],Ae=()=>["none",Ee,ce,oe],st=()=>[Ee,ce,oe],Pe=()=>[bl,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kn],breakpoint:[kn],color:[h0],container:[kn],"drop-shadow":[kn],ease:["in","out","in-out"],font:[z2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kn],shadow:[kn],spacing:["px",Ee],text:[kn],"text-shadow":[kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bl,oe,ce,_]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[j2],columns:[{columns:[Ee,oe,ce,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:P()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[fn,"auto",ce,oe]}],basis:[{basis:[bl,"full","auto",m,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,bl,"auto","initial","none",oe]}],grow:[{grow:["",Ee,ce,oe]}],shrink:[{shrink:["",Ee,ce,oe]}],order:[{order:[fn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[m,"screen",...F()]}],"min-w":[{"min-w":[m,"screen","none",...F()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",o,si,Il]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Y2,L2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lf,oe]}],"font-family":[{font:[k2,U2,r]}],"font-features":[{"font-features":[oe]}],"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,ce,oe]}],"line-clamp":[{"line-clamp":[Ee,"none",ce,Cv]}],leading:[{leading:[f,...B()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",ce,Il]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Ee,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"tab-size":[{tab:[fn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],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",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fn,ce,oe],radial:["",ce,oe],conic:[fn,ce,oe]},V2,H2]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,ce,oe]}],"outline-w":[{outline:["",Ee,si,Il]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",S,Jo,$o]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",b,Jo,$o]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Ee,Il]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",E,Jo,$o]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Ee,ce,oe]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:we()}],brightness:[{brightness:[Ee,ce,oe]}],contrast:[{contrast:[Ee,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Jo,$o]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Ee,ce,oe]}],"hue-rotate":[{"hue-rotate":[Ee,ce,oe]}],invert:[{invert:["",Ee,ce,oe]}],saturate:[{saturate:[Ee,ce,oe]}],sepia:[{sepia:["",Ee,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Ee,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",ce,oe]}],ease:[{ease:["linear","initial",R,ce,oe]}],delay:[{delay:[Ee,ce,oe]}],animate:[{animate:["none",z,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,ce,oe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],zoom:[{zoom:[fn,ce,oe]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",ce,oe]}],"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":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",ce,oe]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Ee,si,Il,Cv]}],stroke:[{stroke:["none",...W()]}],"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"]}},Q2=w2(X2);function Oe(...l){return Q2(o0(l))}const Nv=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,_v=o0,P2=(l,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return _v(l,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:s,defaultVariants:f}=r,d=Object.keys(s).map(p=>{const S=o==null?void 0:o[p],b=f==null?void 0:f[p];if(S===null)return null;const E=Nv(S)||Nv(b);return s[p][E]}),m=o&&Object.entries(o).reduce((p,S)=>{let[b,E]=S;return E===void 0||(p[b]=E),p},{}),h=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,S)=>{let{class:b,className:E,...x}=S;return Object.entries(x).every(C=>{let[A,_]=C;return Array.isArray(_)?_.includes({...f,...m}[A]):{...f,...m}[A]===_})?[...p,b,E]:p},[]);return _v(l,d,h,o==null?void 0:o.class,o==null?void 0:o.className)},Z2=P2("group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-lg border border-transparent bg-clip-padding text-sm font-medium transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)]","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),ct=v.forwardRef(({className:l,variant:r,size:o,asChild:i=!1,...s},f)=>{const d=i?Sw:"button";return y.jsx(d,{ref:f,"data-slot":"button","data-variant":r??"default","data-size":o??"default",className:Oe(Z2({variant:r,size:o,className:l})),...s})});ct.displayName="Button";function K2(l){return y.jsx(WE,{"data-slot":"alert-dialog",...l})}const w0=v.forwardRef((l,r)=>y.jsx(Wy,{ref:r,"data-slot":"alert-dialog-trigger",...l}));w0.displayName=Wy.displayName;function $2(l){return y.jsx(e2,{"data-slot":"alert-dialog-portal",...l})}const E0=v.forwardRef(({className:l,...r},o)=>y.jsx(e0,{ref:o,"data-slot":"alert-dialog-overlay",className:Oe("fixed inset-0 z-50 bg-black/10 duration-100 supports-[backdrop-filter]:backdrop-blur-xs data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",l),...r}));E0.displayName=e0.displayName;const A0=v.forwardRef(({className:l,size:r="default",...o},i)=>y.jsxs($2,{children:[y.jsx(E0,{}),y.jsx(t0,{ref:i,"data-slot":"alert-dialog-content","data-size":r,className:Oe("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] min-w-0 -translate-x-1/2 -translate-y-1/2 grid-cols-1 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 [&>*]:min-w-0",l),...o})]}));A0.displayName=t0.displayName;function J2({className:l,...r}){return y.jsx("div",{"data-slot":"alert-dialog-header",className:Oe("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",l),...r})}function I2({className:l,...r}){return y.jsx("div",{"data-slot":"alert-dialog-footer",className:Oe("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",l),...r})}const C0=v.forwardRef(({className:l,...r},o)=>y.jsx(a0,{ref:o,"data-slot":"alert-dialog-title",className:Oe("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",l),...r}));C0.displayName=a0.displayName;const T0=v.forwardRef(({className:l,...r},o)=>y.jsx(r0,{ref:o,"data-slot":"alert-dialog-description",className:Oe("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",l),...r}));T0.displayName=r0.displayName;const R0=v.forwardRef(({className:l,variant:r="default",size:o="default",...i},s)=>y.jsx(ct,{variant:r,size:o,asChild:!0,children:y.jsx(n0,{ref:s,"data-slot":"alert-dialog-action",className:Oe(l),...i})}));R0.displayName=n0.displayName;const N0=v.forwardRef(({className:l,variant:r="outline",size:o="default",...i},s)=>y.jsx(ct,{variant:r,size:o,asChild:!0,children:y.jsx(l0,{ref:s,"data-slot":"alert-dialog-cancel",className:Oe(l),...i})}));N0.displayName=l0.displayName;/**
90
+ * @license lucide-react v0.475.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const F2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_0=(...l)=>l.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim();/**
95
+ * @license lucide-react v0.475.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */var W2={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"};/**
100
+ * @license lucide-react v0.475.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const eA=v.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:f,iconNode:d,...m},h)=>v.createElement("svg",{ref:h,...W2,width:r,height:r,stroke:l,strokeWidth:i?Number(o)*24/Number(r):o,className:_0("lucide",s),...m},[...d.map(([p,S])=>v.createElement(p,S)),...Array.isArray(f)?f:[f]]));/**
105
+ * @license lucide-react v0.475.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const gt=(l,r)=>{const o=v.forwardRef(({className:i,...s},f)=>v.createElement(eA,{ref:f,iconNode:r,className:_0(`lucide-${F2(l)}`,i),...s}));return o.displayName=`${l}`,o};/**
110
+ * @license lucide-react v0.475.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const tA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],nA=gt("ArrowLeft",tA);/**
115
+ * @license lucide-react v0.475.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const lA=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],M0=gt("Bot",lA);/**
120
+ * @license lucide-react v0.475.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const aA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kf=gt("Check",aA);/**
125
+ * @license lucide-react v0.475.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const rA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],O0=gt("ChevronDown",rA);/**
130
+ * @license lucide-react v0.475.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const iA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],D0=gt("ChevronRight",iA);/**
135
+ * @license lucide-react v0.475.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const oA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cA=gt("ChevronUp",oA);/**
140
+ * @license lucide-react v0.475.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const sA=[["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"}]],z0=gt("CircleAlert",sA);/**
145
+ * @license lucide-react v0.475.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const uA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fA=gt("ExternalLink",uA);/**
150
+ * @license lucide-react v0.475.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const dA=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],mA=gt("KeyRound",dA);/**
155
+ * @license lucide-react v0.475.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const hA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rr=gt("LoaderCircle",hA);/**
160
+ * @license lucide-react v0.475.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const gA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],j0=gt("Plus",gA);/**
165
+ * @license lucide-react v0.475.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const pA=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],vA=gt("QrCode",pA);/**
170
+ * @license lucide-react v0.475.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const yA=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],B0=gt("RefreshCw",yA);/**
175
+ * @license lucide-react v0.475.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const bA=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],SA=gt("Save",bA);/**
180
+ * @license lucide-react v0.475.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const xA=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],wA=gt("Trash2",xA);/**
185
+ * @license lucide-react v0.475.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const EA=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],AA=gt("Unplug",EA);/**
190
+ * @license lucide-react v0.475.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const CA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],TA=gt("X",CA);function RA(l){return y.jsx(sd,{"data-slot":"dialog",...l})}const NA=v.forwardRef((l,r)=>y.jsx(vc,{ref:r,"data-slot":"dialog-trigger",...l}));NA.displayName=vc.displayName;function _A(l){return y.jsx(fd,{"data-slot":"dialog-portal",...l})}const MA=v.forwardRef((l,r)=>y.jsx(ra,{ref:r,"data-slot":"dialog-close",...l}));MA.displayName=ra.displayName;const L0=v.forwardRef(({className:l,...r},o)=>y.jsx(yc,{ref:o,"data-slot":"dialog-overlay",className:Oe("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-[backdrop-filter]:backdrop-blur-xs data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",l),...r}));L0.displayName=yc.displayName;const U0=v.forwardRef(({className:l,children:r,showCloseButton:o=!0,...i},s)=>y.jsxs(_A,{children:[y.jsx(L0,{}),y.jsxs(bc,{ref:s,"data-slot":"dialog-content",className:Oe("fixed top-1/2 left-1/2 z-50 grid w-full min-w-0 max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 grid-cols-1 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 [&>*]:min-w-0",l),...i,children:[r,o&&y.jsx(ra,{"data-slot":"dialog-close",asChild:!0,children:y.jsxs(ct,{variant:"ghost",size:"icon-sm",className:"absolute top-2 right-2",children:[y.jsx(TA,{"aria-hidden":"true"}),y.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));U0.displayName=bc.displayName;function af({className:l,...r}){return y.jsx("div",{"data-slot":"dialog-header",className:Oe("flex flex-col gap-2",l),...r})}function rf({className:l,showCloseButton:r=!1,children:o,...i}){return y.jsxs("div",{"data-slot":"dialog-footer",className:Oe("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",l),...i,children:[o,r&&y.jsx(ra,{asChild:!0,children:y.jsx(ct,{variant:"outline",children:"Close"})})]})}const lc=v.forwardRef(({className:l,...r},o)=>y.jsx(Sc,{ref:o,"data-slot":"dialog-title",className:Oe("text-base leading-none font-medium",l),...r}));lc.displayName=Sc.displayName;const ac=v.forwardRef(({className:l,...r},o)=>y.jsx(xc,{ref:o,"data-slot":"dialog-description",className:Oe("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",l),...r}));ac.displayName=xc.displayName;function OA(l){const r=l+"CollectionProvider",[o,i]=or(r),[s,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=A=>{const{scope:_,children:R}=A,z=v.useRef(null),T=v.useRef(new Map).current;return y.jsx(s,{scope:_,itemMap:T,collectionRef:z,children:R})};d.displayName=r;const m=l+"CollectionSlot",h=lr(m),p=v.forwardRef((A,_)=>{const{scope:R,children:z}=A,T=f(m,R),j=He(_,T.collectionRef);return y.jsx(h,{ref:j,children:z})});p.displayName=m;const S=l+"CollectionItemSlot",b="data-radix-collection-item",E=lr(S),x=v.forwardRef((A,_)=>{const{scope:R,children:z,...T}=A,j=v.useRef(null),P=He(_,j),q=f(S,R);return v.useEffect(()=>(q.itemMap.set(j,{ref:j,...T}),()=>void q.itemMap.delete(j))),y.jsx(E,{[b]:"",ref:P,children:z})});x.displayName=S;function C(A){const _=f(l+"CollectionConsumer",A);return v.useCallback(()=>{const z=_.collectionRef.current;if(!z)return[];const T=Array.from(z.querySelectorAll(`[${b}]`));return Array.from(_.itemMap.values()).sort((q,O)=>T.indexOf(q.ref.current)-T.indexOf(O.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:d,Slot:p,ItemSlot:x},C,i]}var DA=v.createContext(void 0);function H0(l){const r=v.useContext(DA);return l||r||"ltr"}const zA=["top","right","bottom","left"],Cl=Math.min,Lt=Math.max,sc=Math.round,Io=Math.floor,pn=l=>({x:l,y:l}),jA={left:"right",right:"left",bottom:"top",top:"bottom"};function qf(l,r,o){return Lt(l,Cl(r,o))}function Vn(l,r){return typeof l=="function"?l(r):l}function Yn(l){return l.split("-")[0]}function sr(l){return l.split("-")[1]}function gd(l){return l==="x"?"y":"x"}function pd(l){return l==="y"?"height":"width"}function gn(l){const r=l[0];return r==="t"||r==="b"?"y":"x"}function vd(l){return gd(gn(l))}function BA(l,r,o){o===void 0&&(o=!1);const i=sr(l),s=vd(l),f=pd(s);let d=s==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=uc(d)),[d,uc(d)]}function LA(l){const r=uc(l);return[Vf(l),r,Vf(r)]}function Vf(l){return l.includes("start")?l.replace("start","end"):l.replace("end","start")}const Mv=["left","right"],Ov=["right","left"],UA=["top","bottom"],HA=["bottom","top"];function kA(l,r,o){switch(l){case"top":case"bottom":return o?r?Ov:Mv:r?Mv:Ov;case"left":case"right":return r?UA:HA;default:return[]}}function qA(l,r,o,i){const s=sr(l);let f=kA(Yn(l),o==="start",i);return s&&(f=f.map(d=>d+"-"+s),r&&(f=f.concat(f.map(Vf)))),f}function uc(l){const r=Yn(l);return jA[r]+l.slice(r.length)}function VA(l){return{top:0,right:0,bottom:0,left:0,...l}}function k0(l){return typeof l!="number"?VA(l):{top:l,right:l,bottom:l,left:l}}function fc(l){const{x:r,y:o,width:i,height:s}=l;return{width:i,height:s,top:o,left:r,right:r+i,bottom:o+s,x:r,y:o}}function Dv(l,r,o){let{reference:i,floating:s}=l;const f=gn(r),d=vd(r),m=pd(d),h=Yn(r),p=f==="y",S=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,E=i[m]/2-s[m]/2;let x;switch(h){case"top":x={x:S,y:i.y-s.height};break;case"bottom":x={x:S,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:b};break;case"left":x={x:i.x-s.width,y:b};break;default:x={x:i.x,y:i.y}}switch(sr(r)){case"start":x[d]-=E*(o&&p?-1:1);break;case"end":x[d]+=E*(o&&p?-1:1);break}return x}async function YA(l,r){var o;r===void 0&&(r={});const{x:i,y:s,platform:f,rects:d,elements:m,strategy:h}=l,{boundary:p="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:E=!1,padding:x=0}=Vn(r,l),C=k0(x),_=m[E?b==="floating"?"reference":"floating":b],R=fc(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(_)))==null||o?_:_.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:S,strategy:h})),z=b==="floating"?{x:i,y:s,width:d.floating.width,height:d.floating.height}:d.reference,T=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),j=await(f.isElement==null?void 0:f.isElement(T))?await(f.getScale==null?void 0:f.getScale(T))||{x:1,y:1}:{x:1,y:1},P=fc(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:z,offsetParent:T,strategy:h}):z);return{top:(R.top-P.top+C.top)/j.y,bottom:(P.bottom-R.bottom+C.bottom)/j.y,left:(R.left-P.left+C.left)/j.x,right:(P.right-R.right+C.right)/j.x}}const GA=50,XA=async(l,r,o)=>{const{placement:i="bottom",strategy:s="absolute",middleware:f=[],platform:d}=o,m=d.detectOverflow?d:{...d,detectOverflow:YA},h=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:l,floating:r,strategy:s}),{x:S,y:b}=Dv(p,i,h),E=i,x=0;const C={};for(let A=0;A<f.length;A++){const _=f[A];if(!_)continue;const{name:R,fn:z}=_,{x:T,y:j,data:P,reset:q}=await z({x:S,y:b,initialPlacement:i,placement:E,strategy:s,middlewareData:C,rects:p,platform:m,elements:{reference:l,floating:r}});S=T??S,b=j??b,C[R]={...C[R],...P},q&&x<GA&&(x++,typeof q=="object"&&(q.placement&&(E=q.placement),q.rects&&(p=q.rects===!0?await d.getElementRects({reference:l,floating:r,strategy:s}):q.rects),{x:S,y:b}=Dv(p,E,h)),A=-1)}return{x:S,y:b,placement:E,strategy:s,middlewareData:C}},QA=l=>({name:"arrow",options:l,async fn(r){const{x:o,y:i,placement:s,rects:f,platform:d,elements:m,middlewareData:h}=r,{element:p,padding:S=0}=Vn(l,r)||{};if(p==null)return{};const b=k0(S),E={x:o,y:i},x=vd(s),C=pd(x),A=await d.getDimensions(p),_=x==="y",R=_?"top":"left",z=_?"bottom":"right",T=_?"clientHeight":"clientWidth",j=f.reference[C]+f.reference[x]-E[x]-f.floating[C],P=E[x]-f.reference[x],q=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let O=q?q[T]:0;(!O||!await(d.isElement==null?void 0:d.isElement(q)))&&(O=m.floating[T]||f.floating[C]);const B=j/2-P/2,Z=O/2-A[C]/2-1,X=Cl(b[R],Z),Y=Cl(b[z],Z),$=X,te=O-A[C]-Y,le=O/2-A[C]/2+B,pe=qf($,le,te),U=!h.arrow&&sr(s)!=null&&le!==pe&&f.reference[C]/2-(le<$?X:Y)-A[C]/2<0,F=U?le<$?le-$:le-te:0;return{[x]:E[x]+F,data:{[x]:pe,centerOffset:le-pe-F,...U&&{alignmentOffset:F}},reset:U}}}),PA=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(r){var o,i;const{placement:s,middlewareData:f,rects:d,initialPlacement:m,platform:h,elements:p}=r,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,..._}=Vn(l,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const R=Yn(s),z=gn(m),T=Yn(m)===m,j=await(h.isRTL==null?void 0:h.isRTL(p.floating)),P=E||(T||!A?[uc(m)]:LA(m)),q=C!=="none";!E&&q&&P.push(...qA(m,A,C,j));const O=[m,...P],B=await h.detectOverflow(r,_),Z=[];let X=((i=f.flip)==null?void 0:i.overflows)||[];if(S&&Z.push(B[R]),b){const le=BA(s,d,j);Z.push(B[le[0]],B[le[1]])}if(X=[...X,{placement:s,overflows:Z}],!Z.every(le=>le<=0)){var Y,$;const le=(((Y=f.flip)==null?void 0:Y.index)||0)+1,pe=O[le];if(pe&&(!(b==="alignment"?z!==gn(pe):!1)||X.every(ee=>gn(ee.placement)===z?ee.overflows[0]>0:!0)))return{data:{index:le,overflows:X},reset:{placement:pe}};let U=($=X.filter(F=>F.overflows[0]<=0).sort((F,ee)=>F.overflows[1]-ee.overflows[1])[0])==null?void 0:$.placement;if(!U)switch(x){case"bestFit":{var te;const F=(te=X.filter(ee=>{if(q){const de=gn(ee.placement);return de===z||de==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,W)=>de+W,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:te[0];F&&(U=F);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function zv(l,r){return{top:l.top-r.height,right:l.right-r.width,bottom:l.bottom-r.height,left:l.left-r.width}}function jv(l){return zA.some(r=>l[r]>=0)}const ZA=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(r){const{rects:o,platform:i}=r,{strategy:s="referenceHidden",...f}=Vn(l,r);switch(s){case"referenceHidden":{const d=await i.detectOverflow(r,{...f,elementContext:"reference"}),m=zv(d,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:jv(m)}}}case"escaped":{const d=await i.detectOverflow(r,{...f,altBoundary:!0}),m=zv(d,o.floating);return{data:{escapedOffsets:m,escaped:jv(m)}}}default:return{}}}}},q0=new Set(["left","top"]);async function KA(l,r){const{placement:o,platform:i,elements:s}=l,f=await(i.isRTL==null?void 0:i.isRTL(s.floating)),d=Yn(o),m=sr(o),h=gn(o)==="y",p=q0.has(d)?-1:1,S=f&&h?-1:1,b=Vn(r,l);let{mainAxis:E,crossAxis:x,alignmentAxis:C}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof C=="number"&&(x=m==="end"?C*-1:C),h?{x:x*S,y:E*p}:{x:E*p,y:x*S}}const $A=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(r){var o,i;const{x:s,y:f,placement:d,middlewareData:m}=r,h=await KA(r,l);return d===((o=m.offset)==null?void 0:o.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:f+h.y,data:{...h,placement:d}}}}},JA=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(r){const{x:o,y:i,placement:s,platform:f}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:h={fn:R=>{let{x:z,y:T}=R;return{x:z,y:T}}},...p}=Vn(l,r),S={x:o,y:i},b=await f.detectOverflow(r,p),E=gn(Yn(s)),x=gd(E);let C=S[x],A=S[E];if(d){const R=x==="y"?"top":"left",z=x==="y"?"bottom":"right",T=C+b[R],j=C-b[z];C=qf(T,C,j)}if(m){const R=E==="y"?"top":"left",z=E==="y"?"bottom":"right",T=A+b[R],j=A-b[z];A=qf(T,A,j)}const _=h.fn({...r,[x]:C,[E]:A});return{..._,data:{x:_.x-o,y:_.y-i,enabled:{[x]:d,[E]:m}}}}}},IA=function(l){return l===void 0&&(l={}),{options:l,fn(r){const{x:o,y:i,placement:s,rects:f,middlewareData:d}=r,{offset:m=0,mainAxis:h=!0,crossAxis:p=!0}=Vn(l,r),S={x:o,y:i},b=gn(s),E=gd(b);let x=S[E],C=S[b];const A=Vn(m,r),_=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(h){const T=E==="y"?"height":"width",j=f.reference[E]-f.floating[T]+_.mainAxis,P=f.reference[E]+f.reference[T]-_.mainAxis;x<j?x=j:x>P&&(x=P)}if(p){var R,z;const T=E==="y"?"width":"height",j=q0.has(Yn(s)),P=f.reference[b]-f.floating[T]+(j&&((R=d.offset)==null?void 0:R[b])||0)+(j?0:_.crossAxis),q=f.reference[b]+f.reference[T]+(j?0:((z=d.offset)==null?void 0:z[b])||0)-(j?_.crossAxis:0);C<P?C=P:C>q&&(C=q)}return{[E]:x,[b]:C}}}},FA=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(r){var o,i;const{placement:s,rects:f,platform:d,elements:m}=r,{apply:h=()=>{},...p}=Vn(l,r),S=await d.detectOverflow(r,p),b=Yn(s),E=sr(s),x=gn(s)==="y",{width:C,height:A}=f.floating;let _,R;b==="top"||b==="bottom"?(_=b,R=E===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(R=b,_=E==="end"?"top":"bottom");const z=A-S.top-S.bottom,T=C-S.left-S.right,j=Cl(A-S[_],z),P=Cl(C-S[R],T),q=!r.middlewareData.shift;let O=j,B=P;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(B=T),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(O=z),q&&!E){const X=Lt(S.left,0),Y=Lt(S.right,0),$=Lt(S.top,0),te=Lt(S.bottom,0);x?B=C-2*(X!==0||Y!==0?X+Y:Lt(S.left,S.right)):O=A-2*($!==0||te!==0?$+te:Lt(S.top,S.bottom))}await h({...r,availableWidth:B,availableHeight:O});const Z=await d.getDimensions(m.floating);return C!==Z.width||A!==Z.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function ur(l){return V0(l)?(l.nodeName||"").toLowerCase():"#document"}function Ut(l){var r;return(l==null||(r=l.ownerDocument)==null?void 0:r.defaultView)||window}function vn(l){var r;return(r=(V0(l)?l.ownerDocument:l.document)||window.document)==null?void 0:r.documentElement}function V0(l){return wc()?l instanceof Node||l instanceof Ut(l).Node:!1}function tn(l){return wc()?l instanceof Element||l instanceof Ut(l).Element:!1}function Qn(l){return wc()?l instanceof HTMLElement||l instanceof Ut(l).HTMLElement:!1}function Bv(l){return!wc()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ut(l).ShadowRoot}function Si(l){const{overflow:r,overflowX:o,overflowY:i,display:s}=nn(l);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&s!=="inline"&&s!=="contents"}function WA(l){return/^(table|td|th)$/.test(ur(l))}function Ec(l){try{if(l.matches(":popover-open"))return!0}catch{}try{return l.matches(":modal")}catch{return!1}}const eC=/transform|translate|scale|rotate|perspective|filter/,tC=/paint|layout|strict|content/,Fl=l=>!!l&&l!=="none";let of;function yd(l){const r=tn(l)?nn(l):l;return Fl(r.transform)||Fl(r.translate)||Fl(r.scale)||Fl(r.rotate)||Fl(r.perspective)||!bd()&&(Fl(r.backdropFilter)||Fl(r.filter))||eC.test(r.willChange||"")||tC.test(r.contain||"")}function nC(l){let r=Tl(l);for(;Qn(r)&&!ir(r);){if(yd(r))return r;if(Ec(r))return null;r=Tl(r)}return null}function bd(){return of==null&&(of=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),of}function ir(l){return/^(html|body|#document)$/.test(ur(l))}function nn(l){return Ut(l).getComputedStyle(l)}function Ac(l){return tn(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Tl(l){if(ur(l)==="html")return l;const r=l.assignedSlot||l.parentNode||Bv(l)&&l.host||vn(l);return Bv(r)?r.host:r}function Y0(l){const r=Tl(l);return ir(r)?l.ownerDocument?l.ownerDocument.body:l.body:Qn(r)&&Si(r)?r:Y0(r)}function hi(l,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const s=Y0(l),f=s===((i=l.ownerDocument)==null?void 0:i.body),d=Ut(s);if(f){const m=Yf(d);return r.concat(d,d.visualViewport||[],Si(s)?s:[],m&&o?hi(m):[])}else return r.concat(s,hi(s,[],o))}function Yf(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function G0(l){const r=nn(l);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const s=Qn(l),f=s?l.offsetWidth:o,d=s?l.offsetHeight:i,m=sc(o)!==f||sc(i)!==d;return m&&(o=f,i=d),{width:o,height:i,$:m}}function Sd(l){return tn(l)?l:l.contextElement}function tr(l){const r=Sd(l);if(!Qn(r))return pn(1);const o=r.getBoundingClientRect(),{width:i,height:s,$:f}=G0(r);let d=(f?sc(o.width):o.width)/i,m=(f?sc(o.height):o.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const lC=pn(0);function X0(l){const r=Ut(l);return!bd()||!r.visualViewport?lC:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function aC(l,r,o){return r===void 0&&(r=!1),!o||r&&o!==Ut(l)?!1:r}function ta(l,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const s=l.getBoundingClientRect(),f=Sd(l);let d=pn(1);r&&(i?tn(i)&&(d=tr(i)):d=tr(l));const m=aC(f,o,i)?X0(f):pn(0);let h=(s.left+m.x)/d.x,p=(s.top+m.y)/d.y,S=s.width/d.x,b=s.height/d.y;if(f){const E=Ut(f),x=i&&tn(i)?Ut(i):i;let C=E,A=Yf(C);for(;A&&i&&x!==C;){const _=tr(A),R=A.getBoundingClientRect(),z=nn(A),T=R.left+(A.clientLeft+parseFloat(z.paddingLeft))*_.x,j=R.top+(A.clientTop+parseFloat(z.paddingTop))*_.y;h*=_.x,p*=_.y,S*=_.x,b*=_.y,h+=T,p+=j,C=Ut(A),A=Yf(C)}}return fc({width:S,height:b,x:h,y:p})}function Cc(l,r){const o=Ac(l).scrollLeft;return r?r.left+o:ta(vn(l)).left+o}function Q0(l,r){const o=l.getBoundingClientRect(),i=o.left+r.scrollLeft-Cc(l,o),s=o.top+r.scrollTop;return{x:i,y:s}}function rC(l){let{elements:r,rect:o,offsetParent:i,strategy:s}=l;const f=s==="fixed",d=vn(i),m=r?Ec(r.floating):!1;if(i===d||m&&f)return o;let h={scrollLeft:0,scrollTop:0},p=pn(1);const S=pn(0),b=Qn(i);if((b||!b&&!f)&&((ur(i)!=="body"||Si(d))&&(h=Ac(i)),b)){const x=ta(i);p=tr(i),S.x=x.x+i.clientLeft,S.y=x.y+i.clientTop}const E=d&&!b&&!f?Q0(d,h):pn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-h.scrollLeft*p.x+S.x+E.x,y:o.y*p.y-h.scrollTop*p.y+S.y+E.y}}function iC(l){return Array.from(l.getClientRects())}function oC(l){const r=vn(l),o=Ac(l),i=l.ownerDocument.body,s=Lt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Lt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-o.scrollLeft+Cc(l);const m=-o.scrollTop;return nn(i).direction==="rtl"&&(d+=Lt(r.clientWidth,i.clientWidth)-s),{width:s,height:f,x:d,y:m}}const Lv=25;function cC(l,r){const o=Ut(l),i=vn(l),s=o.visualViewport;let f=i.clientWidth,d=i.clientHeight,m=0,h=0;if(s){f=s.width,d=s.height;const S=bd();(!S||S&&r==="fixed")&&(m=s.offsetLeft,h=s.offsetTop)}const p=Cc(i);if(p<=0){const S=i.ownerDocument,b=S.body,E=getComputedStyle(b),x=S.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,C=Math.abs(i.clientWidth-b.clientWidth-x);C<=Lv&&(f-=C)}else p<=Lv&&(f+=p);return{width:f,height:d,x:m,y:h}}function sC(l,r){const o=ta(l,!0,r==="fixed"),i=o.top+l.clientTop,s=o.left+l.clientLeft,f=Qn(l)?tr(l):pn(1),d=l.clientWidth*f.x,m=l.clientHeight*f.y,h=s*f.x,p=i*f.y;return{width:d,height:m,x:h,y:p}}function Uv(l,r,o){let i;if(r==="viewport")i=cC(l,o);else if(r==="document")i=oC(vn(l));else if(tn(r))i=sC(r,o);else{const s=X0(l);i={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return fc(i)}function P0(l,r){const o=Tl(l);return o===r||!tn(o)||ir(o)?!1:nn(o).position==="fixed"||P0(o,r)}function uC(l,r){const o=r.get(l);if(o)return o;let i=hi(l,[],!1).filter(m=>tn(m)&&ur(m)!=="body"),s=null;const f=nn(l).position==="fixed";let d=f?Tl(l):l;for(;tn(d)&&!ir(d);){const m=nn(d),h=yd(d);!h&&m.position==="fixed"&&(s=null),(f?!h&&!s:!h&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Si(d)&&!h&&P0(l,d))?i=i.filter(S=>S!==d):s=m,d=Tl(d)}return r.set(l,i),i}function fC(l){let{element:r,boundary:o,rootBoundary:i,strategy:s}=l;const d=[...o==="clippingAncestors"?Ec(r)?[]:uC(r,this._c):[].concat(o),i],m=Uv(r,d[0],s);let h=m.top,p=m.right,S=m.bottom,b=m.left;for(let E=1;E<d.length;E++){const x=Uv(r,d[E],s);h=Lt(x.top,h),p=Cl(x.right,p),S=Cl(x.bottom,S),b=Lt(x.left,b)}return{width:p-b,height:S-h,x:b,y:h}}function dC(l){const{width:r,height:o}=G0(l);return{width:r,height:o}}function mC(l,r,o){const i=Qn(r),s=vn(r),f=o==="fixed",d=ta(l,!0,f,r);let m={scrollLeft:0,scrollTop:0};const h=pn(0);function p(){h.x=Cc(s)}if(i||!i&&!f)if((ur(r)!=="body"||Si(s))&&(m=Ac(r)),i){const x=ta(r,!0,f,r);h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}else s&&p();f&&!i&&s&&p();const S=s&&!i&&!f?Q0(s,m):pn(0),b=d.left+m.scrollLeft-h.x-S.x,E=d.top+m.scrollTop-h.y-S.y;return{x:b,y:E,width:d.width,height:d.height}}function cf(l){return nn(l).position==="static"}function Hv(l,r){if(!Qn(l)||nn(l).position==="fixed")return null;if(r)return r(l);let o=l.offsetParent;return vn(l)===o&&(o=o.ownerDocument.body),o}function Z0(l,r){const o=Ut(l);if(Ec(l))return o;if(!Qn(l)){let s=Tl(l);for(;s&&!ir(s);){if(tn(s)&&!cf(s))return s;s=Tl(s)}return o}let i=Hv(l,r);for(;i&&WA(i)&&cf(i);)i=Hv(i,r);return i&&ir(i)&&cf(i)&&!yd(i)?o:i||nC(l)||o}const hC=async function(l){const r=this.getOffsetParent||Z0,o=this.getDimensions,i=await o(l.floating);return{reference:mC(l.reference,await r(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function gC(l){return nn(l).direction==="rtl"}const pC={convertOffsetParentRelativeRectToViewportRelativeRect:rC,getDocumentElement:vn,getClippingRect:fC,getOffsetParent:Z0,getElementRects:hC,getClientRects:iC,getDimensions:dC,getScale:tr,isElement:tn,isRTL:gC};function K0(l,r){return l.x===r.x&&l.y===r.y&&l.width===r.width&&l.height===r.height}function vC(l,r){let o=null,i;const s=vn(l);function f(){var m;clearTimeout(i),(m=o)==null||m.disconnect(),o=null}function d(m,h){m===void 0&&(m=!1),h===void 0&&(h=1),f();const p=l.getBoundingClientRect(),{left:S,top:b,width:E,height:x}=p;if(m||r(),!E||!x)return;const C=Io(b),A=Io(s.clientWidth-(S+E)),_=Io(s.clientHeight-(b+x)),R=Io(S),T={rootMargin:-C+"px "+-A+"px "+-_+"px "+-R+"px",threshold:Lt(0,Cl(1,h))||1};let j=!0;function P(q){const O=q[0].intersectionRatio;if(O!==h){if(!j)return d();O?d(!1,O):i=setTimeout(()=>{d(!1,1e-7)},1e3)}O===1&&!K0(p,l.getBoundingClientRect())&&d(),j=!1}try{o=new IntersectionObserver(P,{...T,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,T)}o.observe(l)}return d(!0),f}function yC(l,r,o,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,p=Sd(l),S=s||f?[...p?hi(p):[],...r?hi(r):[]]:[];S.forEach(R=>{s&&R.addEventListener("scroll",o,{passive:!0}),f&&R.addEventListener("resize",o)});const b=p&&m?vC(p,o):null;let E=-1,x=null;d&&(x=new ResizeObserver(R=>{let[z]=R;z&&z.target===p&&x&&r&&(x.unobserve(r),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var T;(T=x)==null||T.observe(r)})),o()}),p&&!h&&x.observe(p),r&&x.observe(r));let C,A=h?ta(l):null;h&&_();function _(){const R=ta(l);A&&!K0(A,R)&&o(),A=R,C=requestAnimationFrame(_)}return o(),()=>{var R;S.forEach(z=>{s&&z.removeEventListener("scroll",o),f&&z.removeEventListener("resize",o)}),b==null||b(),(R=x)==null||R.disconnect(),x=null,h&&cancelAnimationFrame(C)}}const bC=$A,SC=JA,xC=PA,wC=FA,EC=ZA,kv=QA,AC=IA,CC=(l,r,o)=>{const i=new Map,s={platform:pC,...o},f={...s.platform,_c:i};return XA(l,r,{...s,platform:f})};var TC=typeof document<"u",RC=function(){},rc=TC?v.useLayoutEffect:RC;function dc(l,r){if(l===r)return!0;if(typeof l!=typeof r)return!1;if(typeof l=="function"&&l.toString()===r.toString())return!0;let o,i,s;if(l&&r&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!dc(l[i],r[i]))return!1;return!0}if(s=Object.keys(l),o=s.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,s[i]))return!1;for(i=o;i--!==0;){const f=s[i];if(!(f==="_owner"&&l.$$typeof)&&!dc(l[f],r[f]))return!1}return!0}return l!==l&&r!==r}function $0(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function qv(l,r){const o=$0(l);return Math.round(r*o)/o}function sf(l){const r=v.useRef(l);return rc(()=>{r.current=l}),r}function NC(l){l===void 0&&(l={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:h,open:p}=l,[S,b]=v.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[E,x]=v.useState(i);dc(E,i)||x(i);const[C,A]=v.useState(null),[_,R]=v.useState(null),z=v.useCallback(ee=>{ee!==q.current&&(q.current=ee,A(ee))},[]),T=v.useCallback(ee=>{ee!==O.current&&(O.current=ee,R(ee))},[]),j=f||C,P=d||_,q=v.useRef(null),O=v.useRef(null),B=v.useRef(S),Z=h!=null,X=sf(h),Y=sf(s),$=sf(p),te=v.useCallback(()=>{if(!q.current||!O.current)return;const ee={placement:r,strategy:o,middleware:E};Y.current&&(ee.platform=Y.current),CC(q.current,O.current,ee).then(de=>{const W={...de,isPositioned:$.current!==!1};le.current&&!dc(B.current,W)&&(B.current=W,cr.flushSync(()=>{b(W)}))})},[E,r,o,Y,$]);rc(()=>{p===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,b(ee=>({...ee,isPositioned:!1})))},[p]);const le=v.useRef(!1);rc(()=>(le.current=!0,()=>{le.current=!1}),[]),rc(()=>{if(j&&(q.current=j),P&&(O.current=P),j&&P){if(X.current)return X.current(j,P,te);te()}},[j,P,te,X,Z]);const pe=v.useMemo(()=>({reference:q,floating:O,setReference:z,setFloating:T}),[z,T]),U=v.useMemo(()=>({reference:j,floating:P}),[j,P]),F=v.useMemo(()=>{const ee={position:o,left:0,top:0};if(!U.floating)return ee;const de=qv(U.floating,S.x),W=qv(U.floating,S.y);return m?{...ee,transform:"translate("+de+"px, "+W+"px)",...$0(U.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:de,top:W}},[o,m,U.floating,S.x,S.y]);return v.useMemo(()=>({...S,update:te,refs:pe,elements:U,floatingStyles:F}),[S,te,pe,U,F])}const _C=l=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:l,fn(o){const{element:i,padding:s}=typeof l=="function"?l(o):l;return i&&r(i)?i.current!=null?kv({element:i.current,padding:s}).fn(o):{}:i?kv({element:i,padding:s}).fn(o):{}}}},MC=(l,r)=>{const o=bC(l);return{name:o.name,fn:o.fn,options:[l,r]}},OC=(l,r)=>{const o=SC(l);return{name:o.name,fn:o.fn,options:[l,r]}},DC=(l,r)=>({fn:AC(l).fn,options:[l,r]}),zC=(l,r)=>{const o=xC(l);return{name:o.name,fn:o.fn,options:[l,r]}},jC=(l,r)=>{const o=wC(l);return{name:o.name,fn:o.fn,options:[l,r]}},BC=(l,r)=>{const o=EC(l);return{name:o.name,fn:o.fn,options:[l,r]}},LC=(l,r)=>{const o=_C(l);return{name:o.name,fn:o.fn,options:[l,r]}};var UC="Arrow",J0=v.forwardRef((l,r)=>{const{children:o,width:i=10,height:s=5,...f}=l;return y.jsx(Be.svg,{...f,ref:r,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});J0.displayName=UC;var HC=J0;function kC(l){const[r,o]=v.useState(void 0);return lt(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,m;if("borderBoxSize"in f){const h=f.borderBoxSize,p=Array.isArray(h)?h[0]:h;d=p.inlineSize,m=p.blockSize}else d=l.offsetWidth,m=l.offsetHeight;o({width:d,height:m})});return i.observe(l,{box:"border-box"}),()=>i.unobserve(l)}else o(void 0)},[l]),r}var xd="Popper",[I0,F0]=or(xd),[qC,W0]=I0(xd),eb=l=>{const{__scopePopper:r,children:o}=l,[i,s]=v.useState(null),[f,d]=v.useState(void 0);return y.jsx(qC,{scope:r,anchor:i,onAnchorChange:s,placementState:f,setPlacementState:d,children:o})};eb.displayName=xd;var tb="PopperAnchor",nb=v.forwardRef((l,r)=>{const{__scopePopper:o,virtualRef:i,...s}=l,f=W0(tb,o),d=v.useRef(null),m=f.onAnchorChange,h=v.useCallback(C=>{d.current=C,C&&m(C)},[m]),p=He(r,h),S=v.useRef(null);v.useEffect(()=>{if(!i)return;const C=S.current;S.current=i.current,C!==S.current&&m(S.current)});const b=f.placementState&&Ed(f.placementState),E=b==null?void 0:b[0],x=b==null?void 0:b[1];return i?null:y.jsx(Be.div,{"data-radix-popper-side":E,"data-radix-popper-align":x,...s,ref:p})});nb.displayName=tb;var wd="PopperContent",[VC,YC]=I0(wd),lb=v.forwardRef((l,r)=>{var ge,fe,we,Se,Ae,st;const{__scopePopper:o,side:i="bottom",sideOffset:s=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:E=!1,updatePositionStrategy:x="optimized",onPlaced:C,...A}=l,_=W0(wd,o),[R,z]=v.useState(null),T=He(r,z),[j,P]=v.useState(null),q=kC(j),O=(q==null?void 0:q.width)??0,B=(q==null?void 0:q.height)??0,Z=i+(f!=="center"?"-"+f:""),X=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},Y=Array.isArray(p)?p:[p],$=Y.length>0,te={padding:X,boundary:Y.filter(XC),altBoundary:$},{refs:le,floatingStyles:pe,placement:U,isPositioned:F,middlewareData:ee}=NC({strategy:"fixed",placement:Z,whileElementsMounted:(...Pe)=>yC(...Pe,{animationFrame:x==="always"}),elements:{reference:_.anchor},middleware:[MC({mainAxis:s+B,alignmentAxis:d}),h&&OC({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?DC():void 0,...te}),h&&zC({...te}),jC({...te,apply:({elements:Pe,rects:an,availableWidth:yn,availableHeight:Dl})=>{const{width:Ai,height:mr}=an.reference,Zn=Pe.floating.style;Zn.setProperty("--radix-popper-available-width",`${yn}px`),Zn.setProperty("--radix-popper-available-height",`${Dl}px`),Zn.setProperty("--radix-popper-anchor-width",`${Ai}px`),Zn.setProperty("--radix-popper-anchor-height",`${mr}px`)}}),j&&LC({element:j,padding:m}),QC({arrowWidth:O,arrowHeight:B}),E&&BC({strategy:"referenceHidden",...te,boundary:$?te.boundary:void 0})]}),de=_.setPlacementState;lt(()=>(de(U),()=>{de(void 0)}),[U,de]);const[W,M]=Ed(U),Q=vt(C);lt(()=>{F&&(Q==null||Q())},[F,Q]);const ne=(ge=ee.arrow)==null?void 0:ge.x,re=(fe=ee.arrow)==null?void 0:fe.y,ie=((we=ee.arrow)==null?void 0:we.centerOffset)!==0,[ue,ae]=v.useState();return lt(()=>{R&&ae(window.getComputedStyle(R).zIndex)},[R]),y.jsx("div",{ref:le.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:F?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(Se=ee.transformOrigin)==null?void 0:Se.x,(Ae=ee.transformOrigin)==null?void 0:Ae.y].join(" "),...((st=ee.hide)==null?void 0:st.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:y.jsx(VC,{scope:o,placedSide:W,placedAlign:M,onArrowChange:P,arrowX:ne,arrowY:re,shouldHideArrow:ie,children:y.jsx(Be.div,{"data-side":W,"data-align":M,...A,ref:T,style:{...A.style,animation:F?void 0:"none"}})})})});lb.displayName=wd;var ab="PopperArrow",GC={top:"bottom",right:"left",bottom:"top",left:"right"},rb=v.forwardRef(function(r,o){const{__scopePopper:i,...s}=r,f=YC(ab,i),d=GC[f.placedSide];return y.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:y.jsx(HC,{...s,ref:o,style:{...s.style,display:"block"}})})});rb.displayName=ab;function XC(l){return l!==null}var QC=l=>({name:"transformOrigin",options:l,fn(r){var _,R,z;const{placement:o,rects:i,middlewareData:s}=r,d=((_=s.arrow)==null?void 0:_.centerOffset)!==0,m=d?0:l.arrowWidth,h=d?0:l.arrowHeight,[p,S]=Ed(o),b={start:"0%",center:"50%",end:"100%"}[S],E=(((R=s.arrow)==null?void 0:R.x)??0)+m/2,x=(((z=s.arrow)==null?void 0:z.y)??0)+h/2;let C="",A="";return p==="bottom"?(C=d?b:`${E}px`,A=`${-h}px`):p==="top"?(C=d?b:`${E}px`,A=`${i.floating.height+h}px`):p==="right"?(C=`${-h}px`,A=d?b:`${x}px`):p==="left"&&(C=`${i.floating.width+h}px`,A=d?b:`${x}px`),{data:{x:C,y:A}}}});function Ed(l){const[r,o="center"]=l.split("-");return[r,o]}var PC=eb,ZC=nb,KC=lb,$C=rb;const di=v.forwardRef(({className:l,type:r,...o},i)=>y.jsx("input",{ref:i,type:r,"data-slot":"input",className:Oe("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",l),...o}));di.displayName="Input";var JC=Object.defineProperty,Gn=(l,r)=>JC(l,"name",{value:r,configurable:!0});function ib(l,r){return v.useReducer((o,i)=>r[o][i]??o,l)}Gn(ib,"useStateMachine");var Tc=Gn(l=>{const{present:r,children:o}=l,i=ob(r),s=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),f=cb(i.ref,sb(s));return typeof o=="function"||i.isPresent?v.cloneElement(s,{ref:f}):null},"Presence");function ob(l){const[r,o]=v.useState(),i=v.useRef(null),s=v.useRef(l),f=v.useRef("none"),d=v.useRef(void 0),m=l?"mounted":"unmounted",[h,p]=ib(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{h==="mounted"?(f.current=d.current??Fa(i.current),d.current=void 0):f.current="none"},[h]),lt(()=>{const S=i.current,b=s.current;if(b!==l){const x=f.current,C=Fa(S);l?(d.current=C,p("MOUNT")):C==="none"||(S==null?void 0:S.display)==="none"?p("UNMOUNT"):p(b&&x!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=l}},[l,p]),lt(()=>{if(r){let S;const b=r.ownerDocument.defaultView??window,E=Gn(C=>{const _=Fa(i.current).includes(CSS.escape(C.animationName));if(C.target===r&&_&&(p("ANIMATION_END"),!s.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",S=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},"handleAnimationEnd"),x=Gn(C=>{C.target===r&&(f.current=Fa(i.current))},"handleAnimationStart");return r.addEventListener("animationstart",x),r.addEventListener("animationcancel",E),r.addEventListener("animationend",E),()=>{b.clearTimeout(S),r.removeEventListener("animationstart",x),r.removeEventListener("animationcancel",E),r.removeEventListener("animationend",E)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(S=>{if(S){const b=getComputedStyle(S);i.current=b,d.current=Fa(b)}else i.current=null;o(S)},[])}}Gn(ob,"usePresence");function Gf(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}Gn(Gf,"setRef");function cb(...l){const r=v.useRef(l);return r.current=l,v.useCallback(o=>{const i=r.current;let s=!1;const f=i.map(d=>{const m=Gf(d,o);return!s&&typeof m=="function"&&(s=!0),m});if(s)return()=>{for(let d=0;d<f.length;d++){const m=f[d];typeof m=="function"?m():Gf(i[d],null)}}},[])}Gn(cb,"useStableComposedRefs");function Fa(l){return(l==null?void 0:l.animationName)||"none"}Gn(Fa,"getAnimationName");function sb(l){var i,s;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}Gn(sb,"getElementRef");function Xf(l,[r,o]){return Math.min(o,Math.max(r,l))}var IC=Object.defineProperty,fr=(l,r)=>IC(l,"name",{value:r,configurable:!0}),ub=!!(typeof window<"u"&&window.document&&window.document.createElement);function Al(l,r,{checkForDefaultPrevented:o=!0}={}){return fr(function(s){if(l==null||l(s),o===!1||!s||!s.defaultPrevented)return r==null?void 0:r(s)},"handleEvent")}fr(Al,"composeEventHandlers");function FC(l){var r;if(!ub)throw new Error("Cannot access window outside of the DOM");return((r=l==null?void 0:l.ownerDocument)==null?void 0:r.defaultView)??window}fr(FC,"getOwnerWindow");function Qf(l){if(!ub)throw new Error("Cannot access document outside of the DOM");return(l==null?void 0:l.ownerDocument)??document}fr(Qf,"getOwnerDocument");function fb(l,r=!1){const{activeElement:o}=Qf(l);if(!(o!=null&&o.nodeName))return null;if(db(o)&&o.contentDocument)return fb(o.contentDocument.body,r);if(r){const i=o.getAttribute("aria-activedescendant");if(i){const s=Qf(o).getElementById(i);if(s)return s}}return o}fr(fb,"getActiveElement");function db(l){return l.tagName==="IFRAME"}fr(db,"isFrame");var WC=Object.defineProperty,Re=(l,r)=>WC(l,"name",{value:r,configurable:!0});function mb(l,r){return v.useReducer((o,i)=>r[o][i]??o,l)}Re(mb,"useStateMachine");var hb="ScrollArea",[gb]=or(hb),[eT,$t]=gb(hb),tT=v.forwardRef(Re(function(r,o){const{__scopeScrollArea:i,type:s="hover",dir:f,scrollHideDelay:d=600,...m}=r,[h,p]=v.useState(null),[S,b]=v.useState(null),[E,x]=v.useState(null),[C,A]=v.useState(null),[_,R]=v.useState(null),[z,T]=v.useState(0),[j,P]=v.useState(0),[q,O]=v.useState(!1),[B,Z]=v.useState(!1),X=He(o,p),Y=H0(f);return y.jsx(eT,{scope:i,type:s,dir:Y,scrollHideDelay:d,scrollArea:h,viewport:S,onViewportChange:b,content:E,onContentChange:x,scrollbarX:C,onScrollbarXChange:A,scrollbarXEnabled:q,onScrollbarXEnabledChange:O,scrollbarY:_,onScrollbarYChange:R,scrollbarYEnabled:B,onScrollbarYEnabledChange:Z,onCornerWidthChange:T,onCornerHeightChange:P,children:y.jsx(Be.div,{dir:Y,...m,ref:X,style:{position:"relative","--radix-scroll-area-corner-width":z+"px","--radix-scroll-area-corner-height":j+"px",...r.style}})})},"ScrollArea")),nT="ScrollAreaViewport",lT=v.forwardRef(Re(function(r,o){const{__scopeScrollArea:i,children:s,nonce:f,...d}=r,m=$t(nT,i),h=v.useRef(null),p=He(o,h,m.onViewportChange);return y.jsxs(y.Fragment,{children:[y.jsx(aT,{nonce:f}),y.jsx(Be.div,{"data-radix-scroll-area-viewport":"",...d,ref:p,style:{overflowX:m.scrollbarXEnabled?"scroll":"hidden",overflowY:m.scrollbarYEnabled?"scroll":"hidden",...r.style},children:y.jsx("div",{ref:m.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})},"ScrollAreaViewport")),aT=v.memo(Re(function({nonce:r}){return y.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"),(l,r)=>l.nonce===r.nonce),Pn="ScrollAreaScrollbar",pb=v.forwardRef(Re(function(r,o){const{forceMount:i,...s}=r,f=$t(Pn,r.__scopeScrollArea),{onScrollbarXEnabledChange:d,onScrollbarYEnabledChange:m}=f,h=r.orientation==="horizontal";return v.useEffect(()=>(h?d(!0):m(!0),()=>{h?d(!1):m(!1)}),[h,d,m]),f.type==="hover"?y.jsx(rT,{...s,ref:o,forceMount:i}):f.type==="scroll"?y.jsx(iT,{...s,ref:o,forceMount:i}):f.type==="auto"?y.jsx(vb,{...s,ref:o,forceMount:i}):f.type==="always"?y.jsx(Ad,{...s,ref:o,"data-state":"visible"}):null},"ScrollAreaScrollbar")),rT=v.forwardRef(Re(function(r,o){const{forceMount:i,...s}=r,f=$t(Pn,r.__scopeScrollArea),[d,m]=v.useState(!1);return v.useEffect(()=>{const h=f.scrollArea;let p=0;if(h){const S=Re(()=>{window.clearTimeout(p),m(!0)},"handlePointerEnter"),b=Re(()=>{p=window.setTimeout(()=>m(!1),f.scrollHideDelay)},"handlePointerLeave");return h.addEventListener("pointerenter",S),h.addEventListener("pointerleave",b),()=>{window.clearTimeout(p),h.removeEventListener("pointerenter",S),h.removeEventListener("pointerleave",b)}}},[f.scrollArea,f.scrollHideDelay]),y.jsx(Tc,{present:i||d,children:y.jsx(vb,{"data-state":d?"visible":"hidden",...s,ref:o})})},"ScrollAreaScrollbarHover")),iT=v.forwardRef(Re(function(r,o){const{forceMount:i,...s}=r,f=$t(Pn,r.__scopeScrollArea),d=r.orientation==="horizontal",m=wi(()=>p("SCROLL_END"),100),[h,p]=mb("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 v.useEffect(()=>{if(h==="idle"){const S=window.setTimeout(()=>p("HIDE"),f.scrollHideDelay);return()=>window.clearTimeout(S)}},[h,f.scrollHideDelay,p]),v.useEffect(()=>{const S=f.viewport,b=d?"scrollLeft":"scrollTop";if(S){let E=S[b];const x=Re(()=>{const C=S[b];E!==C&&(p("SCROLL"),m()),E=C},"handleScroll");return S.addEventListener("scroll",x),()=>S.removeEventListener("scroll",x)}},[f.viewport,d,p,m]),y.jsx(Tc,{present:i||h!=="hidden",children:y.jsx(Ad,{"data-state":h==="hidden"?"hidden":"visible",...s,ref:o,onPointerEnter:Al(r.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:Al(r.onPointerLeave,()=>p("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),vb=v.forwardRef(Re(function(r,o){const i=$t(Pn,r.__scopeScrollArea),{forceMount:s,...f}=r,[d,m]=v.useState(!1),h=r.orientation==="horizontal",p=wi(()=>{if(i.viewport){const S=i.viewport.offsetWidth<i.viewport.scrollWidth,b=i.viewport.offsetHeight<i.viewport.scrollHeight;m(h?S:b)}},10);return na(i.viewport,p),na(i.content,p),y.jsx(Tc,{present:s||d,children:y.jsx(Ad,{"data-state":d?"visible":"hidden",...f,ref:o})})},"ScrollAreaScrollbarAuto")),Ad=v.forwardRef(Re(function(r,o){const{orientation:i="vertical",...s}=r,f=$t(Pn,r.__scopeScrollArea),d=v.useRef(null),m=v.useRef(0),[h,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),S=Cd(h.viewport,h.content),b={...s,sizes:h,onSizesChange:p,hasThumb:S>0&&S<1,onThumbChange:Re(x=>d.current=x,"onThumbChange"),onThumbPointerUp:Re(()=>m.current=0,"onThumbPointerUp"),onThumbPointerDown:Re(x=>m.current=x,"onThumbPointerDown")};function E(x,C){return xb(x,m.current,h,C)}return Re(E,"getScrollPosition"),i==="horizontal"?y.jsx(oT,{...b,ref:o,onThumbPositionChange:()=>{if(f.viewport&&d.current){const x=f.viewport.scrollLeft,C=Zf(x,h,f.dir);d.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:x=>{f.viewport&&(f.viewport.scrollLeft=x)},onDragScroll:x=>{f.viewport&&(f.viewport.scrollLeft=E(x,f.dir))}}):i==="vertical"?y.jsx(cT,{...b,ref:o,onThumbPositionChange:()=>{if(f.viewport&&d.current){const x=f.viewport.scrollTop,C=Zf(x,h);d.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:x=>{f.viewport&&(f.viewport.scrollTop=x)},onDragScroll:x=>{f.viewport&&(f.viewport.scrollTop=E(x))}}):null},"ScrollAreaScrollbarVisible")),oT=v.forwardRef(Re(function(r,o){const{sizes:i,onSizesChange:s,...f}=r,d=$t(Pn,r.__scopeScrollArea),[m,h]=v.useState(),p=v.useRef(null),S=He(o,p,d.onScrollbarXChange);return v.useEffect(()=>{p.current&&h(getComputedStyle(p.current))},[p]),y.jsx(bb,{"data-orientation":"horizontal",...f,ref:S,sizes:i,style:{bottom:0,left:d.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:d.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":xi(i)+"px",...r.style},onThumbPointerDown:b=>r.onThumbPointerDown(b.x),onDragScroll:b=>r.onDragScroll(b.x),onWheelScroll:(b,E)=>{if(d.viewport){const x=d.viewport.scrollLeft+b.deltaX;r.onWheelScroll(x),Rd(x,E)&&b.preventDefault()}},onResize:()=>{p.current&&d.viewport&&m&&s({content:d.viewport.scrollWidth,viewport:d.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:gi(m.paddingLeft),paddingEnd:gi(m.paddingRight)}})}})},"ScrollAreaScrollbarX")),cT=v.forwardRef(Re(function(r,o){const{sizes:i,onSizesChange:s,...f}=r,d=$t(Pn,r.__scopeScrollArea),[m,h]=v.useState(),p=v.useRef(null),S=He(o,p,d.onScrollbarYChange);return v.useEffect(()=>{p.current&&h(getComputedStyle(p.current))},[p]),y.jsx(bb,{"data-orientation":"vertical",...f,ref:S,sizes:i,style:{top:0,right:d.dir==="ltr"?0:void 0,left:d.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":xi(i)+"px",...r.style},onThumbPointerDown:b=>r.onThumbPointerDown(b.y),onDragScroll:b=>r.onDragScroll(b.y),onWheelScroll:(b,E)=>{if(d.viewport){const x=d.viewport.scrollTop+b.deltaY;r.onWheelScroll(x),Rd(x,E)&&b.preventDefault()}},onResize:()=>{p.current&&d.viewport&&m&&s({content:d.viewport.scrollHeight,viewport:d.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:gi(m.paddingTop),paddingEnd:gi(m.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[sT,yb]=gb(Pn),bb=v.forwardRef(Re(function(r,o){const{__scopeScrollArea:i,sizes:s,hasThumb:f,onThumbChange:d,onThumbPointerUp:m,onThumbPointerDown:h,onThumbPositionChange:p,onDragScroll:S,onWheelScroll:b,onResize:E,...x}=r,C=$t(Pn,i),[A,_]=v.useState(null),R=He(o,_),z=v.useRef(null),T=v.useRef(""),j=C.viewport,P=s.content-s.viewport,q=vt(b),O=vt(p),B=wi(E,10);function Z(X){if(z.current){const Y=X.clientX-z.current.left,$=X.clientY-z.current.top;S({x:Y,y:$})}}return Re(Z,"handleDragScroll"),v.useEffect(()=>{const X=Re(Y=>{const $=Y.target;(A==null?void 0:A.contains($))&&q(Y,P)},"handleWheel");return document.addEventListener("wheel",X,{passive:!1}),()=>document.removeEventListener("wheel",X,{passive:!1})},[j,A,P,q]),v.useEffect(O,[s,O]),na(A,B),na(C.content,B),y.jsx(sT,{scope:i,scrollbar:A,hasThumb:f,onThumbChange:vt(d),onThumbPointerUp:vt(m),onThumbPositionChange:O,onThumbPointerDown:vt(h),children:y.jsx(Be.div,{...x,ref:R,style:{position:"absolute",...x.style},onPointerDown:Al(r.onPointerDown,X=>{X.button===0&&(X.target.setPointerCapture(X.pointerId),z.current=A.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),Z(X))}),onPointerMove:Al(r.onPointerMove,Z),onPointerUp:Al(r.onPointerUp,X=>{const Y=X.target;Y.hasPointerCapture(X.pointerId)&&Y.releasePointerCapture(X.pointerId),document.body.style.webkitUserSelect=T.current,C.viewport&&(C.viewport.style.scrollBehavior=""),z.current=null})})})},"ScrollAreaScrollbarImpl")),Pf="ScrollAreaThumb",uT=v.forwardRef(Re(function(r,o){const{forceMount:i,...s}=r,f=yb(Pf,r.__scopeScrollArea);return y.jsx(Tc,{present:i||f.hasThumb,children:y.jsx(fT,{ref:o,...s})})},"ScrollAreaThumb")),fT=v.forwardRef(Re(function(r,o){const{__scopeScrollArea:i,style:s,...f}=r,d=$t(Pf,i),m=yb(Pf,i),{onThumbPositionChange:h}=m,p=He(o,m.onThumbChange),S=v.useRef(void 0),b=wi(()=>{S.current&&(S.current(),S.current=void 0)},100);return v.useEffect(()=>{const E=d.viewport;if(E){const x=Re(()=>{if(b(),!S.current){const C=hT(E,h);S.current=C,h()}},"handleScroll");return h(),E.addEventListener("scroll",x),()=>E.removeEventListener("scroll",x)}},[d.viewport,b,h]),y.jsx(Be.div,{"data-state":m.hasThumb?"visible":"hidden",...f,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Al(r.onPointerDownCapture,E=>{const C=E.target.getBoundingClientRect(),A=E.clientX-C.left,_=E.clientY-C.top;m.onThumbPointerDown({x:A,y:_})}),onPointerUp:Al(r.onPointerUp,m.onThumbPointerUp)})},"ScrollAreaThumbImpl")),Sb="ScrollAreaCorner",dT=v.forwardRef(Re(function(r,o){const i=$t(Sb,r.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?y.jsx(mT,{...r,ref:o}):null},"ScrollAreaCorner")),mT=v.forwardRef(Re(function(r,o){const{__scopeScrollArea:i,...s}=r,f=$t(Sb,i),[d,m]=v.useState(0),[h,p]=v.useState(0),S=!!(d&&h),{onCornerWidthChange:b,onCornerHeightChange:E}=f;return na(f.scrollbarX,()=>{var C;const x=((C=f.scrollbarX)==null?void 0:C.offsetHeight)||0;f.onCornerHeightChange(x),p(x)}),na(f.scrollbarY,()=>{var C;const x=((C=f.scrollbarY)==null?void 0:C.offsetWidth)||0;f.onCornerWidthChange(x),m(x)}),v.useEffect(()=>()=>{b(0),E(0)},[b,E]),S?y.jsx(Be.div,{...s,ref:o,style:{width:d,height:h,position:"absolute",right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null},"ScrollAreaCornerImpl"));function gi(l){return l?parseInt(l,10):0}Re(gi,"toInt");function Cd(l,r){const o=l/r;return isNaN(o)?0:o}Re(Cd,"getThumbRatio");function xi(l){const r=Cd(l.viewport,l.content),o=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,i=(l.scrollbar.size-o)*r;return Math.max(i,18)}Re(xi,"getThumbSize");function xb(l,r,o,i="ltr"){const s=xi(o),f=s/2,d=r||f,m=s-d,h=o.scrollbar.paddingStart+d,p=o.scrollbar.size-o.scrollbar.paddingEnd-m,S=o.content-o.viewport,b=i==="ltr"?[0,S]:[S*-1,0];return Td([h,p],b)(l)}Re(xb,"getScrollPositionFromPointer");function Zf(l,r,o="ltr"){const i=xi(r),s=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-s,d=r.content-r.viewport,m=f-i,h=o==="ltr"?[0,d]:[d*-1,0],p=Xf(l,h);return Td([0,d],[0,m])(p)}Re(Zf,"getThumbOffsetFromScroll");function Td(l,r){return o=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const i=(r[1]-r[0])/(l[1]-l[0]);return r[0]+i*(o-l[0])}}Re(Td,"linearScale");function Rd(l,r){return l>0&&l<r}Re(Rd,"isScrollingWithinScrollbarBounds");var hT=Re((l,r=()=>{})=>{let o={left:l.scrollLeft,top:l.scrollTop},i=0;return Re((function s(){const f={left:l.scrollLeft,top:l.scrollTop},d=o.left!==f.left,m=o.top!==f.top;(d||m)&&r(),o=f,i=window.requestAnimationFrame(s)}),"loop")(),()=>window.cancelAnimationFrame(i)},"addUnlinkedScrollListener");function wi(l,r){const o=vt(l),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(o,r)},[o,r])}Re(wi,"useDebounceCallback");function na(l,r){const o=vt(r);lt(()=>{let i=0;if(l){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(o)});return s.observe(l),()=>{window.cancelAnimationFrame(i),s.unobserve(l)}}},[l,o])}Re(na,"useResizeObserver");var wb=tT,gT=lT,pT=dT;const pi=v.forwardRef(({className:l,children:r,viewportClassName:o,viewportRef:i,viewportProps:s,scrollbars:f="vertical",type:d="auto",...m},h)=>y.jsxs(wb,{ref:h,"data-slot":"scroll-area",type:d,className:Oe("relative overflow-hidden",l),...m,children:[y.jsx(gT,{ref:i,"data-slot":"scroll-area-viewport",className:Oe("size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-2 focus-visible:ring-[var(--ring)]/45",f==="vertical"&&"[&>div]:!block [&>div]:min-w-0 [&>div]:w-full",o),...s,children:r}),f!=="horizontal"&&y.jsx(Kf,{orientation:"vertical"}),f!=="vertical"&&y.jsx(Kf,{orientation:"horizontal"}),y.jsx(pT,{"data-slot":"scroll-area-corner"})]}));pi.displayName=wb.displayName;const Kf=v.forwardRef(({className:l,orientation:r="vertical",style:o,...i},s)=>y.jsx(pb,{ref:s,"data-slot":"scroll-area-scrollbar",orientation:r,className:Oe("group flex touch-none select-none p-px transition-colors",r==="vertical"&&"h-full w-2",r==="horizontal"&&"h-2 flex-col",l),style:{...r==="vertical"?{right:2}:{bottom:2},...o},...i,children:y.jsx(uT,{"data-slot":"scroll-area-thumb",className:Oe("relative flex-1 rounded-full bg-[var(--scrollbar-thumb)] transition-colors group-hover:bg-[var(--scrollbar-thumb-hover)] active:bg-[var(--scrollbar-thumb-active)]",r==="vertical"?"min-h-8 w-full":"h-full min-w-8")})}));Kf.displayName=pb.displayName;function vT(l){const r=v.useRef({value:l,previous:l});return v.useMemo(()=>(r.current.value!==l&&(r.current.previous=r.current.value,r.current.value=l),r.current.previous),[l])}var Eb=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"}),yT="VisuallyHidden",bT=v.forwardRef((l,r)=>y.jsx(Be.span,{...l,ref:r,style:{...Eb,...l.style}}));bT.displayName=yT;var ST=[" ","Enter","ArrowUp","ArrowDown"],xT=[" ","Enter"],la="Select",[Rc,Nc,wT]=OA(la),[oa]=or(la,[wT,F0]),_c=F0(),[ET,Ml]=oa(la),[AT,CT]=oa(la),TT="SelectProvider";function Ab(l){const{__scopeSelect:r,children:o,open:i,defaultOpen:s,onOpenChange:f,value:d,defaultValue:m,onValueChange:h,dir:p,name:S,autoComplete:b,disabled:E,required:x,form:C,internal_do_not_use_render:A}=l,_=_c(r),[R,z]=v.useState(null),[T,j]=v.useState(null),[P,q]=v.useState(!1),O=H0(p),[B,Z]=Bf({prop:i,defaultProp:s??!1,onChange:f,caller:la}),[X,Y]=Bf({prop:d,defaultProp:m,onChange:h,caller:la}),$=v.useRef(null),te=v.useRef(X);v.useEffect(()=>{const Q=C?R==null?void 0:R.ownerDocument.getElementById(C):R==null?void 0:R.form;if(Q instanceof HTMLFormElement){const ne=()=>Y(te.current);return Q.addEventListener("reset",ne),()=>Q.removeEventListener("reset",ne)}},[C,R,Y]);const le=R?!!C||!!R.closest("form"):!0,[pe,U]=v.useState(new Set),F=Wa(),ee=Array.from(pe).map(Q=>Q.props.value).join(";"),de=v.useCallback(Q=>{U(ne=>new Set(ne).add(Q))},[]),W=v.useCallback(Q=>{U(ne=>{const re=new Set(ne);return re.delete(Q),re})},[]),M={required:x,trigger:R,onTriggerChange:z,valueNode:T,onValueNodeChange:j,valueNodeHasChildren:P,onValueNodeHasChildrenChange:q,contentId:F,value:X,onValueChange:Y,open:B,onOpenChange:Z,dir:O,triggerPointerDownPosRef:$,disabled:E,name:S,autoComplete:b,form:C,nativeOptions:pe,nativeSelectKey:ee,isFormControl:le};return y.jsx(PC,{..._,children:y.jsx(ET,{scope:r,...M,children:y.jsx(Rc.Provider,{scope:r,children:y.jsx(AT,{scope:r,onNativeOptionAdd:de,onNativeOptionRemove:W,children:qT(A)?A(M):o})})})})}Ab.displayName=TT;var Cb=l=>{const{__scopeSelect:r,children:o,...i}=l;return y.jsx(Ab,{__scopeSelect:r,...i,internal_do_not_use_render:({isFormControl:s})=>y.jsxs(y.Fragment,{children:[o,s?y.jsx(Qb,{__scopeSelect:r}):null]})})};Cb.displayName=la;var Tb="SelectTrigger",Nd=v.forwardRef((l,r)=>{const{__scopeSelect:o,disabled:i=!1,...s}=l,f=_c(o),d=Ml(Tb,o),m=d.disabled||i,h=He(r,d.onTriggerChange),p=Nc(o),S=v.useRef("touch"),[b,E,x]=Pb(A=>{const _=p().filter(T=>!T.disabled),R=_.find(T=>T.value===d.value),z=Zb(_,A,R);z!==void 0&&d.onValueChange(z.value)}),C=A=>{m||(d.onOpenChange(!0),x()),A&&(d.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(ZC,{asChild:!0,...f,children:y.jsx(Be.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Mc(d.value)?"":void 0,...s,ref:h,onClick:Ge(s.onClick,A=>{A.currentTarget.focus(),S.current!=="mouse"&&C(A)}),onPointerDown:Ge(s.onPointerDown,A=>{S.current=A.pointerType;const _=A.target;_.hasPointerCapture(A.pointerId)&&_.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(C(A),A.preventDefault())}),onKeyDown:Ge(s.onKeyDown,A=>{const _=b.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&E(A.key),!(_&&A.key===" ")&&ST.includes(A.key)&&(C(),A.preventDefault())})})})});Nd.displayName=Tb;var Rb="SelectValue",_d=v.forwardRef((l,r)=>{const{__scopeSelect:o,className:i,style:s,children:f,placeholder:d="",...m}=l,h=Ml(Rb,o),{onValueNodeHasChildrenChange:p}=h,S=f!==void 0,b=He(r,h.onValueNodeChange);lt(()=>{p(S)},[p,S]);const E=Mc(h.value);return y.jsx(Be.span,{...m,asChild:E?!1:m.asChild,ref:b,style:{pointerEvents:"none"},children:y.jsx(v.Fragment,{children:E?d:f},E?"placeholder":"value")})});_d.displayName=Rb;var RT="SelectIcon",Nb=v.forwardRef((l,r)=>{const{__scopeSelect:o,children:i,...s}=l;return y.jsx(Be.span,{"aria-hidden":!0,...s,ref:r,children:i||"▼"})});Nb.displayName=RT;var _b="SelectPortal",[NT,_T]=oa(_b,{forceMount:void 0}),Mb=l=>{const{__scopeSelect:r,forceMount:o,...i}=l;return y.jsx(NT,{scope:l.__scopeSelect,forceMount:o,children:y.jsx(od,{asChild:!0,...i})})};Mb.displayName=_b;var Rl="SelectContent",Md=v.forwardRef((l,r)=>{const o=_T(Rl,l.__scopeSelect),{forceMount:i=o.forceMount,...s}=l,f=Ml(Rl,l.__scopeSelect),[d,m]=v.useState();return lt(()=>{m(new DocumentFragment)},[]),y.jsx(bi,{present:i||f.open,children:({present:h})=>h?y.jsx(zb,{...s,ref:r}):y.jsx(Ob,{...s,fragment:d})})});Md.displayName=Rl;var Ob=v.forwardRef((l,r)=>{const{__scopeSelect:o,children:i,fragment:s}=l;return s?cr.createPortal(y.jsx(Db,{scope:o,children:y.jsx(Rc.Slot,{scope:o,children:y.jsx("div",{ref:r,children:i})})}),s):null});Ob.displayName="SelectContentFragment";var en=10,[Db,Ol]=oa(Rl),MT="SelectContentImpl",OT=lr("SelectContent.RemoveScroll"),zb=v.forwardRef((l,r)=>{const{__scopeSelect:o}=l,{position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:d,side:m,sideOffset:h,align:p,alignOffset:S,arrowPadding:b,collisionBoundary:E,collisionPadding:x,sticky:C,hideWhenDetached:A,avoidCollisions:_,...R}=l,z=Ml(Rl,o),[T,j]=v.useState(null),[P,q]=v.useState(null),O=He(r,j),[B,Z]=v.useState(null),[X,Y]=v.useState(null),$=Nc(o),[te,le]=v.useState(!1),pe=v.useRef(!1);v.useEffect(()=>{if(T)return Dy(T)},[T]),Ey();const U=v.useCallback(ae=>{const[ge,...fe]=$().map(Ae=>Ae.ref.current),[we]=fe.slice(-1),Se=document.activeElement;for(const Ae of ae)if(Ae===Se||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===ge&&P&&(P.scrollTop=0),Ae===we&&P&&(P.scrollTop=P.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Se))return},[$,P]),F=v.useCallback(()=>U([B,T]),[U,B,T]);v.useEffect(()=>{te&&F()},[te,F]);const{onOpenChange:ee,triggerPointerDownPosRef:de}=z;v.useEffect(()=>{if(T){let ae={x:0,y:0};const ge=we=>{var Se,Ae;ae={x:Math.abs(Math.round(we.pageX)-(((Se=de.current)==null?void 0:Se.x)??0)),y:Math.abs(Math.round(we.pageY)-(((Ae=de.current)==null?void 0:Ae.y)??0))}},fe=we=>{ae.x<=10&&ae.y<=10?we.preventDefault():we.composedPath().includes(T)||ee(!1),document.removeEventListener("pointermove",ge),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",fe,{capture:!0})}}},[T,ee,de]),v.useEffect(()=>{const ae=()=>ee(!1);return window.addEventListener("blur",ae),window.addEventListener("resize",ae),()=>{window.removeEventListener("blur",ae),window.removeEventListener("resize",ae)}},[ee]);const[W,M]=Pb(ae=>{const ge=$().filter(Se=>!Se.disabled),fe=ge.find(Se=>Se.ref.current===document.activeElement),we=Zb(ge,ae,fe);we&&setTimeout(()=>{var Se;return(Se=we.ref.current)==null?void 0:Se.focus()})}),Q=v.useCallback((ae,ge,fe)=>{const we=!pe.current&&!fe;(z.value!==void 0&&z.value===ge||we)&&(Z(ae),we&&(pe.current=!0))},[z.value]),ne=v.useCallback(()=>T==null?void 0:T.focus(),[T]),re=v.useCallback((ae,ge,fe)=>{const we=!pe.current&&!fe;(z.value!==void 0&&z.value===ge||we)&&Y(ae)},[z.value]),ie=i==="popper"?$f:jb,ue=ie===$f?{side:m,sideOffset:h,align:p,alignOffset:S,arrowPadding:b,collisionBoundary:E,collisionPadding:x,sticky:C,hideWhenDetached:A,avoidCollisions:_}:{};return y.jsx(Db,{scope:o,content:T,viewport:P,onViewportChange:q,itemRefCallback:Q,selectedItem:B,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:F,selectedItemText:X,position:i,isPositioned:te,searchRef:W,children:y.jsx(cd,{as:OT,allowPinchZoom:!0,children:y.jsx(id,{asChild:!0,trapped:z.open,onMountAutoFocus:ae=>{ae.preventDefault()},onUnmountAutoFocus:Ge(s,ae=>{var ge;(ge=z.trigger)==null||ge.focus({preventScroll:!0}),ae.preventDefault()}),children:y.jsx(rd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:ae=>ae.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:y.jsx(ie,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:ae=>ae.preventDefault(),...R,...ue,onPlaced:()=>le(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:Ge(R.onKeyDown,ae=>{const ge=ae.ctrlKey||ae.altKey||ae.metaKey;if(ae.key==="Tab"&&ae.preventDefault(),!ge&&ae.key.length===1&&M(ae.key),["ArrowUp","ArrowDown","Home","End"].includes(ae.key)){let we=$().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);if(["ArrowUp","End"].includes(ae.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(ae.key)){const Se=ae.target,Ae=we.indexOf(Se);we=we.slice(Ae+1)}setTimeout(()=>U(we)),ae.preventDefault()}})})})})})})});zb.displayName=MT;var DT="SelectItemAlignedPosition",jb=v.forwardRef((l,r)=>{const{__scopeSelect:o,onPlaced:i,...s}=l,f=Ml(Rl,o),d=Ol(Rl,o),[m,h]=v.useState(null),[p,S]=v.useState(null),b=He(r,S),E=Nc(o),x=v.useRef(!1),C=v.useRef(!0),{viewport:A,selectedItem:_,selectedItemText:R,focusSelectedItem:z}=d,T=v.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&p&&A&&_&&R){const O=f.trigger.getBoundingClientRect(),B=p.getBoundingClientRect(),Z=f.valueNode.getBoundingClientRect(),X=R.getBoundingClientRect();if(f.dir!=="rtl"){const Se=X.left-B.left,Ae=Z.left-Se,st=O.left-Ae,Pe=O.width+st,an=Math.max(Pe,B.width),yn=window.innerWidth-en,Dl=Xf(Ae,[en,Math.max(en,yn-an)]);m.style.minWidth=Pe+"px",m.style.left=Dl+"px"}else{const Se=B.right-X.right,Ae=window.innerWidth-Z.right-Se,st=window.innerWidth-O.right-Ae,Pe=O.width+st,an=Math.max(Pe,B.width),yn=window.innerWidth-en,Dl=Xf(Ae,[en,Math.max(en,yn-an)]);m.style.minWidth=Pe+"px",m.style.right=Dl+"px"}const Y=E(),$=window.innerHeight-en*2,te=A.scrollHeight,le=window.getComputedStyle(p),pe=parseInt(le.borderTopWidth,10),U=parseInt(le.paddingTop,10),F=parseInt(le.borderBottomWidth,10),ee=parseInt(le.paddingBottom,10),de=pe+U+te+ee+F,W=Math.min(_.offsetHeight*5,de),M=window.getComputedStyle(A),Q=parseInt(M.paddingTop,10),ne=parseInt(M.paddingBottom,10),re=O.top+O.height/2-en,ie=$-re,ue=_.offsetHeight/2,ae=_.offsetTop+ue,ge=pe+U+ae,fe=de-ge;if(ge<=re){const Se=Y.length>0&&_===Y[Y.length-1].ref.current;m.style.bottom="0px";const Ae=p.clientHeight-A.offsetTop-A.offsetHeight,st=Math.max(ie,ue+(Se?ne:0)+Ae+F),Pe=ge+st;m.style.height=Pe+"px"}else{const Se=Y.length>0&&_===Y[0].ref.current;m.style.top="0px";const st=Math.max(re,pe+A.offsetTop+(Se?Q:0)+ue)+fe;m.style.height=st+"px",A.scrollTop=ge-re+A.offsetTop}m.style.margin=`${en}px 0`,m.style.minHeight=W+"px",m.style.maxHeight=$+"px",i==null||i(),requestAnimationFrame(()=>x.current=!0)}},[E,f.trigger,f.valueNode,m,p,A,_,R,f.dir,i]);lt(()=>T(),[T]);const[j,P]=v.useState();lt(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);const q=v.useCallback(O=>{O&&C.current===!0&&(T(),z==null||z(),C.current=!1)},[T,z]);return y.jsx(jT,{scope:o,contentWrapper:m,shouldExpandOnScrollRef:x,onScrollButtonChange:q,children:y.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:y.jsx(Be.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});jb.displayName=DT;var zT="SelectPopperPosition",$f=v.forwardRef((l,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:s=en,...f}=l,d=_c(o);return y.jsx(KC,{...d,...f,ref:r,align:i,collisionPadding:s,style:{boxSizing:"border-box",...f.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)"}})});$f.displayName=zT;var[jT,Od]=oa(Rl,{}),Jf="SelectViewport",Bb=v.forwardRef((l,r)=>{const{__scopeSelect:o,nonce:i,...s}=l,f=Ol(Jf,o),d=Od(Jf,o),m=He(r,f.onViewportChange),h=v.useRef(0);return y.jsxs(y.Fragment,{children:[y.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:i}),y.jsx(Rc.Slot,{scope:o,children:y.jsx(Be.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Ge(s.onScroll,p=>{const S=p.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:E}=d;if(E!=null&&E.current&&b){const x=Math.abs(h.current-S.scrollTop);if(x>0){const C=window.innerHeight-en*2,A=parseFloat(b.style.minHeight),_=parseFloat(b.style.height),R=Math.max(A,_);if(R<C){const z=R+x,T=Math.min(C,z),j=z-T;b.style.height=T+"px",b.style.bottom==="0px"&&(S.scrollTop=j>0?j:0,b.style.justifyContent="flex-end")}}}h.current=S.scrollTop})})})]})});Bb.displayName=Jf;var Lb="SelectGroup",[BT,LT]=oa(Lb),Dd=v.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,s=Wa();return y.jsx(BT,{scope:o,id:s,children:y.jsx(Be.div,{role:"group","aria-labelledby":s,...i,ref:r})})});Dd.displayName=Lb;var Ub="SelectLabel",zd=v.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,s=LT(Ub,o);return y.jsx(Be.div,{id:s.id,...i,ref:r})});zd.displayName=Ub;var mc="SelectItem",[UT,Hb]=oa(mc),jd=v.forwardRef((l,r)=>{const{__scopeSelect:o,value:i,disabled:s=!1,textValue:f,...d}=l,m=Ml(mc,o),h=Ol(mc,o),p=m.value===i,[S,b]=v.useState(f??""),[E,x]=v.useState(!1),C=vt(T=>{var j;return(j=h.itemRefCallback)==null?void 0:j.call(h,T,i,s)}),A=He(r,C),_=Wa(),R=v.useRef("touch"),z=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};return y.jsx(UT,{scope:o,value:i,disabled:s,textId:_,isSelected:p,onItemTextChange:v.useCallback(T=>{b(j=>j||((T==null?void 0:T.textContent)??"").trim())},[]),children:y.jsx(Rc.ItemSlot,{scope:o,value:i,disabled:s,textValue:S,children:y.jsx(Be.div,{role:"option","aria-labelledby":_,"data-highlighted":E?"":void 0,"aria-selected":p&&E,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...d,ref:A,onFocus:Ge(d.onFocus,()=>x(!0)),onBlur:Ge(d.onBlur,()=>x(!1)),onClick:Ge(d.onClick,()=>{R.current!=="mouse"&&z()}),onPointerUp:Ge(d.onPointerUp,()=>{R.current==="mouse"&&z()}),onPointerDown:Ge(d.onPointerDown,T=>{R.current=T.pointerType}),onPointerMove:Ge(d.onPointerMove,T=>{var j;R.current=T.pointerType,s?(j=h.onItemLeave)==null||j.call(h):R.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ge(d.onPointerLeave,T=>{var j;T.currentTarget===document.activeElement&&((j=h.onItemLeave)==null||j.call(h))}),onKeyDown:Ge(d.onKeyDown,T=>{var P;s||T.target!==T.currentTarget||((P=h.searchRef)==null?void 0:P.current)!==""&&T.key===" "||(xT.includes(T.key)&&z(),T.key===" "&&T.preventDefault())})})})})});jd.displayName=mc;var fi="SelectItemText",kb=v.forwardRef((l,r)=>{const{__scopeSelect:o,className:i,style:s,...f}=l,d=Ml(fi,o),m=Ol(fi,o),h=Hb(fi,o),p=CT(fi,o),[S,b]=v.useState(null),E=vt(z=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,z,h.value,h.disabled)}),x=He(r,b,h.onItemTextChange,E),C=S==null?void 0:S.textContent,A=v.useMemo(()=>y.jsx("option",{value:h.value,disabled:h.disabled,children:C},h.value),[h.disabled,h.value,C]),{onNativeOptionAdd:_,onNativeOptionRemove:R}=p;return lt(()=>(_(A),()=>R(A)),[_,R,A]),y.jsxs(y.Fragment,{children:[y.jsx(Be.span,{id:h.textId,...f,ref:x}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!Mc(d.value)?cr.createPortal(f.children,d.valueNode):null]})});kb.displayName=fi;var qb="SelectItemIndicator",Vb=v.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l;return Hb(qb,o).isSelected?y.jsx(Be.span,{"aria-hidden":!0,...i,ref:r}):null});Vb.displayName=qb;var If="SelectScrollUpButton",Bd=v.forwardRef((l,r)=>{const o=Ol(If,l.__scopeSelect),i=Od(If,l.__scopeSelect),[s,f]=v.useState(!1),d=He(r,i.onScrollButtonChange);return lt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=h.scrollTop>0;f(p)};const h=o.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),s?y.jsx(Yb,{...l,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=o;m&&h&&(m.scrollTop=m.scrollTop-h.offsetHeight)}}):null});Bd.displayName=If;var Ff="SelectScrollDownButton",Ld=v.forwardRef((l,r)=>{const o=Ol(Ff,l.__scopeSelect),i=Od(Ff,l.__scopeSelect),[s,f]=v.useState(!1),d=He(r,i.onScrollButtonChange);return lt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=h.scrollHeight-h.clientHeight,S=Math.ceil(h.scrollTop)<p;f(S)};const h=o.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),s?y.jsx(Yb,{...l,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=o;m&&h&&(m.scrollTop=m.scrollTop+h.offsetHeight)}}):null});Ld.displayName=Ff;var Yb=v.forwardRef((l,r)=>{const{__scopeSelect:o,onAutoScroll:i,...s}=l,f=Ol("SelectScrollButton",o),d=v.useRef(null),m=Nc(o),h=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>h(),[h]),lt(()=>{var S;const p=m().find(b=>b.ref.current===document.activeElement);(S=p==null?void 0:p.ref.current)==null||S.scrollIntoView({block:"nearest"})},[m]),y.jsx(Be.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:Ge(s.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:Ge(s.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:Ge(s.onPointerLeave,()=>{h()})})}),HT="SelectSeparator",Ud=v.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l;return y.jsx(Be.div,{"aria-hidden":!0,...i,ref:r})});Ud.displayName=HT;var Gb="SelectArrow",kT=v.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,s=_c(o);return Ol(Gb,o).position==="popper"?y.jsx($C,{...s,...i,ref:r}):null});kT.displayName=Gb;var Xb="SelectBubbleInput",Qb=v.forwardRef(({__scopeSelect:l,...r},o)=>{const i=Ml(Xb,l),{value:s,onValueChange:f,required:d,disabled:m,name:h,autoComplete:p,form:S}=i,{nativeOptions:b,nativeSelectKey:E}=i,x=v.useRef(null),C=He(o,x),A=s??"",_=vT(A),R=Array.from(b).some(z=>(z.props.value??"")==="");return v.useEffect(()=>{const z=x.current;if(!z)return;const T=window.HTMLSelectElement.prototype,P=Object.getOwnPropertyDescriptor(T,"value").set;if(_!==A&&P){const q=new Event("change",{bubbles:!0});P.call(z,A),z.dispatchEvent(q)}},[_,A]),y.jsxs(Be.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:h,autoComplete:p,disabled:m,form:S,onChange:z=>f(z.target.value),...r,style:{...Eb,...r.style},ref:C,defaultValue:A,children:[Mc(s)&&!R?y.jsx("option",{value:""}):null,Array.from(b)]},E)});Qb.displayName=Xb;function qT(l){return typeof l=="function"}function Mc(l){return l===""||l===void 0}function Pb(l){const r=vt(l),o=v.useRef(""),i=v.useRef(0),s=v.useCallback(d=>{const m=o.current+d;r(m),(function h(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(m)},[r]),f=v.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,s,f]}function Zb(l,r,o){const s=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,f=o?l.indexOf(o):-1;let d=VT(l,Math.max(f,0));s.length===1&&(d=d.filter(p=>p!==o));const h=d.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==o?h:void 0}function VT(l,r){return l.map((o,i)=>l[(r+i)%l.length])}function YT(l){return y.jsx(Cb,{"data-slot":"select",...l})}const GT=v.forwardRef(({className:l,...r},o)=>y.jsx(Dd,{ref:o,"data-slot":"select-group",className:Oe("scroll-my-1 p-1",l),...r}));GT.displayName=Dd.displayName;const Kb=v.forwardRef((l,r)=>y.jsx(_d,{ref:r,"data-slot":"select-value",...l}));Kb.displayName=_d.displayName;const $b=v.forwardRef(({className:l,size:r="default",children:o,...i},s)=>y.jsxs(Nd,{ref:s,"data-slot":"select-trigger","data-size":r,className:Oe("flex w-full min-w-0 items-center justify-between gap-1.5 whitespace-nowrap rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&>span]:min-w-0 [&>span]:truncate [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...i,children:[o,y.jsx(Nb,{asChild:!0,children:y.jsx(O0,{"aria-hidden":"true",className:"pointer-events-none size-4 shrink-0 text-muted-foreground"})})]}));$b.displayName=Nd.displayName;const Jb=v.forwardRef(({className:l,...r},o)=>y.jsx(Bd,{ref:o,"data-slot":"select-scroll-up-button",className:Oe("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",l),...r,children:y.jsx(cA,{"aria-hidden":"true"})}));Jb.displayName=Bd.displayName;const Ib=v.forwardRef(({className:l,...r},o)=>y.jsx(Ld,{ref:o,"data-slot":"select-scroll-down-button",className:Oe("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",l),...r,children:y.jsx(O0,{"aria-hidden":"true"})}));Ib.displayName=Ld.displayName;const Fb=v.forwardRef(({className:l,children:r,position:o="popper",align:i="center",sideOffset:s=4,collisionPadding:f=8,...d},m)=>y.jsx(Mb,{children:y.jsxs(Md,{ref:m,"data-slot":"select-content","data-align-trigger":o==="item-aligned",position:o,align:i,sideOffset:s,collisionPadding:f,className:Oe("cn-menu-translucent relative z-50 max-h-[var(--radix-select-content-available-height)] min-w-36 origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),...d,children:[y.jsx(Jb,{}),y.jsx(Bb,{"data-position":o,className:Oe("p-1",o==="popper"&&"min-w-[var(--radix-select-trigger-width)]"),children:r}),y.jsx(Ib,{})]})}));Fb.displayName=Md.displayName;const XT=v.forwardRef(({className:l,...r},o)=>y.jsx(zd,{ref:o,"data-slot":"select-label",className:Oe("px-1.5 py-1 text-xs text-muted-foreground",l),...r}));XT.displayName=zd.displayName;const ic=v.forwardRef(({className:l,children:r,...o},i)=>y.jsxs(jd,{ref:i,"data-slot":"select-item",className:Oe("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...o,children:[y.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:y.jsx(Vb,{children:y.jsx(kf,{"aria-hidden":"true",className:"pointer-events-none"})})}),y.jsx(kb,{children:r})]}));ic.displayName=jd.displayName;const QT=v.forwardRef(({className:l,...r},o)=>y.jsx(Ud,{ref:o,"data-slot":"select-separator",className:Oe("pointer-events-none -mx-1 my-1 h-px bg-border",l),...r}));QT.displayName=Ud.displayName;var PT=Object.defineProperty,dr=(l,r)=>PT(l,"name",{value:r,configurable:!0}),Wb=!!(typeof window<"u"&&window.document&&window.document.createElement);function Hd(l,r,{checkForDefaultPrevented:o=!0}={}){return dr(function(s){if(l==null||l(s),o===!1||!s||!s.defaultPrevented)return r==null?void 0:r(s)},"handleEvent")}dr(Hd,"composeEventHandlers");function ZT(l){var r;if(!Wb)throw new Error("Cannot access window outside of the DOM");return((r=l==null?void 0:l.ownerDocument)==null?void 0:r.defaultView)??window}dr(ZT,"getOwnerWindow");function Wf(l){if(!Wb)throw new Error("Cannot access document outside of the DOM");return(l==null?void 0:l.ownerDocument)??document}dr(Wf,"getOwnerDocument");function e1(l,r=!1){const{activeElement:o}=Wf(l);if(!(o!=null&&o.nodeName))return null;if(t1(o)&&o.contentDocument)return e1(o.contentDocument.body,r);if(r){const i=o.getAttribute("aria-activedescendant");if(i){const s=Wf(o).getElementById(i);if(s)return s}}return o}dr(e1,"getActiveElement");function t1(l){return l.tagName==="IFRAME"}dr(t1,"isFrame");var KT=Object.defineProperty,kd=(l,r)=>KT(l,"name",{value:r,configurable:!0});function ed(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}kd(ed,"setRef");function n1(...l){return r=>{let o=!1;const i=l.map(s=>{const f=ed(s,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let s=0;s<i.length;s++){const f=i[s];typeof f=="function"?f():ed(l[s],null)}}}}kd(n1,"composeRefs");function Oc(...l){return v.useCallback(n1(...l),l)}kd(Oc,"useComposedRefs");var $T=Object.defineProperty,Kt=(l,r)=>$T(l,"name",{value:r,configurable:!0});function JT(l,r){const o=v.createContext(r);o.displayName=l+"Context";const i=Kt(f=>{const{children:d,...m}=f,h=v.useMemo(()=>m,Object.values(m));return y.jsx(o.Provider,{value:h,children:d})},"Provider");i.displayName=l+"Provider";function s(f,d={}){const{optional:m=!1}=d,h=v.useContext(o);if(h)return h;if(r!==void 0)return r;if(!m)throw new Error(`\`${f}\` must be used within \`${l}\``)}return Kt(s,"useContext"),[i,s]}Kt(JT,"createContext");function l1(l,r=[]){let o=[];function i(f,d){const m=v.createContext(d);m.displayName=f+"Context";const h=o.length;o=[...o,d];const p=Kt(b=>{var R;const{scope:E,children:x,...C}=b,A=((R=E==null?void 0:E[l])==null?void 0:R[h])||m,_=v.useMemo(()=>C,Object.values(C));return y.jsx(A.Provider,{value:_,children:x})},"Provider");p.displayName=f+"Provider";function S(b,E,x={}){var R;const{optional:C=!1}=x,A=((R=E==null?void 0:E[l])==null?void 0:R[h])||m,_=v.useContext(A);if(_)return _;if(d!==void 0)return d;if(!C)throw new Error(`\`${b}\` must be used within \`${f}\``)}return Kt(S,"useContext"),[p,S]}Kt(i,"createContext");const s=Kt(()=>{const f=o.map(d=>v.createContext(d));return Kt(function(m){const h=(m==null?void 0:m[l])||f;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:h}}),[m,h])},"useScope")},"createScope");return s.scopeName=l,[i,a1(s,...r)]}Kt(l1,"createContextScope");function a1(...l){const r=l[0];if(l.length===1)return r;const o=Kt(()=>{const i=l.map(s=>({useScope:s(),scopeName:s.scopeName}));return Kt(function(f){const d=i.reduce((m,{useScope:h,scopeName:p})=>{const b=h(f)[`__scope${p}`];return{...m,...b}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}Kt(a1,"composeContextScopes");var qd=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},IT=Object.defineProperty,FT=(l,r)=>IT(l,"name",{value:r,configurable:!0}),Vv=aa[" useEffectEvent ".trim().toString()],Yv=aa[" useInsertionEffect ".trim().toString()];function r1(l){if(typeof Vv=="function")return Vv(l);const r=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Yv=="function"?Yv(()=>{r.current=l}):qd(()=>{r.current=l}),v.useMemo(()=>((...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)}),[])}FT(r1,"useEffectEvent");var WT=Object.defineProperty,Ei=(l,r)=>WT(l,"name",{value:r,configurable:!0}),eR=aa[" useInsertionEffect ".trim().toString()]||qd;function i1({prop:l,defaultProp:r,onChange:o=Ei(()=>{},"onChange"),caller:i}){const[s,f,d]=o1({defaultProp:r,onChange:o}),m=l!==void 0,h=m?l:s,p=v.useCallback(S=>{var b;if(m){const E=c1(S)?S(l):S;E!==l&&((b=d.current)==null||b.call(d,E))}else f(S)},[m,l,f,d]);return[h,p]}Ei(i1,"useControllableState");function o1({defaultProp:l,onChange:r}){const[o,i]=v.useState(l),s=v.useRef(o),f=v.useRef(r);return eR(()=>{f.current=r},[r]),v.useEffect(()=>{var d;s.current!==o&&((d=f.current)==null||d.call(f,o),s.current=o)},[o,s]),[o,i,f]}Ei(o1,"useUncontrolledState");function c1(l){return typeof l=="function"}Ei(c1,"isFunction");var Gv=Symbol("RADIX:SYNC_STATE");function tR(l,r,o,i){const{prop:s,defaultProp:f,onChange:d,caller:m}=r,h=s!==void 0,p=r1(d),S=[{...o,state:f}];i&&S.push(i);const[b,E]=v.useReducer((_,R)=>{if(R.type===Gv)return{..._,state:R.state};const z=l(_,R);return h&&!Object.is(z.state,_.state)&&p(z.state),z},...S),x=b.state,C=v.useRef(x);v.useEffect(()=>{C.current!==x&&(C.current=x,h||p(x))},[x,C,h]);const A=v.useMemo(()=>s!==void 0?{...b,state:s}:b,[b,s]);return v.useEffect(()=>{h&&!Object.is(s,b.state)&&E({type:Gv,state:s})},[s,b.state,h]),[A,E]}Ei(tR,"useControllableStateReducer");var nR=Object.defineProperty,lR=(l,r)=>nR(l,"name",{value:r,configurable:!0});function s1(l){const[r,o]=v.useState(void 0);return qd(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,m;if("borderBoxSize"in f){const h=f.borderBoxSize,p=Array.isArray(h)?h[0]:h;d=p.inlineSize,m=p.blockSize}else d=l.offsetWidth,m=l.offsetHeight;o({width:d,height:m})});return i.observe(l,{box:"border-box"}),()=>i.unobserve(l)}else o(void 0)},[l]),r}lR(s1,"useSize");var aR=Object.defineProperty,Jt=(l,r)=>aR(l,"name",{value:r,configurable:!0}),rR=Jt(((l,r)=>{const o={...r};for(const i in r){const s=l[i],f=r[i];if(/^on[A-Z]/.test(i))if(s&&f){const m=typeof s=="function",h=typeof f=="function";o[i]=(...p)=>{const S=h?f(...p):void 0;return m&&s(...p),S}}else s&&(o[i]=s);else i==="style"?o[i]={...typeof s=="object"?s:null,...typeof f=="object"?f:null}:i==="className"?o[i]=[s,f].filter(Boolean).join(" "):i==="aria-describedby"&&(o[i]=u1(f,s))}return{...l,...o}}),"mergeProps");function u1(...l){const r=new Set;for(const o of l)if(typeof o=="string")for(const i of String(o).trim().split(/\s+/))i&&r.add(i);return r.size>0?Array.from(r).join(" "):void 0}Jt(u1,"concatAriaDescribedby");var f1=v.createContext(rR);f1.displayName="SlotContext";function d1(l){const r=v.forwardRef((o,i)=>{const s=v.useContext(f1);let{children:f,mergeProps:d=s,...m}=o,h=null,p=!1;const S=[];td(f)&&typeof Fo=="function"&&(f=Fo(f._payload)),v.Children.forEach(f,C=>{var A;if(g1(C)){p=!0;const _=C;let R="child"in _.props?_.props.child:_.props.children;td(R)&&typeof Fo=="function"&&(R=Fo(R._payload)),h=oR(_,R),S.push((A=h==null?void 0:h.props)==null?void 0:A.children)}else S.push(C)}),h?h=v.cloneElement(h,void 0,S):!p&&v.Children.count(f)===1&&v.isValidElement(f)&&(h=f);const b=h?h1(h):void 0,E=Oc(i,b);if(!h){if(f||f===0)throw new Error(p?uR(l):sR(l));return f}const x=d(m,h.props??{});return h.type!==v.Fragment&&(x.ref=i?E:b),v.cloneElement(h,x)});return r.displayName=`${l}.Slot`,r}Jt(d1,"createSlot");var m1=Symbol.for("radix.slottable");function iR(l){const r=Jt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return r.displayName=`${l}.Slottable`,r.__radixId=m1,r}Jt(iR,"createSlottable");var oR=Jt((l,r)=>{if("child"in l.props){const o=l.props.child;return v.isValidElement(o)?v.cloneElement(o,void 0,l.props.children(o.props.children)):null}return v.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function h1(l){var i,s;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}Jt(h1,"getElementRef");function g1(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===m1}Jt(g1,"isSlottable");var cR=Symbol.for("react.lazy");function td(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===cR&&"_payload"in l&&p1(l._payload)}Jt(td,"isLazyComponent");function p1(l){return typeof l=="object"&&l!==null&&"then"in l}Jt(p1,"isPromiseLike");var sR=Jt(l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),uR=Jt(l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Fo=aa[" use ".trim().toString()],fR=Object.defineProperty,dR=(l,r)=>fR(l,"name",{value:r,configurable:!0}),mR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vd=mR.reduce((l,r)=>{const o=d1(`Primitive.${r}`),i=v.forwardRef((s,f)=>{const{asChild:d,...m}=s,h=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(h,{...m,ref:f})});return i.displayName=`Primitive.${r}`,{...l,[r]:i}},{});function hR(l,r){l&&cr.flushSync(()=>l.dispatchEvent(r))}dR(hR,"dispatchDiscreteCustomEvent");var gR=Object.defineProperty,Nl=(l,r)=>gR(l,"name",{value:r,configurable:!0}),Yd="Switch",[pR,nN]=l1(Yd),[vR,Gd]=pR(Yd);function v1(l){const{__scopeSwitch:r,checked:o,children:i,defaultChecked:s,disabled:f,form:d,name:m,onCheckedChange:h,required:p,value:S="on",internal_do_not_use_render:b}=l,[E,x]=i1({prop:o,defaultProp:s??!1,onChange:h,caller:Yd}),[C,A]=v.useState(null),[_,R]=v.useState(null),z=v.useRef(!1),[T,j]=v.useReducer(O=>O+1,0),P=C?!!d||!!C.closest("form"):!0,q={checked:E,setChecked:x,disabled:f,control:C,setControl:A,name:m,form:d,value:S,hasConsumerStoppedPropagationRef:z,userInteractionCount:T,onUserInteraction:j,required:p,defaultChecked:s,isFormControl:P,bubbleInput:_,setBubbleInput:R};return y.jsx(vR,{scope:r,...q,children:b1(b)?b(q):i})}Nl(v1,"SwitchProvider");var yR="SwitchTrigger",bR=v.forwardRef(Nl(function({__scopeSwitch:r,onClick:o,...i},s){const{control:f,form:d,value:m,disabled:h,checked:p,required:S,setControl:b,setChecked:E,hasConsumerStoppedPropagationRef:x,onUserInteraction:C,isFormControl:A,bubbleInput:_}=Gd(yR,r),R=Oc(s,b),z=v.useRef(p);return v.useEffect(()=>{const T=d?f==null?void 0:f.ownerDocument.getElementById(d):f==null?void 0:f.form;if(T instanceof HTMLFormElement){const j=Nl(()=>E(z.current),"reset");return T.addEventListener("reset",j),()=>T.removeEventListener("reset",j)}},[f,d,E]),y.jsx(Vd.button,{type:"button",role:"switch","aria-checked":p,"aria-required":S,"data-state":Xd(p),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:R,onClick:Hd(o,T=>{C(),E(j=>!j),_&&A&&(x.current=T.isPropagationStopped(),x.current||T.stopPropagation())})})},"SwitchTrigger")),y1=v.forwardRef(Nl(function(r,o){const{__scopeSwitch:i,name:s,checked:f,defaultChecked:d,required:m,disabled:h,value:p,onCheckedChange:S,form:b,...E}=r;return y.jsx(v1,{__scopeSwitch:i,checked:f,defaultChecked:d,disabled:h,required:m,onCheckedChange:S,name:s,form:b,value:p,internal_do_not_use_render:({isFormControl:x})=>y.jsxs(y.Fragment,{children:[y.jsx(bR,{...E,ref:o,__scopeSwitch:i}),x&&y.jsx(ER,{__scopeSwitch:i})]})})},"Switch")),SR="SwitchThumb",xR=v.forwardRef(Nl(function(r,o){const{__scopeSwitch:i,...s}=r,f=Gd(SR,i);return y.jsx(Vd.span,{"data-state":Xd(f.checked),"data-disabled":f.disabled?"":void 0,...s,ref:o})},"SwitchThumb")),wR="SwitchBubbleInput",ER=v.forwardRef(Nl(function({__scopeSwitch:r,onClick:o,...i},s){const{control:f,hasConsumerStoppedPropagationRef:d,userInteractionCount:m,checked:h,defaultChecked:p,required:S,disabled:b,name:E,value:x,form:C,bubbleInput:A,setBubbleInput:_}=Gd(wR,r),R=Oc(s,_),z=s1(f),T=v.useRef(!1),j=v.useRef(h),P=v.useRef(m);v.useEffect(()=>{const O=A;if(!O)return;const B=window.HTMLInputElement.prototype,X=Object.getOwnPropertyDescriptor(B,"checked").set,Y=m!==P.current;P.current=m;const $=j.current!==h;j.current=h;const te=!(Y&&d.current);if($&&X){T.current=!Y;const le=new Event("click",{bubbles:te});X.call(O,h),O.dispatchEvent(le),T.current=!1}},[A,h,d,m]);const q=v.useRef(h);return y.jsx(Vd.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??q.current,required:S,disabled:b,name:E,value:x,form:C,...i,tabIndex:-1,ref:R,onClick:Hd(o,O=>{T.current&&O.stopPropagation()}),style:{...i.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function b1(l){return typeof l=="function"}Nl(b1,"isFunction");function Xd(l){return l?"checked":"unchecked"}Nl(Xd,"getState");const Qd=v.forwardRef(({className:l,size:r="default",...o},i)=>y.jsx(y1,{ref:i,"data-slot":"switch","data-size":r,className:Oe("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent outline-none transition-all after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:data-[state=unchecked]:bg-input/80",l),...o,children:y.jsx(xR,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-[state=unchecked]:translate-x-0 group-data-[size=sm]/switch:data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"})}));Qd.displayName=y1.displayName;var Ia={},uf,Xv;function AR(){return Xv||(Xv=1,uf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),uf}var ff={},Sl={},Qv;function ca(){if(Qv)return Sl;Qv=1;let l;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Sl.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},Sl.getSymbolTotalCodewords=function(i){return r[i]},Sl.getBCHDigit=function(o){let i=0;for(;o!==0;)i++,o>>>=1;return i},Sl.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');l=i},Sl.isKanjiModeEnabled=function(){return typeof l<"u"},Sl.toSJIS=function(i){return l(i)},Sl}var df={},Pv;function Pd(){return Pv||(Pv=1,(function(l){l.L={bit:1},l.M={bit:0},l.Q={bit:3},l.H={bit:2};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return l.L;case"m":case"medium":return l.M;case"q":case"quartile":return l.Q;case"h":case"high":return l.H;default:throw new Error("Unknown EC Level: "+o)}}l.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},l.from=function(i,s){if(l.isValid(i))return i;try{return r(i)}catch{return s}}})(df)),df}var mf,Zv;function CR(){if(Zv)return mf;Zv=1;function l(){this.buffer=[],this.length=0}return l.prototype={get:function(r){const o=Math.floor(r/8);return(this.buffer[o]>>>7-r%8&1)===1},put:function(r,o){for(let i=0;i<o;i++)this.putBit((r>>>o-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),r&&(this.buffer[o]|=128>>>this.length%8),this.length++}},mf=l,mf}var hf,Kv;function TR(){if(Kv)return hf;Kv=1;function l(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return l.prototype.set=function(r,o,i,s){const f=r*this.size+o;this.data[f]=i,s&&(this.reservedBit[f]=!0)},l.prototype.get=function(r,o){return this.data[r*this.size+o]},l.prototype.xor=function(r,o,i){this.data[r*this.size+o]^=i},l.prototype.isReserved=function(r,o){return this.reservedBit[r*this.size+o]},hf=l,hf}var gf={},$v;function RR(){return $v||($v=1,(function(l){const r=ca().getSymbolSize;l.getRowColCoords=function(i){if(i===1)return[];const s=Math.floor(i/7)+2,f=r(i),d=f===145?26:Math.ceil((f-13)/(2*s-2))*2,m=[f-7];for(let h=1;h<s-1;h++)m[h]=m[h-1]-d;return m.push(6),m.reverse()},l.getPositions=function(i){const s=[],f=l.getRowColCoords(i),d=f.length;for(let m=0;m<d;m++)for(let h=0;h<d;h++)m===0&&h===0||m===0&&h===d-1||m===d-1&&h===0||s.push([f[m],f[h]]);return s}})(gf)),gf}var pf={},Jv;function NR(){if(Jv)return pf;Jv=1;const l=ca().getSymbolSize,r=7;return pf.getPositions=function(i){const s=l(i);return[[0,0],[s-r,0],[0,s-r]]},pf}var vf={},Iv;function _R(){return Iv||(Iv=1,(function(l){l.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};l.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},l.from=function(s){return l.isValid(s)?parseInt(s,10):void 0},l.getPenaltyN1=function(s){const f=s.size;let d=0,m=0,h=0,p=null,S=null;for(let b=0;b<f;b++){m=h=0,p=S=null;for(let E=0;E<f;E++){let x=s.get(b,E);x===p?m++:(m>=5&&(d+=r.N1+(m-5)),p=x,m=1),x=s.get(E,b),x===S?h++:(h>=5&&(d+=r.N1+(h-5)),S=x,h=1)}m>=5&&(d+=r.N1+(m-5)),h>=5&&(d+=r.N1+(h-5))}return d},l.getPenaltyN2=function(s){const f=s.size;let d=0;for(let m=0;m<f-1;m++)for(let h=0;h<f-1;h++){const p=s.get(m,h)+s.get(m,h+1)+s.get(m+1,h)+s.get(m+1,h+1);(p===4||p===0)&&d++}return d*r.N2},l.getPenaltyN3=function(s){const f=s.size;let d=0,m=0,h=0;for(let p=0;p<f;p++){m=h=0;for(let S=0;S<f;S++)m=m<<1&2047|s.get(p,S),S>=10&&(m===1488||m===93)&&d++,h=h<<1&2047|s.get(S,p),S>=10&&(h===1488||h===93)&&d++}return d*r.N3},l.getPenaltyN4=function(s){let f=0;const d=s.data.length;for(let h=0;h<d;h++)f+=s.data[h];return Math.abs(Math.ceil(f*100/d/5)-10)*r.N4};function o(i,s,f){switch(i){case l.Patterns.PATTERN000:return(s+f)%2===0;case l.Patterns.PATTERN001:return s%2===0;case l.Patterns.PATTERN010:return f%3===0;case l.Patterns.PATTERN011:return(s+f)%3===0;case l.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(f/3))%2===0;case l.Patterns.PATTERN101:return s*f%2+s*f%3===0;case l.Patterns.PATTERN110:return(s*f%2+s*f%3)%2===0;case l.Patterns.PATTERN111:return(s*f%3+(s+f)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}l.applyMask=function(s,f){const d=f.size;for(let m=0;m<d;m++)for(let h=0;h<d;h++)f.isReserved(h,m)||f.xor(h,m,o(s,h,m))},l.getBestMask=function(s,f){const d=Object.keys(l.Patterns).length;let m=0,h=1/0;for(let p=0;p<d;p++){f(p),l.applyMask(p,s);const S=l.getPenaltyN1(s)+l.getPenaltyN2(s)+l.getPenaltyN3(s)+l.getPenaltyN4(s);l.applyMask(p,s),S<h&&(h=S,m=p)}return m}})(vf)),vf}var Wo={},Fv;function S1(){if(Fv)return Wo;Fv=1;const l=Pd(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Wo.getBlocksCount=function(s,f){switch(f){case l.L:return r[(s-1)*4+0];case l.M:return r[(s-1)*4+1];case l.Q:return r[(s-1)*4+2];case l.H:return r[(s-1)*4+3];default:return}},Wo.getTotalCodewordsCount=function(s,f){switch(f){case l.L:return o[(s-1)*4+0];case l.M:return o[(s-1)*4+1];case l.Q:return o[(s-1)*4+2];case l.H:return o[(s-1)*4+3];default:return}},Wo}var yf={},ui={},Wv;function MR(){if(Wv)return ui;Wv=1;const l=new Uint8Array(512),r=new Uint8Array(256);return(function(){let i=1;for(let s=0;s<255;s++)l[s]=i,r[i]=s,i<<=1,i&256&&(i^=285);for(let s=255;s<512;s++)l[s]=l[s-255]})(),ui.log=function(i){if(i<1)throw new Error("log("+i+")");return r[i]},ui.exp=function(i){return l[i]},ui.mul=function(i,s){return i===0||s===0?0:l[r[i]+r[s]]},ui}var ey;function OR(){return ey||(ey=1,(function(l){const r=MR();l.mul=function(i,s){const f=new Uint8Array(i.length+s.length-1);for(let d=0;d<i.length;d++)for(let m=0;m<s.length;m++)f[d+m]^=r.mul(i[d],s[m]);return f},l.mod=function(i,s){let f=new Uint8Array(i);for(;f.length-s.length>=0;){const d=f[0];for(let h=0;h<s.length;h++)f[h]^=r.mul(s[h],d);let m=0;for(;m<f.length&&f[m]===0;)m++;f=f.slice(m)}return f},l.generateECPolynomial=function(i){let s=new Uint8Array([1]);for(let f=0;f<i;f++)s=l.mul(s,new Uint8Array([1,r.exp(f)]));return s}})(yf)),yf}var bf,ty;function DR(){if(ty)return bf;ty=1;const l=OR();function r(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(i){this.degree=i,this.genPoly=l.generateECPolynomial(this.degree)},r.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(i.length+this.degree);s.set(i);const f=l.mod(s,this.genPoly),d=this.degree-f.length;if(d>0){const m=new Uint8Array(this.degree);return m.set(f,d),m}return f},bf=r,bf}var Sf={},xf={},wf={},ny;function x1(){return ny||(ny=1,wf.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),wf}var dn={},ly;function w1(){if(ly)return dn;ly=1;const l="[0-9]+",r="[A-Z $%*+\\-./:]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+`)(?:.|[\r
195
+ ]))+`;dn.KANJI=new RegExp(o,"g"),dn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),dn.BYTE=new RegExp(i,"g"),dn.NUMERIC=new RegExp(l,"g"),dn.ALPHANUMERIC=new RegExp(r,"g");const s=new RegExp("^"+o+"$"),f=new RegExp("^"+l+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return dn.testKanji=function(h){return s.test(h)},dn.testNumeric=function(h){return f.test(h)},dn.testAlphanumeric=function(h){return d.test(h)},dn}var ay;function sa(){return ay||(ay=1,(function(l){const r=x1(),o=w1();l.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},l.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},l.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},l.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},l.MIXED={bit:-1},l.getCharCountIndicator=function(f,d){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?f.ccBits[0]:d<27?f.ccBits[1]:f.ccBits[2]},l.getBestModeForData=function(f){return o.testNumeric(f)?l.NUMERIC:o.testAlphanumeric(f)?l.ALPHANUMERIC:o.testKanji(f)?l.KANJI:l.BYTE},l.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},l.isValid=function(f){return f&&f.bit&&f.ccBits};function i(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return l.NUMERIC;case"alphanumeric":return l.ALPHANUMERIC;case"kanji":return l.KANJI;case"byte":return l.BYTE;default:throw new Error("Unknown mode: "+s)}}l.from=function(f,d){if(l.isValid(f))return f;try{return i(f)}catch{return d}}})(xf)),xf}var ry;function zR(){return ry||(ry=1,(function(l){const r=ca(),o=S1(),i=Pd(),s=sa(),f=x1(),d=7973,m=r.getBCHDigit(d);function h(E,x,C){for(let A=1;A<=40;A++)if(x<=l.getCapacity(A,C,E))return A}function p(E,x){return s.getCharCountIndicator(E,x)+4}function S(E,x){let C=0;return E.forEach(function(A){const _=p(A.mode,x);C+=_+A.getBitsLength()}),C}function b(E,x){for(let C=1;C<=40;C++)if(S(E,C)<=l.getCapacity(C,x,s.MIXED))return C}l.from=function(x,C){return f.isValid(x)?parseInt(x,10):C},l.getCapacity=function(x,C,A){if(!f.isValid(x))throw new Error("Invalid QR Code version");typeof A>"u"&&(A=s.BYTE);const _=r.getSymbolTotalCodewords(x),R=o.getTotalCodewordsCount(x,C),z=(_-R)*8;if(A===s.MIXED)return z;const T=z-p(A,x);switch(A){case s.NUMERIC:return Math.floor(T/10*3);case s.ALPHANUMERIC:return Math.floor(T/11*2);case s.KANJI:return Math.floor(T/13);case s.BYTE:default:return Math.floor(T/8)}},l.getBestVersionForData=function(x,C){let A;const _=i.from(C,i.M);if(Array.isArray(x)){if(x.length>1)return b(x,_);if(x.length===0)return 1;A=x[0]}else A=x;return h(A.mode,A.getLength(),_)},l.getEncodedBits=function(x){if(!f.isValid(x)||x<7)throw new Error("Invalid QR Code version");let C=x<<12;for(;r.getBCHDigit(C)-m>=0;)C^=d<<r.getBCHDigit(C)-m;return x<<12|C}})(Sf)),Sf}var Ef={},iy;function jR(){if(iy)return Ef;iy=1;const l=ca(),r=1335,o=21522,i=l.getBCHDigit(r);return Ef.getEncodedBits=function(f,d){const m=f.bit<<3|d;let h=m<<10;for(;l.getBCHDigit(h)-i>=0;)h^=r<<l.getBCHDigit(h)-i;return(m<<10|h)^o},Ef}var Af={},Cf,oy;function BR(){if(oy)return Cf;oy=1;const l=sa();function r(o){this.mode=l.NUMERIC,this.data=o.toString()}return r.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(i){let s,f,d;for(s=0;s+3<=this.data.length;s+=3)f=this.data.substr(s,3),d=parseInt(f,10),i.put(d,10);const m=this.data.length-s;m>0&&(f=this.data.substr(s),d=parseInt(f,10),i.put(d,m*3+1))},Cf=r,Cf}var Tf,cy;function LR(){if(cy)return Tf;cy=1;const l=sa(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(i){this.mode=l.ALPHANUMERIC,this.data=i}return o.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(s){let f;for(f=0;f+2<=this.data.length;f+=2){let d=r.indexOf(this.data[f])*45;d+=r.indexOf(this.data[f+1]),s.put(d,11)}this.data.length%2&&s.put(r.indexOf(this.data[f]),6)},Tf=o,Tf}var Rf,sy;function UR(){if(sy)return Rf;sy=1;const l=sa();function r(o){this.mode=l.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}return r.getBitsLength=function(i){return i*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(o){for(let i=0,s=this.data.length;i<s;i++)o.put(this.data[i],8)},Rf=r,Rf}var Nf,uy;function HR(){if(uy)return Nf;uy=1;const l=sa(),r=ca();function o(i){this.mode=l.KANJI,this.data=i}return o.getBitsLength=function(s){return s*13},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){let s;for(s=0;s<this.data.length;s++){let f=r.toSJIS(this.data[s]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
196
+ Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),i.put(f,13)}},Nf=o,Nf}var _f={exports:{}},fy;function kR(){return fy||(fy=1,(function(l){var r={single_source_shortest_paths:function(o,i,s){var f={},d={};d[i]=0;var m=r.PriorityQueue.make();m.push(i,0);for(var h,p,S,b,E,x,C,A,_;!m.empty();){h=m.pop(),p=h.value,b=h.cost,E=o[p]||{};for(S in E)E.hasOwnProperty(S)&&(x=E[S],C=b+x,A=d[S],_=typeof d[S]>"u",(_||A>C)&&(d[S]=C,m.push(S,C),f[S]=p))}if(typeof s<"u"&&typeof d[s]>"u"){var R=["Could not find a path from ",i," to ",s,"."].join("");throw new Error(R)}return f},extract_shortest_path_from_predecessor_list:function(o,i){for(var s=[],f=i;f;)s.push(f),o[f],f=o[f];return s.reverse(),s},find_path:function(o,i,s){var f=r.single_source_shortest_paths(o,i,s);return r.extract_shortest_path_from_predecessor_list(f,s)},PriorityQueue:{make:function(o){var i=r.PriorityQueue,s={},f;o=o||{};for(f in i)i.hasOwnProperty(f)&&(s[f]=i[f]);return s.queue=[],s.sorter=o.sorter||i.default_sorter,s},default_sorter:function(o,i){return o.cost-i.cost},push:function(o,i){var s={value:o,cost:i};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};l.exports=r})(_f)),_f.exports}var dy;function qR(){return dy||(dy=1,(function(l){const r=sa(),o=BR(),i=LR(),s=UR(),f=HR(),d=w1(),m=ca(),h=kR();function p(R){return unescape(encodeURIComponent(R)).length}function S(R,z,T){const j=[];let P;for(;(P=R.exec(T))!==null;)j.push({data:P[0],index:P.index,mode:z,length:P[0].length});return j}function b(R){const z=S(d.NUMERIC,r.NUMERIC,R),T=S(d.ALPHANUMERIC,r.ALPHANUMERIC,R);let j,P;return m.isKanjiModeEnabled()?(j=S(d.BYTE,r.BYTE,R),P=S(d.KANJI,r.KANJI,R)):(j=S(d.BYTE_KANJI,r.BYTE,R),P=[]),z.concat(T,j,P).sort(function(O,B){return O.index-B.index}).map(function(O){return{data:O.data,mode:O.mode,length:O.length}})}function E(R,z){switch(z){case r.NUMERIC:return o.getBitsLength(R);case r.ALPHANUMERIC:return i.getBitsLength(R);case r.KANJI:return f.getBitsLength(R);case r.BYTE:return s.getBitsLength(R)}}function x(R){return R.reduce(function(z,T){const j=z.length-1>=0?z[z.length-1]:null;return j&&j.mode===T.mode?(z[z.length-1].data+=T.data,z):(z.push(T),z)},[])}function C(R){const z=[];for(let T=0;T<R.length;T++){const j=R[T];switch(j.mode){case r.NUMERIC:z.push([j,{data:j.data,mode:r.ALPHANUMERIC,length:j.length},{data:j.data,mode:r.BYTE,length:j.length}]);break;case r.ALPHANUMERIC:z.push([j,{data:j.data,mode:r.BYTE,length:j.length}]);break;case r.KANJI:z.push([j,{data:j.data,mode:r.BYTE,length:p(j.data)}]);break;case r.BYTE:z.push([{data:j.data,mode:r.BYTE,length:p(j.data)}])}}return z}function A(R,z){const T={},j={start:{}};let P=["start"];for(let q=0;q<R.length;q++){const O=R[q],B=[];for(let Z=0;Z<O.length;Z++){const X=O[Z],Y=""+q+Z;B.push(Y),T[Y]={node:X,lastCount:0},j[Y]={};for(let $=0;$<P.length;$++){const te=P[$];T[te]&&T[te].node.mode===X.mode?(j[te][Y]=E(T[te].lastCount+X.length,X.mode)-E(T[te].lastCount,X.mode),T[te].lastCount+=X.length):(T[te]&&(T[te].lastCount=X.length),j[te][Y]=E(X.length,X.mode)+4+r.getCharCountIndicator(X.mode,z))}}P=B}for(let q=0;q<P.length;q++)j[P[q]].end=0;return{map:j,table:T}}function _(R,z){let T;const j=r.getBestModeForData(R);if(T=r.from(z,j),T!==r.BYTE&&T.bit<j.bit)throw new Error('"'+R+'" cannot be encoded with mode '+r.toString(T)+`.
197
+ Suggested mode is: `+r.toString(j));switch(T===r.KANJI&&!m.isKanjiModeEnabled()&&(T=r.BYTE),T){case r.NUMERIC:return new o(R);case r.ALPHANUMERIC:return new i(R);case r.KANJI:return new f(R);case r.BYTE:return new s(R)}}l.fromArray=function(z){return z.reduce(function(T,j){return typeof j=="string"?T.push(_(j,null)):j.data&&T.push(_(j.data,j.mode)),T},[])},l.fromString=function(z,T){const j=b(z,m.isKanjiModeEnabled()),P=C(j),q=A(P,T),O=h.find_path(q.map,"start","end"),B=[];for(let Z=1;Z<O.length-1;Z++)B.push(q.table[O[Z]].node);return l.fromArray(x(B))},l.rawSplit=function(z){return l.fromArray(b(z,m.isKanjiModeEnabled()))}})(Af)),Af}var my;function VR(){if(my)return ff;my=1;const l=ca(),r=Pd(),o=CR(),i=TR(),s=RR(),f=NR(),d=_R(),m=S1(),h=DR(),p=zR(),S=jR(),b=sa(),E=qR();function x(q,O){const B=q.size,Z=f.getPositions(O);for(let X=0;X<Z.length;X++){const Y=Z[X][0],$=Z[X][1];for(let te=-1;te<=7;te++)if(!(Y+te<=-1||B<=Y+te))for(let le=-1;le<=7;le++)$+le<=-1||B<=$+le||(te>=0&&te<=6&&(le===0||le===6)||le>=0&&le<=6&&(te===0||te===6)||te>=2&&te<=4&&le>=2&&le<=4?q.set(Y+te,$+le,!0,!0):q.set(Y+te,$+le,!1,!0))}}function C(q){const O=q.size;for(let B=8;B<O-8;B++){const Z=B%2===0;q.set(B,6,Z,!0),q.set(6,B,Z,!0)}}function A(q,O){const B=s.getPositions(O);for(let Z=0;Z<B.length;Z++){const X=B[Z][0],Y=B[Z][1];for(let $=-2;$<=2;$++)for(let te=-2;te<=2;te++)$===-2||$===2||te===-2||te===2||$===0&&te===0?q.set(X+$,Y+te,!0,!0):q.set(X+$,Y+te,!1,!0)}}function _(q,O){const B=q.size,Z=p.getEncodedBits(O);let X,Y,$;for(let te=0;te<18;te++)X=Math.floor(te/3),Y=te%3+B-8-3,$=(Z>>te&1)===1,q.set(X,Y,$,!0),q.set(Y,X,$,!0)}function R(q,O,B){const Z=q.size,X=S.getEncodedBits(O,B);let Y,$;for(Y=0;Y<15;Y++)$=(X>>Y&1)===1,Y<6?q.set(Y,8,$,!0):Y<8?q.set(Y+1,8,$,!0):q.set(Z-15+Y,8,$,!0),Y<8?q.set(8,Z-Y-1,$,!0):Y<9?q.set(8,15-Y-1+1,$,!0):q.set(8,15-Y-1,$,!0);q.set(Z-8,8,1,!0)}function z(q,O){const B=q.size;let Z=-1,X=B-1,Y=7,$=0;for(let te=B-1;te>0;te-=2)for(te===6&&te--;;){for(let le=0;le<2;le++)if(!q.isReserved(X,te-le)){let pe=!1;$<O.length&&(pe=(O[$]>>>Y&1)===1),q.set(X,te-le,pe),Y--,Y===-1&&($++,Y=7)}if(X+=Z,X<0||B<=X){X-=Z,Z=-Z;break}}}function T(q,O,B){const Z=new o;B.forEach(function(le){Z.put(le.mode.bit,4),Z.put(le.getLength(),b.getCharCountIndicator(le.mode,q)),le.write(Z)});const X=l.getSymbolTotalCodewords(q),Y=m.getTotalCodewordsCount(q,O),$=(X-Y)*8;for(Z.getLengthInBits()+4<=$&&Z.put(0,4);Z.getLengthInBits()%8!==0;)Z.putBit(0);const te=($-Z.getLengthInBits())/8;for(let le=0;le<te;le++)Z.put(le%2?17:236,8);return j(Z,q,O)}function j(q,O,B){const Z=l.getSymbolTotalCodewords(O),X=m.getTotalCodewordsCount(O,B),Y=Z-X,$=m.getBlocksCount(O,B),te=Z%$,le=$-te,pe=Math.floor(Z/$),U=Math.floor(Y/$),F=U+1,ee=pe-U,de=new h(ee);let W=0;const M=new Array($),Q=new Array($);let ne=0;const re=new Uint8Array(q.buffer);for(let fe=0;fe<$;fe++){const we=fe<le?U:F;M[fe]=re.slice(W,W+we),Q[fe]=de.encode(M[fe]),W+=we,ne=Math.max(ne,we)}const ie=new Uint8Array(Z);let ue=0,ae,ge;for(ae=0;ae<ne;ae++)for(ge=0;ge<$;ge++)ae<M[ge].length&&(ie[ue++]=M[ge][ae]);for(ae=0;ae<ee;ae++)for(ge=0;ge<$;ge++)ie[ue++]=Q[ge][ae];return ie}function P(q,O,B,Z){let X;if(Array.isArray(q))X=E.fromArray(q);else if(typeof q=="string"){let pe=O;if(!pe){const U=E.rawSplit(q);pe=p.getBestVersionForData(U,B)}X=E.fromString(q,pe||40)}else throw new Error("Invalid data");const Y=p.getBestVersionForData(X,B);if(!Y)throw new Error("The amount of data is too big to be stored in a QR Code");if(!O)O=Y;else if(O<Y)throw new Error(`
198
+ The chosen QR Code version cannot contain this amount of data.
199
+ Minimum version required to store current data is: `+Y+`.
200
+ `);const $=T(O,B,X),te=l.getSymbolSize(O),le=new i(te);return x(le,O),C(le),A(le,O),R(le,B,0),O>=7&&_(le,O),z(le,$),isNaN(Z)&&(Z=d.getBestMask(le,R.bind(null,le,B))),d.applyMask(Z,le),R(le,B,Z),{modules:le,version:O,errorCorrectionLevel:B,maskPattern:Z,segments:X}}return ff.create=function(O,B){if(typeof O>"u"||O==="")throw new Error("No input text");let Z=r.M,X,Y;return typeof B<"u"&&(Z=r.from(B.errorCorrectionLevel,r.M),X=p.from(B.version),Y=d.from(B.maskPattern),B.toSJISFunc&&l.setToSJISFunction(B.toSJISFunc)),P(O,X,Z,Y)},ff}var Mf={},Of={},hy;function E1(){return hy||(hy=1,(function(l){function r(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let i=o.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+o);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(f){return[f,f]}))),i.length===6&&i.push("F","F");const s=parseInt(i.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+i.slice(0,6).join("")}}l.getOptions=function(i){i||(i={}),i.color||(i.color={});const s=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,f=i.width&&i.width>=21?i.width:void 0,d=i.scale||4;return{width:f,scale:f?4:d,margin:s,color:{dark:r(i.color.dark||"#000000ff"),light:r(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},l.getScale=function(i,s){return s.width&&s.width>=i+s.margin*2?s.width/(i+s.margin*2):s.scale},l.getImageWidth=function(i,s){const f=l.getScale(i,s);return Math.floor((i+s.margin*2)*f)},l.qrToImageData=function(i,s,f){const d=s.modules.size,m=s.modules.data,h=l.getScale(d,f),p=Math.floor((d+f.margin*2)*h),S=f.margin*h,b=[f.color.light,f.color.dark];for(let E=0;E<p;E++)for(let x=0;x<p;x++){let C=(E*p+x)*4,A=f.color.light;if(E>=S&&x>=S&&E<p-S&&x<p-S){const _=Math.floor((E-S)/h),R=Math.floor((x-S)/h);A=b[m[_*d+R]?1:0]}i[C++]=A.r,i[C++]=A.g,i[C++]=A.b,i[C]=A.a}}})(Of)),Of}var gy;function YR(){return gy||(gy=1,(function(l){const r=E1();function o(s,f,d){s.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=d,f.width=d,f.style.height=d+"px",f.style.width=d+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}l.render=function(f,d,m){let h=m,p=d;typeof h>"u"&&(!d||!d.getContext)&&(h=d,d=void 0),d||(p=i()),h=r.getOptions(h);const S=r.getImageWidth(f.modules.size,h),b=p.getContext("2d"),E=b.createImageData(S,S);return r.qrToImageData(E.data,f,h),o(b,p,S),b.putImageData(E,0,0),p},l.renderToDataURL=function(f,d,m){let h=m;typeof h>"u"&&(!d||!d.getContext)&&(h=d,d=void 0),h||(h={});const p=l.render(f,d,h),S=h.type||"image/png",b=h.rendererOpts||{};return p.toDataURL(S,b.quality)}})(Mf)),Mf}var Df={},py;function GR(){if(py)return Df;py=1;const l=E1();function r(s,f){const d=s.a/255,m=f+'="'+s.hex+'"';return d<1?m+" "+f+'-opacity="'+d.toFixed(2).slice(1)+'"':m}function o(s,f,d){let m=s+f;return typeof d<"u"&&(m+=" "+d),m}function i(s,f,d){let m="",h=0,p=!1,S=0;for(let b=0;b<s.length;b++){const E=Math.floor(b%f),x=Math.floor(b/f);!E&&!p&&(p=!0),s[b]?(S++,b>0&&E>0&&s[b-1]||(m+=p?o("M",E+d,.5+x+d):o("m",h,0),h=0,p=!1),E+1<f&&s[b+1]||(m+=o("h",S),S=0)):h++}return m}return Df.render=function(f,d,m){const h=l.getOptions(d),p=f.modules.size,S=f.modules.data,b=p+h.margin*2,E=h.color.light.a?"<path "+r(h.color.light,"fill")+' d="M0 0h'+b+"v"+b+'H0z"/>':"",x="<path "+r(h.color.dark,"stroke")+' d="'+i(S,p,h.margin)+'"/>',C='viewBox="0 0 '+b+" "+b+'"',_='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+C+' shape-rendering="crispEdges">'+E+x+`</svg>
201
+ `;return typeof m=="function"&&m(null,_),_},Df}var vy;function XR(){if(vy)return Ia;vy=1;const l=AR(),r=VR(),o=YR(),i=GR();function s(f,d,m,h,p){const S=[].slice.call(arguments,1),b=S.length,E=typeof S[b-1]=="function";if(!E&&!l())throw new Error("Callback required as last argument");if(E){if(b<2)throw new Error("Too few arguments provided");b===2?(p=m,m=d,d=h=void 0):b===3&&(d.getContext&&typeof p>"u"?(p=h,h=void 0):(p=h,h=m,m=d,d=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(m=d,d=h=void 0):b===2&&!d.getContext&&(h=m,m=d,d=void 0),new Promise(function(x,C){try{const A=r.create(m,h);x(f(A,d,h))}catch(A){C(A)}})}try{const x=r.create(m,h);p(null,f(x,d,h))}catch(x){p(x)}}return Ia.create=r.create,Ia.toCanvas=s.bind(null,o.render),Ia.toDataURL=s.bind(null,o.renderToDataURL),Ia.toString=s.bind(null,function(f,d,m){return i.render(f,m)}),Ia}var QR=XR();const PR=by(QR),ec="__none__";function ZR({bridge:l}){var P,q;const[r,o]=v.useState(l.connected),[i,s]=v.useState(),[f,d]=v.useState([]),[m,h]=v.useState(),[p,S]=v.useState(),[b,E]=v.useState(),[x,C]=v.useState(),A=i==null?void 0:i.bots.find(O=>O.id===b),_=v.useCallback(async()=>{if(l.connected)try{const[O,B]=await Promise.all([l.call("state.get"),l.call("agent.list")]);s(O),d(B),h(void 0)}catch(O){h(hn(O))}},[l]);v.useEffect(()=>l.subscribe(()=>{o(l.connected),l.error&&h(l.error)}),[l]),v.useEffect(()=>{r&&_()},[r,_]),v.useEffect(()=>{b&&i&&!A&&E(void 0)},[A,b,i]),v.useEffect(()=>{var X;if(!r||(x==null?void 0:x.step)!=="scan"||x.starting||((X=x.authorization)==null?void 0:X.state)!=="waiting")return;let O=!1,B;const Z=async()=>{try{const Y=await l.call("authorization.get");if(O||!Y)return;if(Y.state==="completed"&&Y.botId){const $=await l.call("state.get");if(O)return;s($),E(Y.botId),C(void 0),l.call("authorization.dismiss").catch(()=>{});return}C($=>($==null?void 0:$.step)==="scan"?{...$,authorization:Y,error:Y.error}:$),Y.state==="waiting"&&(B=window.setTimeout(()=>void Z(),1e3))}catch(Y){O||C($=>($==null?void 0:$.step)==="scan"?{...$,error:hn(Y)}:$)}};return B=window.setTimeout(()=>void Z(),700),()=>{O=!0,B!==void 0&&window.clearTimeout(B)}},[x==null?void 0:x.step,(x==null?void 0:x.step)==="scan"?(P=x.authorization)==null?void 0:P.id:void 0,(x==null?void 0:x.step)==="scan"?(q=x.authorization)==null?void 0:q.state:void 0,(x==null?void 0:x.step)==="scan"?x.starting:void 0,l,r]);const R=async(O,B)=>{S(B);try{s(await l.call("bot.setEnabled",O)),h(void 0)}catch(Z){h(hn(Z))}finally{S(void 0)}},z=async()=>{C({step:"scan",starting:!0});try{const O=await l.call("authorization.start");C({step:"scan",starting:!1,authorization:O})}catch(O){C({step:"scan",starting:!1,error:hn(O)})}},T=()=>{var B;const O=(x==null?void 0:x.step)==="scan"&&((B=x.authorization)==null?void 0:B.state)==="waiting";C(void 0),O&&l.call("authorization.cancel").then(()=>l.call("authorization.dismiss")).catch(()=>{})},j=async O=>{if(O.preventDefault(),(x==null?void 0:x.step)==="credentials"){C({...x,saving:!0,error:void 0});try{const B=await l.call("bot.create",{name:x.name.trim(),appId:x.appId.trim(),appSecret:x.appSecret.trim()});s(B.state),E(B.botId),C(void 0),h(void 0)}catch(B){C({...x,saving:!1,error:hn(B)})}}};return A?y.jsx(KR,{bot:A,agents:f,bridge:l,busyAction:p,onBack:()=>E(void 0),onStateChange:O=>{s(O),h(void 0)},onBusyChange:S,onRemoved:()=>E(void 0)}):y.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-background text-foreground",children:[y.jsxs("header",{className:"flex flex-col gap-3 border-b border-border px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-6",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"Lark bots"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Connect bots, then configure how each bot starts Rynx conversations."})]}),y.jsxs(ct,{className:"self-start sm:self-auto",disabled:!r||!!p,onClick:()=>C({step:"choose"}),children:[y.jsx(j0,{"data-icon":"inline-start"}),"Add bot"]})]}),y.jsx(pi,{className:"min-h-0 flex-1",children:y.jsxs("main",{className:"mx-auto grid w-full max-w-6xl gap-4 p-4 sm:p-6",children:[m&&y.jsx(vi,{children:m}),r?i?i.bots.length===0?y.jsx(IR,{onAdd:()=>C({step:"choose"})}):y.jsx("div",{className:"grid gap-3",children:i.bots.map(O=>{const B=(p==null?void 0:p.startsWith(`${O.id}:`))??!1;return y.jsxs("article",{className:"glass grid gap-4 rounded-xl border border-border p-4 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",children:[y.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[y.jsx("span",{className:"grid size-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:y.jsx(M0,{className:"size-5"})}),y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("h2",{className:"font-medium",children:O.name}),y.jsx(A1,{bot:O})]}),y.jsxs("div",{className:"mt-1 truncate font-mono text-xs text-muted-foreground",children:[O.appId,O.defaultAgent?` · ${WR(O.defaultAgent,f)}`:" · No default Agent"]}),y.jsx("p",{className:Oe("mt-2 text-sm",O.lastError?"text-destructive":"text-muted-foreground"),children:O.lastError??(O.connected?O.lastEventAt?`Last event ${C1(O.lastEventAt)}`:"Connected and waiting for messages.":O.enabled?"Waiting for the Lark connection.":"This bot is disabled.")})]})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-3 sm:justify-end",children:[y.jsxs(ct,{size:"sm",variant:"outline",disabled:B,onClick:()=>E(O.id),children:["Configure",y.jsx(D0,{})]}),y.jsx(Qd,{checked:O.enabled,disabled:B,"aria-label":`${O.enabled?"Disable":"Enable"} ${O.name}`,onCheckedChange:Z=>void R({id:O.id,enabled:Z},`${O.id}:toggle`)})]})]},O.id)})}):y.jsx(nd,{label:"Loading Lark bots…"}):y.jsx(nd,{label:"Connecting to Rynx…"})]})}),y.jsx($R,{bridge:l,flow:x,onChange:C,onClose:T,onStartScan:()=>void z(),onSubmitCredentials:j})]})}function KR({bot:l,agents:r,bridge:o,busyAction:i,onBack:s,onStateChange:f,onBusyChange:d,onRemoved:m}){const[h,p]=v.useState(l.name),[S,b]=v.useState(l.defaultAgent??ec),[E,x]=v.useState(),[C,A]=v.useState(!1),_=i===`${l.id}:save`,R=i===`${l.id}:restart`,z=i===`${l.id}:remove`,T=S===ec?null:S,j=h.trim()!==l.name||T!==(l.defaultAgent??null);v.useEffect(()=>{p(l.name),b(l.defaultAgent??ec)},[l.id,l.name,l.defaultAgent]);const P=async()=>{if(!(_||!h.trim())){d(`${l.id}:save`),x(void 0),A(!1);try{const X=await o.call("bot.update",{id:l.id,name:h.trim(),defaultAgent:T});f(X),A(!0)}catch(X){x(hn(X))}finally{d(void 0)}}},q=async X=>{if(!i){d(`${l.id}:toggle`),x(void 0);try{f(await o.call("bot.setEnabled",{id:l.id,enabled:X}))}catch(Y){x(hn(Y))}finally{d(void 0)}}},O=async()=>{d(`${l.id}:restart`),x(void 0);try{f(await o.call("bot.restart",{id:l.id}))}catch(X){x(hn(X))}finally{d(void 0)}},B=async()=>{d(`${l.id}:remove`),x(void 0);try{f(await o.call("bot.remove",{id:l.id})),m()}catch(X){x(hn(X))}finally{d(void 0)}},Z=l.defaultAgent&&!r.some(X=>X.id===l.defaultAgent);return y.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-background text-foreground",children:[y.jsxs("header",{className:"flex items-center gap-3 border-b border-border px-4 py-4 sm:px-6",children:[y.jsx(ct,{size:"icon-sm",variant:"outline","aria-label":"Back to bots",onClick:s,children:y.jsx(nA,{})}),y.jsx("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:y.jsx(M0,{className:"size-5"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight",children:l.name}),y.jsx(A1,{bot:l})]}),y.jsx("p",{className:"mt-0.5 truncate font-mono text-xs text-muted-foreground",children:l.appId})]}),y.jsx(Qd,{checked:l.enabled,disabled:!!i,"aria-label":`${l.enabled?"Disable":"Enable"} ${l.name}`,onCheckedChange:X=>void q(X)})]}),y.jsx(pi,{className:"min-h-0 flex-1",children:y.jsxs("main",{className:"mx-auto grid w-full max-w-4xl gap-4 p-4 sm:p-6",children:[E&&y.jsx(vi,{children:E}),y.jsxs("section",{className:"glass rounded-xl border border-border p-5",children:[y.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-medium",children:"Connection"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Credentials and connection state are maintained by this plugin."})]}),y.jsxs(ct,{size:"sm",variant:"outline",disabled:!l.enabled||!!i,onClick:()=>void O(),children:[y.jsx(B0,{className:R?"animate-spin":""}),"Restart"]})]}),y.jsxs("dl",{className:"mt-5 grid gap-4 sm:grid-cols-3",children:[y.jsx(zf,{label:"App ID",value:l.appId,mono:!0}),y.jsx(zf,{label:"App Secret",value:l.hasAppSecret?"Configured":"Missing"}),y.jsx(zf,{label:"Last event",value:l.lastEventAt?C1(l.lastEventAt):"No events yet"})]})]}),y.jsxs("form",{className:"glass rounded-xl border border-border",onSubmit:X=>{X.preventDefault(),P()},children:[y.jsxs("div",{className:"border-b border-border px-5 py-4",children:[y.jsx("h2",{className:"font-medium",children:"Bot configuration"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Configure the default behavior for conversations created by this bot."})]}),y.jsxs("div",{className:"grid gap-5 p-5",children:[y.jsx(mi,{label:"Bot name",htmlFor:"lark-bot-name",required:!0,children:y.jsx(di,{id:"lark-bot-name",required:!0,maxLength:128,value:h,onChange:X=>{p(X.target.value),A(!1)}})}),y.jsx(mi,{label:"Default Agent",htmlFor:"lark-default-agent",hint:"New conversations use this Agent unless the user selects another one.",children:y.jsxs(YT,{value:S,onValueChange:X=>{b(X),A(!1)},children:[y.jsx($b,{id:"lark-default-agent",children:y.jsx(Kb,{placeholder:"No default Agent"})}),y.jsxs(Fb,{children:[y.jsx(ic,{value:ec,children:"No default Agent"}),Z&&l.defaultAgent&&y.jsxs(ic,{value:l.defaultAgent,children:[l.defaultAgent," (unavailable)"]}),r.map(X=>y.jsxs(ic,{value:X.id,children:[X.name??X.id,X.runtime?` · ${eN(X.runtime)}`:""]},X.id))]})]})})]}),y.jsxs("div",{className:"flex min-h-14 flex-col gap-2 border-t border-border px-5 py-3 sm:flex-row sm:items-center sm:justify-between",children:[y.jsxs("div",{className:"min-w-0 text-xs",children:[E&&y.jsxs("p",{role:"alert",className:"flex items-center gap-1.5 text-destructive",children:[y.jsx(z0,{className:"size-3.5 shrink-0"}),y.jsx("span",{className:"truncate",children:E})]}),!E&&C&&y.jsxs("p",{role:"status",className:"flex items-center gap-1.5 text-success",children:[y.jsx(kf,{className:"size-3.5 shrink-0"}),"Changes saved"]})]}),y.jsxs(ct,{type:"submit",disabled:!!i||!h.trim()||!j&&!_,onClick:X=>{X.preventDefault(),P()},children:[_?y.jsx(rr,{className:"animate-spin"}):C?y.jsx(kf,{}):y.jsx(SA,{}),_?"Saving…":C?"Saved":"Save changes"]})]})]}),y.jsx("section",{className:"rounded-xl border border-destructive/25 bg-destructive/5 p-5",children:y.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-medium text-destructive",children:"Remove bot"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Stops this bot and removes its saved configuration."})]}),y.jsx(FR,{bot:l,disabled:!!i,removing:z,onRemove:()=>void B()})]})})]})})]})}function $R({bridge:l,flow:r,onChange:o,onClose:i,onStartScan:s,onSubmitCredentials:f}){var d;return y.jsx(RA,{open:!!r,onOpenChange:m=>{m||i()},children:y.jsxs(U0,{className:"max-h-[calc(100dvh-2rem)] grid-rows-[auto_minmax(0,1fr)_auto] gap-0 overflow-hidden p-0 sm:max-w-lg",showCloseButton:(r==null?void 0:r.step)!=="credentials"||!r.saving,children:[(r==null?void 0:r.step)==="choose"&&y.jsxs(y.Fragment,{children:[y.jsxs(af,{className:"px-5 pb-4 pr-12 pt-5",children:[y.jsx(lc,{children:"Add Lark bot"}),y.jsx(ac,{children:"Connect with Feishu or use credentials from an existing app."})]}),y.jsxs("div",{className:"grid gap-3 px-5 pb-5",children:[y.jsx(yy,{icon:vA,title:"Connect with Feishu",description:"Scan a QR code to create or associate a bot automatically.",recommended:!0,onClick:s}),y.jsx(yy,{icon:mA,title:"Use existing credentials",description:"Enter an App ID and App Secret from the developer console.",onClick:()=>o({step:"credentials",name:"",appId:"",appSecret:"",saving:!1})})]}),y.jsx(rf,{className:"mx-0 mb-0 rounded-none rounded-b-xl px-5 py-3",children:y.jsx(ct,{type:"button",variant:"outline",onClick:i,children:"Cancel"})})]}),(r==null?void 0:r.step)==="credentials"&&y.jsxs("form",{className:"contents",onSubmit:f,children:[y.jsxs(af,{className:"px-5 pb-4 pr-12 pt-5",children:[y.jsx(lc,{children:"Use existing credentials"}),y.jsx(ac,{children:"Credentials are stored in this plugin's private data directory."})]}),y.jsx(pi,{className:"min-h-0",children:y.jsxs("div",{className:"grid gap-4 px-5 pb-5",children:[y.jsx(mi,{label:"Bot name",htmlFor:"new-lark-bot-name",required:!0,children:y.jsx(di,{id:"new-lark-bot-name",autoFocus:!0,required:!0,maxLength:128,placeholder:"My Lark bot",value:r.name,onChange:m=>o({...r,name:m.target.value})})}),y.jsx(mi,{label:"App ID",htmlFor:"new-lark-app-id",required:!0,children:y.jsx(di,{id:"new-lark-app-id",required:!0,autoComplete:"off",placeholder:"cli_xxx",value:r.appId,onChange:m=>o({...r,appId:m.target.value})})}),y.jsx(mi,{label:"App Secret",htmlFor:"new-lark-app-secret",required:!0,children:y.jsx(di,{id:"new-lark-app-secret",type:"password",required:!0,autoComplete:"new-password",value:r.appSecret,onChange:m=>o({...r,appSecret:m.target.value})})}),r.error&&y.jsx(vi,{children:r.error})]})}),y.jsxs(rf,{className:"mx-0 mb-0 rounded-none rounded-b-xl px-5 py-3",children:[y.jsx(ct,{type:"button",variant:"outline",disabled:r.saving,onClick:()=>o({step:"choose"}),children:"Back"}),y.jsxs(ct,{type:"submit",disabled:r.saving||!r.name.trim()||!r.appId.trim()||!r.appSecret.trim(),children:[r.saving&&y.jsx(rr,{className:"animate-spin"}),r.saving?"Connecting…":"Add bot"]})]})]}),(r==null?void 0:r.step)==="scan"&&y.jsxs(y.Fragment,{children:[y.jsxs(af,{className:"px-5 pb-4 pr-12 pt-5",children:[y.jsx(lc,{children:"Connect with Feishu"}),y.jsx(ac,{children:"Scan to create or associate a bot with the required permissions."})]}),y.jsx(pi,{className:"min-h-0",children:y.jsx(JR,{bridge:l,flow:r})}),y.jsxs(rf,{className:"mx-0 mb-0 rounded-none rounded-b-xl px-5 py-3",children:[((d=r.authorization)==null?void 0:d.state)==="failed"||r.error?y.jsxs(ct,{type:"button",variant:"outline",onClick:s,children:[y.jsx(B0,{}),"Try again"]}):null,y.jsx(ct,{type:"button",variant:"outline",onClick:i,children:"Cancel"})]})]})]})})}function JR({bridge:l,flow:r}){var S,b,E,x,C;const[o,i]=v.useState(),[s,f]=v.useState(!1),[d,m]=v.useState(),h=(S=r.authorization)==null?void 0:S.qrUrl;if(v.useEffect(()=>{let A=!1;if(i(void 0),!!h)return PR.toDataURL(h,{width:232,margin:1,color:{dark:"#111827",light:"#ffffff"},errorCorrectionLevel:"M"}).then(_=>{A||i(_)}).catch(()=>{A||i(void 0)}),()=>{A=!0}},[h]),r.starting||!r.authorization&&!r.error)return y.jsx(nd,{label:"Preparing authorization…",compact:!0});if(r.error||((b=r.authorization)==null?void 0:b.state)==="failed")return y.jsx("div",{className:"px-5 pb-5",children:y.jsx(vi,{children:r.error??((E=r.authorization)==null?void 0:E.error)??"Authorization failed"})});if(((x=r.authorization)==null?void 0:x.state)==="cancelled")return y.jsx("div",{className:"px-5 pb-5 text-sm text-muted-foreground",children:"Authorization was cancelled."});const p=async()=>{if(!(!h||s)){f(!0),m(void 0);try{await l.host.openExternal(h)}catch(A){m(hn(A))}finally{f(!1)}}};return y.jsxs("div",{className:"grid justify-items-center gap-4 px-5 pb-6 text-center",children:[y.jsx("div",{className:"grid size-64 place-items-center rounded-2xl border border-border bg-white p-3 shadow-sm",children:o?y.jsx("img",{src:o,alt:"Feishu authorization QR code",className:"size-full"}):y.jsx(rr,{className:"size-5 animate-spin text-muted-foreground"})}),y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:((C=r.authorization)==null?void 0:C.status)??"Scan with Feishu"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Keep this window open until the bot is connected."})]}),h&&y.jsxs(ct,{type:"button",variant:"outline",size:"sm",disabled:s,onClick:()=>void p(),children:[s?y.jsx(rr,{className:"animate-spin"}):y.jsx(fA,{}),s?"Opening…":"Open authorization page"]}),d&&y.jsx(vi,{children:d})]})}function yy({icon:l,title:r,description:o,recommended:i=!1,onClick:s}){return y.jsxs("button",{type:"button",className:"group flex w-full items-center gap-4 rounded-xl border border-border p-4 text-left transition-colors hover:border-primary/40 hover:bg-primary/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:s,children:[y.jsx("span",{className:"grid size-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:y.jsx(l,{className:"size-5"})}),y.jsxs("span",{className:"min-w-0 flex-1",children:[y.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("strong",{className:"text-sm",children:r}),i&&y.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-medium text-primary",children:"Recommended"})]}),y.jsx("span",{className:"mt-1 block text-sm text-muted-foreground",children:o})]}),y.jsx(D0,{className:"size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"})]})}function IR({onAdd:l}){return y.jsx("div",{className:"grid min-h-72 place-items-center rounded-xl border border-dashed border-border bg-muted/20 p-8 text-center",children:y.jsxs("div",{className:"grid max-w-md justify-items-center gap-3",children:[y.jsx("span",{className:"grid size-12 place-items-center rounded-xl bg-primary/10 text-primary",children:y.jsx(AA,{className:"size-5"})}),y.jsxs("div",{children:[y.jsx("h2",{className:"font-medium",children:"No Lark bots yet"}),y.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Add a bot with existing credentials or connect one by scanning a QR code."})]}),y.jsxs(ct,{size:"sm",onClick:l,children:[y.jsx(j0,{}),"Add first bot"]})]})})}function A1({bot:l}){const r=l.enabled?l.state==="running"?l.connected?"Connected":"Running":T1(l.state):"Disabled";return y.jsx("span",{className:Oe("rounded-full border px-2 py-0.5 font-mono text-[10px]",l.enabled&&l.state==="running"&&"border-success/25 bg-success/10 text-success",l.enabled&&l.state==="failed"&&"border-destructive/25 bg-destructive/10 text-destructive",(!l.enabled||!["running","failed"].includes(l.state))&&"border-border bg-muted text-muted-foreground"),children:r})}function FR({bot:l,disabled:r,removing:o,onRemove:i}){return y.jsxs(K2,{children:[y.jsx(w0,{asChild:!0,children:y.jsxs(ct,{variant:"destructive",disabled:r,children:[o?y.jsx(rr,{className:"animate-spin"}):y.jsx(wA,{}),"Remove bot"]})}),y.jsxs(A0,{children:[y.jsxs(J2,{children:[y.jsx(C0,{children:"Remove this Lark bot?"}),y.jsxs(T0,{children:[l.name," will stop receiving messages. Existing conversation data remains in the plugin's private data directory."]})]}),y.jsxs(I2,{children:[y.jsx(N0,{children:"Cancel"}),y.jsx(R0,{variant:"destructive",onClick:i,children:"Remove bot"})]})]})]})}function zf({label:l,value:r,mono:o=!1}){return y.jsxs("div",{children:[y.jsx("dt",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:l}),y.jsx("dd",{className:Oe("mt-1 text-sm",o&&"font-mono text-xs"),children:r})]})}function mi({label:l,htmlFor:r,hint:o,required:i=!1,children:s}){const f=o?`${r}-description`:void 0;return y.jsxs("div",{className:"grid gap-1.5",children:[y.jsxs("label",{htmlFor:r,className:"text-sm font-medium",children:[l,i&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"ml-1 text-destructive","aria-hidden":"true",children:"*"}),y.jsx("span",{className:"sr-only",children:" (required)"})]})]}),s,o&&y.jsx("p",{id:f,className:"text-xs text-muted-foreground",children:o})]})}function vi({children:l}){return y.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive/10 p-3 text-sm text-destructive",role:"alert","aria-live":"assertive",children:[y.jsx(z0,{className:"mt-0.5 size-4 shrink-0"}),y.jsx("span",{children:l})]})}function nd({label:l,compact:r=!1}){return y.jsxs("div",{className:Oe("flex items-center justify-center gap-2 text-sm text-muted-foreground",r?"min-h-64":"min-h-56"),children:[y.jsx(rr,{className:"size-4 animate-spin"}),l]})}function WR(l,r){var o;return((o=r.find(i=>i.id===l))==null?void 0:o.name)??l}function eN(l){return l==="traex"?"Trae":T1(l)}function C1(l){const r=new Date(l);return Number.isNaN(r.getTime())?l:new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function T1(l){return l&&`${l[0].toUpperCase()}${l.slice(1)}`}function hn(l){return l instanceof Error?l.message:String(l)}const R1=document.getElementById("root");if(!R1)throw new Error("Lark settings UI root is missing");const N1=new aw;window.addEventListener("beforeunload",()=>N1.destroy(),{once:!0});fw.createRoot(R1).render(y.jsx(ZR,{bridge:N1}));