Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(web): 口味页整页归 React,分析范围写进键里、图表都是 React 组件

longmeidao716da87b2a50
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 07d8f7152..a5c12567c 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -14,11 +14,12 @@ React + Tailwind v4 + BoardUI 源码。迁移方式是 strangler:
| --- | --- |
| `frontend/src/islands.ts` | 挂载契约与注册表,构建入口;其余导出是遗留层仍在用的助手 |
| `frontend/src/api.ts` | 带 `AbortController` 的取数封装 |
-| `frontend/src/management.ts` | 数据管理首屏 Fieldset、网盘能力显隐与浏览历史导入指南 |
+| `frontend/src/management.ts` | 数据管理首屏 Fieldset 与网盘能力显隐 |
| `frontend/src/legacy/*.d.ts` | `/js/core.js`、`/js/ui-components.js` 的手写类型 |
| `frontend/src/react/` | React 子树:`entry.tsx` 是构建入口,`bundle.d.ts` 是对外契约,`boardui/` 逐字复制 BoardUI 源码 |
| `frontend/src/react/query.ts` | React 子树唯一的 TanStack Query 客户端,页面级 `prefetch` 与组件读的是同一份缓存 |
| `frontend/src/react/components/` | Peach 自己的组合件(说明条、进度、空态、等待点),BoardUI 注册表里没有对应条目的那些 |
+| `frontend/src/react/taste/` | 口味页:`taste.ts` 是契约与几何算法,`charts.tsx` 是雷达/名次条/热力/桑基,`taste-page.tsx` 是整页 |
| `frontend/test/` | vitest 用例与遗留模块的桩;`test/react/` 直接挂组件,`islands.test.ts` 走挂载契约 |
| `web/dist/peach-ui.js` | 构建产物,**进 Git**,由 `/dist/{name}` 提供 |
| `web/dist/peach-react.js`、`peach-react.css` | React 子树的构建产物,**进 Git** |
@@ -72,7 +73,7 @@ URL 都从它来,它被缓存住就没人看得到新产物。
| `02-topbar.css` | 顶栏与顶部三层 |
| `03-filterbar.css` | 常驻筛选层、combo、页面提要 |
| `04-manage.css` | 统计页、播单、复核、元数据、数据管理 fieldset |
-| `05-insights.css` | Analytics/Speed Insights 与口味页 |
+| `05-insights.css` | Analytics/Speed Insights,以及口味页骨架的板块与指标条 |
| `06-index.css` | 索引页、标签词表、字母表 |
| `07-entity.css` | 实体资料页头、外链、相关人物 |
| `08-photos.css` | 照片墙与灯箱主体 |
@@ -216,6 +217,14 @@ const job = useQuery({
BoardUI 的 `chart-*` 档。点一个内容标签是「回目录并按它筛选」,整页换成目录仍归遗留壳,页面
只把标签键交回去(`onTag`)。
+口味页(`src/react/taste/`)把「同一份真相换一个范围看」写进键里:`['taste', window]`,换范围
+就是换键,上一份靠 `placeholderData: keepPreviousData` 留在屏幕上。范围是组件状态而不是 URL——
+它不进路由表,壳只按 `/taste` 一条路由挂岛,刷新回到默认的「全部」。服务端的 `_get_taste` 自己
+按 `taste:{window}` 缓存,演示库上一趟往返十几毫秒,所以这一页不设 `staleTime`。后台重算是另
+一个键 `['taste','refresh']`,`running` 时两秒问一次、闲时十秒,终态按下面第 2 条的判据认。
+雷达、名次条、活动热力和创作者桑基都是 React 组件,几何落在 SVG 属性上,颜色只取 BoardUI 的
+`chart-*` 档。
+
## 迁移下一个页面
整页归 React(ADR-0031)。先挑一个**容器不与别人共用**的页面;写操作和后台任务的
@@ -294,9 +303,9 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal
| `tailwindcss`、`@tailwindcss/vite` | 按 `src/react/` 里实际用到的类名生成 `peach-react.css` |
| `@types/react`、`@types/react-dom` | React 子树的类型检查 |
-React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 810.7 kB(gzip 208.5 kB),
-只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 91.6 kB(gzip 14.3 kB),
-由 `index.html` 在旧样式表之前引入。`peach-ui.js` 81.5 kB(gzip 25.7 kB),只剩挂载契约与
+React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 870.0 kB(gzip 222.9 kB),
+只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 92.6 kB(gzip 14.5 kB),
+由 `index.html` 在旧样式表之前引入。`peach-ui.js` 55.3 kB(gzip 18.3 kB),只剩挂载契约与
遗留层的助手。`build.cssTarget` 对齐 Tailwind v4 的浏览器基线
(Chrome 111、Firefox 128、Safari 16.4),oklch 颜色原样输出:目标再旧,lightningcss 会补
`lab()` 回退,末位小数随平台浮点不同,CI 在 Linux 上重建的产物就与提交的对不上。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index f575bcceb..91383cb01 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -4,11 +4,11 @@
## BoardUI 正式前端迁移
-Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已整页迁到 React 的是配置页、活动页、高清版页、来源和凭证页、统计页、换头像那一屏,以及扫描与采集的卡片和目录页横幅(两个容器读同一个 `queryKey`);前端只有 React 一档,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
+Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已整页迁到 React 的是配置页、活动页、高清版页、来源和凭证页、统计页、口味页、换头像那一屏,以及扫描与采集的卡片和目录页横幅(两个容器读同一个 `queryKey`);前端只有 React 一档,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
前端基础库随页面引入,取舍与时机见 ADR-0031「前端基础库」一节:TanStack Query 已随活动页进入,所有 React root 共用一个 `QueryClient`,数据管理卡片的总数在那一页迁移时读高清版页同一个 `queryKey`;TanStack Table 随关注管理表格与 BoardUI Data Table 进;React Router 在外壳与路由迁移那一步接管;TanStack Virtual 在馆藏网格迁到 React 时按实测决定。Remix Icon 候选审查在预览 `/icon-review.html`,现有已选图标保留至用户筛选。迁移不包含版本号或其他分支发布工作。
-统计页的四张读数卡兼页签、环形库存图与可展开排名在 React 层(`frontend/src/react/stats/`),口味页接入 Stat Cards、可展开排名、雷达;浏览历史支持时间范围、真实访问热图和网站到创作者线索的流向。侧栏使用同一导航的 60/260px 宽窄态,手机从左侧滑入。设置滚动渐隐、手机输入字号、焦点环留白及登录保持时长已接入。Pro 组件使用公开行为的独立适配,范围见 [Board 适配](BOARD_UI.md)。
+统计页的四张读数卡兼页签、环形库存图与可展开排名在 React 层(`frontend/src/react/stats/`);口味页的读数卡、可展开排名、雷达、按时间范围的真实访问热图与网站到创作者线索的流向在 `frontend/src/react/taste/`。侧栏使用同一导航的 60/260px 宽窄态,手机从左侧滑入。设置滚动渐隐、手机输入字号、焦点环留白及登录保持时长已接入。Pro 组件使用公开行为的独立适配,范围见 [Board 适配](BOARD_UI.md)。
侧栏底部固定设置和明暗开关,顶部独立按钮控制展开;媒体库图标负责打开选择面板,首页入口使用 Peach logo。路径可命名分组并选择图标,网盘默认图标由本机提供;库选择限定作品列表与筛选项。统计、口味和维护任务保持全局。关注提供默认视图与表格视图,共享作者分组、排序、多选和批量删除;默认视图可收起作者,表格视图表头可排序,最近观看标题可跳转视频。详情优先响应 Esc,手机排序栏可横向滚动。预览不保存真实配置。
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 61ab56489..57567993c 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -20,7 +20,7 @@
- 增量列表复用 `wireLoadMore` 的请求锁、原位重试与卸载清理;页面注入读取、追加、代际判定和可用条件。首页页码在读取成功后推进,照片沿用随机种子,关注合并分组。显式页码继续使用 `pagination.ts`。
- 后台任务复用 `watchJob`、`followJobProgress` 默认面板及 `jobActivityHtml` 的真实计数/未知总量显示;关注、来源扫描、链接检查和扫描采集共用渲染。业务保留启动、终态回执和结果面板,不新增轮询循环。
- 图标按钮统一清除浏览器内边距并居中 SVG,不覆盖业务显隐。Remix Icon 由 `vendor_web_dependencies.mjs` 生成设置导航 symbol;随机按钮保留原有双路径动画。
-- `frontend/src/board-sankey.ts` 使用 d3-sankey 0.12.3(BSD-3-Clause;类型包 0.12.5)计算来源网站到创作者线索的流向。布局依赖不读取浏览历史;Peach 提供去重聚合值并负责隐私边界。分发许可随 `web/vendor/d3-LICENSE.txt` 保留。
+- `frontend/src/react/taste/taste.ts` 使用 d3-sankey 0.12.3(BSD-3-Clause;类型包 0.12.5)计算来源网站到创作者线索的流向。布局依赖不读取浏览历史;Peach 提供去重聚合值并负责隐私边界。分发许可随 `web/vendor/d3-LICENSE.txt` 保留。
复核复用 Checkbox、Button、Badge、Select 与 `/api/review/decision`,默认勾选并沿用馆藏页 Shift 连选语义;支持跨组通过/拒绝与无歧义的共同来源选择。按候选数量、来源组合或字段分组,每项仅出现一次,切组保留选择;成功移出、失败保留,页面离开后停止后续提交。正文使用不占宽度的 Scroller,完成结果复用成功 Note。身份候选复用创作者页、作品详情与 revealSource 核对样本;来源图片和缺图占位共用 220px 预览区,加载失败保留占位。样本读取支持无缩略图作品,回收站不参与。
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index 5db1a4bf3..b839a57a8 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -57,6 +57,12 @@ const ROUTES: readonly Route[] = [
path: '/stats',
body: (page) => [heading(page, '#main', '统计'), statsInventoryTab(page)],
},
+ {
+ // 骨架那条指标带也写着「浏览记录」,认不出画完没有;把两套证据做成页签的只有真页面。
+ path: '/taste',
+ body: (page) => [heading(page, '#main', '口味'),
+ page.locator('#stats').getByRole('tab', { name: '浏览器记录', exact: true })],
+ },
{ path: '/review', body: (page) => [heading(page, '#main', '人工复核'), heading(page, '#stats', '复核分类')] },
{
path: '/data-cleanup',
diff --git a/frontend/src/board-analytics.ts b/frontend/src/board-analytics.ts
deleted file mode 100644
index fa79731c7..000000000
--- a/frontend/src/board-analytics.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { esc } from '@peach/legacy/core';
-
-const valid=(value:number)=>Number.isFinite(value)&&value>=0;
-
-export interface HistoryActivity { timezone?:string; days:{date:string;count:number}[]; hours:{weekday:number;hour:number;count:number}[] }
-const weekdays=['周一','周二','周三','周四','周五','周六','周日'];
-export function activityChartsHtml(activity:HistoryActivity|undefined) {
- if(!activity?.days?.length)return '<section class="board-activity-empty"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>';
- const hours=Array.from({length:7},()=>Array<number>(24).fill(0));
- for(const item of activity.hours||[])if(Number.isInteger(item.weekday)&&item.weekday>=0&&item.weekday<7&&Number.isInteger(item.hour)&&item.hour>=0&&item.hour<24&&valid(item.count))hours[item.weekday]![item.hour]=(hours[item.weekday]![item.hour]||0)+item.count;
- const max=Math.max(1,...hours.flat()),total=hours.flat().reduce((a,b)=>a+b,0);
- const cells=hours.map((row,day)=>`<span class="board-heat-axis">${weekdays[day]}</span>${row.map((count,hour)=>`<button type="button" data-heat-value="${count}" data-heat-label="${weekdays[day]} ${hour}:00" aria-label="${weekdays[day]} ${hour}:00,${count} 次访问" style="--heat:${count?Math.max(12,count/max*100):0}%"></button>`).join('')}`).join('');
- const days=activity.days.filter(row=>/^\d{4}-\d{2}-\d{2}$/.test(row.date)&&valid(row.count)).sort((a,b)=>a.date.localeCompare(b.date));
- if(!days.length)return '';
- const end=new Date(`${days.at(-1)!.date}T00:00:00Z`),start=new Date(end);start.setUTCDate(start.getUTCDate()-90);
- const daily=new Map(days.map(row=>[row.date,row.count])),dayMax=Math.max(1,...days.map(row=>row.count));
- const calendar=Array.from({length:91},(_,index)=>{const date=new Date(start);date.setUTCDate(start.getUTCDate()+index);const key=date.toISOString().slice(0,10),count=daily.get(key)||0;return `<button type="button" data-heat-value="${count}" data-heat-label="${key}" aria-label="${key},${count} 次访问" style="--heat:${count?Math.max(12,count/dayMax*100):0}%"></button>`}).join('');
- return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${total.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({length:24},(_,hour)=>`<span class="board-heat-axis">${hour%2?'':hour}</span>`).join('')}${cells}</div></div><footer>星期 × 小时<span>${esc(activity.timezone||'UTC+08:00')}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${days.filter(row=>row.date>=start.toISOString().slice(0,10)).reduce((sum,row)=>sum+row.count,0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${calendar}</div><footer>${start.toISOString().slice(0,10)}<span>${days.at(-1)!.date}</span></footer></section></div>`;
-}
-
-export function wireActivityCharts(root:ParentNode) {
- root.querySelectorAll<HTMLElement>('[data-heat-card]').forEach(card=>{
- const number=card.querySelector<HTMLElement>('[data-heat-number]')!,title=card.querySelector<HTMLElement>('[data-heat-title]')!,total=number.textContent;
- card.querySelectorAll<HTMLElement>('[data-heat-value]').forEach(cell=>{
- const show=()=>{number.textContent=Number(cell.dataset.heatValue).toLocaleString();title.textContent=cell.dataset.heatLabel!};
- const reset=()=>{number.textContent=total;title.textContent=title.dataset.heatDefault!};
- cell.addEventListener('pointerenter',show);cell.addEventListener('pointerleave',reset);cell.addEventListener('focus',show);cell.addEventListener('blur',reset);
- });
- });
-}
diff --git a/frontend/src/board-controls.ts b/frontend/src/board-controls.ts
index 55848596e..2b84a9cb5 100644
--- a/frontend/src/board-controls.ts
+++ b/frontend/src/board-controls.ts
@@ -27,7 +27,7 @@ export function syncBoardRange(input: HTMLInputElement) {
}
export function initBoardControls() {
- const scan=(root:ParentNode)=>{root.querySelectorAll<HTMLInputElement>('input[type=range]').forEach(syncBoardRange);wireBoardSegments(root);wireBoardTabs(root);wireGrowingCharts(root)};
+ const scan=(root:ParentNode)=>{root.querySelectorAll<HTMLInputElement>('input[type=range]').forEach(syncBoardRange);wireBoardSegments(root);wireBoardTabs(root)};
scan(document);
const observer=new MutationObserver(records=>{for(const record of records)for(const node of record.addedNodes)if(node instanceof Element){if(node.matches('input[type=range]'))syncBoardRange(node as HTMLInputElement);scan(node)}});
observer.observe(document.body,{subtree:true,childList:true});
@@ -78,7 +78,7 @@ const segmentPositions=new Map<string,{x:number;y:number;w:number;h:number}>();
面板切换那几组是 `role=tablist`:滑块换成按 `aria-selected` 找当前项,ARIA 仍然是 Tabs
控制 tabpanel,不为了长得像分段控件就把它写成 radiogroup。 */
export function wireBoardSegments(root:ParentNode) {
- const selector='.iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch';
+ const selector='.iconswitch,.insightswitch,.follow-workspace-switch';
const groups=[...root.querySelectorAll<HTMLElement>(selector)];
if(root instanceof HTMLElement&&root.matches(selector))groups.push(root);
groups.forEach(group=>{
@@ -104,45 +104,3 @@ export function wireBoardSegments(root:ParentNode) {
measure();requestAnimationFrame(()=>group.classList.add('board-segments-ready'));
});
}
-
-/** 排名条与雷达图进入可见区域后才从零长出(1.2 秒,与统计圆环同一条曲线);减少动态效果时直接显示。 */
-export function wireGrowingCharts(root:ParentNode) {
- const selector='.board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card';
- const charts=[...root.querySelectorAll<HTMLElement>(selector)];
- if(root instanceof HTMLElement&&root.matches(selector))charts.push(root);
- charts.forEach(chart=>{
- if(chart.hasAttribute('data-board-chart'))return;chart.dataset.boardChart='true';
- /* 长完就钉住终态:这些图表大多住在 tab 面板里,面板一藏一显 display 就换过一轮,
- 动画会跟着重头再放。等同一棵子树里没有还在跑的动画再钉,避免掐掉后半段。 */
- chart.addEventListener('animationend',()=>{
- if(chart.getAnimations?.({subtree:true}).some(animation=>animation.playState==='running'))return;
- chart.classList.add('board-chart-settled');
- });
- const reveal=()=>chart.classList.add('board-chart-visible');
- if(typeof IntersectionObserver==='undefined'||matchMedia('(prefers-reduced-motion: reduce)').matches){reveal();return}
- const observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting)){observer.disconnect();reveal()}},{threshold:.15});
- observer.observe(chart);
- });
-}
-
-export function wireExpandableRanks(root:ParentNode) {
- root.querySelectorAll<HTMLElement>('.tasteranks').forEach((list,index)=>{
- if(list.children.length<=5||list.parentElement?.hasAttribute('data-expandable-ranks'))return;
- const outer=document.createElement('div');outer.className='board-expand-ranks';outer.dataset.expandableRanks='';list.before(outer);outer.append(list);
- list.id=list.id||`board-rank-list-${index}`;list.classList.add('board-rank-list');
- const button=document.createElement('button');button.type='button';button.className='board-rank-expand';button.setAttribute('aria-controls',list.id);button.setAttribute('aria-expanded','false');button.setAttribute('aria-label','展开更多排名');button.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-down"/></svg>';outer.append(button);
- /* 收起时正好露五行,第五行落在渐隐里当那个「还有」的提示(boardui 实测:五行 196px、
- 淡掉最后 44px)。多留一截空白的话渐隐盖的是空处,看不出下面还有内容。 */
- const size=()=>{const row=list.children[4] as HTMLElement;if(!list.offsetWidth)return;outer.style.setProperty('--rank-collapsed-height',`${row.offsetTop-list.offsetTop+row.offsetHeight}px`);outer.style.setProperty('--rank-expanded-height',`${list.scrollHeight}px`)};
- const update=()=>{const expanded=button.getAttribute('aria-expanded')==='true';outer.classList.toggle('expanded',expanded);[...list.children].forEach((child,i)=>(child as HTMLElement).inert=!expanded&&i>=5);size()};
- /* 高度过渡只挂在点按那一下。切维度标签时内容换了、量出的高度跟着变,常驻过渡会让列表抖一下。 */
- const settle=(event:Event)=>{if(event.target===list)outer.classList.remove('toggling')};
- list.addEventListener('transitionend',settle);list.addEventListener('transitioncancel',settle);
- /* 收起时展开键钉在指针下。排名卡多在页底,列表变短后视口必须回退;不钉的话键先被带着上移、
- 到底后才换成页面回滚,方向中途一折就是「滚了一下」。过渡期间逐帧按它的位移回滚。 */
- const pin=()=>{const top=button.getBoundingClientRect().top,until=performance.now()+300;
- const hold=()=>{const shift=button.getBoundingClientRect().top-top;if(shift)window.scrollBy(0,shift);if(performance.now()<until)requestAnimationFrame(hold)};hold()};
- button.onclick=()=>{const expanded=button.getAttribute('aria-expanded')!=='true';button.setAttribute('aria-expanded',String(expanded));button.setAttribute('aria-label',expanded?'收起排名':'展开更多排名');outer.classList.add('toggling');update();if(!expanded)pin()};
- new ResizeObserver(size).observe(list);update();
- });
-}
diff --git a/frontend/src/board-metrics.ts b/frontend/src/board-metrics.ts
deleted file mode 100644
index c58bfeead..000000000
--- a/frontend/src/board-metrics.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/** 指标卡与排名图:使用服务端读数,不推导不存在的环比。 */
-const escape=(value:unknown)=>String(value??'').replace(/[&<>"']/g,char=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[char]!));
-export function statCardBody(label:string,value:string,detail:string,icon='chart-no-axes-combined'):string {
- const glyph=/^[a-z0-9-]+$/.test(icon)?icon:'database';
- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${glyph}"/></svg></span>${escape(label)}</span><b class="board-stat-value">${escape(value)}</b><small class="board-stat-footer">${escape(detail||'当前记录')}</small>`;
-}
-export interface RankedMetric { name:string; score:number }
-export function jobProgressHtml(label:string,value:number,max:number):string {
- if(!Number.isFinite(max)||max<=0)return '';
- const done=Math.max(0,Math.min(max,Number.isFinite(value)?value:0)),percent=done/max*100;
- return `<div class="board-job-progress" role="progressbar" aria-label="${escape(label)}" aria-valuemin="0" aria-valuemax="${max}" aria-valuenow="${done}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${percent} ${100-percent}" transform="rotate(-90 18 18)"/></svg><span>${escape(label)}<small>${Math.round(percent)}%</small></span></div>`;
-}
-export function distributionChart(rows:RankedMetric[],label:string):string {
- const values=rows.filter(row=>Number.isFinite(row.score)&&row.score>0),total=values.reduce((sum,row)=>sum+row.score,0);
- if(!total)return '';
- let offset=0;
- const sectors=values.map((row,i)=>{const length=row.score/total*100;const circle=`<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${i%4})" stroke-width="22" stroke-dasharray="${length} ${100-length}" stroke-dashoffset="${-offset}"><title>${escape(row.name)}:${row.score.toLocaleString()}</title></circle>`;offset+=length;return circle}).join('');
- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${escape(label)}"><g transform="rotate(-90 100 100)">${sectors}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${escape(label)}</text></svg>`;
-}
-export function rankedChart(rows:RankedMetric[],label:string):string {
- const values=rows.filter(row=>Number.isFinite(row.score)&&row.score>0).slice().sort((a,b)=>b.score-a.score).slice(0,8);
- if(!values.length)return '';
- const max=values[0]!.score;
- const bars=values.map(row=>`<li><span class="board-rank-fill" style="width:${(row.score/max*100).toFixed(2)}%"></span><span>${escape(row.name)}</span><b>${row.score.toLocaleString()}</b></li>`).join('');
- return `<ol class="board-ranked-chart" aria-label="${escape(label)}">${bars}</ol>`;
-}
-export function radarChart(rows:RankedMetric[],label:string):string {
- const values=rows.filter(row=>Number.isFinite(row.score)&&row.score>0).slice().sort((a,b)=>b.score-a.score).slice(0,6);
- if(values.length<3)return '';
- const max=Math.max(...values.map(row=>row.score)),n=values.length;
- const point=(i:number,r:number):[number,number]=>{const a=i/n*Math.PI*2-Math.PI/2;return [160+Math.cos(a)*r,140+Math.sin(a)*r]};
- const polygon=(radius:(i:number)=>number)=>values.map((_,i)=>point(i,radius(i)).map(v=>v.toFixed(2)).join(',')).join(' ');
- const grid=[25,50,75,100].map(r=>`<polygon points="${polygon(()=>r)}" class="board-radar-grid"/>`).join('');
- const axes=values.map((row,i)=>{const [x,y]=point(i,116);return `<text x="${x}" y="${y}" text-anchor="${x<145?'end':x>175?'start':'middle'}">${escape(row.name)}</text>`}).join('');
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${escape(label)}"><title>${escape(values.map(row=>`${row.name} ${row.score}`).join(','))}</title>${grid}<polygon points="${polygon(i=>values[i]!.score/max*100)}" class="board-radar-value"/>${axes}</svg>`;
-}
diff --git a/frontend/src/board-sankey.ts b/frontend/src/board-sankey.ts
deleted file mode 100644
index f7719e763..000000000
--- a/frontend/src/board-sankey.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { sankey, sankeyLinkHorizontal } from 'd3-sankey';
-import { esc } from '@peach/legacy/core';
-export interface CreatorFlow { source:string; target:string; value:number }
-
-export function creatorSankeyHtml(rows:CreatorFlow[] = []) {
- const flows=rows.filter(row=>row.source&&row.target&&Number.isFinite(row.value)&&row.value>0);
- if(!flows.length)return '';
- const sources=[...new Set(flows.map(row=>row.source))],targets=[...new Set(flows.map(row=>row.target))];
- const graph=sankey<{id:string;name:string;side:string},{}>().nodeId(node=>node.id).nodeWidth(10).nodePadding(22).extent([[155,16],[535,404]])({
- nodes:[...sources.map(name=>({id:`source:${name}`,name,side:'source'})),...targets.map(name=>({id:`target:${name}`,name,side:'target'}))],
- links:flows.map(row=>({source:`source:${row.source}`,target:`target:${row.target}`,value:row.value})),
- });
- const total=flows.reduce((sum,row)=>sum+row.value,0),path=sankeyLinkHorizontal();
- const links=graph.links.map(link=>{
- const source=link.source as typeof graph.nodes[number],target=link.target as typeof graph.nodes[number];
- return `<path d="${path(link)}" stroke-width="${Math.max(.5,link.width||0)}" style="--flow-color:var(--board-chart-${sources.indexOf(source.name)%6})" data-flow-source="${source.index}" data-flow-target="${target.index}" data-flow-value="${link.value}" data-flow-label="${esc(source.name)} → ${esc(target.name)}" tabindex="0" role="img" aria-label="${esc(source.name)} → ${esc(target.name)}:${link.value} 条线索"/>`;
- }).join('');
- const nodes=graph.nodes.map(node=>`<g data-flow-node="${node.index}" data-flow-value="${node.value}" data-flow-label="${esc(node.name)}" tabindex="0" role="img" aria-label="${esc(node.name)}:${node.value} 条线索"><rect x="${node.x0}" y="${node.y0}" width="10" height="${Math.max(1,(node.y1||0)-(node.y0||0))}" rx="5" fill="${node.side==='source'?`var(--board-chart-${sources.indexOf(node.name)%6})`:'var(--color-text-secondary)'}"/><text x="${node.side==='source'?145:545}" y="${((node.y0||0)+(node.y1||0))/2}" text-anchor="${node.side==='source'?'end':'start'}" dominant-baseline="middle">${esc(node.name.length>18?node.name.slice(0,16)+'…':node.name)}<tspan x="${node.side==='source'?145:545}" dy="15">${node.side==='source'?node.value?.toLocaleString():((node.value||0)/total*100).toFixed(1)+'%'}</tspan></text></g>`).join('');
- return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${total.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${links}</g><g class="board-sankey-nodes">${nodes}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
-}
-
-export function wireCreatorSankey(root:ParentNode) {
- root.querySelectorAll<HTMLElement>('[data-sankey-card]').forEach(card=>{
- const links=[...card.querySelectorAll<SVGElement>('[data-flow-source]')],nodes=[...card.querySelectorAll<SVGElement>('[data-flow-node]')];
- const headline=card.querySelector('[data-sankey-number]')!,label=card.querySelector('[data-sankey-label]')!,total=headline.textContent;
- const reset=()=>{links.forEach(link=>link.style.opacity='');nodes.forEach(node=>node.style.opacity='');headline.textContent=total;label.textContent='条线索'};
- [...links,...nodes].forEach(element=>{
- const show=()=>{const node=element.dataset.flowNode;
- links.forEach(link=>link.style.opacity=String((node!==undefined?link.dataset.flowSource===node||link.dataset.flowTarget===node:link===element)? .7:.08));
- nodes.forEach(item=>item.style.opacity=String(node!==undefined?(item===element||links.some(link=>(link.dataset.flowSource===node&&link.dataset.flowTarget===item.dataset.flowNode)||(link.dataset.flowTarget===node&&link.dataset.flowSource===item.dataset.flowNode))?1:.3):(item.dataset.flowNode===element.dataset.flowSource||item.dataset.flowNode===element.dataset.flowTarget?1:.3)));
- headline.textContent=Number(element.dataset.flowValue).toLocaleString();label.textContent=element.dataset.flowLabel!;
- };
- element.addEventListener('pointerenter',show);element.addEventListener('pointerleave',reset);element.addEventListener('focus',show);element.addEventListener('blur',reset);
- });
- });
-}
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 8c18c0727..477c6f94c 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -14,10 +14,7 @@
* 都先自我卸载,`unmountIsland` 也不假设 DOM 还在原处。 */
export { preferredDirection } from './sort-preferences';
export { boundedPreference, mountNumberSetting, syncNumberSetting } from './number-setting';
-export { statCardBody, rankedChart, radarChart, distributionChart, jobProgressHtml } from './board-metrics';
-export { initBoardControls, syncBoardRange, wireExpandableRanks, wireGrowingCharts } from './board-controls';
-export { creatorSankeyHtml, wireCreatorSankey } from './board-sankey';
-export { activityChartsHtml, wireActivityCharts } from './board-analytics';
+export { initBoardControls, syncBoardRange } from './board-controls';
export { sidebarSectionHtml, wireSidebarGroups, transitionTheme } from './sidebar-groups';
import type * as ReactBundle from '@peach/react';
@@ -32,7 +29,7 @@ export { entitySkeletonHtml } from './entity-skeleton';
export { boardPageSkeleton, detailSkeletonHtml } from './board-skeleton';
export { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout } from './catalog-onboarding';
export { syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent } from './sidebar';
-export { cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations, tasteHistoryGuideHtml, wireTasteHistoryGuide, TASTE_GUIDE_KEY } from './management';
+export { cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations } from './management';
export { resourceScanHtml } from './resource-sync';
/** 每个 island 的 props。新增 island 时在这里登记,注册表随之要求实现;
@@ -45,6 +42,7 @@ export interface IslandContracts {
configuration: ReactBundle.ConfigurationProps;
activity: ReactBundle.ActivityProps;
stats: ReactBundle.StatsProps;
+ taste: ReactBundle.TasteProps;
}
export type IslandName = keyof IslandContracts;
@@ -64,6 +62,7 @@ const REGISTRY: { [N in IslandName]: Island } = {
configuration: { react: 'configuration' },
activity: { react: 'activity' },
stats: { react: 'stats' },
+ taste: { react: 'taste' },
};
/** 已注册的 island 名字。遗留层与测试用它核对路由表,不必知道注册表结构。 */
diff --git a/frontend/src/jobs.ts b/frontend/src/jobs.ts
index 96a900285..f03431527 100644
--- a/frontend/src/jobs.ts
+++ b/frontend/src/jobs.ts
@@ -1,5 +1,13 @@
+import { esc } from '@peach/legacy/core';
import { noteHtml, loadingDotsHtml } from '@peach/legacy/ui';
-import { jobProgressHtml } from './board-metrics';
+
+/** 任务那枚环形进度。口味页与统计页归 React 之后只剩这一个读者,所以留在它身边。 */
+function jobProgressHtml(label: string, value: number, max: number): string {
+ if (!Number.isFinite(max) || max <= 0) return '';
+ const done = Math.max(0, Math.min(max, Number.isFinite(value) ? value : 0));
+ const percent = done / max * 100;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${esc(label)}" aria-valuemin="0" aria-valuemax="${max}" aria-valuenow="${done}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${percent} ${100 - percent}" transform="rotate(-90 18 18)"/></svg><span>${esc(label)}<small>${Math.round(percent)}%</small></span></div>`;
+}
/** 后台任务查询只重试读状态;启动和写入请求由调用方单次提交。 */
export interface JobState {
diff --git a/frontend/src/management.ts b/frontend/src/management.ts
index 208c0c123..dd26f64c1 100644
--- a/frontend/src/management.ts
+++ b/frontend/src/management.ts
@@ -1,5 +1,3 @@
-import { wireCollapse } from '@peach/legacy/ui';
-
/** 管理页按已配置的来源显示能力;离线来源仍然属于已配置来源。 */
export interface MediaSource { location: string; roots?: unknown[]; online?: boolean }
@@ -47,30 +45,3 @@ export function cleanupSkeletonHtml(): string {
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
-
-/** 使用口味页现有读取/导入按钮,展开指南本身不发起读取。 */
-export function tasteHistoryGuideHtml(onboarding: boolean, completed = false, skipped = false): string {
- if (completed || skipped) return '';
- const external = '<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link"></use></svg>';
- return `<details class="taste-history-guide"${onboarding ? ' open' : ''}>
- <summary><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"></use></svg>浏览器历史记录导入指南</summary>
- <div class="taste-history-guide-content">
- <p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p>
- <p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>
- <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${external}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>
- <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${external}</a> 导出历史记录,再导入导出文件。</li></ul>
- <p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p>
- <button type="button" class="geist-button taste-guide-skip">跳过</button>
- </div></details>`;
-}
-
-/** 跳过是当前浏览器的持久偏好;折叠只改变 details 的展开状态。 */
-export const TASTE_GUIDE_KEY = 'peach-taste-guide-dismissed';
-export function wireTasteHistoryGuide(root: ParentNode, storage: Storage): void {
- wireCollapse(root, '.taste-history-guide', 'taste-guide-collapse');
- const guide = root.querySelector<HTMLDetailsElement>('.taste-history-guide');
- guide?.querySelector<HTMLButtonElement>('.taste-guide-skip')?.addEventListener('click', () => {
- storage.setItem(TASTE_GUIDE_KEY, '1');
- guide.remove();
- });
-}
diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.md
index 2bbbc19f1..c9a2d9391 100644
--- a/frontend/src/react/boardui/ORIGIN.md
+++ b/frontend/src/react/boardui/ORIGIN.md
@@ -60,3 +60,7 @@
| 读数兼页签 | `../stats/stats-page.tsx` 的四张读数卡是 React Aria 的 `Tabs`/`TabList`/`Tab`,选中态是一圈 `border-focus-ring` | `tabs` 条目是页面级导航的下划线页签,这里切的是同一页里的四层细节,而且页签本身要显示读数 |
| 径向图 | `../stats/radial-card.tsx`:每段一圈 SVG,`pathLength={100}` 把一圈钉成 100,颜色只取 `chart-1`…`chart-6`,高亮是 React 状态 | 注册表里没有图表条目;`library-processing-notice.tsx` 的 `Gauge` 是单圈进度,排不下多段对比 |
| 排行 | 同上页面的 `TagRanking`:两列的 `ol`,收起时露前十,展开键是一颗 `secondary` 按钮 | 注册表里没有排行榜;`table` 条目带表头与排序,这里一行只有名次、名字和一个数 |
+| 两套证据的切换 | `../taste/taste-page.tsx` 顶上用 React Aria 的 `Tabs`/`TabList`/`Tab` 整块切浏览器记录与 Peach 内部,选中态取 `background-tertiary-default` | `segmented-control` 没有条目,`tabs` 条目是页面级导航;这里切的是两块各自成篇的内容,不是同一个字段的两种填法 |
+| 雷达图与排行条 | `../taste/charts.tsx` 的 `TasteRadar` 与 `RankedBars`:多边形与矩形都写成 SVG 属性,颜色只取 `chart-4` 与 `chart-track` | 注册表里没有图表条目;`../stats/radial-card.tsx` 是环形占比,画不出多维度的形状与并排的长度 |
+| 热力图 | 同上的 `ActivityCharts`:一格一个 `rect`,浓度是 `fill-opacity`,指到哪一格读数换成哪一格 | 注册表里没有热力图;一格单独没有标注,不换读数就只剩一片颜色深浅 |
+| 流向图 | 同上的 `CreatorSankey`:布局由 `d3-sankey` 算,路径与节点是 SVG,淡入淡出用 `stroke-opacity` | 注册表里没有流向图;`table` 条目排得出同样的数,但看不出来源与创作者之间的分流 |
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 1d41e6686..c984d6fcc 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -128,6 +128,25 @@ export interface StatsProps {
configurable: boolean;
}
+/** 口味页仍由遗留层提供的能力。都是导航、查表或回执,页面不持有它们的状态。 */
+export interface TasteProps {
+ /** 点一条名次:回目录并按它筛选。`kind` 是 `tag`/`creator`/`performer`。 */
+ onSignal(kind: string, name: string): void;
+ /** 去口味总结里指的那一页(`#/manage/scraping` 这类遗留路由)。 */
+ navigate(route: string): void;
+ /** 写操作在服务端落地之后的过去时回执。 */
+ toast(message: string): void;
+ /** 实体圆标的内层 HTML:有图走图,没图退到首字母。遗留层那份唯一的回落链实现。 */
+ avatarInner(
+ name: string,
+ entity: { id: number; has_image: boolean; avatar_focus?: unknown } | null,
+ representativeAssetId: number | null,
+ kind: string,
+ ): string;
+ /** 从引导流程进来(`?onboarding=1`):浏览记录导入指南直接展开。 */
+ onboarding: boolean;
+}
+
/** 来源和凭证页只要遗留层的 Toast:保存与撤销是写操作,回执归全站那一份。 */
export interface ScrapingProps {
/** 写操作在服务端落地之后的过去时回执。 */
@@ -166,6 +185,7 @@ export interface ReactPages {
'quality-goals': ReactPage<QualityGoalsProps>;
scraping: ReactPage<ScrapingProps>;
stats: ReactPage<StatsProps>;
+ taste: ReactPage<TasteProps>;
}
export declare const pages: ReactPages;
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 16d139c01..6a90c142a 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -23,6 +23,8 @@ import { prefetchConfiguration } from './settings/configuration';
import { ConfigurationPage } from './settings/configuration-page';
import { prefetchStats } from './stats/stats';
import { StatsPage } from './stats/stats-page';
+import { DEFAULT_WINDOW, prefetchTaste } from './taste/taste';
+import { TastePage } from './taste/taste-page';
/* Popover 这类弹出层由 React Aria 渲染到挂载容器外面。落在 `body` 上就出了 `.peach-react`
* 的作用域:token 读到的是 `board.css` 的值,Preflight 也管不到。所有 React 根的弹出层都进
@@ -81,4 +83,8 @@ export const pages: Bundle.ReactPages = {
},
scraping: { prefetch: (_props, signal) => prefetchScraping(signal), mount: mounter(ScrapingPage) },
stats: { prefetch: (_props, signal) => prefetchStats(signal), mount: mounter(StatsPage) },
+ /* 首屏取的是「全部时间」那一份:分析范围是组件状态,每次进这一页都从它开始。 */
+ taste: {
+ prefetch: (_props, signal) => prefetchTaste(DEFAULT_WINDOW, signal), mount: mounter(TastePage),
+ },
};
diff --git a/frontend/src/react/settings/section.tsx b/frontend/src/react/settings/section.tsx
index d8a3340e7..3fac1f735 100644
--- a/frontend/src/react/settings/section.tsx
+++ b/frontend/src/react/settings/section.tsx
@@ -100,19 +100,32 @@ export function Fact({ term, children }: { term: ReactNode; children: ReactNode
/** 展开正文。原生 `details` 给键盘与无障碍语义;开合交给共用 Collapse 的 `setCollapseOpen`,
* 它给正文外层挂上旧样式表的 `.fcollapse` 让高度过渡。内边距放在里层,高度才能收到 0。 */
-export function Disclosure({ summary, children }: { summary: string; children: ReactNode }) {
+export function Disclosure(
+ { summary, defaultOpen = false, children }:
+ { summary: string; defaultOpen?: boolean; children: ReactNode },
+) {
const id = useId();
const details = useRef<HTMLDetailsElement>(null);
const body = useRef<HTMLDivElement>(null);
- const [open, setOpen] = useState(false);
+ const primed = useRef(false);
+ const [open, setOpen] = useState(defaultOpen);
const toggle = (event: MouseEvent) => {
event.preventDefault();
if (!details.current || !body.current) return;
setCollapseOpen(details.current, body.current, !open);
setOpen(!open);
};
+ /* 展开一次就交回给 `setCollapseOpen`:`open` 写成 React 的受控属性的话,收起的那段
+ 过渡里它会被重新画成展开。这里只在第一次挂上时把初始状态落到 DOM 上。 */
+ const attach = (node: HTMLDetailsElement | null) => {
+ details.current = node;
+ if (node && defaultOpen && !primed.current) {
+ primed.current = true;
+ node.open = true;
+ }
+ };
return (
- <details ref={details}>
+ <details ref={attach}>
<summary aria-expanded={open} aria-controls={id} onClick={toggle}
className="flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring">
<RiArrowRightSLine aria-hidden className={open ? 'size-4 shrink-0 rotate-90 transition-transform' : 'size-4 shrink-0 transition-transform'} />
diff --git a/frontend/src/react/taste/charts.tsx b/frontend/src/react/taste/charts.tsx
new file mode 100644
index 000000000..9f09e03b9
--- /dev/null
+++ b/frontend/src/react/taste/charts.tsx
@@ -0,0 +1,236 @@
+/* 口味页的四张图:口味维度的雷达与排行条、浏览活跃的两张热力图、创作者线索的流向图。
+ *
+ * 四张都用 SVG 画,几何全写成属性——浓度是 `fill-opacity`,条长是 `rect` 的宽度,
+ * 流的粗细是 `stroke-width`,`no-inline-styles` 因此不必开例外。颜色只取 BoardUI 的
+ * `chart-*` 与 `border-focus-ring` 档。
+ *
+ * 指向一格时读数换成那一格的:这几张图里单独一格没有标注,不换读数就只剩一片颜色深浅。
+ * 换的是 React 状态,指针离开或焦点移走就回到总数。差异登记在 `../boardui/ORIGIN.md`。 */
+import { useState } from 'react';
+import type { ReactNode } from 'react';
+
+import {
+ dayCalendar, flowGraph, flowLabel, FLOW_LABEL_X, FLOW_NODE_WIDTH, FLOW_VIEWBOX, hourGrid,
+ RADAR_GRID, radarPoints, radarRing, radarShape, rankShares, WEEKDAYS,
+ type HeatCell, type CreatorFlow, type RankRow, type TasteActivity,
+} from './taste';
+
+/** 六档图表色循环。类名写成整串,Tailwind 扫得到。 */
+const FLOW_STROKE = [
+ 'stroke-chart-1', 'stroke-chart-2', 'stroke-chart-3',
+ 'stroke-chart-4', 'stroke-chart-5', 'stroke-chart-6',
+];
+const FLOW_FILL = [
+ 'fill-chart-1', 'fill-chart-2', 'fill-chart-3',
+ 'fill-chart-4', 'fill-chart-5', 'fill-chart-6',
+];
+
+const CARD = 'flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5';
+
+/** 一张图的头:一个标题、一个大数、一句它此刻指的是什么。 */
+function ChartHead({ title, figure, note }: { title: string; figure: string; note: string }) {
+ return (
+ <header className="flex flex-col gap-1">
+ <span className="text-caption-1-regular text-text-secondary">{title}</span>
+ <p className="flex flex-wrap items-baseline gap-2">
+ <b className="text-title-1-medium tabular-nums text-text-primary">{figure}</b>
+ <small className="min-w-0 text-caption-1-regular break-words text-text-secondary">{note}</small>
+ </p>
+ </header>
+ );
+}
+
+/** 主要口味维度的雷达图。三个维度以下画不成面,那时整块不出现。 */
+export function TasteRadar({ rows, label }: { rows: RankRow[]; label: string }) {
+ const points = radarPoints(rows);
+ if (!points.length) return null;
+ const count = points.length;
+ return (
+ <svg viewBox="0 0 320 280" role="img" aria-label={label} className="block w-full overflow-visible">
+ <title>{points.map((point) => point.name).join(',')}</title>
+ {RADAR_GRID.map((radius) => (
+ <polygon key={radius} points={radarRing(radius, count)} fill="none"
+ className="stroke-separator-border" strokeWidth={1} />
+ ))}
+ <polygon points={radarShape(points)} strokeWidth={2} strokeLinejoin="round" fillOpacity={0.18}
+ className="fill-chart-4 stroke-chart-4" />
+ {points.map((point) => (
+ <text key={point.name} x={point.labelX} y={point.labelY} dominantBaseline="middle"
+ textAnchor={point.labelX < 145 ? 'end' : point.labelX > 175 ? 'start' : 'middle'}
+ className="fill-text-secondary text-caption-1-regular">{point.name}</text>
+ ))}
+ </svg>
+ );
+}
+
+/** 口味维度排行。一行一条,最长那条占满。 */
+export function RankedBars({ rows, label }: { rows: RankRow[]; label: string }) {
+ const values = rows
+ .filter((row) => Number.isFinite(Number(row.score)) && Number(row.score) > 0)
+ .slice().sort((a, b) => Number(b.score) - Number(a.score)).slice(0, 8);
+ if (!values.length) return null;
+ const shares = rankShares(values);
+ return (
+ <ol aria-label={label} className="flex flex-col gap-2">
+ {values.map((row, index) => (
+ <li key={row.name} className="flex min-w-0 flex-col gap-1.5">
+ <p className="flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary">
+ <span className="min-w-0 break-words">{row.name}</span>
+ <b className="tabular-nums">{Number(row.score).toLocaleString()}</b>
+ </p>
+ <svg viewBox="0 0 100 1" preserveAspectRatio="none" aria-hidden
+ className="h-1.5 w-full overflow-hidden rounded-full">
+ <rect width={100} height={1} className="fill-chart-track" />
+ <rect width={shares[index]} height={1} className="fill-chart-4" />
+ </svg>
+ </li>
+ ))}
+ </ol>
+ );
+}
+
+/** 一张热力图:一格一次浓度,指到哪一格读数就换成哪一格。 */
+function HeatCard(
+ { title, unit, cells, total, columns, rows, axis, footer }:
+ {
+ title: string; unit: string; cells: HeatCell[]; total: number;
+ columns: number; rows: number; axis?: ReactNode; footer: ReactNode;
+ },
+) {
+ const [shown, setShown] = useState<HeatCell | null>(null);
+ const size = 14;
+ const step = 17;
+ const left = axis ? 30 : 0;
+ const top = axis ? 18 : 0;
+ return (
+ <section className={CARD}>
+ <ChartHead title={title} figure={(shown ? shown.count : total).toLocaleString()}
+ note={shown ? shown.label : unit} />
+ <div className="min-w-0 overflow-x-auto">
+ <svg role="img" aria-label={title} onPointerLeave={() => setShown(null)}
+ viewBox={`0 0 ${left + columns * step} ${top + rows * step}`}
+ className="block h-auto min-w-80 w-full">
+ {axis}
+ {cells.map((cell, index) => {
+ const column = index % columns;
+ const row = Math.floor(index / columns);
+ return (
+ <rect key={cell.key} tabIndex={0} role="img" aria-label={`${cell.label},${cell.count} 次访问`}
+ x={left + column * step} y={top + row * step} width={size} height={size} rx={3}
+ fillOpacity={cell.share || 1}
+ className={cell.share
+ ? 'fill-chart-4 outline-none focus-visible:stroke-border-focus-ring'
+ : 'fill-chart-track outline-none focus-visible:stroke-border-focus-ring'}
+ onPointerEnter={() => setShown(cell)}
+ onFocus={() => setShown(cell)} onBlur={() => setShown(null)} />
+ );
+ })}
+ </svg>
+ </div>
+ <footer className="flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary">
+ {footer}
+ </footer>
+ </section>
+ );
+}
+
+const HEAT_UNIT = '口味网站访问';
+
+/** 浏览活跃:星期 × 小时,和最近 91 天。没有可用记录时只留一句话。 */
+export function ActivityCharts({ activity }: { activity: TasteActivity | undefined }) {
+ const hours = hourGrid(activity);
+ const days = dayCalendar(activity);
+ if (!days.cells.length) {
+ return (
+ <section className={CARD}>
+ <h3 className="text-headline-medium text-text-primary">浏览活跃时间</h3>
+ <p className="text-body-2-regular text-text-secondary">还没有可用于分析的口味网站访问记录。</p>
+ </section>
+ );
+ }
+ const axis = (
+ <>
+ {WEEKDAYS.map((name, day) => (
+ <text key={name} x={0} y={18 + day * 17 + 7} dominantBaseline="middle"
+ className="fill-text-secondary text-caption-1-regular">{name}</text>
+ ))}
+ {Array.from({ length: 24 }, (_, hour) => (hour % 2 ? null : (
+ <text key={hour} x={30 + hour * 17} y={8} dominantBaseline="middle"
+ className="fill-text-secondary text-caption-1-regular">{hour}</text>
+ )))}
+ </>
+ );
+ return (
+ <div className="inline-grid w-full gap-5 lg:grid-cols-2">
+ <HeatCard title="浏览活跃时间" unit={HEAT_UNIT} cells={hours.cells} total={hours.total}
+ columns={24} rows={7} axis={axis}
+ footer={<><span>星期 × 小时</span><span>{activity?.timezone || 'UTC+08:00'}</span></>} />
+ <HeatCard title="每日活跃" unit={HEAT_UNIT} cells={days.cells} total={days.total}
+ columns={13} rows={7}
+ footer={<><span>{days.start}</span><span>{days.end}</span></>} />
+ </div>
+ );
+}
+
+/** 创作者线索的来源流向。指一条流或一个节点,读数换成它。 */
+export function CreatorSankey({ flows }: { flows: CreatorFlow[] | undefined }) {
+ const [shown, setShown] = useState<{ value: number; label: string; node: number | null } | null>(null);
+ const graph = flowGraph(flows);
+ if (!graph) return null;
+ const node = shown?.node ?? null;
+ /** 这条流此刻要不要淡下去。指的是节点时留下它两端的流,指的是流时只留它自己。 */
+ const linkLit = (link: typeof graph.links[number], key: string) =>
+ (!shown ? true
+ : node !== null ? link.source === node || link.target === node
+ : shown.label === key);
+ return (
+ <section className={CARD}>
+ <ChartHead title="创作者线索来源" figure={(shown ? shown.value : graph.total).toLocaleString()}
+ note={shown ? shown.label : '条线索'} />
+ <div className="min-w-0 overflow-x-auto">
+ <svg viewBox={`0 0 ${FLOW_VIEWBOX.width} ${FLOW_VIEWBOX.height}`} fill="none"
+ role="img" aria-label="来源网站与创作者线索"
+ className="block h-auto min-w-160 w-full" onPointerLeave={() => setShown(null)}>
+ <g>
+ {graph.links.map((link) => (
+ <path key={link.key} d={link.d} strokeWidth={link.width} tabIndex={0} role="img"
+ aria-label={`${link.label}:${link.value} 条线索`}
+ fillOpacity={0} strokeOpacity={linkLit(link, link.label) ? 0.7 : 0.08}
+ className={`outline-none transition-opacity ${FLOW_STROKE[link.color]}`}
+ onPointerEnter={() => setShown({ value: link.value, label: link.label, node: null })}
+ onFocus={() => setShown({ value: link.value, label: link.label, node: null })}
+ onBlur={() => setShown(null)} />
+ ))}
+ </g>
+ <g>
+ {graph.nodes.map((item) => (
+ <g key={item.id} tabIndex={0} role="img"
+ aria-label={`${item.name}:${item.value} 条线索`}
+ className="outline-none focus-visible:opacity-100"
+ onPointerEnter={() => setShown(
+ { value: item.value, label: item.name, node: item.index })}
+ onFocus={() => setShown({ value: item.value, label: item.name, node: item.index })}
+ onBlur={() => setShown(null)}>
+ <rect x={item.x} y={item.y} width={FLOW_NODE_WIDTH} height={item.height} rx={5}
+ className={item.side === 'source' ? FLOW_FILL[item.color] : 'fill-text-secondary'} />
+ <text x={FLOW_LABEL_X[item.side]} y={item.y + item.height / 2}
+ textAnchor={item.side === 'source' ? 'end' : 'start'} dominantBaseline="middle"
+ className="fill-text-secondary text-caption-1-regular">
+ {flowLabel(item.name)}
+ <tspan x={FLOW_LABEL_X[item.side]} dy={15}>
+ {item.side === 'source'
+ ? item.value.toLocaleString()
+ : `${item.share.toFixed(1)}%`}
+ </tspan>
+ </text>
+ </g>
+ ))}
+ </g>
+ </svg>
+ </div>
+ <footer className="flex justify-between gap-3 text-caption-1-regular text-text-secondary">
+ <span>来源网站</span><span>创作者 · 线索占比</span>
+ </footer>
+ </section>
+ );
+}
diff --git a/frontend/src/react/taste/taste-page.tsx b/frontend/src/react/taste/taste-page.tsx
new file mode 100644
index 000000000..3fc093005
--- /dev/null
+++ b/frontend/src/react/taste/taste-page.tsx
@@ -0,0 +1,610 @@
+/* 口味页:两套证据说同一件事。
+ *
+ * 左边是浏览器记录(这台机器上读到的、或从别处导进来的私有导出),右边是 Peach 自己的
+ * 观看行为。两套各有自己的读数、图和名次,由顶上的页签整块切换——它们是两份证据,不是
+ * 同一份数据的两种画法,并排摆会被读成互相印证。
+ *
+ * 分析范围带在 `queryKey` 上(`['taste', window]`),切换时 `keepPreviousData` 留住上一份:
+ * 这一屏的结构不变,只有数在变,退回骨架等于把已经读到的东西收走再放回来。范围本身是
+ * 组件状态,不进地址栏:路由仍归遗留壳,进这一页就是从「全部时间」重新看一遍。
+ *
+ * 「读取浏览器历史」是后台任务,关掉页面照样在跑。首屏读到的旧终态不冒充新结果:只有本次
+ * 点过读取、或者本次亲眼见过它在跑,终态才发回执并让 dashboard 重取(ADR-0031)。 */
+import { useEffect, useRef, useState } from 'react';
+import type { ChangeEvent } from 'react';
+import {
+ RiArrowDownSLine, RiArrowRightSLine, RiCompassLine, RiDatabase2Line, RiDeleteBinLine,
+ RiEyeLine, RiGlobalLine, RiHistoryLine, RiPriceTag3Line, RiSearchLine, RiThumbDownLine,
+ RiThumbUpLine, RiUploadLine, RiUserLine,
+} from '@remixicon/react';
+import { keepPreviousData, useMutation, useQuery } from '@tanstack/react-query';
+import { Dialog, Popover, Tab, TabList, TabPanel, Tabs } from 'react-aria-components';
+
+import { fmtSize, siteMarkUrl } from '@peach/legacy/core';
+import { confirmModal } from '@peach/legacy/ui';
+
+import { Button } from '@/components/base/buttons/button';
+import {
+ MENU_ITEM, MENU_ITEM_INTERACTIVE, MENU_POPOVER_SURFACE,
+} from '@/components/base/dropdown/menu-styles';
+import { Select, SelectItem } from '@/components/base/select/select';
+import { cx } from '@/utils/cx';
+
+import { errorMessage } from '../../api';
+import type { TasteProps } from '../bundle';
+import { EmptyState } from '../components/empty-state';
+import { LoadingDots } from '../components/loading-dots';
+import { Note } from '../components/note';
+import { Page } from '../components/page';
+import { Progress } from '../components/progress';
+import { queryClient } from '../query';
+import { Disclosure } from '../settings/section';
+import { busyProps } from '../settings/use-action';
+import { ActivityCharts, CreatorSankey, RankedBars, TasteRadar } from './charts';
+import {
+ DEFAULT_WINDOW, fetchTaste, fetchTasteJob, importTasteExport, jobPollInterval, rankDetail,
+ rankShares, removeTasteSource, startTasteRefresh, tasteDate, tasteHours, tasteKey,
+ TASTE_REFRESH_KEY, TASTE_WINDOWS, type RankRow, type TasteData, type TasteJob,
+} from './taste';
+
+/** 收起时露这么多条名次。二十条一次铺开会把下面几块整个顶到屏外。 */
+const RANK_PREVIEW = 10;
+
+const MENU_ROW = cx(MENU_ITEM, MENU_ITEM_INTERACTIVE, 'text-body-2-medium');
+const CARD = 'flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5';
+const PANEL_TAB = 'relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary';
+const EVIDENCE_TAB = 'flex cursor-pointer items-center rounded-lg px-3 py-1.5 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary';
+
+/* 中文正文写成常量:JSX 里换行的文字会在接缝处多出一个空格,中文句子里看得见。 */
+const REFRESH_TITLE = '读取运行 Peach 的这台电脑上的浏览记录';
+const NO_SOURCE_HINT = '导入或读取浏览记录后,这里会列出已采集设备。';
+const NO_LEAD_HINT = '馆藏里暂时没有对得上浏览信号的标签。';
+const NO_CATEGORY_HINT = '采集浏览记录后,这里会显示聚合后的口味证据。';
+const GAP_HINT = '这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据';
+const GUIDE_LOCAL = '在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。';
+const GUIDE_REMOTE = '记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。';
+const GUIDE_REFRESH = '需要刷新时再次读取或导入;数据源可在页面底部移除。';
+const REMOVE_BODY = '这个数据源将不再用于口味分析。原始导出文件保留。';
+
+/** 跳过指南是这台浏览器的持久偏好,和分析结果无关,所以不进 Query。 */
+export const TASTE_GUIDE_KEY = 'peach-taste-guide-dismissed';
+
+type Glyph = typeof RiEyeLine;
+
+/** 一格读数:一个名字、一个大数、一句它的来历。 */
+function SummaryCard({ icon: Icon, term, figure, detail }:
+{ icon: Glyph; term: string; figure: string; detail?: string }) {
+ return (
+ <div className="flex min-w-0 flex-col gap-2 rounded-2xl border border-separator-border p-4">
+ <span className="flex min-w-0 items-center gap-2 text-body-2-regular text-text-secondary">
+ <Icon aria-hidden className="size-4 shrink-0" />{term}
+ </span>
+ <b className="text-title-1-medium tabular-nums text-text-primary">{figure}</b>
+ <small className="min-w-0 overflow-hidden text-caption-1-regular text-ellipsis whitespace-nowrap text-text-secondary">
+ {detail ?? ''}
+ </small>
+ </div>
+ );
+}
+
+/** 站点圆标:先垫首字母,服务端那枚圆标叠上去;取不到就把 `<img>` 摘掉,露出首字母。
+ *
+ * 圆标走 `/site-mark`,浏览器不向对方站点也不向任何第三方图标代理发请求——那种请求
+ * 会逐个报出这一列里的每一个站,换回来的只是一枚 16px 位图。 */
+function SiteAvatar({ name, domain }: { name: string; domain: string }) {
+ return (
+ <span className="relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary">
+ {name.slice(0, 1).toUpperCase()}
+ <img src={siteMarkUrl({ domain })} alt="" loading="lazy" width={20} height={20}
+ onError={(event) => event.currentTarget.remove()}
+ className="absolute size-5 object-contain" />
+ </span>
+ );
+}
+
+/** 实体圆标。`avatarInner` 是遗留层唯一那份回落链实现,页面不重画一遍。 */
+function EntityAvatar({ html }: { html: string }) {
+ return (
+ <span className="relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover"
+ dangerouslySetInnerHTML={{ __html: html }} />
+ );
+}
+
+interface RankListProps {
+ rows: RankRow[];
+ /** 点得动时交回给壳的信号类型(`tag`/`creator`/`performer`)。空串表示这一榜不可点。 */
+ kind: string;
+ /** 每行左边画什么:实体圆标、站点圆标,或什么都不画。 */
+ visual: 'entity' | 'domain' | 'creator' | 'none';
+ empty: string;
+ onSignal: TasteProps['onSignal'];
+ avatarInner: TasteProps['avatarInner'];
+}
+
+/** 一榜名次。点得动的那些是按钮,其余是行——馆藏里没有对应条目时点进去只会是一张空页。 */
+function RankList({ rows, kind, visual, empty, onSignal, avatarInner }: RankListProps) {
+ const [expanded, setExpanded] = useState(false);
+ if (!rows.length) {
+ return <EmptyState icon={RiSearchLine} title="暂无足够证据">{empty}</EmptyState>;
+ }
+ const shares = rankShares(rows);
+ const shown = expanded ? rows : rows.slice(0, RANK_PREVIEW);
+ return (
+ <div className="flex flex-col gap-3">
+ <ol className="inline-grid w-full gap-1 sm:grid-cols-2">
+ {shown.map((row, index) => {
+ const clickable = !!kind && !!row.peach_items;
+ const domain = String(row.source_domain || '');
+ const body = (
+ <>
+ <span className="w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary">
+ {index + 1}
+ </span>
+ {visual === 'domain' ? <SiteAvatar name={row.name} domain={row.name} /> : null}
+ {visual === 'creator' && !row.entity_id && !row.has_avatar && domain
+ ? <SiteAvatar name={row.name} domain={domain} /> : null}
+ {visual !== 'none' && visual !== 'domain'
+ && (row.entity_id || row.has_avatar || !domain)
+ ? <EntityAvatar html={avatarInner(
+ row.name,
+ row.entity_id
+ ? { id: row.entity_id, has_image: !!row.has_image, avatar_focus: row.avatar_focus }
+ : null,
+ row.has_avatar ? row.representative_asset_id ?? null : null,
+ visual === 'creator' ? 'creator' : kind || 'performer',
+ )} /> : null}
+ <span className="flex min-w-0 grow flex-col gap-1">
+ <b className="min-w-0 text-body-2-regular break-words text-text-primary">{row.name}</b>
+ <small className="text-caption-1-regular text-text-secondary">{rankDetail(row)}</small>
+ <svg viewBox="0 0 100 1" preserveAspectRatio="none" aria-hidden
+ className="h-1 w-full overflow-hidden rounded-full">
+ <rect width={100} height={1} className="fill-chart-track" />
+ <rect width={shares[index]} height={1} className="fill-chart-4" />
+ </svg>
+ </span>
+ {clickable ? <RiArrowRightSLine aria-hidden className="size-4 shrink-0 text-text-tertiary" /> : null}
+ </>
+ );
+ const shape = 'flex w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left';
+ return (
+ <li key={row.name} className="min-w-0">
+ {clickable
+ ? <button type="button" onClick={() => onSignal(kind, row.name)}
+ className={`${shape} cursor-pointer outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`}>
+ {body}
+ </button>
+ : <div className={shape}>{body}</div>}
+ </li>
+ );
+ })}
+ </ol>
+ {rows.length > RANK_PREVIEW ? (
+ <div className="flex justify-center">
+ <Button variant="secondary" size="small" onClick={() => setExpanded(!expanded)}>
+ {expanded ? '收起排名' : '展开更多排名'}
+ </Button>
+ </div>
+ ) : null}
+ </div>
+ );
+}
+
+/** 一侧证据的维度面板。页签走 React Aria,切的是同一块地方的几层名次。 */
+function DimensionPanels(
+ { label, panels, onSignal, avatarInner }:
+ {
+ label: string;
+ panels: { id: string; name: string; props: Omit<RankListProps, 'onSignal' | 'avatarInner'> }[];
+ } & Pick<TasteProps, 'onSignal' | 'avatarInner'>,
+) {
+ return (
+ <Tabs className="flex flex-col rounded-2xl border border-separator-border">
+ <TabList aria-label={label} className="flex gap-6 overflow-x-auto border-b border-separator-border px-4">
+ {panels.map((panel) => <Tab key={panel.id} id={panel.id} className={PANEL_TAB}>{panel.name}</Tab>)}
+ </TabList>
+ {panels.map((panel) => (
+ <TabPanel key={panel.id} id={panel.id} className="p-4">
+ <RankList {...panel.props} onSignal={onSignal} avatarInner={avatarInner} />
+ </TabPanel>
+ ))}
+ </Tabs>
+ );
+}
+
+/** 口味总结:一句结论、几条要点,加上点进去就能做的事。 */
+function AnalysisCard({ data, onSignal, navigate }:
+{ data: TasteData } & Pick<TasteProps, 'onSignal' | 'navigate'>) {
+ const analysis = data.analysis;
+ if (!analysis?.headline) return null;
+ const confidence = analysis.confidence || {};
+ const leads = [
+ ...(analysis.explore || []).map((item) => (
+ { key: `tag:${item.tag}`, title: item.title, detail: item.detail, act: () => onSignal('tag', item.tag) })),
+ ...(analysis.next_steps || []).map((item) => (
+ { key: `route:${item.route}`, title: item.title, detail: item.detail, act: () => navigate(item.route) })),
+ ];
+ return (
+ <section className={CARD} aria-label="口味总结">
+ <header className="flex flex-col gap-2">
+ <h3 className="text-headline-medium text-text-primary">口味总结</h3>
+ <p className="flex flex-wrap items-baseline gap-2.5 text-body-2-regular text-text-secondary">
+ {/* 结论旁边那句「有多少把握」。取 BoardUI 的状态底色档,和正文一起读。 */}
+ <span className={confidence.level === 'high'
+ ? 'shrink-0 rounded-md bg-status-lime-background px-2 py-0.5 text-caption-1-medium text-status-lime-text'
+ : confidence.level === 'medium'
+ ? 'shrink-0 rounded-md bg-status-yellow-background px-2 py-0.5 text-caption-1-medium text-status-yellow-text'
+ : 'shrink-0 rounded-md bg-background-tertiary-default px-2 py-0.5 text-caption-1-medium text-text-secondary'}>
+ {confidence.label || '仍在学习'}
+ </span>
+ <span className="min-w-0">{analysis.headline}</span>
+ </p>
+ </header>
+ {analysis.points?.length ? (
+ <div className="inline-grid w-full gap-3 sm:grid-cols-2">
+ {analysis.points.map((point) => (
+ <div key={point.label} className="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-3">
+ <span className="text-caption-1-regular text-text-secondary">{point.label}</span>
+ <b className="text-body-2-medium break-words text-text-primary">{point.text}</b>
+ </div>
+ ))}
+ </div>
+ ) : null}
+ {leads.length ? (
+ <div className="flex flex-col gap-2">
+ {leads.map((lead) => (
+ <button key={lead.key} type="button" onClick={lead.act}
+ className="flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-xl bg-background-tertiary-default p-3 text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring">
+ <span className="flex min-w-0 grow flex-col gap-1">
+ <b className="text-body-2-medium text-text-primary">{lead.title}</b>
+ <small className="text-caption-1-regular text-text-secondary">{lead.detail}</small>
+ </span>
+ <RiArrowRightSLine aria-hidden className="size-4 shrink-0 text-text-tertiary" />
+ </button>
+ ))}
+ </div>
+ ) : <EmptyState icon={RiSearchLine} title="还没有可探索的入口">{NO_LEAD_HINT}</EmptyState>}
+ </section>
+ );
+}
+
+/** 浏览记录怎么来。已经采集到记录、或跳过之后都不再出现,`?onboarding=1` 进来时直接展开。 */
+function HistoryGuide({ onboarding, done }: { onboarding: boolean; done: boolean }) {
+ const [skipped, setSkipped] = useState(() => {
+ try { return localStorage.getItem(TASTE_GUIDE_KEY) === '1' } catch { return false }
+ });
+ if (done || skipped) return null;
+ const skip = () => {
+ try { localStorage.setItem(TASTE_GUIDE_KEY, '1') } catch { /* 存储不可用时这一次仍然收起 */ }
+ setSkipped(true);
+ };
+ return (
+ <div className="rounded-2xl border border-separator-border p-4">
+ <Disclosure summary="浏览器历史记录导入指南" defaultOpen={onboarding}>
+ <p className="text-body-2-regular text-text-secondary">{GUIDE_LOCAL}</p>
+ <p className="text-body-2-regular text-text-secondary">{GUIDE_REMOTE}</p>
+ <ul className="flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary">
+ <li>
+ Chrome:在 <a href="https://takeout.google.com/" target="_blank" rel="noopener noreferrer"
+ className="text-text-primary underline-offset-4 hover:underline">Google Takeout</a>
+ {' '}选择 Chrome 历史记录,下载 ZIP 后直接导入。
+ </li>
+ <li>
+ 其他浏览器:用 <a href="https://github.com/purarue/browserexport" target="_blank" rel="noopener noreferrer"
+ className="text-text-primary underline-offset-4 hover:underline">browserexport</a>
+ {' '}导出历史记录,再导入导出文件。
+ </li>
+ </ul>
+ <p className="text-body-2-regular text-text-secondary">{GUIDE_REFRESH}</p>
+ <span className="self-start">
+ <Button variant="secondary" size="small" onClick={skip}>跳过</Button>
+ </span>
+ </Disclosure>
+ </div>
+ );
+}
+
+/** 主键加一个下拉:读取和导入是同一件事的两种来路,摊成两颗按钮读不出哪个是常用的那一个。
+ *
+ * 菜单第一项和左边那颗同名同事——键盘和读屏用户只走菜单这一条路,少列一项就是少一个动作。 */
+function HistoryActions(
+ { busy, onRefresh, onImport }:
+ { busy: boolean; onRefresh(): void; onImport(): void },
+) {
+ const trigger = useRef<HTMLButtonElement>(null);
+ const [open, setOpen] = useState(false);
+ const pick = (act: () => void) => { setOpen(false); act() };
+ return (
+ <>
+ <span className="flex items-center gap-1">
+ <Button leadingIcon={RiCompassLine} title={REFRESH_TITLE} onClick={onRefresh} {...busyProps(busy)}>
+ 读取浏览器历史
+ </Button>
+ <Button ref={trigger} iconOnly leadingIcon={RiArrowDownSLine}
+ aria-label="更多取得浏览记录的方式" aria-haspopup="dialog" aria-expanded={open}
+ onClick={() => setOpen(true)} />
+ </span>
+ <Popover triggerRef={trigger} isOpen={open} onOpenChange={setOpen}
+ placement="bottom end" offset={4} className={MENU_POPOVER_SURFACE}>
+ <Dialog aria-label="更多取得浏览记录的方式" className="flex w-52 flex-col gap-1 outline-none">
+ <button type="button" className={MENU_ROW} onClick={() => pick(onRefresh)}>
+ <RiCompassLine aria-hidden className="size-4 shrink-0" />读取浏览器历史
+ </button>
+ <button type="button" className={MENU_ROW} onClick={() => pick(onImport)}>
+ <RiUploadLine aria-hidden className="size-4 shrink-0" />导入历史文件
+ </button>
+ </Dialog>
+ </Popover>
+ </>
+ );
+}
+
+/** 已采集设备。移除只影响分析,原始导出文件仍在本机。 */
+function SourceList(
+ { sources, window: range, toast }:
+ { sources: NonNullable<TasteData['sources']>; window: string } & Pick<TasteProps, 'toast'>,
+) {
+ const remove = useMutation({
+ mutationFn: (sourceKey: string) => removeTasteSource(sourceKey, range),
+ onSuccess: (result) => {
+ // 服务端连这一范围的新 dashboard 一起回,换进缓存即可,不为一次移除把整页重取一遍。
+ queryClient.setQueryData(tasteKey(range), result.dashboard);
+ toast('已移除口味数据源');
+ },
+ });
+ return (
+ <section className={CARD} aria-label="数据源">
+ <h3 className="text-headline-medium text-text-primary">数据源</h3>
+ {remove.error ? <Note tone="error">{errorMessage(remove.error)}</Note> : null}
+ {sources.length ? (
+ <div className="inline-grid w-full gap-2 sm:grid-cols-2">
+ {sources.map((source) => (
+ <div key={source.source_key}
+ className="flex min-w-0 items-center gap-3 rounded-xl bg-background-tertiary-default p-3">
+ <span className="inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary">
+ {source.browser === 'browserexport'
+ ? <RiUploadLine aria-hidden className="size-4" />
+ : <RiDatabase2Line aria-hidden className="size-4" />}
+ </span>
+ <span className="flex min-w-0 grow flex-col gap-0.5">
+ <b className="min-w-0 text-body-2-medium break-words text-text-primary">{source.profile}</b>
+ <small className="min-w-0 text-caption-1-regular break-words text-text-secondary">
+ {`${source.browser} · ${source.host} · ${Number(source.visits || 0).toLocaleString()} 条`}
+ </small>
+ </span>
+ <Button variant="secondary" size="small" aria-label={`移除 ${source.profile}`}
+ iconOnly leadingIcon={RiDeleteBinLine} {...busyProps(remove.isPending)}
+ onClick={() => {
+ if (remove.isPending) return;
+ void confirmModal({
+ title: '移除口味数据源', body: REMOVE_BODY, confirmLabel: '移除口味数据源',
+ onConfirm: () => remove.mutateAsync(source.source_key),
+ });
+ }} />
+ </div>
+ ))}
+ </div>
+ ) : <EmptyState icon={RiDatabase2Line} title="还没有数据源">{NO_SOURCE_HINT}</EmptyState>}
+ </section>
+ );
+}
+
+export function TastePage(props: TasteProps) {
+ const { onSignal, navigate, toast, avatarInner, onboarding } = props;
+ const [range, setRange] = useState(DEFAULT_WINDOW);
+ const [evidence, setEvidence] = useState('browser');
+ /** 本次是不是在跟一趟读取:点过读取,或者本次见过它在跑。 */
+ const [tracking, setTracking] = useState(false);
+ /** 本次跟完的那一趟。首屏读到的旧终态不算,它不会走到这里。 */
+ const [outcome, setOutcome] = useState<TasteJob | null>(null);
+ const file = useRef<HTMLInputElement>(null);
+
+ const taste = useQuery({
+ queryKey: tasteKey(range),
+ queryFn: ({ signal }) => fetchTaste(range, signal),
+ /* 换范围时留住上一份:这一屏的结构不变,只有数在变。退回骨架就是把已经读到的东西
+ 收走再放回来,而服务端那一层缓存多半立刻就回来了。 */
+ placeholderData: keepPreviousData,
+ });
+ const job = useQuery({
+ queryKey: TASTE_REFRESH_KEY,
+ queryFn: ({ signal }) => fetchTasteJob(signal),
+ refetchInterval: (query) => jobPollInterval(query.state.data),
+ });
+ const refresh = useMutation({
+ mutationFn: () => startTasteRefresh(range),
+ onSuccess: () => {
+ setTracking(true);
+ setOutcome(null);
+ // 起的那一次回的就是任务快照,但轮询的节律由这个键说了算:让它立刻重读一次接上。
+ void queryClient.invalidateQueries({ queryKey: TASTE_REFRESH_KEY });
+ },
+ });
+ const load = useMutation({
+ mutationFn: (chosen: File) => importTasteExport(chosen),
+ onSuccess: (result) => {
+ /* 服务端回的是「全部时间」那一份,页面跟着切过去:刚导进来的记录多半不在当前
+ 这个窗口里,留在原范围上会看见一份没有任何变化的结果。 */
+ setRange('all');
+ queryClient.setQueryData(tasteKey('all'), result.dashboard);
+ toast('已导入口味数据');
+ },
+ });
+
+ const running = job.data?.status === 'running';
+ useEffect(() => {
+ const state = job.data;
+ if (!state) return;
+ if (state.status === 'running') {
+ if (!tracking) setTracking(true);
+ return;
+ }
+ if (!tracking) return;
+ setTracking(false);
+ setOutcome(state);
+ if (state.status !== 'failed') {
+ void queryClient.invalidateQueries({ queryKey: ['taste'] });
+ toast('已更新口味分析');
+ }
+ }, [job.data, tracking, toast]);
+
+ const pickFile = (event: ChangeEvent<HTMLInputElement>) => {
+ const chosen = event.currentTarget.files?.[0];
+ event.currentTarget.value = '';
+ if (!chosen || load.isPending) return;
+ load.reset();
+ load.mutate(chosen);
+ };
+ const startRefresh = () => {
+ if (running || refresh.isPending) return;
+ refresh.reset();
+ refresh.mutate();
+ };
+
+ const data = taste.data;
+ if (!data) {
+ return (
+ <Page>
+ <Note tone="error" title="读取失败">
+ {taste.error ? errorMessage(taste.error) : '读取口味分析失败'}
+ </Note>
+ </Page>
+ );
+ }
+ const summary = data.summary || {};
+ const coverage = data.coverage || {};
+ const rank = data.rankings || {};
+ const storage = data.storage || {};
+ const categories = rank.browser_categories || [];
+ const gaps = data.gaps || [];
+ const tagged = coverage.tagged || 0;
+ const identified = coverage.identified || 0;
+ const problem = refresh.error ? errorMessage(refresh.error)
+ : load.error ? errorMessage(load.error)
+ : outcome?.status === 'failed' ? (outcome.error || '读取未取得')
+ : '';
+
+ return (
+ <Page>
+ <Tabs selectedKey={evidence} onSelectionChange={(key) => setEvidence(String(key))}
+ className="flex flex-col gap-5">
+ <div className="flex flex-wrap items-center justify-between gap-3">
+ <TabList aria-label="口味证据来源" className="flex flex-wrap gap-1">
+ <Tab id="browser" className={EVIDENCE_TAB}>浏览器记录</Tab>
+ <Tab id="peach" className={EVIDENCE_TAB}>Peach 内部</Tab>
+ </TabList>
+ <div className="flex flex-wrap items-center gap-2">
+ <Select aria-label="分析范围" selectedKey={range}
+ onSelectionChange={(key) => { if (key !== null) setRange(String(key)) }}>
+ {TASTE_WINDOWS.map(([key, name]) => <SelectItem key={key} id={key}>{name}</SelectItem>)}
+ </Select>
+ <HistoryActions busy={running || refresh.isPending || load.isPending}
+ onRefresh={startRefresh} onImport={() => file.current?.click()} />
+ {/* 原生文件选择器长相不可控,按钮归 BoardUI,输入框只留着接文件。 */}
+ <input ref={file} type="file" tabIndex={-1} aria-hidden className="hidden"
+ onChange={pickFile} />
+ </div>
+ </div>
+ <HistoryGuide onboarding={onboarding}
+ done={!!(summary.history_sources || data.updated_at)} />
+ {/* 这一趟在后台跑,关掉页面还在继续,所以状态留在页面上而不是只让按钮转一下。 */}
+ <div aria-live="polite" className="flex flex-col gap-3 empty:hidden">
+ {running ? (job.data?.total
+ ? <div className="flex flex-col gap-1.5">
+ <Progress label={job.data.message || '正在读取浏览记录'}
+ value={job.data.checked || 0} max={job.data.total} />
+ <p className="text-caption-1-regular text-text-secondary">
+ {`${job.data.message || '正在读取浏览记录'} · ${job.data.checked || 0} / ${job.data.total}`}
+ </p>
+ </div>
+ : <LoadingDots label={job.data?.message || '正在读取浏览记录并更新口味分析'} />) : null}
+ {load.isPending ? <LoadingDots label="正在导入历史文件" /> : null}
+ {problem ? <Note tone="error">{problem}</Note> : null}
+ </div>
+ <TabPanel id="browser" className="flex flex-col gap-5">
+ <div className="inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ <SummaryCard icon={RiHistoryLine} term="浏览记录"
+ figure={Number(summary.history_visits || 0).toLocaleString()}
+ detail={`${summary.history_sources || 0} 个数据源 · ${tasteDate(summary.range_start)}—${tasteDate(summary.range_end)}`} />
+ <SummaryCard icon={RiPriceTag3Line} term="口味维度"
+ figure={categories.length.toLocaleString()} detail={categories[0]?.name || '尚无主维度'} />
+ <SummaryCard icon={RiSearchLine} term="浏览候选" figure={gaps.length.toLocaleString()} />
+ <SummaryCard icon={RiDatabase2Line} term="私有导出"
+ figure={Number(storage.exports || 0).toLocaleString()} detail={fmtSize(storage.bytes || 0)} />
+ </div>
+ <section className={`${CARD} md:flex-row md:gap-6`} aria-label="浏览器画像">
+ <div className="flex shrink-0 flex-col gap-2 border-b border-separator-border pb-5 md:w-72 md:border-b-0 md:border-r md:pr-6 md:pb-0">
+ <span className="text-caption-1-regular text-text-secondary">浏览器画像</span>
+ <TasteRadar rows={categories} label="主要口味维度" />
+ <small className="text-caption-1-regular text-text-secondary">
+ {data.updated_at ? `更新于 ${tasteDate(data.updated_at)}` : '尚未采集浏览记录'}
+ </small>
+ </div>
+ <div className="min-w-0 grow">
+ {categories.length
+ ? <RankedBars rows={categories} label="口味维度排名" />
+ : <EmptyState icon={RiSearchLine} title="暂无口味维度">{NO_CATEGORY_HINT}</EmptyState>}
+ </div>
+ </section>
+ <ActivityCharts activity={data.activity} />
+ <CreatorSankey flows={data.creator_flows} />
+ <DimensionPanels label="浏览器口味维度" onSignal={onSignal} avatarInner={avatarInner}
+ panels={[
+ { id: 'tags', name: '标签', props: { rows: rank.browser_tags || [], kind: 'tag', visual: 'none', empty: '暂无足够证据' } },
+ { id: 'creators', name: '创作者', props: { rows: rank.browser_creators || [], kind: 'creator', visual: 'creator', empty: '暂无创作者证据' } },
+ { id: 'domains', name: '常访问网站', props: { rows: rank.domains || [], kind: '', visual: 'domain', empty: '暂无网站证据' } },
+ { id: 'gaps', name: '浏览候选', props: { rows: gaps, kind: '', visual: 'none', empty: GAP_HINT } },
+ ]} />
+ </TabPanel>
+ <TabPanel id="peach" className="flex flex-col gap-5">
+ <div className="inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ <SummaryCard icon={RiEyeLine} term="Peach 看过"
+ figure={Number(summary.peach_items || 0).toLocaleString()}
+ detail={tasteHours(summary.peach_seconds || 0)} />
+ <SummaryCard icon={RiThumbUpLine} term="喜欢" figure={Number(summary.liked || 0).toLocaleString()} />
+ <SummaryCard icon={RiThumbDownLine} term="不合口味" figure={Number(summary.disliked || 0).toLocaleString()} />
+ <SummaryCard icon={RiPriceTag3Line} term="有标签" figure={tagged.toLocaleString()} />
+ </div>
+ <section className={`${CARD} md:flex-row md:gap-6`} aria-label="Peach 观看">
+ <div className="flex shrink-0 flex-col gap-0.5 border-b border-separator-border pb-5 md:w-72 md:border-b-0 md:border-r md:pr-6 md:pb-0">
+ <span className="text-caption-1-regular text-text-secondary">Peach 观看</span>
+ <b className="text-display-4-medium tabular-nums text-text-primary">
+ {Number(summary.peach_items || 0).toLocaleString()}
+ </b>
+ <span className="text-body-2-regular text-text-secondary">个作品有内部行为证据</span>
+ </div>
+ <div className="flex min-w-0 grow flex-col">
+ <CoverageMetric term="有标签" value={tagged} rest={coverage.untagged || 0} />
+ <CoverageMetric term="有身份" value={identified} rest={coverage.unidentified || 0} />
+ </div>
+ </section>
+ <DimensionPanels label="Peach 口味维度" onSignal={onSignal} avatarInner={avatarInner}
+ panels={[
+ { id: 'tags', name: '标签', props: { rows: rank.peach_tags || [], kind: 'tag', visual: 'none', empty: '暂无足够证据' } },
+ { id: 'creators', name: '创作者', props: { rows: rank.peach_creators || [], kind: 'creator', visual: 'creator', empty: '暂无创作者证据' } },
+ { id: 'performers', name: '女优', props: { rows: rank.peach_performers || [], kind: 'performer', visual: 'entity', empty: '暂无女优证据' } },
+ ]} />
+ </TabPanel>
+ </Tabs>
+ <AnalysisCard data={data} onSignal={onSignal} navigate={navigate} />
+ <SourceList sources={data.sources || []} window={range} toast={toast} />
+ </Page>
+ );
+}
+
+/** 一条覆盖率:读数、待补的数量与那条条共用同一对分子分母。 */
+function CoverageMetric({ term, value, rest }: { term: string; value: number; rest: number }) {
+ const total = Math.max(value + rest, 1);
+ return (
+ <div className="flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0">
+ <p className="flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary">
+ <span>{term}</span>
+ <b className="tabular-nums">
+ {value.toLocaleString()}
+ <span className="ml-1.5 text-caption-1-regular text-text-secondary">{`${rest} 项待补`}</span>
+ </b>
+ </p>
+ <Progress label={`${term}:${value.toLocaleString()} / ${total.toLocaleString()}`}
+ value={value} max={total} />
+ </div>
+ );
+}
diff --git a/frontend/src/react/taste/taste.ts b/frontend/src/react/taste/taste.ts
new file mode 100644
index 000000000..fdea34e04
--- /dev/null
+++ b/frontend/src/react/taste/taste.ts
@@ -0,0 +1,354 @@
+/* 口味页的数据契约、轮询节律与纯折算。
+ *
+ * 四个端点在 `frontend/src` 里都只在这里声明一次(`tests/test_frontend_build.py` 盯着)。
+ *
+ * 键带着分析范围:`['taste', window]`。同一台机器的七天和全部时间是两份真相,合成一个键
+ * 的话切范围就是把上一份直接覆盖掉,切回来还得再问一遍。范围切换时用
+ * `keepPreviousData` 留住上一份,不退回骨架——这一屏的结构不变,只有数在变。
+ * 不给 `staleTime`:服务端已经按 `taste:{window}` 缓存过一层,前端再压一层就会出现
+ * 「刚导入完,页面还是导入前那一份」。
+ *
+ * 刷新任务是另一份真相,节律由后台推进,所以单独一个键(`['taste','refresh']`)。 */
+import { sankey, sankeyLinkHorizontal } from 'd3-sankey';
+
+import { apiGet, apiSend, ApiError } from '../../api';
+import { queryClient } from '../query';
+
+export const TASTE_URL = '/api/taste';
+export const TASTE_REFRESH_URL = '/api/taste/refresh';
+export const TASTE_IMPORT_URL = '/api/taste/import';
+export const TASTE_SOURCE_URL = '/api/taste/source';
+
+/** 一份 dashboard 的键,带分析范围。 */
+export const tasteKey = (window: string) => ['taste', window] as const;
+/** 读取浏览记录那一趟后台任务。 */
+export const TASTE_REFRESH_KEY = ['taste', 'refresh'] as const;
+
+/** 分析范围。值就是 `/api/taste?window=` 收的那几个。 */
+export const TASTE_WINDOWS = [
+ ['7d', '最近 7 天'], ['30d', '最近 30 天'], ['90d', '最近 90 天'],
+ ['365d', '最近一年'], ['all', '全部时间'],
+] as const;
+
+export const DEFAULT_WINDOW = 'all';
+
+/** 排行里的一行。`entity_id` 与 `has_avatar` 决定画哪一级图,`peach_items` 决定点不点得动。 */
+export interface RankRow {
+ name: string;
+ score?: number;
+ visits?: number;
+ web_visits?: number;
+ peach_score?: number;
+ peach_items?: number;
+ entity_id?: number | null;
+ has_image?: boolean;
+ avatar_focus?: unknown;
+ has_avatar?: boolean;
+ representative_asset_id?: number | null;
+ source_domain?: string | null;
+}
+
+/** 按维度聚合的名次。名字与 `taste_history.build_taste_dashboard` 对齐。 */
+export interface TasteRankings {
+ browser_tags?: RankRow[];
+ browser_creators?: RankRow[];
+ browser_categories?: RankRow[];
+ domains?: RankRow[];
+ peach_tags?: RankRow[];
+ peach_creators?: RankRow[];
+ peach_performers?: RankRow[];
+}
+
+export interface TasteSummary {
+ history_visits?: number;
+ history_sources?: number;
+ peach_items?: number;
+ peach_seconds?: number;
+ liked?: number;
+ disliked?: number;
+ range_start?: string | null;
+ range_end?: string | null;
+}
+
+export interface TasteCoverage {
+ tagged?: number; identified?: number; untagged?: number; unidentified?: number;
+}
+
+/** 一台设备的一份浏览记录。`source_key` 是 64 位十六进制,移除时交回去的就是它。 */
+export interface TasteSource {
+ source_key: string; browser: string; profile: string; host: string; visits?: number;
+}
+
+export interface TasteAnalysis {
+ headline?: string;
+ confidence?: { level?: string; label?: string };
+ points?: { label: string; text: string }[];
+ explore?: { tag: string; title: string; detail: string }[];
+ next_steps?: { route: string; title: string; detail: string }[];
+}
+
+export interface TasteActivity {
+ timezone?: string;
+ days?: { date: string; count: number }[];
+ hours?: { weekday: number; hour: number; count: number }[];
+}
+
+export interface CreatorFlow { source: string; target: string; value: number }
+
+/** `/api/taste` 的响应。字段与 `web_stats.q_taste` 对齐。 */
+export interface TasteData {
+ summary?: TasteSummary;
+ coverage?: TasteCoverage;
+ rankings?: TasteRankings;
+ gaps?: RankRow[];
+ sources?: TasteSource[];
+ analysis?: TasteAnalysis;
+ activity?: TasteActivity;
+ creator_flows?: CreatorFlow[];
+ storage?: { exports?: number; bytes?: number };
+ window?: string;
+ updated_at?: string | null;
+}
+
+/** 读取浏览记录那一趟的快照。`status` 一次都没跑过是 `idle`。 */
+export interface TasteJob {
+ status: string;
+ job_id?: string;
+ stage?: string;
+ message?: string;
+ checked?: number;
+ total?: number | null;
+ error?: string;
+}
+
+export const fetchTaste = (window: string, signal?: AbortSignal) =>
+ apiGet<TasteData>(`${TASTE_URL}?window=${window}`, signal);
+
+export const fetchTasteJob = (signal?: AbortSignal) =>
+ apiGet<TasteJob>(TASTE_REFRESH_URL, signal);
+
+/** 首屏:取完数才画。中止时把 `AbortError` 抛回挂载方,它据此放弃这一次。 */
+export async function prefetchTaste(window: string, signal: AbortSignal): Promise<void> {
+ await queryClient.fetchQuery({
+ queryKey: tasteKey(window), queryFn: () => fetchTaste(window, signal),
+ });
+}
+
+/** 起一趟读取浏览记录。回的是任务快照,节律仍由 `TASTE_REFRESH_KEY` 说了算。 */
+export const startTasteRefresh = (window: string) =>
+ apiSend<TasteJob>(TASTE_REFRESH_URL, { window, background: true });
+
+/** 移除一台设备的浏览记录。服务端连这一范围的新 dashboard 一起回,换进缓存即可。 */
+export const removeTasteSource = (sourceKey: string, window: string) =>
+ apiSend<{ removed: number; dashboard: TasteData }>(
+ TASTE_SOURCE_URL, { operation: 'remove', source_key: sourceKey, window });
+
+/** 导入一份私有导出。
+ *
+ * 文件原样当请求体发,文件名走 `X-Peach-Filename`:走 multipart 就要在服务端多接一个
+ * 解析器,而这里只有一个文件、一个名字。服务端回的是「全部时间」那一份 dashboard。 */
+export async function importTasteExport(file: File): Promise<{ dashboard: TasteData }> {
+ const response = await fetch(TASTE_IMPORT_URL, {
+ method: 'POST',
+ credentials: 'same-origin',
+ headers: {
+ 'Content-Type': 'application/octet-stream',
+ 'X-Peach-Filename': encodeURIComponent(file.name),
+ },
+ body: file,
+ });
+ let payload: unknown = null;
+ try {
+ payload = await response.json();
+ } catch { /* 失败响应不一定是 JSON,下面按状态码兜底 */ }
+ if (!response.ok) {
+ const reason = (payload as { error?: string } | null)?.error;
+ throw new ApiError(reason || `导入失败(${response.status})`, response.status, payload);
+ }
+ return payload as { dashboard: TasteData };
+}
+
+/** 任务在跑时两秒一次,闲着十秒一次——这一趟可以从别的页面或上一次会话里起来。 */
+export const RUNNING_POLL_MS = 2000;
+export const IDLE_POLL_MS = 10_000;
+export const jobPollInterval = (job: TasteJob | undefined): number =>
+ (job?.status === 'running' ? RUNNING_POLL_MS : IDLE_POLL_MS);
+
+export const tasteDate = (value: string | null | undefined): string =>
+ (value ? new Date(value).toLocaleDateString('zh-CN') : '—');
+
+/** 累计时长:够一小时读小时,不够读分钟。与统计页同一套口径。 */
+export const tasteHours = (seconds: number): string =>
+ (seconds >= 3600 ? `${(seconds / 3600).toFixed(1)} 小时` : `${Math.round(seconds / 60)} 分钟`);
+
+/** 一行在这一榜里的强度。浏览侧按访问次数,Peach 侧按分数,都退化到条目数。 */
+export const rankStrength = (row: RankRow): number =>
+ Number(row.web_visits ?? row.score ?? row.visits ?? row.peach_items ?? 0);
+
+/** 一行名次底下那句补充。两侧都有证据时并排显示,只有一侧就读那一侧的数。 */
+export function rankDetail(row: RankRow): string {
+ if (row.web_visits == null) return Number(row.score || row.visits || 0).toLocaleString();
+ const parts: string[] = [];
+ if (row.web_visits) parts.push(`浏览 ${row.web_visits}`);
+ if (row.peach_items) parts.push(`Peach ${row.peach_items}`);
+ return parts.join(' · ');
+}
+
+/** 一段条的长度,百分比。最长的那一条占满,空榜不除零。 */
+export function rankShares(rows: RankRow[]): number[] {
+ const strengths = rows.map(rankStrength);
+ const ceiling = Math.max(1, ...strengths);
+ return strengths.map((value) => Math.max(0, Math.min(100, value / ceiling * 100)));
+}
+
+/** 雷达图的一个顶点。 */
+export interface RadarPoint { name: string; x: number; y: number; labelX: number; labelY: number }
+
+/** 雷达图几何:320×280 的画布、中心 (160,140)、值圈半径 100。 */
+export const RADAR_CENTER = { x: 160, y: 140 } as const;
+export const RADAR_GRID = [25, 50, 75, 100];
+/** 少于三个维度画不成面,三点以下不画。最多取前六个,再多标签互相压住。 */
+export const RADAR_MIN = 3;
+export const RADAR_MAX = 6;
+
+const radarAt = (index: number, count: number, radius: number): [number, number] => {
+ const angle = index / count * Math.PI * 2 - Math.PI / 2;
+ return [RADAR_CENTER.x + Math.cos(angle) * radius, RADAR_CENTER.y + Math.sin(angle) * radius];
+};
+
+/** 值多边形与标签位置。值为 0 或非有限的行先滤掉,按分数从高到低取前六。 */
+export function radarPoints(rows: RankRow[]): RadarPoint[] {
+ const values = rows
+ .filter((row) => Number.isFinite(Number(row.score)) && Number(row.score) > 0)
+ .slice().sort((a, b) => Number(b.score) - Number(a.score)).slice(0, RADAR_MAX);
+ if (values.length < RADAR_MIN) return [];
+ const max = Math.max(...values.map((row) => Number(row.score)));
+ return values.map((row, index) => {
+ const [x, y] = radarAt(index, values.length, Number(row.score) / max * 100);
+ const [labelX, labelY] = radarAt(index, values.length, 116);
+ return { name: row.name, x, y, labelX, labelY };
+ });
+}
+
+/** 一圈网格的点串。 */
+export const radarRing = (radius: number, count: number): string =>
+ Array.from({ length: count }, (_, index) =>
+ radarAt(index, count, radius).map((value) => value.toFixed(2)).join(',')).join(' ');
+
+export const radarShape = (points: RadarPoint[]): string =>
+ points.map((point) => `${point.x.toFixed(2)},${point.y.toFixed(2)}`).join(' ');
+
+/** 热力图里的一格。`share` 是这一格相对最忙那一格的浓度,0 到 1。 */
+export interface HeatCell { key: string; label: string; count: number; share: number }
+
+export const WEEKDAYS = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'];
+
+/** 有访问的格子至少留一成浓度:一次访问和一次都没有必须看得出差别。 */
+const shareOf = (count: number, max: number) => (count ? Math.max(0.12, count / max) : 0);
+
+/** 星期 × 小时的 168 格。越界或负数的记录当作没有。 */
+export function hourGrid(activity: TasteActivity | undefined): { cells: HeatCell[]; total: number } {
+ const counts = Array.from({ length: 7 }, () => Array<number>(24).fill(0));
+ for (const item of activity?.hours || []) {
+ const { weekday, hour, count } = item;
+ if (!Number.isInteger(weekday) || weekday < 0 || weekday > 6) continue;
+ if (!Number.isInteger(hour) || hour < 0 || hour > 23) continue;
+ if (!Number.isFinite(count) || count < 0) continue;
+ counts[weekday]![hour] = (counts[weekday]![hour] || 0) + count;
+ }
+ const flat = counts.flat();
+ const max = Math.max(1, ...flat);
+ const cells = counts.flatMap((row, day) => row.map((count, hour) => ({
+ key: `${day}-${hour}`, label: `${WEEKDAYS[day]} ${hour}:00`, count, share: shareOf(count, max),
+ })));
+ return { cells, total: flat.reduce((sum, count) => sum + count, 0) };
+}
+
+/** 最近 91 天的日历。末尾那天由数据说了算,往前数 90 天,中间没有记录的那些补 0。 */
+export function dayCalendar(activity: TasteActivity | undefined):
+{ cells: HeatCell[]; total: number; start: string; end: string } {
+ const days = (activity?.days || [])
+ .filter((row) => /^\d{4}-\d{2}-\d{2}$/.test(row.date)
+ && Number.isFinite(row.count) && row.count >= 0)
+ .slice().sort((a, b) => a.date.localeCompare(b.date));
+ const empty = { cells: [], total: 0, start: '', end: '' };
+ if (!days.length) return empty;
+ const end = new Date(`${days.at(-1)!.date}T00:00:00Z`);
+ const start = new Date(end);
+ start.setUTCDate(start.getUTCDate() - 90);
+ const daily = new Map(days.map((row) => [row.date, row.count]));
+ const max = Math.max(1, ...days.map((row) => row.count));
+ const cells = Array.from({ length: 91 }, (_, index) => {
+ const date = new Date(start);
+ date.setUTCDate(start.getUTCDate() + index);
+ const key = date.toISOString().slice(0, 10);
+ const count = daily.get(key) || 0;
+ return { key, label: key, count, share: shareOf(count, max) };
+ });
+ return {
+ cells,
+ total: cells.reduce((sum, cell) => sum + cell.count, 0),
+ start: start.toISOString().slice(0, 10),
+ end: days.at(-1)!.date,
+ };
+}
+
+/** 桑基图的一个节点。`side` 决定它落在左边还是右边,也决定它的文字往哪边排。 */
+export interface FlowNode {
+ id: string; name: string; side: 'source' | 'target'; index: number;
+ x: number; y: number; height: number; value: number; share: number; color: number;
+}
+/** 一条流。`d` 是 d3 算出来的贝塞尔路径。 */
+export interface FlowLink {
+ key: string; d: string; width: number; color: number;
+ source: number; target: number; value: number; label: string;
+}
+export interface FlowGraph { nodes: FlowNode[]; links: FlowLink[]; total: number }
+
+/** 节点条宽与画布:左右各留一截给文字,视口 720×435。 */
+export const FLOW_NODE_WIDTH = 10;
+export const FLOW_VIEWBOX = { width: 720, height: 435 } as const;
+export const FLOW_LABEL_X = { source: 145, target: 545 } as const;
+
+/** 来源网站 → 创作者的流向布局。值为 0 或缺一端的流先滤掉,全空时返回 `null`。 */
+export function flowGraph(rows: CreatorFlow[] = []): FlowGraph | null {
+ const flows = rows.filter((row) =>
+ row.source && row.target && Number.isFinite(row.value) && row.value > 0);
+ if (!flows.length) return null;
+ const sources = [...new Set(flows.map((row) => row.source))];
+ const targets = [...new Set(flows.map((row) => row.target))];
+ const graph = sankey<{ id: string; name: string; side: 'source' | 'target' }, object>()
+ .nodeId((node) => node.id).nodeWidth(FLOW_NODE_WIDTH).nodePadding(22)
+ .extent([[155, 16], [535, 404]])({
+ nodes: [
+ ...sources.map((name) => ({ id: `source:${name}`, name, side: 'source' as const })),
+ ...targets.map((name) => ({ id: `target:${name}`, name, side: 'target' as const })),
+ ],
+ links: flows.map((row) => (
+ { source: `source:${row.source}`, target: `target:${row.target}`, value: row.value })),
+ });
+ const total = flows.reduce((sum, row) => sum + row.value, 0);
+ const path = sankeyLinkHorizontal();
+ type Node = typeof graph.nodes[number];
+ const nodes: FlowNode[] = graph.nodes.map((node) => ({
+ id: node.id, name: node.name, side: node.side, index: node.index ?? 0,
+ x: node.x0 ?? 0, y: node.y0 ?? 0, height: Math.max(1, (node.y1 ?? 0) - (node.y0 ?? 0)),
+ value: node.value ?? 0, share: (node.value ?? 0) / total * 100,
+ color: sources.indexOf(node.name) % 6,
+ }));
+ const links: FlowLink[] = graph.links.map((link, at) => {
+ const from = link.source as Node;
+ const to = link.target as Node;
+ return {
+ key: `${from.id}->${to.id}:${at}`, d: path(link) || '',
+ width: Math.max(0.5, link.width || 0), color: sources.indexOf(from.name) % 6,
+ source: from.index ?? 0, target: to.index ?? 0, value: link.value,
+ label: `${from.name} → ${to.name}`,
+ };
+ });
+ return { nodes, links, total };
+}
+
+/** 节点名字太长时截断。图里一格只有这么宽,整名在 `aria-label` 和 `<title>` 里。 */
+export const flowLabel = (name: string): string =>
+ (name.length > 18 ? `${name.slice(0, 16)}…` : name);
diff --git a/frontend/test/board-analytics.test.ts b/frontend/test/board-analytics.test.ts
deleted file mode 100644
index 9ba7fad94..000000000
--- a/frontend/test/board-analytics.test.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { describe,it,expect } from 'vitest';
-import { activityChartsHtml,wireActivityCharts } from '../src/board-analytics';
-
-describe('口味页交互图表',()=>{
- it('热图使用真实读数,填充零值并排除非法坐标',()=>{
- document.body.innerHTML=activityChartsHtml({days:[{date:'2026-09-08',count:3}],hours:[{weekday:1,hour:12,count:3},{weekday:10,hour:99,count:200}]});
- expect(document.querySelectorAll('.board-hour-grid button')).toHaveLength(168);
- expect(document.querySelectorAll('.board-day-grid button')).toHaveLength(91);
- wireActivityCharts(document);
- const cell=document.querySelector<HTMLButtonElement>('[data-heat-label="周二 12:00"]')!;cell.focus();
- expect(document.querySelector('[data-heat-number]')?.textContent).toBe('3');
- expect(document.querySelector('[data-heat-title]')?.textContent).toBe('周二 12:00');
- });
- it('没有历史时给出空态,不生成假活动',()=>{
- expect(activityChartsHtml(undefined)).toContain('还没有');expect(activityChartsHtml(undefined)).not.toContain('data-heat-value');
- });
-});
diff --git a/frontend/test/board-controls.test.ts b/frontend/test/board-controls.test.ts
index 705db118b..deb220a00 100644
--- a/frontend/test/board-controls.test.ts
+++ b/frontend/test/board-controls.test.ts
@@ -1,5 +1,5 @@
-import { describe,it,expect,vi } from 'vitest';
-import { syncBoardRange, wireExpandableRanks, wireBoardSegments, wireBoardTabs, wireGrowingCharts } from '../src/board-controls';
+import { describe,it,expect } from 'vitest';
+import { syncBoardRange, wireBoardSegments, wireBoardTabs } from '../src/board-controls';
describe('范围控件',()=>{
it('视图切换保留原生 radio 且重复接线只创建一个滑块',()=>{
@@ -22,54 +22,6 @@ describe('范围控件',()=>{
wireBoardTabs(document);wireBoardTabs(document);
expect([...document.querySelectorAll('[data-board-tabs]')].map(group=>group.className)).toEqual(['managebar-menu']);
});
- it('洞察页的维度切换拿到滑块,选中项换了也跟着量',()=>{
- document.body.innerHTML='<div class="insighttabs" role="tablist"><button role="tab" aria-selected="true">内容标签</button><button role="tab" aria-selected="false">最近看过</button></div>';
- wireBoardSegments(document);wireBoardSegments(document);
- const group=document.querySelector('.insighttabs')!;
- expect(group.querySelectorAll('.board-segment-thumb')).toHaveLength(1);
- expect(group.getAttribute('data-board-segments')).toBe('true');
- expect(group.getAttribute('data-board-tabs')).toBeNull();
- });
- it('排名条与雷达图没有 IntersectionObserver 时立刻可见,重复接线不重复标记',()=>{
- document.body.innerHTML='<ol class="board-ranked-chart"><li></li></ol><svg class="board-radar"></svg><div class="tasteranks"></div>';
- vi.stubGlobal('IntersectionObserver',undefined);
- try{wireGrowingCharts(document);wireGrowingCharts(document)}finally{vi.unstubAllGlobals()}
- expect(document.querySelectorAll('.board-chart-visible')).toHaveLength(3);
- expect(document.querySelectorAll('[data-board-chart]')).toHaveLength(3);
- });
- it('折叠排名退出键盘导航,展开后恢复,重复接线不重复按钮',()=>{
- document.body.innerHTML='<div class="tasteranks">'+Array.from({length:7},()=>'<button>排名</button>').join('')+'</div>';
- wireExpandableRanks(document);wireExpandableRanks(document);
- const toggle=document.querySelector<HTMLButtonElement>('.board-rank-expand')!;
- const sixth=document.querySelector('.board-rank-list')!.children[5] as HTMLElement;
- expect(document.querySelectorAll('.board-rank-expand')).toHaveLength(1);
- expect(sixth.inert).toBe(true);toggle.click();expect(sixth.inert).toBe(false);
- expect(toggle.getAttribute('aria-expanded')).toBe('true');toggle.click();expect(sixth.inert).toBe(true);
- });
- it('排名的高度过渡只挂在点按那一下,过渡结束即摘掉',()=>{
- document.body.innerHTML='<div class="tasteranks">'+Array.from({length:7},()=>'<button>排名</button>').join('')+'</div>';
- wireExpandableRanks(document);
- const outer=document.querySelector('.board-expand-ranks')!,list=document.querySelector('.board-rank-list')!;
- expect(outer.classList.contains('toggling')).toBe(false);
- document.querySelector<HTMLButtonElement>('.board-rank-expand')!.click();
- expect(outer.classList.contains('toggling')).toBe(true);
- list.firstElementChild!.dispatchEvent(new Event('transitionend',{bubbles:true}));
- expect(outer.classList.contains('toggling')).toBe(true);
- list.dispatchEvent(new Event('transitionend'));
- expect(outer.classList.contains('toggling')).toBe(false);
- });
- it('收起时展开键钉在原位:它被带着上移多少,页面就回滚多少;展开不动页面',()=>{
- document.body.innerHTML='<div class="tasteranks">'+Array.from({length:7},()=>'<button>排名</button>').join('')+'</div>';
- wireExpandableRanks(document);
- const toggle=document.querySelector<HTMLButtonElement>('.board-rank-expand')!;
- const scroll=vi.spyOn(window,'scrollBy').mockImplementation(()=>{});
- vi.stubGlobal('requestAnimationFrame',()=>0);
- try{
- toggle.click();expect(scroll).not.toHaveBeenCalled();
- vi.spyOn(toggle,'getBoundingClientRect').mockReturnValueOnce({top:400} as DOMRect).mockReturnValueOnce({top:300} as DOMRect);
- toggle.click();expect(scroll).toHaveBeenCalledWith(0,-100);
- }finally{vi.unstubAllGlobals();scroll.mockRestore()}
- });
it('两个端点分别保留数值与不限状态,重复接线不增加气泡',()=>{
document.body.innerHTML='<div class="dual-range"><input id="durMin" type="range" min="0" max="180" value="20"><input id="durMax" type="range" min="0" max="180" value="180"></div>';
const inputs=[...document.querySelectorAll('input')];inputs.forEach(syncBoardRange);inputs.forEach(syncBoardRange);
diff --git a/frontend/test/board-metrics.test.ts b/frontend/test/board-metrics.test.ts
deleted file mode 100644
index 54fffc9d1..000000000
--- a/frontend/test/board-metrics.test.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { radarChart, rankedChart, statCardBody, distributionChart, jobProgressHtml } from '../src/board-metrics';
-describe('指标与图表',()=>{
- it('分布图忽略空值且扇区以总量归一',()=>{
- expect(distributionChart([],'分布')).toBe('');
- const html=distributionChart([{name:'甲',score:1},{name:'乙',score:3}],'分布');
- expect(html).toContain('stroke-dasharray="25 75"');expect(html).toContain('stroke-dashoffset="-25"');
- });
- it('任务进度不虚构未知总量,并限制服务端瞬时越界值',()=>{
- expect(jobProgressHtml('扫描',1,0)).toBe('');
- expect(jobProgressHtml('扫描',11,10)).toContain('aria-valuenow="10"');
- expect(jobProgressHtml('扫描',-1,10)).toContain('aria-valuenow="0"');
- });
- it('指标保留读数和来源且转义外部标签',()=>{
- const html=statCardBody('<来源>','12','当前记录','database');
- expect(html).toContain('&lt;来源&gt;');expect(html).toContain('>12</b>');expect(html).not.toContain('arrow-up');
- });
- it('排名排除无效读数,按强弱排列且不修改原数组',()=>{
- const rows=[{name:'少',score:2},{name:'<多>',score:10},{name:'未知',score:NaN}];
- const html=rankedChart(rows,'排名');expect(html.indexOf('&lt;多&gt;')).toBeLessThan(html.indexOf('少'));
- expect(html).toContain('width:20.00%');expect(html).not.toContain('NaN');expect(rows[0]!.name).toBe('少');
- });
- it('雷达图只在至少三个真实维度时出现,并保留可访问读数',()=>{
- expect(radarChart([{name:'单一',score:1}],'口味')).toBe('');
- const html=radarChart([{name:'甲',score:1},{name:'乙',score:2},{name:'丙',score:3}],'口味');
- expect(html).toContain('role="img"');expect(html).toContain('丙 3');expect(html).not.toContain('NaN');
- });
-});
diff --git a/frontend/test/board-sankey.test.ts b/frontend/test/board-sankey.test.ts
deleted file mode 100644
index 52d15571e..000000000
--- a/frontend/test/board-sankey.test.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { describe, it, expect } from 'vitest';
-import { creatorSankeyHtml, wireCreatorSankey } from '../src/board-sankey';
-
-describe('创作者线索流向',()=>{
- it('同名来源与创作者独立计量,聚焦联动并恢复总量',()=>{
- document.body.innerHTML=creatorSankeyHtml([{source:'alice',target:'alice',value:3},{source:'site',target:'alice',value:2}]);
- wireCreatorSankey(document);
- expect(document.querySelectorAll('[data-flow-node]')).toHaveLength(3);
- expect(document.querySelector('[data-sankey-number]')?.textContent).toBe('5');
- const link=document.querySelector<SVGElement>('[data-flow-source]')!;
- expect(link.getAttribute('d')).not.toMatch(/NaN|undefined/);
- link.dispatchEvent(new Event('focus'));
- expect(document.querySelector('[data-sankey-number]')?.textContent).toBe('3');
- link.dispatchEvent(new Event('blur'));
- expect(document.querySelector('[data-sankey-number]')?.textContent).toBe('5');
- });
- it('无有效计数时不绘制虚构流量',()=>{
- expect(creatorSankeyHtml([{source:'a',target:'b',value:NaN},{source:'a',target:'b',value:0}])).toBe('');
- });
-});
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 5f2d7c59c..3bdb271f8 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -41,7 +41,7 @@ describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
'avatar-picker', 'library-processing', 'scraping', 'quality-goals', 'configuration', 'activity',
- 'stats']);
+ 'stats', 'taste']);
});
it('未注册的名字立刻失败,不是静默什么都不画', async () => {
diff --git a/frontend/test/management.test.ts b/frontend/test/management.test.ts
index 2ffa0dd7d..b91a7aded 100644
--- a/frontend/test/management.test.ts
+++ b/frontend/test/management.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
-import { cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations, tasteHistoryGuideHtml, wireTasteHistoryGuide, TASTE_GUIDE_KEY } from '../src/management';
+import { cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations } from '../src/management';
describe('网盘功能范围', () => {
it('本地与在线关注来源不显示网盘入口', () => {
@@ -53,50 +53,3 @@ describe('数据管理首屏', () => {
expect(root.querySelector('#resource-sync')).toBeNull();
});
});
-
-describe('浏览器历史引导', () => {
- it('首次引导可以跳过,普通访问可随时展开', () => {
- const root = document.createElement('div');
- root.innerHTML = tasteHistoryGuideHtml(true);
- expect(root.querySelector('details')?.open).toBe(true);
- expect(root.querySelector('.taste-guide-skip')?.textContent).toBe('跳过');
- expect(root.querySelector('.taste-guide-skip')?.classList.contains('geist-button')).toBe(true);
- expect(root.querySelector('.taste-guide-skip')?.hasAttribute('disabled')).toBe(false);
- root.innerHTML = tasteHistoryGuideHtml(false);
- expect(root.querySelector('details')?.open).toBe(false);
- expect(root.querySelector('.taste-guide-skip')).not.toBeNull();
- });
- it('完成导入或跳过后即使进入首次引导地址也不显示', () => {
- for (const onboarding of [true, false]) {
- expect(tasteHistoryGuideHtml(onboarding, true, false)).toBe('');
- expect(tasteHistoryGuideHtml(onboarding, false, true)).toBe('');
- }
- });
- it('折叠保留指南,跳过在刷新后仍生效且保留导入入口', () => {
- localStorage.removeItem(TASTE_GUIDE_KEY);
- const root = document.createElement('div');
- root.innerHTML = '<button data-taste-import>导入历史</button>' + tasteHistoryGuideHtml(true);
- wireTasteHistoryGuide(root, localStorage);
- root.querySelector('details')!.open = false;
- expect(localStorage.getItem(TASTE_GUIDE_KEY)).toBeNull();
- expect(root.querySelector('details')).not.toBeNull();
- root.querySelector<HTMLButtonElement>('.taste-guide-skip')!.click();
- expect(root.querySelector('details')).toBeNull();
- expect(root.querySelector('[data-taste-import]')).not.toBeNull();
- expect(tasteHistoryGuideHtml(true, false, localStorage.getItem(TASTE_GUIDE_KEY) === '1')).toBe('');
- localStorage.removeItem(TASTE_GUIDE_KEY);
- });
- it('下载入口有外链图标,指南复用现有操作且没有自动读取', () => {
- const root = document.createElement('div');
- root.innerHTML = tasteHistoryGuideHtml(true);
- const links = root.querySelectorAll('a[target="_blank"]');
- expect(links).toHaveLength(2);
- for (const link of links) {
- expect(link.getAttribute('rel')).toBe('noreferrer');
- expect(link.querySelector('use')?.getAttribute('href')).toBe('#i-external-link');
- }
- expect(root.textContent).toContain('读取 Peach 主机');
- expect(root.textContent).toContain('导入历史');
- expect(root.querySelector('script, form')).toBeNull();
- });
-});
diff --git a/frontend/test/react/taste.test.tsx b/frontend/test/react/taste.test.tsx
new file mode 100644
index 000000000..3be751aa4
--- /dev/null
+++ b/frontend/test/react/taste.test.tsx
@@ -0,0 +1,249 @@
+/* 口味页的行为:两套证据怎么切、换范围时那一屏还在不在、后台那一趟什么时候算数、
+ * 导入与移除各自走哪条路、点名次交回去的是什么。
+ *
+ * 外观(雷达图的网格、热力格的浓度档)是设计决定,由 `frontend/e2e/design.test.ts` 读
+ * `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { act } from 'react';
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import * as legacyUi from '@peach/legacy/ui';
+
+import { queryClient } from '../../src/react/query';
+import {
+ DEFAULT_WINDOW, prefetchTaste, RUNNING_POLL_MS, TASTE_IMPORT_URL, TASTE_REFRESH_URL,
+ TASTE_SOURCE_URL, TASTE_URL, type TasteData, type TasteJob,
+} from '../../src/react/taste/taste';
+import { TastePage } from '../../src/react/taste/taste-page';
+
+import { choose, click, mountRoot, settle } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+afterEach(() => queryClient.clear());
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const payload = (overrides: Partial<TasteData> = {}): TasteData => ({
+ summary: {
+ history_visits: 900, history_sources: 2, peach_items: 24, peach_seconds: 7200,
+ liked: 6, disliked: 1, range_start: '2026-01-01', range_end: '2026-09-01',
+ },
+ coverage: { tagged: 18, identified: 12, untagged: 6, unidentified: 12 },
+ rankings: {
+ browser_categories: [
+ { name: '维度甲', score: 40 }, { name: '维度乙', score: 25 }, { name: '维度丙', score: 10 },
+ ],
+ browser_tags: [
+ { name: '标签甲', web_visits: 12, peach_items: 3 },
+ { name: '标签乙', web_visits: 5, peach_items: 0 },
+ ],
+ browser_creators: [{ name: '创作者甲', web_visits: 8, peach_items: 2, source_domain: 'example.com' }],
+ domains: [{ name: 'example.com', visits: 30 }],
+ peach_tags: [{ name: '标签丁', score: 9, peach_items: 4 }],
+ peach_creators: [],
+ peach_performers: [],
+ },
+ gaps: [{ name: '候选甲', web_visits: 4 }],
+ sources: [
+ { source_key: 'a1', browser: 'chrome', profile: '桌面 Chrome', host: 'desk', visits: 120 },
+ { source_key: 'b2', browser: 'browserexport', profile: '手机 Firefox', host: 'phone', visits: 30 },
+ ],
+ analysis: {
+ headline: '口味集中在两个维度上',
+ confidence: { level: 'medium', label: '中等把握' },
+ points: [{ label: '主维度', text: '维度甲' }],
+ explore: [{ tag: '标签丙', title: '探索标签丙', detail: '浏览里出现过' }],
+ next_steps: [{ route: '/review', title: '去复核', detail: '补齐身份' }],
+ },
+ activity: { timezone: 'Asia/Shanghai', days: [{ date: '2026-09-01', count: 3 }], hours: [{ weekday: 0, hour: 21, count: 5 }] },
+ creator_flows: [{ source: 'example.com', target: '创作者甲', value: 6 }],
+ storage: { exports: 2, bytes: 1048576 },
+ window: 'all',
+ updated_at: '2026-09-10T00:00:00Z',
+ ...overrides,
+});
+
+/** 遗留层交出来的那几个能力,换成可辨认的最小实现。 */
+const legacyProps = () => ({
+ onSignal: vi.fn<(kind: string, name: string) => void>(),
+ navigate: vi.fn<(route: string) => void>(),
+ toast: vi.fn<(message: string) => void>(),
+ avatarInner: (name: string) => `<b>${name.slice(0, 1)}</b>`,
+ onboarding: false,
+});
+
+/** 这一份永不回来:换范围时用它把「上一份还在不在」问清楚。 */
+const HOLD = 'hold' as const;
+type TasteReply = TasteData | null | typeof HOLD;
+
+interface Plan {
+ taste?: TasteReply[];
+ job?: TasteJob[];
+ imported?: { dashboard: TasteData };
+ removed?: { removed: number; dashboard: TasteData };
+}
+
+const ok = (body: unknown) => ({ ok: true, status: 200, json: async () => body });
+
+/** 按端点分流的假 fetch:每个端点各有自己的队列,最后一份之后一直回它。 */
+function serve(plan: Plan) {
+ const tastes = [...(plan.taste ?? [payload()])];
+ const jobs = [...(plan.job ?? [{ status: 'idle' } as TasteJob])];
+ const next = <T,>(queue: T[]): T => (queue.length > 1 ? queue.shift()! : queue[0]!);
+ const fetcher = vi.fn(async (input: string, init?: RequestInit) => {
+ if (input === TASTE_IMPORT_URL) return ok(plan.imported ?? { dashboard: payload() });
+ if (input === TASTE_SOURCE_URL) return ok(plan.removed ?? { removed: 1, dashboard: payload() });
+ if (input === TASTE_REFRESH_URL) return ok(next(jobs));
+ if (input.startsWith(TASTE_URL)) {
+ const reply = next(tastes);
+ if (reply === HOLD) return new Promise<never>(() => {});
+ return reply
+ ? ok(reply)
+ : { ok: false, status: 500, json: async () => ({ message: '账本当前只能浏览' }) };
+ }
+ throw new Error(`没有安排这个端点:${input}${init?.method ? ` ${init.method}` : ''}`);
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return fetcher;
+}
+
+type Fetcher = ReturnType<typeof serve>;
+
+const tasteGets = (fetcher: Fetcher) =>
+ fetcher.mock.calls.filter(([input]) => String(input).startsWith(`${TASTE_URL}?`));
+
+const callTo = (fetcher: Fetcher, url: string) =>
+ fetcher.mock.calls.filter(([input]) => String(input) === url);
+
+/** 走完真实的首屏路径:先 prefetch 落进缓存,再挂载。 */
+async function open(plan: Plan = {}, props = legacyProps()) {
+ const fetcher = serve(plan);
+ await prefetchTaste(DEFAULT_WINDOW, new AbortController().signal).catch(() => {});
+ const mounted = await mountRoot(
+ <QueryClientProvider client={queryClient}><TastePage {...props} /></QueryClientProvider>);
+ await settle();
+ return { fetcher, props, ...mounted };
+}
+
+/** 轮询是组件里的定时器,推进时钟会引起重画,得在 act 里推。 */
+const tick = (ms: number) => act(async () => { await vi.advanceTimersByTimeAsync(ms) });
+
+/** 按可见文字找那一枚控件。名次行与线索行都是整行一个按钮。 */
+const rowNamed = (root: ParentNode, text: string) =>
+ [...root.querySelectorAll('button')].find((button) => button.textContent?.includes(text)) ?? null;
+
+/** 原生文件框在 happy-dom 里点不出 change:直接把选中的文件放上去再派发。 */
+const choosePeachFile = (input: HTMLInputElement, chosen: File) => act(async () => {
+ Object.defineProperty(input, 'files', { configurable: true, value: [chosen] });
+ input.dispatchEvent(new Event('change', { bubbles: true }));
+});
+
+it('首屏读 prefetch 落进缓存的那一份,两套证据是页签不是并排', async () => {
+ const { fetcher, host } = await open();
+ expect(tasteGets(fetcher)).toHaveLength(1);
+ expect(tasteGets(fetcher)[0]?.[0]).toBe(`${TASTE_URL}?window=all`);
+ expect([...host.querySelectorAll('[role=tab]')].map((tab) => tab.textContent).slice(0, 2))
+ .toEqual(['浏览器记录', 'Peach 内部']);
+ expect(host.textContent).toContain('900');
+ expect(host.textContent).not.toContain('个作品有内部行为证据');
+});
+
+it('换分析范围时留住上一份:这一屏不退回等待态,只等新的数回来', async () => {
+ const { fetcher, host } = await open({ taste: [payload(), HOLD] });
+ await choose(host.querySelector('[aria-haspopup="listbox"]'), '最近 7 天');
+ await settle();
+ expect(tasteGets(fetcher).map(([input]) => String(input)))
+ .toEqual([`${TASTE_URL}?window=all`, `${TASTE_URL}?window=7d`]);
+ // 上一份仍在屏幕上:读数、页签和名次都还读得到,没有退回「读取失败」。
+ expect(host.textContent).toContain('900');
+ expect(rowNamed(host, '标签甲')).not.toBeNull();
+ expect(host.querySelector('[role=alert]')).toBeNull();
+});
+
+it('首屏读到的旧终态不冒充新结果:不发回执,也不重取 dashboard', async () => {
+ const { fetcher, props, host } = await open({ job: [{ status: 'complete' }] });
+ expect(props.toast).not.toHaveBeenCalled();
+ expect(tasteGets(fetcher)).toHaveLength(1);
+ expect(host.querySelector('[role=alert]')).toBeNull();
+});
+
+it('本次亲眼见过它在跑,跑完才发回执并重取 dashboard', async () => {
+ vi.useFakeTimers();
+ const { fetcher, props, host } = await open({
+ job: [{ status: 'running', message: '正在读取浏览记录' }, { status: 'complete' }],
+ });
+ expect(host.textContent).toContain('正在读取浏览记录');
+ await tick(RUNNING_POLL_MS);
+ await settle();
+ expect(props.toast.mock.calls).toEqual([['已更新口味分析']]);
+ expect(tasteGets(fetcher).length).toBeGreaterThan(1);
+});
+
+it('导入按 octet-stream 发原文件,文件名走请求头,回来的那一份直接换进「全部时间」', async () => {
+ const { fetcher, props, host } = await open({
+ imported: { dashboard: payload({ summary: { history_visits: 4321, history_sources: 3 } }) },
+ });
+ const input = host.querySelector<HTMLInputElement>('input[type=file]')!;
+ await choosePeachFile(input, new File(['x'], '历史.zip'));
+ await settle();
+ const sent = callTo(fetcher, TASTE_IMPORT_URL);
+ expect(sent).toHaveLength(1);
+ const init = sent[0]?.[1];
+ const headers = init?.headers as Record<string, string>;
+ expect(init?.method).toBe('POST');
+ expect(headers['Content-Type']).toBe('application/octet-stream');
+ expect(headers['X-Peach-Filename']).toBe(encodeURIComponent('历史.zip'));
+ expect(props.toast.mock.calls).toEqual([['已导入口味数据']]);
+ // 换进缓存就够了,不为一次导入再问一遍 `/api/taste`。
+ expect(host.textContent).toContain('4,321');
+ expect(tasteGets(fetcher)).toHaveLength(1);
+});
+
+it('移除数据源用回来的那一份就地换掉,不为一次移除重取整页', async () => {
+ const modal = vi.spyOn(legacyUi, 'confirmModal').mockImplementation(async (options) => {
+ await options.onConfirm?.();
+ return { confirmed: true };
+ });
+ const rest = payload({
+ sources: [{ source_key: 'b2', browser: 'browserexport', profile: '手机 Firefox', host: 'phone', visits: 30 }],
+ });
+ const { fetcher, props, host } = await open({ removed: { removed: 1, dashboard: rest } });
+ expect(host.textContent).toContain('桌面 Chrome');
+ await click(host.querySelector('[aria-label="移除 桌面 Chrome"]'));
+ await settle();
+ expect(modal).toHaveBeenCalledTimes(1);
+ const sent = callTo(fetcher, TASTE_SOURCE_URL);
+ expect(sent).toHaveLength(1);
+ expect(JSON.parse(String(sent[0]?.[1]?.body)))
+ .toEqual({ operation: 'remove', source_key: 'a1', window: 'all' });
+ expect(props.toast.mock.calls).toEqual([['已移除口味数据源']]);
+ expect(host.textContent).not.toContain('桌面 Chrome');
+ expect(tasteGets(fetcher)).toHaveLength(1);
+});
+
+it('馆藏里有对应条目的名次才点得动,点了把信号交回给壳,页面自己不跳转', async () => {
+ const { props, host } = await open();
+ expect(rowNamed(host, '标签乙')).toBeNull();
+ await click(rowNamed(host, '标签甲'));
+ expect(props.onSignal.mock.calls).toEqual([['tag', '标签甲']]);
+ expect(props.navigate).not.toHaveBeenCalled();
+});
+
+it('口味总结那几条各走各的出口:探索交信号,下一步交路由', async () => {
+ const { props, host } = await open();
+ await click(rowNamed(host, '探索标签丙'));
+ expect(props.onSignal.mock.calls).toEqual([['tag', '标签丙']]);
+ await click(rowNamed(host, '去复核'));
+ expect(props.navigate.mock.calls).toEqual([['/review']]);
+});
+
+it('卸载之后不再敲库:后台那一趟的轮询跟着这棵根走', async () => {
+ vi.useFakeTimers();
+ const { fetcher, unmount } = await open();
+ const before = fetcher.mock.calls.length;
+ await unmount();
+ await vi.advanceTimersByTimeAsync(60_000);
+ expect(fetcher.mock.calls.length, '卸载之后还在取数').toBe(before);
+});
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 086ea89a2..445b91662 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -444,6 +444,78 @@ class StatsEndpointTests(unittest.TestCase):
self.assertEqual(len(routed), 1, f"/api/stats 的路由声明在 {routed}")
+class TasteEndpointTests(unittest.TestCase):
+ """口味页从 `web/app.js` 搬过来时不能把语义契约丢在原地。
+
+ `tests/test_web_ui.py` 曾对页面源断言这些标记:两套证据是页签、四张读数卡、六种图、
+ 导入走 `X-Peach-Filename`、体积与站点圆标走遗留口径。行为由
+ `frontend/test/react/taste.test.tsx` 守,这里守的是「搬家之后这些标记还在同一处」。
+ """
+
+ TASTE = FRONTEND / "src" / "react" / "taste"
+ ENDPOINTS = ("/api/taste", "/api/taste/refresh", "/api/taste/import", "/api/taste/source")
+
+ def setUp(self):
+ self.source = "\n".join(
+ (self.TASTE / name).read_text(encoding="utf-8")
+ for name in ("taste.ts", "taste-page.tsx", "charts.tsx"))
+
+ def test_each_endpoint_is_declared_once(self):
+ """四条端点在前端各只有一个声明处,就是这一页的数据模块。
+
+ 第二处再写一遍就是分头取数的第一步:导入之后换进缓存的那一份和别处取回的那一份
+ 会同时挂在屏幕上,谁先回来谁说了算。
+ """
+ sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
+ for endpoint in self.ENDPOINTS:
+ declared = [path for path in sources
+ if f"'{endpoint}'" in path.read_text(encoding="utf-8")]
+ self.assertEqual(declared, [self.TASTE / "taste.ts"],
+ f"{endpoint} 声明在 {[path.name for path in declared]}")
+ keyed = [path.name for path in sources
+ if "TASTE_REFRESH_KEY = [" in path.read_text(encoding="utf-8")]
+ self.assertEqual(keyed, ["taste.ts"], f"queryKey 声明在 {keyed}")
+
+ def test_the_window_rides_on_the_query_key(self):
+ """七天和全部时间是两份真相:键上带范围,切换时留住上一份。"""
+ self.assertIn("tasteKey = (window: string) => ['taste', window]", self.source)
+ self.assertIn("placeholderData: keepPreviousData", self.source)
+
+ def test_the_background_run_only_counts_when_this_session_saw_it(self):
+ """首屏读到的旧终态不发回执:只有本次点过或见过它在跑才算数。"""
+ self.assertIn("refetchInterval", self.source)
+ self.assertIn("已更新口味分析", self.source)
+
+ def test_the_import_keeps_the_filename_header(self):
+ """文件原样当请求体发,文件名走请求头,服务端不必多接一个 multipart 解析器。"""
+ self.assertIn("'Content-Type': 'application/octet-stream'", self.source)
+ self.assertIn("'X-Peach-Filename': encodeURIComponent(file.name)", self.source)
+
+ def test_the_two_bodies_of_evidence_are_tabs(self):
+ """浏览器记录与 Peach 内部是两份证据,并排摆会被读成互相印证。"""
+ self.assertIn("react-aria-components", self.source)
+ for name in ("浏览器记录", "Peach 内部"):
+ self.assertIn(name, self.source)
+
+ def test_every_chart_is_a_react_component(self):
+ """六种图都在 React 里:雷达、排行条、读数卡、两张热力图、创作者流向。"""
+ for component in ("TasteRadar", "RankedBars", "SummaryCard", "HeatCard", "CreatorSankey"):
+ self.assertIn(component, self.source)
+ self.assertIn("from 'd3-sankey'", self.source)
+
+ def test_empty_and_error_states_reuse_the_shared_components(self):
+ """空态与失败态走 `src/react/components/` 的组合件,不是一行灰字。"""
+ self.assertIn("<Note", self.source)
+ for title in ("暂无足够证据", "还没有数据源", "还没有可探索的入口"):
+ self.assertIn(title, self.source)
+
+ def test_readings_reuse_the_legacy_formatters(self):
+ """体积与站点圆标共用遗留口径,不在页面里再写一套。"""
+ self.assertIn("from '@peach/legacy/core'", self.source)
+ for helper in ("fmtSize(", "siteMarkUrl("):
+ self.assertIn(helper, self.source)
+
+
class ConfigurationEndpointTests(unittest.TestCase):
"""整页和各分区读同一条 `/api/configuration`,两份产物各打包一份这个模块。"""
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 215919257..4b4ea661a 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1354,23 +1354,20 @@ class WebUiSourceTests(unittest.TestCase):
没有它的标题只是一行普通粗体字:`wireCollapse` 把原生 `<details>` 的三角
`list-style` 去掉了(不去掉的话它和布局里的 flex 对不齐),于是「点这里会展开」
- 这件事没有任何视觉线索,得靠鼠标移上去变成手型才发现。几何跟作者别名那一处
- 同一份 Vercel 取证:16px SVG、`stroke:currentColor`、展开 `rotate(90deg)`。
+ 这件事没有任何视觉线索,得靠鼠标移上去变成手型才发现。几何取自 Vercel:
+ 16px SVG、`stroke:currentColor`、展开 `rotate(90deg)`。React 档那一族折叠由
+ `src/react/settings/section.tsx` 的 `Disclosure` 给同一枚。
"""
css = stylesheet_source()
- for prefix in (".faliasmanager>summary", ".taste-history-guide summary"):
- start = css.index(prefix + ">svg{")
- rule = css[start:css.index("}", start)]
- # 描边色不进这份共用契约:作者别名那一枚故意钉在 --muted 上不随当前项提亮。
- for declaration in ("width:16px", "height:16px", "flex:none", "fill:none",
- "transition:transform .2s ease-in-out"):
- self.assertIn(declaration, rule, f"{prefix} 的 chevron 缺 {declaration}")
- self.assertPageContains(prefix + '[aria-expanded="true"]>svg'
- "{transform:rotate(90deg)}")
- # 原生三角要一起去掉,否则同一行会出现两枚指示符。
- prefix = ".taste-history-guide summary"
- self.assertPageContains(prefix + "::-webkit-details-marker{display:none}")
- self.assertPageContains(prefix + "{cursor:pointer;", "标题自己是 flex 容器")
+ prefix = ".faliasmanager>summary"
+ start = css.index(prefix + ">svg{")
+ rule = css[start:css.index("}", start)]
+ # 描边色不进这份共用契约:作者别名那一枚故意钉在 --muted 上不随当前项提亮。
+ for declaration in ("width:16px", "height:16px", "flex:none", "fill:none",
+ "transition:transform .2s ease-in-out"):
+ self.assertIn(declaration, rule, f"{prefix} 的 chevron 缺 {declaration}")
+ self.assertPageContains(prefix + '[aria-expanded="true"]>svg'
+ "{transform:rotate(90deg)}")
def test_a_spinner_announces_the_work_and_not_the_button_it_sits_in(self):
"""`spinnerHtml()` 的名字说正在做什么,不复读按钮自己的名字。
@@ -1602,24 +1599,17 @@ class WebUiSourceTests(unittest.TestCase):
"{margin-left:0}", board, "撑开的空当只交给第一个 .fmeta")
def test_history_actions_are_one_split_button_with_the_primary_mirrored(self):
- """读取本机浏览记录和导入历史文件是同一件事的两种做法,合成一个 Split Button。
+ """一件事的两种做法合成一个 Split Button,不摊成两颗地位相同的按钮。
实测记在 `docs/reference-snapshots/vercel-geist-split-button.md`:主动作占左半、
触发档占右半,两半拼成一个盒子,交界处一条 1px 竖线;触发档里只有一枚箭头,读屏名
- 由 aria-label 给。菜单第一项必须与主动作同名同事——键盘和读屏用户只走菜单这一条路,
- 少列一项就是少一个动作。
- """
- self.assertPageContains('<div class="splitbutton board-button-group" data-taste-history-menu>')
- self.assertPageContains('<button class="splitmain" data-taste-refresh')
- self.assertPageContains('aria-label="更多取得浏览记录的方式">${icon(\'chevron-down\')}')
- menu = self.page.split('id="tasteHistoryMenu"')[1]
- primary = menu.index("data-taste-history-primary")
- self.assertLess(primary, menu.index("data-taste-import"),
- "主动作要排在菜单第一项")
- self.assertIn("<span>读取浏览器历史</span>", menu[primary:primary + 140],
- "菜单第一项的文字要和左半那颗一字不差")
- # 两处不各写一份读取流程:菜单第一项点回主动作那颗。
- self.assertPageContains("closeAnchoredMenu();root.querySelector('[data-taste-refresh]').click()")
+ 由 aria-label 给。这份几何现在的读者是数据管理页那张「扫描与采集」卡的骨架
+ (`frontend/src/management.ts`),口味页的同一颗归 React(`HistoryActions`)。
+ """
+ skeleton = (Path(__file__).resolve().parents[1]
+ / "frontend/src/management.ts").read_text(encoding="utf-8")
+ self.assertIn('<div class="splitbutton board-button-group primary">', skeleton)
+ self.assertIn('class="splitmain geist-button primary"', skeleton)
css = stylesheet_source()
main_rule = css[css.index(".splitbutton>.splitmain{"):]
self.assertIn("border-radius:var(--control-radius) 0 0 var(--control-radius)",
@@ -1947,10 +1937,12 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("ref?{id:ref,has_image:x.has_image}:null,")
self.assertPageContains(
"x.has_avatar&&!company?x.rep:null, kind, x.mark, x.has_logo?x.k:'',")
- # 口味榜(`/api/taste`):两列直接长在榜行上,判据仍是同一对。
- self.assertPageContains(
- "const ref=row.entity_id?{id:row.entity_id,has_image:row.has_image,")
- self.assertPageContains("rep=row.has_avatar?row.representative_asset_id||null:null;")
+ # 口味榜(`/api/taste`)归 React 档,判据仍是同一对:引用给 `avatarInner()`,
+ # 代表作那一侧只有 `has_avatar` 为真才交。
+ taste = (Path(__file__).resolve().parents[1]
+ / "frontend/src/react/taste/taste-page.tsx").read_text(encoding="utf-8")
+ self.assertIn("{ id: row.entity_id, has_image: !!row.has_image,", taste)
+ self.assertIn("row.has_avatar ? row.representative_asset_id ?? null : null,", taste)
# 沉浸模式署名圈读 `/api/item` 的 entity_refs,标志随引用一起来;代表作那一侧
# 读 REP,入表时已经按 has_avatar 筛过。
self.assertPageContains(
@@ -2099,13 +2091,15 @@ class WebUiSourceTests(unittest.TestCase):
SVG 问都不问,要代理才通的来源干脆空着。采集页和口味页同走 `/site-mark`,
和资料页外链圆标是同一套挑图、合成与缓存。
"""
- self.assertPageContains('<img src="${esc(siteMarkUrl({domain}))}" alt="" loading="lazy" ')
for gone in ("google.com/s2/favicons", "faviconFallbackUrl", "SITE_FAVICONS"):
self.assertPageLacks(gone, "站点图标不得由浏览器向站外取")
- scraping = (Path(__file__).resolve().parents[1]
- / "frontend/src/react/scraping/scraping-page.tsx").read_text(encoding="utf-8")
+ react = Path(__file__).resolve().parents[1] / "frontend/src/react"
+ scraping = (react / "scraping/scraping-page.tsx").read_text(encoding="utf-8")
self.assertIn("<img src={siteMarkUrl({ source })}", scraping)
self.assertNotIn("faviconUrl", scraping)
+ taste = (react / "taste/taste-page.tsx").read_text(encoding="utf-8")
+ self.assertIn('<img src={siteMarkUrl({ domain })} alt="" loading="lazy"', taste)
+ self.assertNotIn("faviconUrl", taste)
def test_no_caller_ever_hands_the_link_mark_endpoint_a_url(self):
# 让前端把地址递给服务端去取,等于开一个任意地址抓取的口子。和 `/follow-stream`
@@ -2122,6 +2116,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('<a class="iconlink" href="${esc(x.url)}"')
self.assertPageContains('<span class="sr-only">${esc(x.label)}</span></a>')
self.assertPageContains('.entitylinks a.iconlink{width:36px;padding:0;gap:0;justify-content:center}')
+ # 悬停只让药丸的边显出来:这一排是图标,底色一换就读成「选中了这一个」。
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn("body .entitylinks a:hover{border-color:var(--line)}", board)
def test_an_official_link_shows_its_domain_next_to_the_sites_own_mark(self):
# 文字是域名——这条链接里唯一确定的东西;图标是站点自己那枚,说的是「这是哪家」。
@@ -5097,75 +5094,33 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("分布在 ${info.entities.toLocaleString()} 个女优、厂牌与系列")
def test_taste_page_combines_private_exports_and_peach_behavior(self):
+ """口味页是 React 档(ADR-0031):遗留层只铺骨架、交容器与几样自己的能力。
+
+ 两套证据怎么切、换范围时留不留上一份、后台那一趟什么时候算数、导入与移除各走
+ 哪条路,由 `frontend/test/react/taste.test.tsx` 守;四条端点只声明一次、六种图
+ 都在 React 里由 `tests/test_frontend_build.py` 守。这里守的是外壳——路由、
+ 入口、交出去的那几样能力,以及正文标记确实已经不在遗留层。
+ """
self.assertRoute('/taste', "openTaste(push)", "section:'taste'")
- self.assertPageContains("/api/taste?window=")
- self.assertPageContains("/api/taste/import")
- self.assertPageContains("/api/taste/refresh")
- self.assertPageContains("/api/taste/source")
- # 口径与免责说明整体清退:这些句子解释的是数字怎么算出来的,
- # 而这个库只有一个用户,他本人就是定这套口径的人。
- self.assertPageLacks("原始 URL、标题与搜索内容不会显示在页面")
- self.assertPageLacks("浏览器记录是当前分析主体")
- self.assertPageLacks("按真实挂载位置汇总")
- self.assertPageLacks("播放、评分与明确反馈保持独立")
- self.assertPageLacks("不自动给标签降权")
- self.assertPageContains("data-taste-window")
- self.assertPageContains("data-taste-remove")
- self.assertPageContains('role="radiogroup" aria-label="口味证据来源"')
- self.assertPageContains('name="taste-evidence" value="browser"')
- self.assertPageContains('name="taste-evidence" value="peach"')
- self.assertPageContains('data-taste-evidence-panel="browser"')
- self.assertPageContains('data-taste-evidence-panel="peach"')
- self.assertPageContains("[data-taste-evidence-panel][hidden]")
- self.assertPageContains("[data-taste-dimension-panel][hidden]")
- self.assertPageContains('data-taste-dimension="${source}:${key}"')
- self.assertPageContains("sourceTabs('browser',[['tags','标签']")
- self.assertPageContains("sourceTabs('peach',[['tags','标签'],['creators','创作者'],['performers','女优']])")
- self.assertPageContains("rank.browser_tags||[]")
- self.assertPageContains("rank.peach_performers||rank.performers||[]")
- self.assertPageContains("visual==='domain'")
- self.assertPageContains("avatarInner(row.name,ref,rep,visual)")
- self.assertPageContains("visual==='creator'&&!ref&&!rep&&sourceDomain")
- # 两处站点头像(域名榜、无实体的创作者)共用一个 siteAvatar;来源提示仍是
- # 「来源:<域名>」,转义在 siteAvatar 里做一次。
- self.assertPageContains("siteAvatar(row.name,sourceDomain,`来源:${sourceDomain}`)")
- self.assertPageContains('title?` title="${esc(title)}"`')
- # 哪个站点给哪张图,由服务端按 `/site-mark` 去问站点自己,页面不带这张清单:
- # 手写死的路径会随对方改版静默失效,而页面这边看不出它已经指向 404。
- self.assertPageContains("siteMarkUrl({domain})")
- self.assertPageLacks("negative_tags")
- self.assertPageContains(".tastehero{margin-bottom:16px}")
- self.assertPageContains(".tasteranks{display:grid;grid-template-columns:repeat(3")
- self.assertPageContains(".tasteranks-tags{grid-template-columns:repeat(4")
- self.assertPageContains(".tasterank{width:100%;min-width:0;min-height:58px")
- self.assertPageContains("@media(max-width:640px){.insighttoolbar,.tastehead")
- self.assertPageContains(".tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}")
- self.assertPageContains("data-taste-dimension-panel=\"${source}:${key}\"")
- self.assertPageContains("class=\"tasterank${kind==='tag'?' tasterank-tag':''}")
- self.assertPageContains("grid-template-columns:32px minmax(0,1fr) 18px")
- self.assertPageContains(".tasterank-visual{grid-template-columns:32px 30px minmax(0,1fr) 18px}")
- self.assertPageContains(".tasterank>svg{justify-self:end")
- self.assertPageContains(".tasteranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}")
- self.assertPageContains("padding:9px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)")
- self.assertPageContains(".tasterank-tag{min-height:54px;padding:8px 10px}")
- self.assertPageContains(".tasterank:is(button):hover{border-color:var(--border-15);background:var(--hover)}")
- self.assertPageLacks("box-shadow:inset 3px 0 var(--tungsten)")
- self.assertPageContains(".tastesources .insightpanelbody>div{display:grid;grid-template-columns:repeat(3")
- self.assertPageContains(".tastesources>header{min-height:0;padding-block:14px}")
- self.assertPageContains(".tastesources .insightpanelbody{padding:16px}")
- self.assertPageContains(".tastesource{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}")
- self.assertPageContains("tasteAnalysisSection(d.analysis)")
- self.assertPageContains('<section class="insightpanel tasteleads">')
- self.assertPageContains("<h3>口味总结</h3>")
- # 可信度读在说明之前,同一行里它排头一位。
- self.assertPageContains('<div class="tastelede"><span class="tasteconfidence '
- '${esc(confidence.level')
- self.assertPageContains('.tastelede{display:flex;align-items:baseline;gap:10px;min-width:0}')
- self.assertPageContains('data-taste-route="${esc(item.route)}"')
- self.assertPageContains("route(button.dataset.tasteRoute);restoreRoute()")
- self.assertPageContains(".tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px")
- self.assertPageContains(".tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}")
- self.assertPageLacks(".tasteanalysisbody")
+ self.assertPageContains("async function openTaste(push=true)")
+ self.assertPageContains("await ui.mountIsland('taste',$('#stats'),{")
+ # 交出去的都是导航、查表或回执:页面不持有它们的状态,也不自己跳转。
+ self.assertPageContains("onSignal:openTasteSignal")
+ self.assertPageContains("navigate:path=>{route(path);restoreRoute()}")
+ self.assertPageContains("toast:actionReceipt,avatarInner")
+ self.assertPageContains("onboarding:new URLSearchParams(location.search).get('onboarding')==='1'")
+ self.assertPageContains("{isCurrent:()=>surfaceCurrent(surface)}")
+ # 四条端点、缓存、轮询与所有正文标记都归 React 子树,遗留层一条都不留。
+ for gone in ("/api/taste", "TASTE_CACHE_KEY", "peach-taste-job", "wireTasteProgress",
+ "renderTaste", "tasteAnalysisSection", "data-taste-window",
+ "data-taste-evidence-panel", "data-taste-dimension", "data-taste-remove",
+ "data-taste-route"):
+ self.assertPageLacks(gone)
+ # 正文的样式跟着搬走:遗留样式表里只剩骨架读到的那几条层级。
+ for gone in (".tasteranks", ".tasterank", ".tastesources", ".tastesource",
+ ".tasteleads", ".tastelede", ".tasteinsights", ".tasteconfidence",
+ ".insighttabs", ".taste-history-guide"):
+ self.assertPageLacks(gone)
def test_note_semantics_replace_empty_states_for_persistent_errors(self):
for name in ("emptyStateHtml", "loadingDotsHtml", "mediaViewButtonsHtml", "noteHtml", "progressHtml",
@@ -5178,7 +5133,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("const role=kind==='error'?' role=\"alert\"':' role=\"note\"'")
self.assertPageContains("failure.innerHTML=noteHtml(error.message||'操作未完成',{variant:'error'})")
self.assertPageContains("noteHtml(error.message,{variant:'error',label:'扫描失败'})")
- self.assertPageContains("noteHtml(error.message||'分析未取得',{variant:'error',label:'分析未取得'})")
self.assertPageContains('class="geist-note geist-note-error fcheckreport" role="alert"')
# 「没有更多内容」的抓取完摘要跟着检查完成的右下角 notification 走,页内只剩失败与取证缺档。
self.assertPageLacks('class="geist-note geist-note-secondary fcheckreport" role="note"')
@@ -5567,7 +5521,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('class="reviewitemheader">${heading}</header>')
self.assertPageContains('aria-label="当前信息"')
self.assertPageContains('</div>${currentInfo}<footer')
- self.assertPageContains(".taste-guide-skip{width:100%;height:var(--control-h);color:var(--meter)}")
def test_collapsed_rail_is_divided_from_the_content_beside_it(self):
"""窄栏和内容区背景接近,没有分割线就看不出左边那一条到哪里为止。
@@ -6620,17 +6573,12 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageLacks("$('#searchMenu').hidden=true")
def test_board_batch_three_aligns_ranks_buttons_and_the_sidebar_switcher(self):
- """排名展开键是 bar-list-card 的 40×20 药丸,排名行不再有悬停底;管理页标题四种布局都对齐 1120;
+ """管理页标题四种布局都对齐 1120;
主按钮与 Board 按钮同一副 36px 盒子;批量条隐藏键真的隐藏、回收站键用 error 渐变;
复核页工具条自己悬浮、标签条留在原地;通知的状态圆用 lucide circle-alert;
侧栏切换器是 32px 圆标识加名字加箭头,悬停外描一圈线,收起键只有 20px 高。
"""
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".board-rank-expand{position:absolute;z-index:1;bottom:4px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:40px;height:20px;", board)
- self.assertIn(".board-rank-expand svg{width:14px;height:14px;", board)
- self.assertIn(".board-rank-list .tasterank{position:relative;isolation:isolate;border:0;border-radius:8px;", board)
- self.assertNotIn(".board-rank-list .tasterank:hover{background:var(--color-background-primary-hover)}", board)
- self.assertIn("body .tastesource>button{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--color-text-secondary);transform:none;", board)
self.assertIn(".geist-fieldset-footer>a,.geist-fieldset-footer>button).primary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border-radius:10px;font:var(--board-body-medium);", board)
self.assertIn("body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}", board)
self.assertIn("body .review{width:100%;max-width:var(--board-content);margin:0 auto;box-sizing:border-box}", board)
@@ -6697,8 +6645,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn(".pcheck input:checked+span svg{animation:board-check-draw .2s cubic-bezier(.65,0,.35,1) forwards}", board)
def test_the_board_layer_shares_one_tabs_segments_and_chart_motion(self):
- """口味页、复核页与首页工具栏的控件都用 Board 那一份:下划线 Tabs 的指示条会滑,
- 证据切换与版式切换是同一枚分段滑块,排名条与雷达图进入视口后从零长出 1.2 秒。
+ """复核页与首页工具栏的控件都用 Board 那一份:下划线 Tabs 的指示条会滑,
+ 证据切换与版式切换是同一枚分段滑块。
随之对齐的还有:排序行里的分段控件与排序键同高(30px);管理页标题只在 812px
窄列页面居中,别处与面包屑同一条左边线;复核「跳过」用蓝色 Chip 配色;侧栏收起键
@@ -6708,10 +6656,9 @@ class WebUiSourceTests(unittest.TestCase):
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
controls = (Path(__file__).resolve().parents[1] / "frontend/src/board-controls.ts").read_text(encoding="utf-8")
self.assertIn("const selector='.managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)';", controls)
- self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs,"
+ self.assertIn("const selector='.iconswitch,.insightswitch,"
".follow-workspace-switch';", controls)
- self.assertIn("export function wireGrowingCharts(root:ParentNode) {", controls)
- self.assertIn("wireBoardSegments(root);wireBoardTabs(root);wireGrowingCharts(root)", controls)
+ self.assertIn("wireBoardSegments(root);wireBoardTabs(root)", controls)
self.assertIn(".insightswitch[data-board-segments]{position:relative;display:inline-flex;align-items:center;gap:2px;padding:4px;"
"border:0;border-radius:10px;background:var(--color-background-tertiary-default);box-shadow:none}", board)
# 浮层上的分段器滑块就是整枚选项:30px 见方、8px 圆角,跟旁边那块滑动玻璃同一副尺寸。
@@ -6722,20 +6669,10 @@ class WebUiSourceTests(unittest.TestCase):
self.assertNotIn("{padding:3px;border-radius:8px;gap:2px}", board)
# 横滚容器会裁掉滑块与玻璃的落影:上下各留 14px 再用负外边距收回,行高不变。
self.assertIn(".count .sorts,.entitycollectionhead .sorts{padding:14px 2px;margin-block:-14px}", board)
- # 下划线只归管理导航与设置分区;洞察页的维度是分段控件,复核分类是次级菜单,判据各在
- # test_the_stats_and_taste_dimensions_switch_as_a_segmented_control 与
+ # 下划线只归管理导航与设置分区;两套证据的切换是分段控件,复核分类是次级菜单,判据各在
+ # test_the_two_bodies_of_evidence_switch_as_a_segmented_control 与
# test_the_review_categories_look_like_a_secondary_menu。
- self.assertIn(".insighttabs button[aria-selected=\"true\"]{background:none;color:var(--color-text-primary);font:var(--board-body-medium)}", board)
- # 统计维度的轨道不裁剪:滑块冲过落点的那一下要能超出轨道,跟其他分段器同一个动法。
- self.assertIn(".insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;width:auto;"
- "max-width:100%;min-height:0;margin:0;padding:4px;border:0;border-radius:10px;"
- "background:var(--color-background-tertiary-default);overflow:visible}", board)
self.assertIn(".insightpanel>header h3,.insightcopy>span{margin:0;font:var(--board-heading);color:var(--color-text-primary)}", board)
- self.assertIn("body .tasterank:is(button):hover,body .board-rank-list .tasterank:hover{border-color:transparent;"
- "background:transparent}", board)
- self.assertIn(".board-ranked-chart.board-chart-visible .board-rank-fill,.tasteranks.board-chart-visible .taste-rank-track i"
- "{animation:board-grow-x 1.2s cubic-bezier(.22,.61,.36,1) both}", board)
- self.assertIn(".board-radar.board-chart-visible .board-radar-value{animation:board-grow-radar 1.2s cubic-bezier(.22,.61,.36,1) both}", board)
self.assertIn("body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);width:100%;margin-left:auto;margin-right:auto}", board)
self.assertIn("body .reviewactions button.warning:not(:disabled){background:#bfdbfe;color:#1e40af;border-color:transparent}", board)
self.assertIn(".drawer .board-sidebar-head #filterBtn{border-radius:0;color:var(--color-text-secondary);", board)
@@ -8044,29 +7981,6 @@ class WebUiSourceTests(unittest.TestCase):
if "sans-serif" in line or "monospace" in line:
self.assertIn("YaHei", line, f"样式表第 {i} 行字体栈缺 CJK 兜底:{line.strip()[:90]}")
- def test_taste_dashboard_is_persisted_and_refreshed_without_blocking(self):
- """口味仪表跨页面刷新复用旧结果,过期更新也不阻塞打开页面。
-
- 口味数据来自浏览器历史聚合,24 小时内无需重读。过期时仍先显示
- 持久缓存,再后台更新;请求带序号,慢响应不能覆盖别的窗口或页面。
- """
- self.assertPageContains("const TASTE_CACHE_KEY='peach-taste-dashboard-v7',TASTE_CACHE_FRESH_MS=24*60*60*1000;")
- self.assertPageContains("let tasteWindow='all',tasteEvidence='browser',tasteDimension={browser:'tags',peach:'tags'};")
- self.assertPageContains("let tasteCache=readTasteCache(),tasteRequest=0;")
- self.assertPageContains("localStorage.getItem(TASTE_CACHE_KEY)")
- self.assertPageContains("localStorage.setItem(TASTE_CACHE_KEY,JSON.stringify(Object.fromEntries(tasteCache)))")
- self.assertPageContains("const cachedEntry=tasteCache.get(tasteWindow),cached=cachedEntry?.dashboard;")
- self.assertPageContains("const cacheFresh=cached&&Date.now()-cachedEntry.at<TASTE_CACHE_FRESH_MS;")
- self.assertPageContains("if(cached)renderTaste(cached);")
- self.assertPageContains("if(!cacheFresh)")
- self.assertPageContains("void surfaceApi(surface,'/api/taste?window='+requestedWindow).then(data=>")
- self.assertPageContains("tasteCacheSet(requestedWindow,data);")
- self.assertPageContains("if(request===tasteRequest&&tasteWindow===requestedWindow&&surfaceCurrent(surface))renderTaste(data)")
- self.assertPageContains("if(!cached&&request===tasteRequest&&surfaceCurrent(surface))")
- # 三个写路径都更新缓存,别让缓存变陈旧。
- self.assertPageContains("tasteCacheSet(tasteWindow,result.dashboard);renderTaste(result.dashboard)")
- self.assertPageContains("tasteWindow='all';tasteCacheSet('all',payload.dashboard);renderTaste(payload.dashboard)")
-
def test_no_page_grows_its_own_back_control(self):
"""索引页没有自己的返回按钮:顶栏入口本身就是返回路径。
@@ -8475,8 +8389,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("fieldsetTitle('resourceBoxTitle','文件与记录核对')")
self.assertPageContains("按馆藏记录逐条查找本地磁盘与网盘上的文件")
self.assertPageContains("cloudPreferenceLocations(g.files,d.cloudLocations||[])")
- self.assertPageContains("Boolean(s.history_sources||d.updated_at),localStorage.getItem(TASTE_GUIDE_KEY)==='1')")
- self.assertPageContains('wireTasteHistoryGuide(root,localStorage);')
for path in ("'/api/ads?limit=1'", "'/api/duplicates?limit=1'", "'/api/sources'"):
self.assertPageContains(path)
# 标题是正文区的第一行,不用原生 legend——legend 会在上边框上开个缺口,
@@ -8648,8 +8560,7 @@ class WebUiSourceTests(unittest.TestCase):
".sgrid.mixgrid>.mixqueue .mixqueuehead span", ".sidebarorderlabel>b",
".tastesummary>small",
".gselectfield>span",
- ".tagpickitem .pickname", ".tasterank b,.tasterank small",
- ".tastesource b,.tastesource small", ".tg",
+ ".tagpickitem .pickname", ".tg",
".tokui .toktitle", "body[data-density=\"dense\"] .card .ctags .tg",
"body[data-density=\"dense\"] .card .meta .t",
}
@@ -9031,8 +8942,6 @@ class WebUiSourceTests(unittest.TestCase):
# 资源同步比的是盘上和账本的差异;跑过一轮之后那一枚才是「再跑一遍」。
'id="resourceScan">${icon(\'git-compare\')}<span>检查文件</span>',
"scan.innerHTML=`${icon(done?'rotate-cw':'git-compare')}",
- # 读浏览器历史是去别处把足迹找回来。
- "${icon('compass')}读取浏览器历史",
# 同步删除把这个目录在盘上和账本里对齐。
'aria-label="同步删除">${icon(\'folder-sync\')}',
# 沉浸模式是一叠竖着翻的卡,保存为播放列表存的是一份列表。
@@ -9611,28 +9520,6 @@ class WebUiSourceTests(unittest.TestCase):
"""
self.assertIn(".faliasidentity>.favatar{flex:none}", self.css)
- def test_a_finished_chart_does_not_grow_again_when_its_tab_comes_back(self):
- """长完的图表钉住终态,切回这个 tab 不重放。
-
- 面板靠 `hidden` 收起,再显示时 `display` 从 none 换回来,CSS 动画会整段重放:
- 读起来就是每点一次 tab,条形图重新长一次。等同一棵子树里没有还在跑的动画
- 再打标,避免掐掉带延迟的后半段。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".board-ranked-chart.board-chart-settled .board-rank-fill,"
- ".tasteranks.board-chart-settled .taste-rank-track i,"
- ".board-radar.board-chart-settled .board-radar-value"
- "{animation:none;transform:none;opacity:1}", board)
- self.assertIn(".board-heat-card.board-chart-settled [data-heat-value],"
- ".board-sankey-card.board-chart-settled .board-sankey-links path{animation:none}", board)
- controls = (Path(__file__).resolve().parents[1]
- / "frontend" / "src" / "board-controls.ts").read_text(encoding="utf-8")
- self.assertIn("const selector='.board-ranked-chart,.board-radar,.tasteranks,"
- ".board-heat-card,.board-sankey-card';", controls)
- self.assertIn("chart.classList.add('board-chart-settled');", controls)
- self.assertIn("if(chart.getAnimations?.({subtree:true})"
- ".some(animation=>animation.playState==='running'))return;", controls)
-
def test_the_data_cleanup_page_spaces_its_blocks_the_same_way(self):
"""数据管理页三块内容之间是同一个间距。
@@ -9981,24 +9868,23 @@ class WebUiSourceTests(unittest.TestCase):
# 焦点环也是蓝的,两者靠形态分开:焦点是一圈 outline,当前项是底下那条线。
self.assertIn(".board-local-nav button:focus-visible{outline:2px solid var(--tungsten);", board)
- def test_the_stats_and_taste_dimensions_switch_as_a_segmented_control(self):
- """统计与口味的维度切换是分段控件,不是下划线 Tabs。
+ def test_the_two_bodies_of_evidence_switch_as_a_segmented_control(self):
+ """两套证据的切换是分段控件,不是下划线 Tabs。
- 这三四个面板是同一份数据的互斥视图,一条横线会把它读成页面层级的导航。滑块复用
- `.board-segment-thumb`,深色下那一档更亮的底一并继承;ARIA 仍然是 Tabs 控制
- tabpanel,不为了长得像分段控件就改写成 radiogroup。boardui dashboard 实测:内边距
- 4px、10px 圆角,滑块 6px 圆角、transform/width/height 各 200ms。
+ 它们是同一件事的两份证据,一条横线会把它读成页面层级的导航。滑块复用
+ `.board-segment-thumb`,深色下那一档更亮的底一并继承。遗留壳铺的那张骨架
+ (`.insightswitch`)与 React 档画出来的那一排读的是同一份几何:内边距 4px、
+ 10px 圆角,滑块 6px 圆角、transform/width/height 各 200ms。
"""
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
controls = (Path(__file__).resolve().parents[1] / "frontend/src/board-controls.ts").read_text(encoding="utf-8")
- self.assertIn(".insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;"
- "width:auto;max-width:100%;min-height:0;margin:0;padding:4px;border:0;"
- "border-radius:10px;background:var(--color-background-tertiary-default);", board)
- self.assertIn("min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;", board)
- self.assertIn(":is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,"
+ self.assertIn(".insightswitch[data-board-segments]{position:relative;display:inline-flex;"
+ "align-items:center;gap:2px;padding:4px;border:0;border-radius:10px;", board)
+ self.assertIn("min-height:28px;height:auto;padding:4px 10px;border-radius:6px;", board)
+ self.assertIn(":is(.iconswitch:not(.themeswitch),.insightswitch,"
".follow-workspace-switch)>:is(.board-segment-thumb,.skeleton-segment-selected)",
board)
- self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs,"
+ self.assertIn("const selector='.iconswitch,.insightswitch,"
".follow-workspace-switch';", controls)
self.assertIn("'label:has(input:checked),button[aria-selected=true]'", controls)
self.assertIn("mutation.observe(group,{subtree:true,attributes:true,attributeFilter:['aria-selected']})",
@@ -10006,10 +9892,6 @@ class WebUiSourceTests(unittest.TestCase):
# 它退出下划线 Tabs 那一族,否则滑块和指示条同时挂上去。
self.assertIn("const selector='.managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)';",
controls)
- self.assertNotIn(".insighttabs{display:flex", board)
- # 原样式把线挂在选中态上,权重比 `button::after` 高:只写后者,滑块底下还压着一条线。
- self.assertIn(".insighttabs button::after,.insighttabs button[aria-selected=\"true\"]::after"
- "{content:none}", board)
def test_hovering_a_button_lights_the_fill_and_never_the_outline(self):
"""次级按钮悬停只换填充,那圈线一动不动,全站只有一条规则说这件事。
@@ -10280,18 +10162,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("if(!nav.closest('.settingscard'))return", app,
"管理区那份横排页签不加玻璃")
- def test_an_empty_activity_panel_keeps_the_room_the_charts_had(self):
- """浏览活跃没有数据时,那句话上下仍留着有图时那两道 20px。
-
- 有图时外边距长在 `.board-activity-charts` 上,空态没有那层外壳,得自己出——
- 不然它和上下两段贴在一起。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".board-activity-empty{margin:20px 0}", board)
- self.assertIn(".board-activity-empty>h3{margin:0", board)
- self.assertIn(".board-activity-empty>p{margin:8px 0 0", board)
- self.assertIn("body .entitylinks a:hover{border-color:var(--line)}", board)
-
def test_the_shuffle_key_is_the_accent_tier_among_the_sort_keys_beside_it(self):
"""换一批走强调档:这一排其余的是排序开关,只有它是动作。
@@ -10410,14 +10280,14 @@ class WebUiSourceTests(unittest.TestCase):
"""board.css 与 `frontend/` 画出来的横滚层走名单,不走按 id 点名的那份清单。
漏登记的表现全站一个样:滚动条被藏掉、滚轮是竖向的、两端也不渐隐,于是那边
- 还有多少内容既看不出也够不着。390px 实测设置弹层那排分区溢出 244px、`/taste`
- 的两张图分别溢出 44px 与 322px,三处都要靠这份名单才拿得到提示。
+ 还有多少内容既看不出也够不着。390px 实测设置弹层那排分区溢出 244px,靠这份
+ 名单才拿得到提示。React 档的页面自己用 `overflow-x-auto`,不进这份清单。
"""
page = self.page
overlay = page.split("const OVERLAY_SCROLLERS=[", 1)[1].split("].join(',')", 1)[0]
edge = page.split("const BOARD_EDGE_SCROLLERS=", 1)[1].split(";", 1)[0]
for selector in (".board-local-nav", ".managebar-menu", ".follow-workspace-switch",
- ".fmanagenav", ".board-heat-scroll", ".board-sankey-scroll"):
+ ".fmanagenav"):
self.assertIn(selector, edge, f"{selector} 会横向溢出,要按横滚层登记")
# 扫描只看前一份名单,只写进后一份等于没登记。
scanned = set(re.findall(r"'(\.[a-z0-9-]+)'", overlay))
@@ -10495,36 +10365,24 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("data-drop=\"self\"", urllink)
self.assertIn("linkHost(x.url)", urllink)
- def test_a_collapsed_ranking_fades_its_last_row_instead_of_covering_it(self):
- """收起的排名靠 mask 淡掉最后一行,不是拿一块渐变色盖上去。
+ def test_a_collapsed_ranking_shows_a_fixed_preview_and_one_way_back(self):
+ """收起的排名只露前十,展开与收起共用同一颗次要按钮。
- 盖的那种要先猜卡片是什么底色,猜错就在图上留一道横带;淡的这种在任何底色上都
- 成立。boardui 实测:列表自己带 `linear-gradient(#000 calc(100% - 44px),transparent)`,
- 展开就取消,正好露五行、淡掉最后 44px。两头高度由 JS 量好写进变量,展开收起的
- 高度过渡与共用 Collapse 同为 `.2s ease-in-out`:展开要长上千像素,先快后慢的曲线
- 在头一帧就把视口里那一截长完,看着像没有动画。
+ 名次归 React 档(`frontend/src/react/taste/taste-page.tsx` 的 `RankList`):二十条
+ 一次铺开会把下面几块整个顶到屏外,所以默认露十条,再由一颗 BoardUI 次要按钮
+ 来回切。行为由 `frontend/test/react/stats.test.tsx` 与 `taste.test.tsx` 守,
+ 这里守的是「这一条规矩只有一处实现」。
"""
+ taste = (Path(__file__).resolve().parents[1]
+ / "frontend/src/react/taste/taste-page.tsx").read_text(encoding="utf-8")
+ self.assertIn("const RANK_PREVIEW = 10;", taste)
+ self.assertIn("expanded ? rows : rows.slice(0, RANK_PREVIEW)", taste)
+ self.assertIn("{expanded ? '收起排名' : '展开更多排名'}", taste)
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- controls = (Path(__file__).resolve().parents[1] / "frontend/src/board-controls.ts").read_text(encoding="utf-8")
- self.assertIn(".board-expand-ranks:not(.expanded)>.board-rank-list"
- "{mask-image:linear-gradient(#000 calc(100% - 44px),transparent)}", board)
- self.assertNotIn(".board-expand-ranks:not(.expanded)::after", board)
- # 过渡只挂在点展开键的那一下:切维度标签时内容换了、量出的高度跟着变,常驻过渡会让列表抖一下。
- self.assertIn(".board-expand-ranks.toggling>.board-rank-list{transition:max-height .2s ease-in-out}", board)
+ self.assertNotIn(".board-expand-ranks", board, "遗留层那套展开排名已经没有读者")
self.assertIn(".fcollapse{overflow:hidden;transition:height .2s ease-in-out}", (
Path(__file__).resolve().parents[1] / "web/css/08-photos.css").read_text(encoding="utf-8"))
self.assertNotIn("overflow:hidden;transition:max-height", board)
- self.assertIn(".board-rank-list,.board-expand-ranks.toggling>.board-rank-list,"
- ".board-rank-expand svg{transition:none}", board)
- self.assertIn("outer.classList.add('toggling')", controls)
- # 收起时展开键钉在指针下,页面回退朝一个方向完成,不先上移再回滚。
- self.assertIn("outer.classList.add('toggling');update();if(!expanded)pin()", controls)
- self.assertIn("if(shift)window.scrollBy(0,shift)", controls)
- # 箭头是描边字形。只给宽高的话 use 里那条折线会被默认 fill 填成一枚实心三角。
- self.assertIn(".board-rank-expand svg{width:14px;height:14px;fill:none;stroke:currentColor;"
- "stroke-width:2;stroke-linecap:round;stroke-linejoin:round;"
- "transition:transform .2s cubic-bezier(0,0,.2,1)}", board)
- self.assertIn("`${row.offsetTop-list.offsetTop+row.offsetHeight}px`", controls)
def test_the_library_switcher_menu_opens_against_the_control_it_belongs_to(self):
"""媒体库弹窗贴着切换器的右缘开,允许压住侧栏剩下的那一段。
diff --git a/web/app.js b/web/app.js
index 1fa5b4be5..70144ccb1 100644
--- a/web/app.js
+++ b/web/app.js
@@ -1,24 +1,23 @@
-import { resourceScanHtml, boundedPreference, mountNumberSetting, syncNumberSetting, statCardBody, rankedChart, radarChart, distributionChart, jobActivityHtml, sidebarSectionHtml, wireSidebarGroups, transitionTheme } from './dist/peach-ui.js';
-import {$, ENTITY_ROUTES, LOC, ROUTE_ENTITIES, ROUTE_STATES, STATE_LABELS, STATE_ROUTES, api, isAbort, mapLimit, brandIcon, entityPath, esc, linkHost, linkMarkUrl, siteMarkUrl, fmtClock, fmtDur, fmtSize, foldName, icon, isCatalogPath, realDuration} from './js/core.js';
+import { resourceScanHtml, boundedPreference, mountNumberSetting, syncNumberSetting, jobActivityHtml, sidebarSectionHtml, wireSidebarGroups, transitionTheme } from './dist/peach-ui.js';
+import {$, ENTITY_ROUTES, LOC, ROUTE_ENTITIES, ROUTE_STATES, STATE_LABELS, STATE_ROUTES, api, isAbort, mapLimit, brandIcon, entityPath, esc, linkHost, linkMarkUrl, fmtClock, fmtDur, fmtSize, foldName, icon, isCatalogPath, realDuration} from './js/core.js';
import { faceFrame } from './js/face-frame.js';
import { searchMorphFrames } from './js/search-morph.js';
import { filterScrollState } from './js/filter-scroll.js';
import { selectRange, selectionSummary, selectGroup, syncSelectionToolbar } from './dist/peach-ui.js';
import { MEDIA_SOURCE_ICONS } from './js/media-source-icons.js';
-import { boardPageSkeleton, detailSkeletonHtml, initBoardControls, syncBoardRange, wireExpandableRanks, creatorSankeyHtml, wireCreatorSankey } from './dist/peach-ui.js';
-import { activityChartsHtml, wireActivityCharts } from './dist/peach-ui.js';
+import { boardPageSkeleton, detailSkeletonHtml, initBoardControls, syncBoardRange } from './dist/peach-ui.js';
import { imageFallbackAttrs, wireImageFallbacks } from './js/image-fallback.js';
import { javDisplayName, javTitleHtml } from './js/jav-title.js';
import { matchRoute, routeLabel } from './js/routes.js';
import { initMiddleTruncate } from './js/middle-truncate.js';
import { tagLabel } from './js/tags.js';
import { mountIsland, unmountIsland, islandMounted, createReviewSelection, wireReviewSelection, updateReviewSticky, groupReviewRows, paginationHtml, pageCount, clampPage, identityEvidenceHtml, reviewImageHtml, wireReviewPictures, preferredDirection } from './dist/peach-ui.js';
-import { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations, tasteHistoryGuideHtml, wireTasteHistoryGuide, TASTE_GUIDE_KEY } from './dist/peach-ui.js';
+import { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations } from './dist/peach-ui.js';
import { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, syncJavImages, nativeImageFit, matchesFaceSource, entitySkeletonHtml } from './dist/peach-ui.js';
import {
attachOverlayScrollbar, breadcrumbHtml, checkboxHtml, collectionSummaryHtml, closeAnchoredMenu, confirmModal, dismissMenu, emptyStateHtml, fieldsetTitle, selectOptionIconHtml,
fillSkeletonTier, fitSkeleton, formModal, iconSwitchHtml, indexSkeletonHtml, loadingDotsHtml,
- mediaViewButtonsHtml, boardTabsHtml, mountFilterFrame, filterChipHtml, moveGlidePane, glideEase, sortControlsHtml, collectionHeaderHtml, wireHorizontalScroller, noteHtml, presentMenu, progressHtml, gaugeHtml, scrollerHtml, searchInputHtml, selectFieldHtml,
+ mediaViewButtonsHtml, boardTabsHtml, mountFilterFrame, filterChipHtml, moveGlidePane, glideEase, sortControlsHtml, collectionHeaderHtml, wireHorizontalScroller, noteHtml, presentMenu, gaugeHtml, scrollerHtml, searchInputHtml, selectFieldHtml,
setActionBusy, skeletonHtml, spinnerHtml, growCollapse, wireAnchoredMenu, wireBusyActions, wireCollapse, wireDragReorder,
wireIconSwitch, wireOverlayScrollbars, wireScrollers, wireSelectField, wireContextCard, configurationSkeletonHtml, wireLoadMore,
} from './js/ui-components.js';
@@ -4476,60 +4475,8 @@ async function openResourceSync(push=true){
$('#resource-sync')?.scrollIntoView({block:'start'});
}
-/* 口味仪表按窗口持久缓存:刷新页面也先显示上次结果。24 小时内不重读;
- 过期后仍先显示旧结果,再在后台更新。导入、移除数据源和显式「读取」
- 会立即写回缓存。缓存只含页面已经展示的聚合结果,不含原始历史。 */
-const TASTE_CACHE_KEY='peach-taste-dashboard-v7',TASTE_CACHE_FRESH_MS=24*60*60*1000;
-const TASTE_CACHE_WINDOWS=new Set(['all','365d','90d','30d','7d']);
-function readTasteCache(){
- try{
- const stored=JSON.parse(localStorage.getItem(TASTE_CACHE_KEY)||'{}');
- return new Map(Object.entries(stored).filter(([window,entry])=>
- TASTE_CACHE_WINDOWS.has(window)&&entry&&Number.isFinite(Number(entry.at))&&
- entry.dashboard&&typeof entry.dashboard==='object'))
- }catch(_error){return new Map()}
-}
-const TASTE_WINDOWS=[['7d','最近 7 天'],['30d','最近 30 天'],['90d','最近 90 天'],['365d','最近一年'],['all','全部时间']];
-let tasteWindow='all',tasteEvidence='browser',tasteDimension={browser:'tags',peach:'tags'};
-let tasteCache=readTasteCache(),tasteRequest=0;
-function tasteCacheSet(window,dashboard){
- tasteCache.set(window,{at:Date.now(),dashboard});
- try{localStorage.setItem(TASTE_CACHE_KEY,JSON.stringify(Object.fromEntries(tasteCache)))}catch(_error){}
-}
-const tasteDate=value=>value?new Date(value).toLocaleDateString('zh-CN'):'—';
-const tasteHours=seconds=>seconds>=3600?(seconds/3600).toFixed(1)+' 小时':Math.round(seconds/60)+' 分钟';
-/* 站点头像:先垫首字母,再叠服务端那枚圆标;取不到就把 <img> 拿掉,露出首字母。
-
- 圆标走 `/site-mark`:浏览器不向对方站点、也不向任何第三方图标代理发请求——那种
- 请求逐个报出这一列里的每一个站,换回来的只是一枚 16px 位图。服务端认得的域名
- 之外不出图,首字母本来就够认。 */
-function siteAvatar(name,domain,title=''){
- return `<span class="tasteavatar tastesite"${title?` title="${esc(title)}"`:''}>`+
- `<span class="ini">${esc(String(name).slice(0,1).toUpperCase())}</span>`+
- `<img src="${esc(siteMarkUrl({domain}))}" alt="" loading="lazy" `+
- `${imageFallbackAttrs({})}></span>`;
-}
-const tasteRankRows=(rows,kind,empty='暂无足够证据',visual='')=>rows.length?rows.map((row,index)=>{
- const clickable=kind&&row.peach_items>0;
- const strength=Number(row.web_visits??row.score??row.visits??row.peach_items??0);
- const maximum=Math.max(1,...rows.map(item=>Number(item.web_visits??item.score??item.visits??item.peach_items??0)));
- const detail=row.web_visits!=null
- ?`${row.web_visits?`浏览 ${row.web_visits}`:''}${row.web_visits&&row.peach_items?' · ':''}${row.peach_items?`Peach ${row.peach_items}`:''}`
- :`${Number(row.score||row.visits||0).toLocaleString()}`;
- // 两级图都由 `/api/taste` 说了算:实体图看 `has_image`,代表作头像看 `has_avatar`。
- const ref=row.entity_id?{id:row.entity_id,has_image:row.has_image,
- avatar_focus:row.avatar_focus}:null,
- rep=row.has_avatar?row.representative_asset_id||null:null;
- const sourceDomain=String(row.source_domain||'');
- const media=visual==='domain'
- ?siteAvatar(row.name,row.name)
- :visual==='creator'&&!ref&&!rep&&sourceDomain
- ?siteAvatar(row.name,sourceDomain,`来源:${sourceDomain}`)
- :visual?`<span class="tasteavatar">${avatarInner(row.name,ref,rep,visual)}</span>`:'';
- return `<${clickable?'button':'div'} class="tasterank${kind==='tag'?' tasterank-tag':''}${visual?' tasterank-visual':''}"${clickable?` data-taste-kind="${kind}" data-taste-name="${esc(row.name)}"`:''}>
- <span class="tastepos mono">${index+1}</span>${media}<span class="taste-rank-copy"><b>${esc(row.name)}</b><small>${esc(detail)}</small><span class="taste-rank-track" aria-hidden="true"><i style="width:${Math.max(0,Math.min(100,strength/maximum*100))}%"></i></span></span>
- ${clickable?icon('chevron-right'):''}</${clickable?'button':'div'}>`}).join(''):
- emptyStateHtml('search','暂无足够证据',empty);
+/* 点一条口味名次:标签是「回目录并按它筛选」,人名直接进资料页。整页换成哪一屏
+ 仍归遗留壳,React 档只说点了哪一条。 */
function openTasteSignal(kind,name){
if(kind==='tag'){
state={...state,tag:name,tag_match:'all',creator:'',studio:'',q:'',state:'',orient:''};
@@ -4537,181 +4484,21 @@ function openTasteSignal(kind,name){
}
openEntity(kind,name);
}
-function tasteAnalysisSection(analysis){
- if(!analysis||!analysis.headline)return '';
- const confidence=analysis.confidence||{};
- const points=(analysis.points||[]).map(point=>`<div class="tasteinsight">
- <span>${esc(point.label)}</span><b>${esc(point.text)}</b></div>`).join('');
- //: 探索标签和下一步动作都是「点进去就能做的事」,排成同一列表;
- //: 前者带 data-taste-kind 走信号面板,后者带 data-taste-route 直接换页。
- const leads=[...(analysis.explore||[]).map(item=>
- ({attrs:`data-taste-kind="tag" data-taste-name="${esc(item.tag)}"`,title:item.title,detail:item.detail})),
- ...(analysis.next_steps||[]).map(item=>
- ({attrs:`data-taste-route="${esc(item.route)}"`,title:item.title,detail:item.detail}))]
- .map(lead=>`<button type="button" class="tastelead" ${lead.attrs}>
- <span><b>${esc(lead.title)}</b><small>${esc(lead.detail)}</small></span>${icon('chevron-right')}</button>`).join('');
- return `<section class="insightpanel tasteleads">
- <header><div><h3>口味总结</h3>
- <div class="tastelede"><span class="tasteconfidence ${esc(confidence.level||'early')}"><i aria-hidden="true"></i>${esc(confidence.label||'仍在学习')}</span>
- <p>${esc(analysis.headline)}</p></div></div></header>
- <div class="insightpanelbody">
- ${points?`<div class="tasteinsights">${points}</div>`:''}
- <div class="tasteleadlist">${leads||emptyStateHtml('search','还没有可探索的入口','馆藏里暂时没有对得上浏览信号的标签。')}</div>
- </div></section>`;
-}
-function renderTaste(d){
- const s=d.summary||{},coverage=d.coverage||{},rank=d.rankings||{},storage=d.storage||{};
- const summary=(label,value,sub='')=>`<div class="tastesummary">${statCardBody(label,value,sub,{'浏览记录':'history','口味维度':'tags','浏览候选':'search','私有导出':'database','Peach 看过':'eye','喜欢':'thumbs-up','不合口味':'thumbs-down','有标签':'tags'}[label])}</div>`;
- const coverageMetric=(label,value,sub,done,total)=>`<div class="tastecovermetric"><span>${label}</span><b>${value}</b><small>${sub}</small>${progressHtml(`${label}:${done} / ${total}`,done,total)}</div>`;
- const sourceRows=(d.sources||[]).map(source=>`<div class="tastesource">
- <span class="tastebrowser">${icon(source.browser==='browserexport'?'upload':'database')}</span>
- <span><b>${esc(source.profile)}</b><small>${esc(source.browser)} · ${esc(source.host)} · ${Number(source.visits||0).toLocaleString()} 条</small></span>
- <button data-taste-remove="${source.source_key}" title="移除分析记录" aria-label="移除 ${esc(source.profile)}">${icon('trash')}</button></div>`).join('');
- const gapRows=(d.gaps||[]).map(row=>({...row,evidence:['浏览记录']}));
- const domainRows=(rank.domains||[]).map(row=>({name:row.name,score:row.visits}));
- const categoryRows=(rank.browser_categories||[]).map(row=>({name:row.name,score:row.score}));
- const categoryBars=categoryRows.length?rankedChart(categoryRows,'口味维度排名'):
- emptyStateHtml('search','暂无口味维度','采集浏览记录后,这里会显示聚合后的口味证据。');
- const rankPanel=(source,key,rows,kind='',empty='暂无足够证据',visual='')=>`<div id="taste-${source}-${key}" role="tabpanel"
- data-taste-dimension-panel="${source}:${key}"${tasteDimension[source]===key?'':' hidden'}>
- <div class="tasteranks${kind==='tag'?' tasteranks-tags':''}${visual?' tasteranks-visual':''}">${tasteRankRows(rows,kind,empty,visual)}</div></div>`;
- const sourceTabs=(source,tabs)=>`<div class="insighttabs" role="tablist" aria-label="${source==='browser'?'浏览器':'Peach'} 口味维度">${tabs.map(([key,label])=>
- `<button type="button" role="tab" data-taste-dimension="${source}:${key}" aria-selected="${tasteDimension[source]===key}"
- aria-controls="taste-${source}-${key}"${tasteDimension[source]===key?'':' tabindex="-1"'}>${label}</button>`).join('')}</div>`;
- $('#stats').innerHTML=`<div class="tastepage">
- <header class="tastehead"><div class="insightswitch" role="radiogroup" aria-label="口味证据来源">
- <label><input type="radio" name="taste-evidence" value="browser"${tasteEvidence==='browser'?' checked':''}><span>浏览器记录</span></label>
- <label><input type="radio" name="taste-evidence" value="peach"${tasteEvidence==='peach'?' checked':''}><span>Peach 内部</span></label></div>
- <div class="tasteactions">${selectFieldHtml(TASTE_WINDOWS,d.window||tasteWindow,{label:'分析范围',attr:'data-taste-window'})}
- <div class="splitbutton board-button-group" data-taste-history-menu>
- <button class="splitmain" data-taste-refresh title="读取运行 Peach 的这台电脑上的浏览记录">${icon('compass')}读取浏览器历史</button>
- <button type="button" class="splittoggle" data-taste-history-toggle aria-haspopup="menu"
- aria-expanded="false" aria-controls="tasteHistoryMenu"
- aria-label="更多取得浏览记录的方式">${icon('chevron-down')}</button>
- <div class="popmenu cardmenupanel" id="tasteHistoryMenu" role="menu" hidden>
- <button type="button" role="menuitem" data-taste-history-primary>${icon('compass')}<span>读取浏览器历史</span></button>
- <button type="button" role="menuitem" data-taste-import>${icon('upload')}<span>导入历史文件</span></button>
- </div></div><input data-taste-file type="file" hidden></div></header>
- ${tasteHistoryGuideHtml(new URLSearchParams(location.search).get('onboarding')==='1',Boolean(s.history_sources||d.updated_at),localStorage.getItem(TASTE_GUIDE_KEY)==='1')}
- <div class="tastestate" data-taste-state role="status" aria-live="polite"></div>
- <div class="tastesummaries" data-taste-summary="browser"${tasteEvidence==='browser'?'':' hidden'}>
- ${summary('浏览记录',Number(s.history_visits||0).toLocaleString(),`${s.history_sources||0} 个数据源 · ${tasteDate(s.range_start)}—${tasteDate(s.range_end)}`)}
- ${summary('口味维度',categoryRows.length.toLocaleString(),categoryRows[0]?.name||'尚无主维度')}
- ${summary('浏览候选',gapRows.length.toLocaleString())}
- ${summary('私有导出',Number(storage.exports||0).toLocaleString(),fmtSize(storage.bytes||0))}</div>
- <div class="tastesummaries" data-taste-summary="peach"${tasteEvidence==='peach'?'':' hidden'}>
- ${summary('Peach 看过',Number(s.peach_items||0).toLocaleString(),tasteHours(s.peach_seconds||0))}
- ${summary('喜欢',Number(s.liked||0).toLocaleString())}
- ${summary('不合口味',Number(s.disliked||0).toLocaleString())}
- ${summary('有标签',Number(coverage.tagged||0).toLocaleString())}</div>
- <section class="tastehero" data-taste-evidence-panel="browser"${tasteEvidence==='browser'?'':' hidden'}>
- <div class="insightcopy"><span>浏览器画像</span>${radarChart(categoryRows,'主要口味维度')||'<h2>口味分布</h2>'}
- <small>${d.updated_at?`更新于 ${tasteDate(d.updated_at)}`:'尚未采集浏览记录'}</small></div>
- <div class="tastebars">${categoryBars}</div></section>
- <section class="tastehero" data-taste-evidence-panel="peach"${tasteEvidence==='peach'?'':' hidden'}>
- <div class="insightcopy"><span>Peach 观看</span><h2>${Number(s.peach_items||0).toLocaleString()}</h2><b>个作品有内部行为证据</b>
- </div>
- <div class="insightvisual">
- ${coverageMetric('有标签',Number(coverage.tagged||0).toLocaleString(),`${coverage.untagged||0} 项待补`,coverage.tagged||0,(coverage.tagged||0)+(coverage.untagged||0))}
- ${coverageMetric('有身份',Number(coverage.identified||0).toLocaleString(),`${coverage.unidentified||0} 项待补`,coverage.identified||0,(coverage.identified||0)+(coverage.unidentified||0))}
- </div></section>
- ${tasteAnalysisSection(d.analysis)}
- <div data-taste-evidence-panel="browser"${tasteEvidence==='browser'?'':' hidden'}>${activityChartsHtml(d.activity)}${creatorSankeyHtml(d.creator_flows)}</div>
- <section class="insightpanel tasteanalysis" data-taste-evidence-panel="browser"${tasteEvidence==='browser'?'':' hidden'}>
- <header>${sourceTabs('browser',[['tags','标签'],['creators','创作者'],['domains','常访问网站'],['gaps','浏览候选']])}</header>
- <div class="insightpanelbody">
- ${rankPanel('browser','tags',rank.browser_tags||[],'tag')}
- ${rankPanel('browser','creators',rank.browser_creators||[],'creator','暂无创作者证据','creator')}
- ${rankPanel('browser','domains',domainRows,'','暂无网站证据','domain')}
- ${rankPanel('browser','gaps',gapRows,'','这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据')}
- </div></section>
- <section class="insightpanel tasteanalysis" data-taste-evidence-panel="peach"${tasteEvidence==='peach'?'':' hidden'}>
- <header>${sourceTabs('peach',[['tags','标签'],['creators','创作者'],['performers','女优']])}</header>
- <div class="insightpanelbody">
- ${rankPanel('peach','tags',rank.peach_tags||[],'tag')}
- ${rankPanel('peach','creators',rank.peach_creators||[],'creator','暂无创作者证据','creator')}
- ${rankPanel('peach','performers',rank.peach_performers||rank.performers||[],'performer','暂无女优证据','performer')}
- </div></section>
- <section class="insightpanel tastesources"><header><div><h3>数据源</h3></div></header>
- <div class="insightpanelbody"><div>${sourceRows||emptyStateHtml('database','还没有数据源','导入或读取浏览记录后,这里会列出已采集设备。')}</div></div></section>
- </div>`;
- const root=$('#stats'),stateEl=root.querySelector('[data-taste-state]'),file=root.querySelector('[data-taste-file]');
- wireActivityCharts(root);
- wireCreatorSankey(root);
- wireExpandableRanks(root);
- wireTasteHistoryGuide(root,localStorage);
- root.querySelectorAll('input[name="taste-evidence"]').forEach(input=>input.onchange=()=>{
- tasteEvidence=input.value;
- root.querySelectorAll('[data-taste-summary]').forEach(panel=>panel.hidden=panel.dataset.tasteSummary!==tasteEvidence);
- root.querySelectorAll('[data-taste-evidence-panel]').forEach(panel=>panel.hidden=panel.dataset.tasteEvidencePanel!==tasteEvidence)
- });
- root.querySelectorAll('[data-taste-dimension]').forEach(button=>button.onclick=()=>{
- const [source,key]=button.dataset.tasteDimension.split(':');tasteDimension[source]=key;
- root.querySelectorAll(`[data-taste-dimension^="${source}:"]`).forEach(tab=>{
- const selected=tab===button;tab.setAttribute('aria-selected',String(selected));tab.tabIndex=selected?0:-1});
- root.querySelectorAll(`[data-taste-dimension-panel^="${source}:"]`).forEach(panel=>panel.hidden=panel.dataset.tasteDimensionPanel!==button.dataset.tasteDimension)
- });
- const tasteWindowField=wireSelectField(root.querySelector('[data-taste-window]'));
- tasteWindowField.addEventListener('change',()=>{tasteWindow=tasteWindowField.value;openTaste(false)});
- /* 总结里的下一步动作按路径走,派发仍旧交给 ROUTES:在这里比对一遍路径字符串,
- 就又多出一处会和那张表不一致的知识。 */
- root.querySelectorAll('[data-taste-route]').forEach(button=>button.onclick=()=>{
- route(button.dataset.tasteRoute);restoreRoute()});
- root.querySelector('[data-taste-refresh]').onclick=async e=>{const button=e.currentTarget;
- const oldButton=button.innerHTML;
- setActionBusy(button);
- button.innerHTML=`${spinnerHtml('正在读取')}<span>读取中…</span>`;
- stateEl.textContent='';
- try{const result=await api('/api/taste/refresh',{method:'POST',body:JSON.stringify({window:tasteWindow,background:true})});
- sessionStorage.setItem('peach-taste-job',result.job_id);
- if(button.isConnected)void wireTasteProgress()}
- catch(error){stateEl.textContent=error.message||'读取失败';setActionBusy(button,false);
- button.innerHTML=oldButton;if(button.isConnected)void wireTasteProgress()}};
- void wireTasteProgress();
- const historyMenu=root.querySelector('[data-taste-history-menu]');
- wireAnchoredMenu(historyMenu,historyMenu.querySelector('[data-taste-history-toggle]'),
- historyMenu.querySelector('.cardmenupanel'));
- /* 菜单第一项和左边那颗是同一件事:键盘和读屏用户只走菜单这一条路,少列一项就是少一个
- 动作。这里点回主动作那颗,读取流程只留一份。 */
- root.querySelector('[data-taste-history-primary]').onclick=()=>{
- closeAnchoredMenu();root.querySelector('[data-taste-refresh]').click()};
- root.querySelector('[data-taste-import]').onclick=()=>{closeAnchoredMenu();file.click()};
- file.onchange=async()=>{const selected=file.files[0];if(!selected)return;stateEl.textContent=`正在导入 ${selected.name}…`;
- try{const response=await fetch('/api/taste/import',{method:'POST',headers:{'Content-Type':'application/octet-stream','X-Peach-Filename':encodeURIComponent(selected.name)},body:selected});
- const payload=await response.json().catch(()=>null);if(!response.ok)throw new Error(payload?.error||`导入失败(${response.status})`);
- tasteWindow='all';tasteCacheSet('all',payload.dashboard);renderTaste(payload.dashboard);actionReceipt('已导入口味数据')}
- catch(error){stateEl.textContent=error.message||'导入失败';actionFailure('导入口味数据',error)}};
- root.querySelectorAll('[data-taste-kind]').forEach(button=>button.onclick=()=>openTasteSignal(button.dataset.tasteKind,button.dataset.tasteName));
- root.querySelectorAll('[data-taste-remove]').forEach(button=>button.onclick=async()=>{
- return confirmModal({title:'移除口味数据源',body:'这个数据源将不再用于口味分析。原始导出文件保留。',confirmLabel:'移除口味数据源',danger:false,onConfirm:async()=>{
- setActionBusy(button);stateEl.textContent='正在移除…';
- try{const result=await api('/api/taste/source',{method:'POST',body:JSON.stringify({operation:'remove',source_key:button.dataset.tasteRemove,window:tasteWindow})});
- tasteCacheSet(tasteWindow,result.dashboard);renderTaste(result.dashboard);actionReceipt('已移除口味数据源')}
- catch(error){setActionBusy(button,false);throw error}
- }});});
-}
async function openTaste(push=true){
releaseHoverPreviews();disposeStage(false);enterManagementSurface();
state={...state,creator:'',studio:'',tag:'',tag_match:'all',len:'',dur_min:'',dur_max:'',orient:'',region:'',state:'',q:'',jav:''};
$('#q').value='';
if(push)route('/taste');
const surface=claimSurface('/taste');
- showManagementBody();
- const cachedEntry=tasteCache.get(tasteWindow),cached=cachedEntry?.dashboard;
- const cacheFresh=cached&&Date.now()-cachedEntry.at<TASTE_CACHE_FRESH_MS;
- if(cached)renderTaste(cached);
- else showManagementBody({placeholder:managementPlaceholder('/taste')});
- if(!cacheFresh){
- const request=++tasteRequest;
- const requestedWindow=tasteWindow;
- void surfaceApi(surface,'/api/taste?window='+requestedWindow).then(data=>{
- tasteCacheSet(requestedWindow,data);
- if(request===tasteRequest&&tasteWindow===requestedWindow&&surfaceCurrent(surface))renderTaste(data)
- }).catch(error=>{
- if(!cached&&request===tasteRequest&&surfaceCurrent(surface))$('#stats').innerHTML=
- `<div class="tastepage">${noteHtml(error.message||'分析未取得',{variant:'error',label:'分析未取得'})}</div>`
- })
- }
+ showManagementBody({placeholder:managementPlaceholder('/taste')});
+ const ui=await import('/dist/peach-ui.js');
+ /* 总结里的下一步动作按路径走,派发仍旧交给 ROUTES:在 React 档里比对一遍路径字符串,
+ 就又多出一处会和那张表不一致的知识。 */
+ await ui.mountIsland('taste',$('#stats'),{
+ onSignal:openTasteSignal,navigate:path=>{route(path);restoreRoute()},
+ toast:actionReceipt,avatarInner,
+ onboarding:new URLSearchParams(location.search).get('onboarding')==='1',
+ },{isCurrent:()=>surfaceCurrent(surface)});
window.scrollTo({top:0,behavior:'smooth'});
}
@@ -6492,14 +6279,6 @@ async function wireOperationProgress({host,path,key,title,busy,complete}){
if(report.status==='failed'){marker.innerHTML=noteHtml(report.error||'任务失败',{variant:'error',label:'任务失败'});return}
complete(report)}});
}
-function wireTasteProgress(){
- const button=$('#stats').querySelector('[data-taste-refresh]');
- if(!button)return;
- return wireOperationProgress({host:$('#stats').querySelector('[data-taste-state]'),
- path:'/api/taste/refresh',key:'peach-taste-job',title:'正在读取浏览记录并更新口味分析…',
- busy:running=>{setActionBusy(button,running);button.innerHTML=`${icon('compass')}读取浏览器历史`},
- complete:()=>{tasteCache.clear();void openTaste(false);actionReceipt('已更新口味分析')}});
-}
function wireResolveProgress(){
return wireOperationProgress({host:$('#stats').querySelector('[data-follow-add-state]'),
path:'/api/follow/resolve',key:'peach-resolve-job',title:'正在查找关注来源…',
diff --git a/web/board.css b/web/board.css
index 605ac61aa..bd6216922 100644
--- a/web/board.css
+++ b/web/board.css
@@ -963,9 +963,6 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.sidecontent .obtn b{font-size:12px;line-height:18px;padding:1px 6px;border-radius:5px;background:var(--picked);font-weight:500}
.sidecontent .obtn:hover{background:var(--hover)}
.board-filter-frame.board-filter-frame .sorts .batchaction:hover,.entitycollectionhead.entitycollectionhead .sorts .batchaction:hover{background:var(--board-blue-hover);color:#fff}
-:root{--chart-0:#60a5fa;--chart-1:#a78bfa;--chart-2:#34d399;--chart-3:#fbbf24}
-.board-distribution{width:100%;max-width:240px;align-self:center;margin:auto;min-height:200px}
-.board-distribution text{fill:var(--ink-2);font-family:inherit;font-size:12px}
.board-job-progress{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14px;line-height:20px}
/* 这张卡自己不留内边距,里面每块各带各的。进度环少了这一条,圆环就贴着卡片左沿,
和它下面那几组链接表的 16px 对不上一条线。 */
@@ -984,26 +981,13 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.tastesummary:nth-child(4) .board-stat-icon{color:#f59e0b;background:#f59e0b18}
.tastesummary>.board-stat-value{padding:12px 16px 16px;font-size:28px;line-height:34px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.tastesummary>.board-stat-footer{display:block;padding:10px 16px;background:var(--board-card-foot);margin:auto 0 0;font-size:12px;line-height:18px;color:var(--muted);min-height:38px}
-.insightpanel,.tastehero,.tasteanalysis,.tasteleads{border:0;border-radius:16px;background:var(--ground);overflow:clip}
+.insightpanel,.tastehero{border:0;border-radius:16px;background:var(--ground);overflow:clip}
.insightcopy{border:0}.insightpanel>header{border:0;padding-top:8px}
-.board-ranked-chart{list-style:none;margin:0;padding:0;display:grid;gap:8px}
-.board-ranked-chart li{position:relative;isolation:isolate;display:flex;justify-content:space-between;gap:12px;padding:10px 12px;min-height:40px;border-radius:8px;overflow:hidden;font-size:14px;line-height:20px}
-.board-ranked-chart b{font-weight:500;font-variant-numeric:tabular-nums}
-.board-rank-fill{position:absolute;inset:0 auto 0 0;background:color-mix(in srgb,var(--tungsten) 15%,transparent);border-radius:8px;z-index:-1}
-.board-radar{display:block;width:100%;max-height:280px;overflow:visible;margin:8px auto}
-.board-radar-grid{fill:none;stroke:var(--line-soft);stroke-width:1}
-.board-radar-value{fill:color-mix(in srgb,var(--tungsten) 18%,transparent);stroke:var(--tungsten);stroke-width:2;stroke-linejoin:round}
-.board-radar text{font-family:inherit;font-size:12px;fill:var(--muted);dominant-baseline:middle}
@media(max-width:1000px){.metricstrip,.tastesummaries{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:480px){.board-stat-label{padding-inline:12px;font-size:13px;gap:6px}.tastesummary>.board-stat-value{padding:12px;font-size:24px;line-height:34px}.tastesummary>.board-stat-footer{padding:8px 12px}.board-stat-icon{width:24px;height:24px}}
/* 数据按阅读目的分组,标题与内容共享边缘。 */
.insightpage,.tastepage{width:100%;max-width:var(--board-content)}
-.tasteranks,.tasteranks-tags,.tasteranks-visual{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px}
-.tasterank,.tasterank-tag{border:0;background:none;border-radius:10px;padding:12px 8px;min-height:72px;grid-template-columns:24px minmax(0,1fr) 16px;gap:12px}
-.tasterank-visual{grid-template-columns:24px 36px minmax(0,1fr) 16px}.tasterank .tasteavatar{width:36px;height:36px}.tasterank b{font-size:14px;line-height:20px;font-weight:500;white-space:normal;overflow-wrap:anywhere}.tasterank small{white-space:normal;line-height:18px}.tasterank .taste-rank-copy{min-width:0}
-.taste-rank-track{display:block;height:4px;margin-top:8px;background:var(--line-soft);border-radius:var(--pill-radius);overflow:hidden}.taste-rank-track i{display:block;height:100%;background:var(--tungsten);opacity:.55;border-radius:inherit}
-.tasteleads>header{padding:24px 24px 12px}.tastelede{display:flex;flex-direction:column;gap:12px}.tasteleads .tastelede p{font-size:20px;line-height:30px;color:var(--ink);max-width:64ch}.tasteleads .insightpanelbody{padding:8px 24px 24px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px}.tasteinsights{display:flex;flex-direction:column;gap:20px;margin:0}.tasteinsight{padding:0;background:none;gap:6px}.tasteinsight>b{font-weight:400;line-height:22px}.tasteleadlist{align-content:start}.tastelead{background:var(--surface);padding:14px}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tastesource{border:0;background:var(--surface);padding:16px}
.followmanage .fmain{gap:28px}.followmanage .fmain>.fsec>.fsources{padding:0 24px 24px;grid-template-columns:minmax(0,1fr);gap:16px}
.followmanage .fauthor{height:auto;padding:16px 20px;border:0;border-radius:16px;background:var(--ground);display:block}.followmanage .fauthorhead{padding:0 0 12px}.followmanage .fauthorhead b{font-weight:500;white-space:normal}.followmanage .fauthorsources{height:auto;max-height:none;overflow:visible}.followmanage .fauthor .fsource.frow{padding-block:12px;border:0}.followmanage .fauthor .fsource.frow>b{font-weight:400}.followmanage .fauthor .fsource.frow:not(:has([data-follow-select]))+.fsource.frow:not(:has([data-follow-select])){border-top:1px solid var(--line-soft)}
.followmanage .fmain>.fsec:has(.fcred){background:none}.followmanage .fmain>.fsec:has(.fcred)>.fsechead{padding:0 0 12px}.followmanage .fmain>.fsec:has(.fcred)>.frows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;padding:0}.followmanage .fcred{margin:0;padding:16px;border:0;border-radius:12px;background:var(--ground);min-width:0}.followmanage .fcred summary{padding:0;min-height:32px}.followmanage .fcred.none{min-height:64px}.followmanage .fcred p{overflow-wrap:anywhere}.followmanage .fmain>.fsec>.fdesc{background:none;border:0;padding:16px 0}
@@ -1012,7 +996,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.followmanage .fauthor{container-type:inline-size}
.board-follow-list{display:grid;border-radius:16px;background:var(--ground);padding:8px 16px}.board-follow-list .fsource.frow{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto auto auto;gap:12px;padding:8px;min-height:48px;border:0;border-radius:8px}.board-follow-list .fsource.frow>b{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.board-follow-list .fsource.selected{background:var(--picked);opacity:1}.board-follow-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 12px;font-size:13px}.board-follow-selection>label{display:flex;gap:8px;align-items:center}.board-follow-selection>span{margin-right:auto;color:var(--muted)}
@media(max-width:760px){.board-follow-list{padding:8px}}
-@media(max-width:760px){body #manageTitle{width:100%}.tasteleads .insightpanelbody,.tasteranks,.tasteranks-tags,.tasteranks-visual,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tasteleads>header{padding:20px 16px 12px}.tasteleads .insightpanelbody{padding:8px 16px 20px}.followmanage .fmain>.fsec:has(.fcred)>.frows{grid-template-columns:minmax(0,1fr)}.followmanage .fauthor{padding:16px}.followmanage .fsechead{gap:8px}.followmanage .fmanagesort{margin-left:0}}
+@media(max-width:760px){body #manageTitle{width:100%}.followmanage .fmain>.fsec:has(.fcred)>.frows{grid-template-columns:minmax(0,1fr)}.followmanage .fauthor{padding:16px}.followmanage .fsechead{gap:8px}.followmanage .fmanagesort{margin-left:0}}
/* Board 的语义色与复合字阶;图表和业务状态独立于交互强调色。 */
:root,:root[data-theme="light"]{--color-text-primary:#0a0a0a;--color-text-secondary:#737373;--color-text-tertiary:#a3a3a3;--color-background-full:#fff;--color-background-primary-default:#fff;--color-background-primary-hover:#f5f5f5;--color-background-secondary-default:#f5f5f5;--color-background-tertiary-default:#e5e5e5;--color-border-button-default:#e5e5e5;--color-border-button-hover:#d4d4d4;--color-border-button-active:#a3a3a3;--color-separator-border:#e5e5e5;--color-border-focus-ring:#3b82f6;--color-text-white:#fff;--color-text-disabled:#d4d4d4;--board-blue:linear-gradient(180deg,#2b7fff,#155dfc);--board-blue-hover:linear-gradient(180deg,#3392ff,#2b7fff);--board-blue-active:linear-gradient(180deg,#155dfc,#1447e6);--board-red:linear-gradient(180deg,#fb2c36,#e7000b);--board-red-hover:linear-gradient(180deg,#ff6467,#fb2c36);--board-red-active:linear-gradient(180deg,#e7000b,#c10007);--board-red-line:#fb2c36;--board-red-wash:#ffe2e2;--board-red-text:#c10007}
@@ -1034,7 +1018,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
面板、筛选条、交集条和标签骨架都从它取值,一处改完五处一起走。 */
:root{--tag-radius:8px}
body,.disp{font-family:var(--board-font);letter-spacing:0}body{font:var(--board-body)}button,input,textarea,select{font-family:var(--board-font)}
-.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.tasterank small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
+.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
.geist-button,.fbtn,.resourceaction{background-color:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);transition:background-color .15s ease,border-color .15s ease,color .15s ease}
/* 悬停只抬填充,那圈线一步不动:按钮静止态已经带一圈 1px,悬停再把它加深,
鼠标扫过一排次级键就是一排边框忽明忽暗,而键本身并没有变化。 */
@@ -1213,16 +1197,15 @@ body a:is(.externallink,[target=_blank]):not(:has(.entitylinkicon)):not(.cardlin
标按 1.15em 的比例缩,靠基线跟在最后一个字后面。*/
body .fsource.frow b>a.fsourcelink{display:inline}
body .fsource.frow b>a.fsourcelink .externalmark{width:1.15em;height:1.15em;margin-left:2px;vertical-align:-0.15em}
-body :is(.sbadge,.faliasbadge,.tasteconfidence,.board-chip,.badge){display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 6px;min-height:24px;box-sizing:border-box;border:0;border-radius:6px;background:var(--color-background-tertiary-default);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap}
-body :is(.sbadge.ok,.board-chip.success){background:color-mix(in srgb,#84cc16 16%,var(--color-background-primary-default));color:#4d7c0f}body :is(.sbadge.error,.board-chip.error){background:color-mix(in srgb,#f43f5e 12%,var(--color-background-primary-default));color:#e11d48}.sbadge i,.tasteconfidence i{display:none}
+body :is(.sbadge,.faliasbadge,.board-chip,.badge){display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 6px;min-height:24px;box-sizing:border-box;border:0;border-radius:6px;background:var(--color-background-tertiary-default);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap}
+body :is(.sbadge.ok,.board-chip.success){background:color-mix(in srgb,#84cc16 16%,var(--color-background-primary-default));color:#4d7c0f}body :is(.sbadge.error,.board-chip.error){background:color-mix(in srgb,#f43f5e 12%,var(--color-background-primary-default));color:#e11d48}.sbadge i{display:none}
.fprovider{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.fprovider .sbadge{flex:none}.followmanage .fsource.frow{grid-template-columns:20px minmax(120px,1fr) minmax(100px,auto) auto auto}
-.board-sankey-card :is([data-flow-node],[data-flow-source]){outline:none}.board-sankey-card :is([data-flow-node],[data-flow-source]):focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:3px}
.board-button-group{display:inline-flex;align-items:center;overflow:hidden;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.board-button-group>button{height:34px;padding:0 12px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--color-text-secondary);font:var(--board-body)}.board-button-group>button+button{border-left:1px solid var(--color-border-button-default)}.board-button-group>button:is(:hover,[aria-pressed=true]):not(.primary){background:var(--control-hover);color:var(--color-text-primary)}
.followmanage .fpickactions .fbtn{height:36px;min-height:36px;padding:8px 12px}
.photolight .photonav{width:36px;height:36px;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);color:var(--color-text-secondary);box-shadow:0 1px 2px #0000000d}.photolight .photonav:hover{background:var(--color-background-primary-hover)}.photolight .photonav svg{width:20px;height:20px}.photolight .photonav.swiper-button-disabled{opacity:.4;pointer-events:none}
.board-carousel-pagination{display:flex;align-items:center;justify-content:center;gap:8px;max-width:160px;margin-inline:auto;overflow:hidden;height:28px}.board-carousel-pagination .swiper-pagination-bullet{width:6px;height:6px;flex:none;margin:0!important;border:0;padding:0;border-radius:999px;background:#a3a3a3;opacity:1;transition:width .2s ease-out,background .2s ease-out}.board-carousel-pagination .swiper-pagination-bullet-active{width:16px;background:#fafafa}
@media(prefers-reduced-motion:reduce){.board-tooltip,.board-carousel-pagination .swiper-pagination-bullet{transition:none}}
-:root{--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.06),0 1px 3px 0 rgb(0 0 0 / 0.10);--board-chart-0:#94e000;--board-chart-1:#3493ff;--board-chart-2:#bc74f9;--board-chart-3:#f657bd;--board-chart-4:#ffc600;--board-chart-5:#2dcbb8}
+:root{--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.06),0 1px 3px 0 rgb(0 0 0 / 0.10)}
.fauthorhead{list-style:none}.fauthorhead::-webkit-details-marker{display:none}.board-author-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
/* 站标和失败数贴到右边那一组按钮旁边,不跟在名字后面。作者名长短不一,站标跟着名字走就
每行一个位置,一列扫下来得逐行找;靠右对齐后它们和「全选」「展开」在同一条竖线上起排。
@@ -1245,16 +1228,10 @@ body .sbadge.paused{background:color-mix(in srgb,#ffc600 18%,var(--color-backgro
.metricstrip>button[aria-selected=true]{background:var(--color-background-primary-default);box-shadow:none}.metricstrip>button[aria-selected=true]::after{box-sizing:border-box}.metricstrip>button[aria-selected=true] .board-stat-footer{background:var(--board-card-foot)}
body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=true]{background:color-mix(in srgb,var(--color-text-primary) 10%,var(--color-background-primary-default));color:var(--color-text-primary)}
.insightswitch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.insightswitch label>span{display:flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:7px;color:var(--color-text-secondary);font:var(--board-body-medium)}.insightswitch label:has(input:checked)>span{background:var(--color-background-primary-hover);color:var(--color-text-primary);box-shadow:0 1px 2px #0000001a}
-.board-activity-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:20px 0}.board-heat-card,.board-activity-empty{min-width:0;padding:20px;border-radius:20px;background:var(--color-background-secondary-default)}
-/* 空着的时候那句话自己就是这一块,没有 `.board-activity-charts` 那层外壳,上下 20px
- 的外边距得由它自己出——否则有图时隔开的那两段,在没图时贴在一起。
- 标题和正文的默认外边距同样清掉:这一块的内边距已经把话围住了,浏览器那两档
- 再叠上去,一句话在一个 20px 的盒子里偏得看不出是居中还是靠上。 */
-.board-activity-empty{margin:20px 0}.board-activity-empty>h3{margin:0;font:var(--board-heading)}.board-activity-empty>p{margin:8px 0 0;color:var(--muted);font:var(--board-body)}.board-heat-card header{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:24px}.board-heat-card h3{margin:0;font:var(--board-heading)}.board-heat-card header b{grid-row:2;font:var(--board-title);font-variant-numeric:tabular-nums}.board-heat-card header span{grid-column:2;grid-row:2;align-self:end;color:var(--muted);font:var(--board-caption)}.board-heat-scroll{overflow-x:auto;padding:3px}.board-hour-grid{display:grid;grid-template-columns:32px repeat(24,minmax(10px,1fr));gap:4px;min-width:360px}.board-heat-axis{font:var(--board-caption);color:var(--muted);align-self:center}.board-day-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,1fr);grid-template-columns:repeat(13,1fr);gap:5px;padding:3px}
-.board-heat-card [data-heat-value]{display:block;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:3px;background:color-mix(in srgb,#3493ff var(--heat),var(--color-background-tertiary-default));animation:board-heat-enter .4s ease-out both}.board-heat-card [data-heat-value]:is(:hover,:focus-visible){outline:2px solid var(--color-border-focus-ring);outline-offset:1px;filter:brightness(.9)}.board-heat-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:16px;font:var(--board-caption);color:var(--muted)}@keyframes board-heat-enter{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
+/* 两张活跃图并排。图本身归 React(`frontend/src/react/taste/charts.tsx`),这一条留给
+ 遗留壳铺的那张骨架:它在这一格里画两块等待中的面板。 */
+.board-activity-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:20px 0}
@media(max-width:1000px){.board-activity-charts{grid-template-columns:1fr}}
-@media(max-width:600px){.board-heat-card{padding:16px}}
-@media(prefers-reduced-motion:reduce){.board-heat-card [data-heat-value]{animation:none;transition:none}}
/* 切换器展开时自己带一圈 2px 描边,导航列表首项又会抬起 hover 底:两者之间留 4px
的话这两块底色是挨着的,读起来像切换器压在第一项上。 */
.drawer .board-sidebar-head{margin-bottom:0!important}.drawer .dnav{margin-top:12px;gap:4px}.drawer #brandHome{height:36px;min-height:36px;box-sizing:border-box}.drawer .dnav button{height:36px;min-height:36px}
@@ -1295,14 +1272,6 @@ body .selectiondock{border:0;border-radius:22px;background:var(--glass-drift-a),
html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection,.card .badge){background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none;animation:none}
@media(prefers-reduced-transparency:reduce){body :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection,.card .badge){background:var(--ground);backdrop-filter:none;animation:none}}
@media(prefers-reduced-motion:reduce){body :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection){animation:none}}
-/* 收起时最后一行是被 mask 淡掉的,不是被一块渐变色盖住(boardui 实测:列表自己带
- `linear-gradient(#000 calc(100% - 44px),transparent)`,展开就取消)。盖的那种要先猜卡片
- 是什么底色,猜错就在图上留一道横带;淡的这种在任何底色上都成立。 */
-.board-expand-ranks{position:relative;padding-bottom:28px}.board-rank-list{position:relative;display:grid;grid-template-columns:1fr;max-height:var(--rank-collapsed-height,300px);overflow:hidden}.board-expand-ranks.toggling>.board-rank-list{transition:max-height .2s ease-in-out}.board-expand-ranks:not(.expanded)>.board-rank-list{mask-image:linear-gradient(#000 calc(100% - 44px),transparent)}.board-expand-ranks.expanded>.board-rank-list{max-height:var(--rank-expanded-height)}.board-rank-expand{position:absolute;z-index:1;bottom:4px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:40px;height:20px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--surface);box-shadow:0 1px 3px #0000001a;color:var(--muted)}.board-rank-expand svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s cubic-bezier(0,0,.2,1)}.board-rank-expand[aria-expanded=true] svg{transform:rotate(180deg)}
-.board-rank-list .tasterank{position:relative;isolation:isolate;border:0;border-radius:8px;background:transparent;overflow:hidden;min-height:44px}.board-rank-list .taste-rank-track{position:absolute;inset:0;height:100%;margin:0;z-index:-1;background:none;opacity:.14}.board-rank-list .taste-rank-track i{height:100%;border-radius:8px}
-.board-sankey-card{padding:20px;border-radius:20px;margin-bottom:20px;background:var(--color-background-secondary-default);min-width:0}.board-sankey-card header{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:20px}.board-sankey-card h3{margin:0;font:var(--board-heading)}.board-sankey-card header b{grid-row:2;font:var(--board-title);font-variant-numeric:tabular-nums}.board-sankey-card header span{grid-column:2;grid-row:2;color:var(--muted);align-self:end;font:var(--board-caption)}.board-sankey-scroll{overflow-x:auto}.board-sankey-scroll svg{display:block;width:100%;min-width:640px;max-height:520px}.board-sankey-links path{fill:none;stroke:var(--flow-color);opacity:.3;transition:opacity .2s;animation:board-heat-enter .6s ease-out}.board-sankey-nodes g{transition:opacity .2s}.board-sankey-nodes text{fill:var(--color-text-primary);font:var(--board-caption)}.board-sankey-nodes tspan{fill:var(--muted);font-size:11px}.board-sankey-card footer{display:flex;justify-content:space-between;color:var(--muted);font:var(--board-caption);margin-top:12px}
-.tasteactions [data-taste-window] .gselectfield::before{content:'';width:16px;height:16px;flex:none;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"%3E%3Crect x="3" y="5" width="18" height="16" rx="2"/%3E%3Cpath d="M16 3v4M8 3v4M3 11h18"/%3E%3C/svg%3E') center/contain no-repeat}
-@media(prefers-reduced-motion:reduce){.board-sankey-links path{animation:none;transition:none}.board-rank-list,.board-expand-ranks.toggling>.board-rank-list,.board-rank-expand svg{transition:none}}
/* ── 分段控件(boardui segmented-control.tsx):口味页的证据切换与工具栏的版式切换同一枚滑块 ──
轨道 tertiary 底、4px 内边距、10px 圆角、2px 间隔;选项 px 10 / py 4、6px 圆角;选中 Body Medium 主文字色,
@@ -1313,8 +1282,8 @@ html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgrou
.insightswitch[data-board-segments] label>span{display:flex;align-items:center;min-height:28px;height:auto;padding:4px 10px;border-radius:6px;background:transparent;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body);transition:color .2s ease}
.insightswitch[data-board-segments] label:hover>span{color:var(--color-text-primary)}
.insightswitch[data-board-segments] label:has(input:checked)>span{background:transparent;box-shadow:none;color:var(--color-text-primary);font:var(--board-body-medium)}
-:root[data-theme="dark"] :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,.follow-workspace-switch)>:is(.board-segment-thumb,.skeleton-segment-selected){background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}
-@media(prefers-color-scheme:dark){:root:not([data-theme]) :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,.follow-workspace-switch)>:is(.board-segment-thumb,.skeleton-segment-selected){background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}}
+:root[data-theme="dark"] :is(.iconswitch:not(.themeswitch),.insightswitch,.follow-workspace-switch)>:is(.board-segment-thumb,.skeleton-segment-selected){background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}
+@media(prefers-color-scheme:dark){:root:not([data-theme]) :is(.iconswitch:not(.themeswitch),.insightswitch,.follow-workspace-switch)>:is(.board-segment-thumb,.skeleton-segment-selected){background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}}
/* 浮层上的分段器(版式、大小这类)跟同一排的圆键、药丸和「仅显示图片」那枚开关一样高
(30px),滑块就是整枚选项:轨道不留内边距,选项 30px 见方、图标 16px,圆角跟那块滑动
玻璃同一个 8px。轨道留 3px 的话滑块比旁边那块玻璃矮一圈、圆角也小一档,同一块料在
@@ -1347,20 +1316,6 @@ html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgrou
/* ── 下划线 Tabs(boardui tabs.tsx):管理导航与设置内的分区同一副样子 ──
1px 基线、选中 2px 蓝线由 `[data-board-tabs]::before` 滑过去;选项 px 10 / py 8、Body 1、间隔 4px;
选中蓝字 Medium,未选主文字色 Regular。计数徽标 px 4 / py 1、Caption Medium、4px 圆角:选中蓝底蓝字,未选黑 10% 半透明。 */
-/* 统计与口味的维度切换是分段控件,不是下划线 Tabs(boardui dashboard 实测:底 4px 内边距、
- 10px 圆角,滑块 6px 圆角、transform/width/height 各 200ms cubic-bezier(.4,0,.2,1))。
- 这三四个面板是同一份数据的互斥视图,一条横线会把它读成页面层级的导航。 */
-.insightpanel>header:has(.insighttabs){padding:12px 16px;min-height:0}
-/* 轨道不裁剪:滑块换位带着冲过落点再荡回的那一下,裁了就跟其他分段器两个动法。
- 统计维度只有三个短标签,窄屏也摆得下,横滚的裁剪在这里没有存在的理由。 */
-.insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;width:auto;max-width:100%;min-height:0;margin:0;padding:4px;border:0;border-radius:10px;background:var(--color-background-tertiary-default);overflow:visible}
-.insighttabs button{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;gap:6px;height:auto;min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body);white-space:nowrap;transition:color .2s cubic-bezier(.4,0,.2,1)}
-/* 取消基线那条下划线要连选中态一起写:`web/css` 那份把线挂在
- `.insighttabs button[aria-selected="true"]:after` 上,只写 `button::after` 权重更低,
- 于是滑块底下还压着一条 2px 墨线。 */
-.insighttabs button::after,.insighttabs button[aria-selected="true"]::after{content:none}
-.insighttabs button:hover{background:none;color:var(--color-text-primary)}
-.insighttabs button[aria-selected="true"]{background:none;color:var(--color-text-primary);font:var(--board-body-medium)}
/* 复核分类长成次级菜单:底下那一屏是同一份复核队列换了个筛法,十枚下划线并排会
把它读成十块各不相干的内容。药丸走全站横排互斥那一套——选中只有填充,未选中
悬停只提文字色。键盘行为仍是 tablist,方向键在同一条里移动焦点。 */
@@ -1391,25 +1346,6 @@ body .followmanage .board-pagination>.geist-button{height:32px;min-height:32px;p
.insightpanel>header:not(:has([role="tablist"])){display:block;min-height:0;padding:24px 24px 12px}
.insightpanel>header h3,.insightcopy>span{margin:0;font:var(--board-heading);color:var(--color-text-primary)}
.insightcopy{padding:24px;gap:0}
-.insightcopy small{padding-top:16px}
-.tastesources .insightpanelbody{padding:0 24px 24px}
-.tasteleads>header{padding:24px 24px 12px}
-/* ── 排名行悬停与展开键同一层:主文字色 6% 的一层薄底、200ms 淡入,亮暗两档都看得见 ── */
-.tasterank,.board-rank-list .tasterank{transition:background-color .2s ease-out}
-body .tasterank:is(button):hover,body .board-rank-list .tasterank:hover{border-color:transparent;background:transparent}
-.board-rank-expand{border-color:var(--color-border-button-default);background:var(--color-background-primary-default);color:var(--color-text-secondary);box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease,color .15s ease}
-.board-rank-expand:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}
-/* ── 排名条与雷达图进入视口后从零长出:1.2s、与统计圆环同一条曲线 ── */
-@keyframes board-grow-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
-@keyframes board-grow-radar{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
-.board-rank-fill,.tasteranks .taste-rank-track i{transform-origin:left center}
-.board-ranked-chart:not(.board-chart-visible) .board-rank-fill,.tasteranks:not(.board-chart-visible) .taste-rank-track i{transform:scaleX(0)}
-.board-ranked-chart.board-chart-visible .board-rank-fill,.tasteranks.board-chart-visible .taste-rank-track i{animation:board-grow-x 1.2s cubic-bezier(.22,.61,.36,1) both}
-.board-radar-value{transform-box:view-box;transform-origin:160px 140px}
-.board-radar:not(.board-chart-visible) .board-radar-value{transform:scale(0);opacity:0}
-.board-radar.board-chart-visible .board-radar-value{animation:board-grow-radar 1.2s cubic-bezier(.22,.61,.36,1) both}
-.board-ranked-chart.board-chart-settled .board-rank-fill,.tasteranks.board-chart-settled .taste-rank-track i,.board-radar.board-chart-settled .board-radar-value{animation:none;transform:none;opacity:1}
-.board-heat-card.board-chart-settled [data-heat-value],.board-sankey-card.board-chart-settled .board-sankey-links path{animation:none}
/* ── 复核动作:跳过是蓝色 Chip 的配色(boardui chip.tsx blue:亮 200/800,暗 950@60%/300),悬停深一档 ── */
body .reviewactions button.warning:not(:disabled){background:#bfdbfe;color:#1e40af;border-color:transparent}
body .reviewactions button.warning:hover:not(:disabled){background:#93c5fd;color:#1e3a8a}
@@ -1483,7 +1419,6 @@ body .reviewactions button:disabled{opacity:.5;cursor:not-allowed}
.followworks .brandpill .mk img{object-position:50% 25%}
:is(.followauthors,.followworks){gap:4px;align-items:center}
.followworks{padding:0 0 10px;margin:0 0 2px;overscroll-behavior-inline:contain}
-@media(prefers-reduced-motion:reduce){.board-ranked-chart .board-rank-fill,.tasteranks .taste-rank-track i,.board-radar .board-radar-value{animation:none;transform:none;opacity:1}}
/* ── 关注列表整段进框,与「添加关注」同一只卡:头 20/24/8,选择栏与列表左右 24,脚是卡片脚 ──
作者卡是 primary 面上的一只卡;来源行照 boardui checkbox-card.tsx:10px 圆角、1px border-button-default、
@@ -1519,12 +1454,7 @@ body .reviewactions button:disabled{opacity:.5;cursor:not-allowed}
@keyframes board-check-draw{from{stroke-dashoffset:23px}to{stroke-dashoffset:0}}
.pcheck input:checked+span svg{animation:board-check-draw .2s cubic-bezier(.65,0,.35,1) forwards}
@media(prefers-reduced-motion:reduce){.pcheck input:checked+span svg{animation:none;stroke-dashoffset:0}}
-/* ── Board 第三批:数据源删除键、主按钮尺寸、配置页白底、通知与提醒、复核悬浮框、批量条、关注行图标、侧栏切换器 ── */
-/* 数据源卡上的删除键是 36px 图标键:只换底色和文字色,不位移。悬停文字落到 --drop,说明这是删除。 */
-body .tastesource{grid-template-columns:34px minmax(0,1fr) 36px}
-body .tastesource>button{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--color-text-secondary);transform:none;transition:background-color .15s ease,color .15s ease}
-body .tastesource>button:hover{background:color-mix(in srgb,var(--color-text-primary) 6%,transparent);color:var(--drop);transform:none}
-body .tastesource>button svg{width:20px;height:20px}
+/* ── Board 第三批:主按钮尺寸、配置页白底、通知与提醒、复核悬浮框、批量条、关注行图标、侧栏切换器 ── */
/* 主按钮与旁边的 Board 按钮同一副盒子:36px、10px 圆角、Body Medium。复核底部工具条里所有控件都压到 --control-h,主按钮跟着。 */
body :is(.geist-button,.fbtn,.resourceaction,.tagselection button,.reviewpickhead button,.fcredactions button,.fpickactions button,.geist-fieldset-footer>a,.geist-fieldset-footer>button).primary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border-radius:10px;font:var(--board-body-medium);white-space:nowrap}
body .reviewdock .geist-button.primary{height:var(--control-h);min-height:0}
@@ -1662,8 +1592,8 @@ body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
/* 关注工作区:Board Tabs、读数与 Table 的层级,业务分区保留各自表单。 */
.followmanage .fmanageoverview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
-/* 关注管理工作区切换进分段控件一族:几何照 .insighttabs(4px 内边距、10px 外圆角、
- tertiary 灰轨道),滑块与色变由 wireBoardSegments 的共享驱动负责,200ms 一条缓动。 */
+/* 关注管理工作区切换属于分段控件一族:4px 内边距、10px 外圆角、tertiary 灰轨道,
+ 滑块与色变由 wireBoardSegments 的共享驱动负责,200ms 一条缓动。 */
.follow-workspace-switch{position:relative;display:inline-flex;align-items:center;gap:2px;width:max-content;max-width:100%;min-height:0;padding:4px;border:0;border-radius:10px;background:var(--color-background-tertiary-default);overflow:visible}
.follow-workspace-switch button{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;gap:6px;height:auto;min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:color .2s cubic-bezier(.4,0,.2,1)}
.follow-workspace-switch button:hover{background:none;color:var(--color-text-primary)}
diff --git a/web/css/04-manage.css b/web/css/04-manage.css
index 760703a31..a0bfbf605 100644
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@ -156,17 +156,9 @@
.cleanupfieldset button:where(:not(.gselectfield)) svg{width:16px;height:16px;stroke:currentColor;fill:none}
.cleanupfieldset .cleanupstate{margin-top:8px;font-size:var(--fs-sm);color:var(--ink-2)}
.cleanupfieldset .cleanupstate:empty{display:none}
-.taste-history-guide{margin-top:16px;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground);padding:20px}
-.taste-history-guide summary{cursor:pointer;color:var(--ink);font-weight:500;display:flex;align-items:center;gap:8px;list-style:none}.taste-history-guide summary::-webkit-details-marker{display:none}.taste-history-guide summary>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;transition:transform .2s ease-in-out}.taste-history-guide summary[aria-expanded="true"]>svg{transform:rotate(90deg)}
-.taste-history-guide-content{display:grid;gap:12px;padding-top:16px;color:var(--muted);font-size:var(--fs-md);line-height:1.5}
-.taste-history-guide-content p,.taste-history-guide-content ul{margin:0}
-.taste-history-guide-content ul{padding-left:20px}
-.taste-history-guide-content .taste-guide-skip{width:100%;height:var(--control-h);color:var(--meter)}
.fsrcoption{display:flex;align-items:center;gap:8px;justify-content:space-between}
.fsrcoption label{flex:1;min-width:0}
.fsrcoption .geist-button{font-size:var(--fs-sm);white-space:nowrap}
-.taste-history-guide-content a{color:var(--tungsten);text-decoration:none}
-.taste-history-guide-content a:hover{text-decoration:underline;text-underline-offset:3px}
.stats h2{margin:0 0 4px;font-size:var(--fs-2xl)}
.stats .sub{color:var(--muted);margin:0}
/* 来源和凭证页的正文归 React 子树(ADR-0031)。这两条只服务遗留骨架:那一句静态说明
@@ -193,4 +185,3 @@
.reviewselectedcount{display:inline-flex;align-items:center}
.reviewbulktoolbar .gselect>button{height:32px}
.reviewbulktoolbar .geist-button{flex:none}
-.taste-history-guide-content .taste-guide-skip:hover{color:var(--meter)}
diff --git a/web/css/05-insights.css b/web/css/05-insights.css
index a6b3f1008..67efc15a2 100644
--- a/web/css/05-insights.css
+++ b/web/css/05-insights.css
@@ -1,12 +1,8 @@
-/* Analytics / Speed Insights 的共同层级:筛选、指标带、主详情、同层数据面板。 */
+/* 统计页与口味页的等待态版式:指标带、主详情、同层数据面板。
+ 两页的正文都归 React(ADR-0031),这里留下的是遗留壳铺的那张骨架读到的层级。 */
.insightpage,.tastepage{width:min(1100px,100%);margin:0 auto;padding:0 0 48px;min-width:0}.statsdashboard{display:grid;gap:16px}
.insighttoolbar,.tastehead{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap}
.insighttoolbar p{margin:0;color:var(--muted);font-size:var(--fs-xs)}
-/* 这枚下拉不自己挑面色、边色和字号:站内所有输入类控件的那一面由 Board 那一层一处给出,
- 白面配 `--line` 的线、正文字号。这一页的底是 `--page`,自己填 `--ground` 就是白底上摆
- 一块灰,而同一排右边「读取浏览器历史」是白的——两颗并排的控件,一颗看着能按,一颗
- 看着停用;字号小一档也是同一回事,两颗一起读时先注意到的是它们不一样。 */
-.tasteactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.tasteactions>.gselect>.gselectfield{height:36px;color:var(--ink);padding:0 11px}
.insightswitch{display:inline-flex;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--ground)}.insightswitch label{cursor:pointer}.insightswitch input{position:absolute;opacity:0;pointer-events:none}.insightswitch span{height:30px;display:grid;place-items:center;padding:0 12px;border-radius:var(--control-radius);color:var(--muted);font-size:var(--fs-sm)}.insightswitch input:checked+span{background:var(--picked);color:var(--ink);font-weight:500}.insightswitch input:focus-visible+span{outline:2px solid var(--tungsten);outline-offset:-2px}
/* 下限按内容实测取:一格里最宽的是 24px 的数字和那行 12px 的补充说明,加左右
各 16px 内边距是 140px。四格因此到 645px 视口仍是一整条,再窄由下面的手机
@@ -16,29 +12,11 @@
.tastesummary{position:relative;box-sizing:border-box;min-height:96px;min-width:0;display:grid;align-content:center;gap:4px;padding:14px 16px;border:0;border-right:1px solid var(--line-soft);border-radius:0;background:transparent;color:var(--ink);text-align:left}.tastesummary:last-child{border-right:0}
.tastesummary>span{color:var(--muted);font-size:var(--fs-xs)}.tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;font-variant-numeric:tabular-nums}.tastesummary>small{color:var(--ink-2);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tastestate{min-height:20px;color:var(--meter);font-size:var(--fs-xs);margin:8px 0}.tastesummaries{margin-bottom:16px}
-.tastehero{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground);min-height:330px;display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}
-[data-taste-evidence-panel][hidden],[data-taste-summary][hidden],[data-taste-dimension-panel][hidden]{display:none}
-.insightcopy{padding:28px 24px;border-right:1px solid var(--line-soft);display:flex;flex-direction:column;align-items:flex-start}.insightcopy>span{color:var(--muted);font-size:var(--fs-xs)}.insightcopy h2{margin:10px 0 2px;font-size:var(--fs-4xl);line-height:1;font-variant-numeric:tabular-nums}.insightcopy>b{font-size:var(--fs-sm)}.insightcopy p{max-width:38ch;margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.insightcopy small{margin-top:auto;padding-top:18px;color:var(--muted);font-size:var(--fs-xs)}
-.insightvisual,.tastebars{min-width:0;padding:24px;align-self:center}
-.tastebar{padding:8px 0 12px;border-bottom:1px solid var(--line-soft)}.tastebar:last-child{border-bottom:0}.tastebar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:var(--fs-sm)}
+.tastehero{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground);min-height:330px;display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr);margin-bottom:16px}
+.insightcopy{padding:28px 24px;border-right:1px solid var(--line-soft);display:flex;flex-direction:column;align-items:flex-start}.insightcopy>span{color:var(--muted);font-size:var(--fs-xs)}
+.tastebars{min-width:0;padding:24px;align-self:center}
.insightpanel{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}.insightpanel>header{min-height:52px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--line-soft)}.insightpanel>header h3{margin:0;font-size:var(--fs-md)}.insightpanel>header p{margin:2px 0 0;color:var(--muted);font-size:var(--fs-xs)}.insightpanelbody{min-width:0;padding:14px 16px 16px}
-.insighttabs{min-width:0;display:flex;align-self:stretch;align-items:stretch;gap:24px;overflow-x:auto;overscroll-behavior-x:contain}.insighttabs button{position:relative;flex:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:var(--fs-sm);cursor:pointer}.insighttabs button:hover,.insighttabs button[aria-selected="true"]{color:var(--ink)}.insighttabs button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}
+/* `/js/ui-components.js` 的 `progressHtml` 那一条,关注管理页与遗留任务状态都读它。 */
.geist-progress{height:8px;margin-top:7px;overflow:hidden;border-radius:var(--pill-radius);background:var(--line-soft)}.geist-progress i{display:block;width:var(--progress-value);height:100%;border-radius:inherit;background:var(--tungsten)}
-.tastecovermetric{display:grid;gap:7px;padding:14px 0}.tastecovermetric+.tastecovermetric{border-top:1px solid var(--line-soft)}.tastecovermetric>span,.tastecovermetric>small{color:var(--muted);font-size:var(--fs-xs)}.tastecovermetric>b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}
-.tastehero{margin-bottom:16px}.tasteanalysis{margin-bottom:16px}.tasteranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tasteranks-tags{grid-template-columns:repeat(4,minmax(0,1fr))}.tasterank{width:100%;min-width:0;min-height:58px;box-sizing:border-box;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);text-align:left}.tasterank-tag{min-height:54px;padding:8px 10px}.tasterank-visual{grid-template-columns:32px 30px minmax(0,1fr) 18px}.tasterank:is(button){cursor:pointer}.tasterank:is(button):hover{border-color:var(--border-15);background:var(--hover)}.tasterank:is(button):focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tasterank>span:nth-last-child(2){min-width:0}.tasterank b,.tasterank small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tasterank small{margin-top:2px;color:var(--muted);font-size:var(--fs-xs);font-weight:400}.tasterank>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}.tastepos{width:100%;text-align:center;color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.tasteavatar{position:relative;width:30px;height:30px;overflow:hidden;border-radius:50%;background:var(--overlay-5);display:grid;place-items:center;color:var(--muted);font-size:var(--fs-xs);font-weight:600}.tasteavatar .ini{position:absolute;inset:0;display:grid;place-items:center}.tasteavatar img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}.tasteavatar.tastesite{border-radius:var(--surface-radius)}.tasteavatar.tastesite img{inset:5px;width:20px;height:20px;object-fit:contain}
-.tastesources{margin-top:16px}.tastesources>header{min-height:0;padding-block:14px}.tastesources .insightpanelbody{padding:16px}.tastesources .insightpanelbody>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tastesource{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}.tastebrowser{width:32px;height:32px;border-radius:var(--control-radius);background:var(--overlay-5);display:grid;place-items:center;color:var(--ink-2)}.tastebrowser svg,.tastesource>button svg{width:17px;height:17px;stroke:currentColor;fill:none}.tastesource b,.tastesource small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tastesource small{color:var(--muted);font-size:var(--fs-xs);margin-top:2px}.tastesource>button{width:32px;height:32px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}.tastesource>button:hover{background:var(--hover);color:var(--drop)}
-.tasteleads{margin-bottom:16px}
-/* 可信度自成一行。原先它靠 margin-left:auto 顶在右上角,标题与那句摘要就得压在
- 52px 的一行里跟它对齐,两行字挤在一起没有呼吸;它本来也不是标题的同级信息,
- 是对上面那句话的限定。前面那颗点按档次上色,字本身留在 --muted。 */
-.tasteleads>header{display:block;padding-top:14px;padding-bottom:14px}
-.tasteleads>header>div{min-width:0;display:grid;gap:6px}
-/* 可信度读在说明之前:先知道这句话有几分把握,再读它说了什么。 */
-.tastelede{display:flex;align-items:baseline;gap:10px;min-width:0}
-.tastelede>p{margin:0;min-width:0}
-.tasteconfidence{flex:none;display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:var(--fs-xs)}
-.tasteconfidence>i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--muted)}
-.tasteconfidence.medium>i{background:var(--meter)}
-.tasteconfidence.high>i{background:var(--keep)}.tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.tasteinsight{min-width:0;display:grid;gap:3px;padding:10px 12px;border:0;border-radius:var(--control-radius);background:var(--inset)}.tasteinsight>span{color:var(--muted);font-size:var(--fs-xs)}.tasteinsight>b{font-size:var(--fs-sm);font-weight:500;overflow-wrap:anywhere}.tasteleadlist{display:grid;gap:8px}.tastelead{width:100%;min-width:0;box-sizing:border-box;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:0;border-radius:var(--control-radius);background:var(--inset);color:var(--ink);text-align:left;cursor:pointer}.tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}.tastelead:focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tastelead>span{min-width:0}.tastelead b,.tastelead small{display:block}.tastelead b{font-weight:500}.tastelead small{margin-top:3px;color:var(--muted);font-size:var(--fs-xs);line-height:1.4}.tastelead>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}
-@media(max-width:900px){.tastehero{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}.tasteranks{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteinsights{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteranks-tags{grid-template-columns:repeat(3,minmax(0,1fr))}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
-@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}.tasteactions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;margin-left:0}.tasteactions .splitbutton{width:100%}.tasteactions .splitmain{flex:1}.insightswitch{align-self:flex-start}.metricstrip,.tastesummaries{grid-auto-columns:minmax(168px,82%)}.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}.insightcopy{border-right:0;border-bottom:1px solid var(--line-soft);padding:22px 18px}.insightcopy h2{font-size:var(--fs-3xl)}.insightcopy p{max-width:none;margin-top:18px}.insightvisual,.tastebars{padding:18px}.insightpanel>header{padding:0 14px}.insightpanelbody{padding:12px}.tasteranks,.tasteranks-tags,.tasteinsights,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tastesummary>b{font-size:var(--fs-xl)}.tastesource{grid-template-columns:32px minmax(0,1fr) 32px}}
+@media(max-width:900px){.tastehero{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}}
+@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}.insightswitch{align-self:flex-start}.metricstrip,.tastesummaries{grid-auto-columns:minmax(168px,82%)}.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}.insightcopy{border-right:0;border-bottom:1px solid var(--line-soft);padding:22px 18px}.tastebars{padding:18px}.insightpanel>header{padding:0 14px}.insightpanelbody{padding:12px}.tastesummary>b{font-size:var(--fs-xl)}}
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index f208621c3..c80ad6c24 100644
--- a/web/dist/peach-react.css
+++ b/web/dist/peach-react.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-normal:400;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.right-1{right:var(--spacing)}.bottom-1{bottom:var(--spacing)}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.z-50{z-index:50}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-64{height:calc(var(--spacing) * 64)}.h-full{height:100%}.h-max{height:max-content}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[240px\]{max-height:240px}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-52{width:calc(var(--spacing) * 52)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5{background-color:var(--color-chart-5)}.bg-chart-6{background-color:var(--color-chart-6)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-chart-track{stroke:var(--color-chart-track)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-1{padding-top:var(--spacing)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-background-primary-hover[aria-pressed=true]{background-color:var(--color-background-primary-hover)}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.data-selected\:border-border-focus-ring[data-selected]{border-color:var(--color-border-focus-ring)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.md\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-normal:400;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.right-1{right:var(--spacing)}.bottom-1{bottom:var(--spacing)}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.z-50{z-index:50}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-64{height:calc(var(--spacing) * 64)}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[240px\]{max-height:240px}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-52{width:calc(var(--spacing) * 52)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5{background-color:var(--color-chart-5)}.bg-chart-6{background-color:var(--color-chart-6)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.fill-chart-1{fill:var(--color-chart-1)}.fill-chart-2{fill:var(--color-chart-2)}.fill-chart-3{fill:var(--color-chart-3)}.fill-chart-4{fill:var(--color-chart-4)}.fill-chart-5{fill:var(--color-chart-5)}.fill-chart-6{fill:var(--color-chart-6)}.fill-chart-track{fill:var(--color-chart-track)}.fill-text-secondary{fill:var(--color-text-secondary)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-chart-track{stroke:var(--color-chart-track)}.stroke-current{stroke:currentColor}.stroke-separator-border{stroke:var(--color-separator-border)}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-1{padding-top:var(--spacing)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:stroke-border-focus-ring:focus-visible{stroke:var(--color-border-focus-ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-background-primary-hover[aria-pressed=true]{background-color:var(--color-background-primary-hover)}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.data-selected\:border-border-focus-ring[data-selected]{border-color:var(--color-border-focus-ring)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:w-72{width:calc(var(--spacing) * 72)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.md\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\[\&_img\]\:absolute img{position:absolute}.\[\&_img\]\:inset-0 img{inset:0}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:object-cover img{object-fit:cover}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 7a53409fd..3baafe9f1 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -157,7 +157,7 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
}
console.error(e);
};
- function P(e) {
+ function ie(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
@@ -169,14 +169,14 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function ie(e) {
+ function ae(e) {
var t = T.T;
if (t !== null) {
var n = t.types;
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
- } else P(ie.bind(null, e));
+ } else ie(ae.bind(null, e));
}
- var ae = {
+ var oe = {
map: ne,
forEach: function(e, t, n) {
ne(e, function() {
@@ -199,12 +199,12 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
return e;
}
};
- e.Activity = f, e.Children = ae, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
+ e.Activity = f, e.Children = oe, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
__proto__: null,
c: function(e) {
return T.H.useMemoCache(e);
}
- }, e.addTransitionType = ie, e.cache = function(e) {
+ }, e.addTransitionType = ae, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -266,7 +266,7 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = P, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = ie, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -381,7 +381,7 @@ function ne(e, t) {
if (o) {
if (r) {
if (t.queryHash !== re(o, t.options)) return !1;
- } else if (!ie(t.queryKey, o)) return !1;
+ } else if (!ae(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -394,80 +394,83 @@ function N(e, t) {
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (P(t.options.mutationKey) !== P(a)) return !1;
- } else if (!ie(t.options.mutationKey, a)) return !1;
+ if (ie(t.options.mutationKey) !== ie(a)) return !1;
+ } else if (!ae(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
function re(e, t) {
- return (t?.queryKeyHashFn || P)(e);
+ return (t?.queryKeyHashFn || ie)(e);
}
-function P(e) {
- return JSON.stringify(e, (e, t) => le(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function ie(e) {
+ return JSON.stringify(e, (e, t) => ue(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function ie(e, t) {
+function ae(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (e && t && typeof e == "object" && typeof t == "object") {
if (Array.isArray(e) && Array.isArray(t)) {
- for (let n = 0; n < t.length; n++) if (!ie(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!ae(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!ie(e[r], t[r])) return !1;
+ for (let r of n) if (!ae(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var ae = Object.prototype.hasOwnProperty;
-function oe(e, t, n = 0) {
+var oe = Object.prototype.hasOwnProperty;
+function se(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = ce(e) && ce(t);
- if (!r && !(le(e) && le(t))) return t;
+ let r = le(e) && le(t);
+ if (!r && !(ue(e) && ue(t))) return t;
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
for (let l = 0; l < o; l++) {
let o = r ? l : a[l], u = e[o], d = t[o];
if (u === d) {
- s[o] = u, (r ? l < i : ae.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : oe.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = oe(u, d, n + 1);
+ let f = se(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function se(e, t) {
+function ce(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
-function ce(e) {
+function le(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function le(e) {
- if (!ue(e)) return !1;
+function ue(e) {
+ if (!de(e)) return !1;
let t = e.constructor;
if (t === void 0) return !0;
let n = t.prototype;
- return !(!ue(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
+ return !(!de(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
}
-function ue(e) {
+function de(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function de(e) {
+function fe(e) {
return new Promise((t) => {
D.setTimeout(t, e);
});
}
-function fe(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : oe(e, t);
+function pe(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : se(e, t);
}
-function pe(e, t, n = 0) {
+function me(e) {
+ return e;
+}
+function P(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
@@ -475,14 +478,14 @@ function F(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var I = Symbol();
-function me(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === I ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+var he = Symbol();
+function ge(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === he ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
}
-function he(e, t) {
+function _e(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function ge(e, t, n) {
+function ve(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -491,7 +494,7 @@ function ge(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var _e = () => k, ve = () => _e(), ye = class {
+var ye = () => k, be = () => ye(), xe = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -505,7 +508,7 @@ var _e = () => k, ve = () => _e(), ye = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, be = new class extends ye {
+}, Se = new class extends xe {
#e;
#t;
#n;
@@ -542,13 +545,13 @@ var _e = () => k, ve = () => _e(), ye = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), xe = O;
-function Se() {
+}(), Ce = O;
+function we() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = xe, a = (r) => {
+ }, i = Ce, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -590,7 +593,7 @@ function Se() {
}
};
}
-var Ce = Se(), we = new class extends ye {
+var Te = we(), Ee = new class extends xe {
#e = !0;
#t;
#n;
@@ -624,32 +627,32 @@ var Ce = Se(), we = new class extends ye {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Te(e) {
+function De(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function Ee(e) {
- return (e ?? "online") !== "online" || we.isOnline();
+function Oe(e) {
+ return (e ?? "online") !== "online" || Ee.isOnline();
}
-var De = class extends Error {
+var ke = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Oe(e) {
+function Ae(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
s.catch(A);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new De(t);
+ let n = new ke(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => be.isFocused() && (e.networkMode === "always" || we.isOnline()) && e.canRun(), p = () => Ee(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => Se.isFocused() && (e.networkMode === "always" || Ee.isOnline()) && e.canRun(), p = () => Oe(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -669,12 +672,12 @@ function Oe(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (ve() ? 0 : 3), a = e.retryDelay ?? Te, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
+ let i = e.retry ?? (be() ? 0 : 3), a = e.retryDelay ?? De, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
if (t || !s) {
h(r);
return;
}
- n++, e.onFail?.(n, r), de(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), fe(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -692,7 +695,7 @@ function Oe(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var ke = class {
+var je = class {
#e;
destroy() {
this.clearGcTimeout();
@@ -703,7 +706,7 @@ var ke = class {
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (ve() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (be() ? Infinity : 3e5));
}
clearGcTimeout() {
this.#e !== void 0 && (D.clearTimeout(this.#e), this.#e = void 0);
@@ -711,15 +714,15 @@ var ke = class {
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function Ae(e) {
+function Me(e) {
return { onFetch: (t, n) => {
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
pages: [],
pageParams: []
}, c = 0, l = async () => {
let n = !1, l = (e) => {
- ge(e, () => t.signal, () => n = !0);
- }, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
+ ve(e, () => t.signal, () => n = !0);
+ }, u = ge(t.options, t.fetchOptions), d = async (e, r, i) => {
if (n) return Promise.reject(t.signal.reason);
if (r == null && e.pages.length) return Promise.resolve(e);
let a = (() => {
@@ -731,14 +734,14 @@ function Ae(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? F : pe;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? F : P;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Me : je, n = {
+ let e = i === "backward", t = e ? Pe : Ne, n = {
pages: a,
pageParams: o
};
@@ -746,7 +749,7 @@ function Ae(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : je(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ne(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -761,16 +764,16 @@ function Ae(e) {
}, n) : l;
} };
}
-function je(e, { pages: t, pageParams: n }) {
+function Ne(e, { pages: t, pageParams: n }) {
let r = t.length - 1;
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
}
-function Me(e, { pages: t, pageParams: n }) {
+function Pe(e, { pages: t, pageParams: n }) {
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/query.js
-var Ne = class extends ke {
+var Fe = class extends je {
#e;
#t;
#n;
@@ -780,7 +783,7 @@ var Ne = class extends ke {
#o;
#s;
constructor(e) {
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ie(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Re(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -796,15 +799,15 @@ var Ne = class extends ke {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Ie(this.options);
- e.data !== void 0 && (this.setState(Fe(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Re(this.options);
+ e.data !== void 0 && (this.setState(Le(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = fe(this.state.data, e, this.options);
+ let n = pe(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -835,7 +838,7 @@ var Ne = class extends ke {
return this.observers.some((e) => M(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === I || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === he || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -891,7 +894,7 @@ var Ne = class extends ke {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = me(this.options, t), n = (() => {
+ let e = ge(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -911,15 +914,15 @@ var Ne = class extends ke {
};
return r(e), e;
})();
- (this.#e === "infinite" ? Ae(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
+ (this.#e === "infinite" ? Me(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
type: "fetch",
meta: a.fetchOptions?.meta
});
- let o = this.#a = Oe({
+ let o = this.#a = Ae({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof De && e.revert && this.setState({
+ e instanceof ke && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -947,7 +950,7 @@ var Ne = class extends ke {
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
} catch (e) {
- if (e instanceof De) {
+ if (e instanceof ke) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -980,13 +983,13 @@ var Ne = class extends ke {
};
case "fetch": return {
...t,
- ...Pe(t.data, this.options),
+ ...Ie(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Fe(e.data, e.dataUpdatedAt),
+ ...Le(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1018,7 +1021,7 @@ var Ne = class extends ke {
};
}
};
- this.state = t(this.state), Ce.batch(() => {
+ this.state = t(this.state), Te.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1029,18 +1032,18 @@ var Ne = class extends ke {
});
}
};
-function Pe(e, t) {
+function Ie(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: Ee(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Oe(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Fe(e, t) {
+function Le(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1049,7 +1052,7 @@ function Fe(e, t) {
status: "success"
};
}
-function Ie(e) {
+function Re(e) {
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
@@ -1068,7 +1071,7 @@ function Ie(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Le = class extends ye {
+var ze = class extends xe {
#e;
#t = void 0;
#n = void 0;
@@ -1090,16 +1093,16 @@ var Le = class extends ye {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), ze(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), Ve(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Be(this.#t, this.options, this.options.refetchOnReconnect);
+ return He(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Be(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return He(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
@@ -1107,19 +1110,19 @@ var Le = class extends ye {
setOptions(e) {
let t = this.options, n = this.#t;
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof M(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !se(this.options, t) && this.#e.getQueryCache().notify({
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !ce(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && Ve(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
+ r && Ue(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
}
getOptimisticResult(e) {
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
- return se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return ce(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1161,7 +1164,7 @@ var Le = class extends ye {
return e?.throwOnError || (t = t.catch(A)), t;
}
#h(e) {
- return !ve() && M(this.options.enabled, this.#t) !== !1 && j(e);
+ return !be() && M(this.options.enabled, this.#t) !== !1 && j(e);
}
#g() {
this.#b();
@@ -1177,7 +1180,7 @@ var Le = class extends ye {
}
#v(e) {
this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = D.setInterval(() => {
- (this.options.refetchIntervalInBackground || be.isFocused()) && this.#m();
+ (this.options.refetchIntervalInBackground || Se.isFocused()) && this.#m();
}, this.#f));
}
#y() {
@@ -1192,10 +1195,10 @@ var Le = class extends ye {
createResult(e, t) {
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
if (t._optimisticResults) {
- let i = this.hasListeners(), a = !i && ze(e, t), o = i && Ve(e, n, t, r);
+ let i = this.hasListeners(), a = !i && Ve(e, t), o = i && Ue(e, n, t, r);
(a || o) && (l = {
...l,
- ...Pe(c.data, e.options)
+ ...Ie(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1203,12 +1206,12 @@ var Le = class extends ye {
let h = !1;
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
let e;
- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = fe(i?.data, e, t), u = !0);
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = pe(i?.data, e, t), u = !0);
}
if (t.select && d !== void 0 && !h) {
if (i && d === a?.data && t.select === this.#s) d = this.#c;
else try {
- this.#s = t.select, d = t.select(d), d = fe(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = pe(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1238,14 +1241,14 @@ var Le = class extends ye {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: He(e, t),
+ isStale: We(e, t),
refetch: this.refetch,
isEnabled: M(t.enabled, e) !== !1
};
}
updateResult() {
let e = this.#r, t = this.createResult(this.#t, this.options);
- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), se(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), ce(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1257,7 +1260,7 @@ var Le = class extends ye {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- Ce.batch(() => {
+ Te.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1276,34 +1279,34 @@ var Le = class extends ye {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function Re(e, t) {
+function Be(e, t) {
return M(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || M(t.retryOnMount, e) !== !1);
}
-function ze(e, t) {
- return Re(e, t) || e.state.data !== void 0 && Be(e, t, t.refetchOnMount);
+function Ve(e, t) {
+ return Be(e, t) || e.state.data !== void 0 && He(e, t, t.refetchOnMount);
}
-function Be(e, t, n) {
+function He(e, t, n) {
if (M(t.enabled, e) !== !1 && M(t.staleTime, e) !== "static") {
let r = typeof n == "function" ? n(e) : n;
- return r === "always" || r !== !1 && He(e, t);
+ return r === "always" || r !== !1 && We(e, t);
}
return !1;
}
-function Ve(e, t, n, r) {
- return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && He(e, n);
+function Ue(e, t, n, r) {
+ return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && We(e, n);
}
-function He(e, t) {
+function We(e, t) {
return M(t.enabled, e) !== !1 && e.isStaleByTime(M(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var Ue = class extends ke {
+var Ge = class extends je {
#e;
#t;
#n;
#r;
constructor(e) {
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || We(), this.setOptions(e.options), this.scheduleGc();
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ke(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1338,7 +1341,7 @@ var Ue = class extends ke {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = Oe({
+ }, r = this.#r = Ae({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -1454,7 +1457,7 @@ var Ue = class extends ke {
};
}
};
- this.state = t(this.state), Ce.batch(() => {
+ this.state = t(this.state), Te.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1465,7 +1468,7 @@ var Ue = class extends ke {
});
}
};
-function We() {
+function Ke() {
return {
context: void 0,
data: void 0,
@@ -1480,7 +1483,7 @@ function We() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var Ge = class extends ye {
+var qe = class extends xe {
#e;
#t;
#n;
@@ -1488,7 +1491,7 @@ var Ge = class extends ye {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Ue({
+ let r = new Ge({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1499,7 +1502,7 @@ var Ge = class extends ye {
}
add(e) {
this.#e.add(e);
- let t = Ke(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -1511,7 +1514,7 @@ var Ge = class extends ye {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = Ke(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1528,7 +1531,7 @@ var Ge = class extends ye {
});
}
canRun(e) {
- let t = Ke(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -1536,11 +1539,11 @@ var Ge = class extends ye {
return !0;
}
runNext(e) {
- let t = Ke(e);
+ let t = Je(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- Ce.batch(() => {
+ Te.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1563,7 +1566,7 @@ var Ge = class extends ye {
return this.getAll().filter((t) => N(e, t));
}
notify(e) {
- Ce.batch(() => {
+ Te.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1571,15 +1574,15 @@ var Ge = class extends ye {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return Ce.batch(() => Promise.all(e.map((e) => e.continue().catch(A))));
+ return Te.batch(() => Promise.all(e.map((e) => e.continue().catch(A))));
}
};
-function Ke(e) {
+function Je(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var qe = class extends ye {
+var Ye = class extends xe {
#e;
#t = void 0;
#n;
@@ -1592,11 +1595,11 @@ var qe = class extends ye {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), se(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), ce(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && P(t.mutationKey) !== P(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && ie(t.mutationKey) !== ie(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
}
onSubscribe() {
this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());
@@ -1617,7 +1620,7 @@ var qe = class extends ye {
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
}
#i() {
- let e = this.#n?.state ?? We();
+ let e = this.#n?.state ?? Ke();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -1629,7 +1632,7 @@ var qe = class extends ye {
};
}
#a(e) {
- Ce.batch(() => {
+ Te.batch(() => {
if (this.#r && this.hasListeners()) {
let t = this.#t.variables, n = this.#t.context, r = {
client: this.#e,
@@ -1665,14 +1668,14 @@ var qe = class extends ye {
});
});
}
-}, Je = class extends ye {
+}, Xe = class extends xe {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
let r = t.queryKey, i = t.queryHash ?? re(r, t), a = this.get(i);
- return a || (a = new Ne({
+ return a || (a = new Fe({
client: e,
queryKey: r,
queryHash: i,
@@ -1695,7 +1698,7 @@ var qe = class extends ye {
}));
}
clear() {
- Ce.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1719,27 +1722,27 @@ var qe = class extends ye {
return Object.keys(e).length > 0 ? t.filter((t) => ne(e, t)) : t;
}
notify(e) {
- Ce.batch(() => {
+ Te.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- Ce.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- Ce.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Ye = class {
+}, Ze = class {
#e;
#t;
#n;
@@ -1749,12 +1752,12 @@ var qe = class extends ye {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new Je(), this.#t = e.mutationCache || new Ge(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Xe(), this.#t = e.mutationCache || new qe(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
}
mount() {
- this.#a++, this.#a === 1 && (this.#o = be.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = Se.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = we.subscribe(async (e) => {
+ }), this.#s = Ee.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1792,7 +1795,7 @@ var qe = class extends ye {
});
}
setQueriesData(e, t, n) {
- return Ce.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return Te.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1800,7 +1803,7 @@ var qe = class extends ye {
}
removeQueries(e) {
let t = this.#e;
- Ce.batch(() => {
+ Te.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1808,7 +1811,7 @@ var qe = class extends ye {
}
resetQueries(e, t) {
let n = this.#e;
- return Ce.batch(() => {
+ return Te.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1822,11 +1825,11 @@ var qe = class extends ye {
let n = {
revert: !0,
...t
- }, r = Ce.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ }, r = Te.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
return Promise.all(r).then(A).catch(A);
}
invalidateQueries(e, t = {}) {
- return Ce.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return Te.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1837,7 +1840,7 @@ var qe = class extends ye {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = Ce.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = Te.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
let t = e.fetch(void 0, n);
return n.throwOnError || (t = t.catch(A)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
@@ -1871,7 +1874,7 @@ var qe = class extends ye {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return we.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Ee.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1886,7 +1889,7 @@ var qe = class extends ye {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(P(e), {
+ this.#r.set(ie(e), {
queryKey: e,
defaultOptions: t
});
@@ -1894,11 +1897,11 @@ var qe = class extends ye {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- ie(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(P(e), {
+ this.#i.set(ie(e), {
mutationKey: e,
defaultOptions: t
});
@@ -1906,7 +1909,7 @@ var qe = class extends ye {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- ie(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -1917,7 +1920,7 @@ var qe = class extends ye {
...e,
_defaulted: !0
};
- return t.queryHash ||= re(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === I && (t.enabled = !1), t;
+ return t.queryHash ||= re(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === he && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -1930,11 +1933,11 @@ var qe = class extends ye {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, Xe = x.createContext(!1), Ze = () => x.useContext(Xe);
-Xe.Provider;
+}, Qe = x.createContext(!1), $e = () => x.useContext(Qe);
+Qe.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function Qe() {
+function et() {
let e = !1;
return {
clearReset: () => {
@@ -1946,34 +1949,34 @@ function Qe() {
isReset: () => e
};
}
-var $e = x.createContext(Qe()), et = () => x.useContext($e), tt = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var tt = x.createContext(et()), nt = () => x.useContext(tt), rt = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? _e(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, nt = (e) => {
+}, it = (e) => {
x.useEffect(() => {
e.clearReset();
}, [e]);
-}, rt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || he(n, [e.error, r])), it = (e) => {
+}, at = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || _e(n, [e.error, r])), ot = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, at = (e, t) => e?.suspense && t.isPending, ot = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, st = (e, t) => e?.suspense && t.isPending, ct = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function st(e, t, n) {
- let r = Ze(), i = et(), a = w(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, it(o), tt(o, i, s), nt(i);
+function lt(e, t, n) {
+ let r = $e(), i = nt(), a = w(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, ot(o), rt(o, i, s), it(i);
let [l] = x.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
if (x.useSyncExternalStore(x.useCallback((e) => {
- let t = d ? l.subscribe(Ce.batchCalls(e)) : A;
+ let t = d ? l.subscribe(Te.batchCalls(e)) : A;
return l.updateResult(), t;
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), x.useEffect(() => {
l.setOptions(o);
- }, [o, l]), at(o, u)) throw ot(o, l, i);
- if (rt({
+ }, [o, l]), st(o, u)) throw ct(o, l, i);
+ if (at({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1984,20 +1987,20 @@ function st(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function ct(e, t) {
- return st(e, Le, t);
+function ut(e, t) {
+ return lt(e, ze, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function lt(e, t) {
- let n = w(t), [r] = x.useState(() => new qe(n, e));
+function dt(e, t) {
+ let n = w(t), [r] = x.useState(() => new Ye(n, e));
x.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = x.useSyncExternalStore(x.useCallback((e) => r.subscribe(Ce.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = x.useCallback((...e) => {
+ let i = x.useSyncExternalStore(x.useCallback((e) => r.subscribe(Te.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = x.useCallback((...e) => {
r.mutate(e[0], e[1]).catch(A);
}, [r]);
- if (i.error && he(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && _e(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -2006,7 +2009,7 @@ function lt(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var ut = class {
+var ft = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -2021,22 +2024,22 @@ var ut = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, dt = class extends ut {
+}, pt = class extends ft {
filter(e, t, n) {
- let [r, i] = ht(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = _t(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ut {
+(class extends ft {
static {
this.type = "header";
}
});
-var ft = class extends ut {
+var mt = class extends ft {
static {
this.type = "loader";
}
-}, pt = class extends dt {
+}, ht = class extends pt {
static {
this.type = "item";
}
@@ -2048,7 +2051,7 @@ var ft = class extends ut {
return null;
}
};
-(class extends dt {
+(class extends pt {
static {
this.type = "section";
}
@@ -2061,7 +2064,7 @@ var ft = class extends ut {
return null;
}
});
-var mt = class {
+var gt = class {
get size() {
return this.itemCount;
}
@@ -2136,14 +2139,14 @@ var mt = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = ht(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = _t(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function ht(e, t, n, r) {
+function _t(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2158,7 +2161,7 @@ function ht(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var gt = class {
+var vt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2239,7 +2242,7 @@ var gt = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, _t = class e extends gt {
+}, yt = class e extends vt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2290,7 +2293,7 @@ var gt = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, vt = class extends gt {
+}, bt = class extends vt {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -2298,7 +2301,7 @@ var gt = class {
return !0;
}
createElement(e) {
- return new _t(e, this);
+ return new yt(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2320,8 +2323,8 @@ var gt = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof _t && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof _t ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof yt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof yt ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -2340,13 +2343,13 @@ var gt = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function yt(e) {
+function xt(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, x.useMemo)(() => void 0, [t]), s = (0, x.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, x.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = bt(a) ? a : null, o = n ? s.get(n) : null;
+ let n = St(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -2371,7 +2374,7 @@ function yt(e) {
i
]);
}
-function bt(e) {
+function St(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2381,26 +2384,26 @@ function bt(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function xt(e) {
- if (Ct()) e.focus({ preventScroll: !0 });
+function Ct(e) {
+ if (Tt()) e.focus({ preventScroll: !0 });
else {
- let t = wt(e);
- e.focus(), Tt(t);
+ let t = Et(e);
+ e.focus(), Dt(t);
}
}
-var St = null;
-function Ct() {
- if (St == null) {
- St = !1;
+var wt = null;
+function Tt() {
+ if (wt == null) {
+ wt = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return St = !0, !0;
+ return wt = !0, !0;
} });
} catch {}
}
- return St;
+ return wt;
}
-function wt(e) {
+function Et(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -2413,25 +2416,25 @@ function wt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function Tt(e) {
+function Dt(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var L = (e) => Ot(e) ? e.document : kt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Et = (e) => L(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Dt(e) {
+var I = (e) => At(e) ? e.document : jt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Ot = (e) => I(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function kt(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Ot(e) {
+function At(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function kt(e) {
- return Dt(e) && e.nodeType === 9;
+function jt(e) {
+ return kt(e) && e.nodeType === 9;
}
-function At(e) {
- return Dt(e) && e.nodeType === 11 && "host" in e;
+function Mt(e) {
+ return kt(e) && e.nodeType === 11 && "host" in e;
}
-function jt(e, t, n, r) {
+function Nt(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -2439,7 +2442,7 @@ function jt(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Mt(e, t, n, r) {
+function Pt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2454,73 +2457,73 @@ function Mt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Nt = !1;
-function Pt() {
- return Nt;
+var Ft = !1;
+function It() {
+ return Ft;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function R(e, t) {
- if (!Pt()) return t && e ? e.contains(t) : !1;
+function L(e, t) {
+ if (!It()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : At(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Mt(n) ? n.host : n.parentNode;
}
return !1;
}
-var Ft = (e = document) => {
- if (!Pt()) return e.activeElement;
+var Lt = (e = document) => {
+ if (!It()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function z(e) {
- if (Pt() && e.target instanceof Element && e.target.shadowRoot) {
+function R(e) {
+ if (It() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function It(e, t) {
+function Rt(e, t) {
if (t === null) return [];
- t ??= Et(e);
+ t ??= Ot(e);
let n = [t];
- if (!Pt() || !e || e === t) return n;
+ if (!It() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; At(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Mt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Lt(e) {
+function zt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Et(e);
+ let t = e.getRootNode(), n = Ot(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Rt = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function zt(e) {
- let t = Et(e);
+var Bt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Vt(e) {
+ let t = Ot(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = Et(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Ot(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Bt(e, t) {
+function Ht(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function Vt(e, t) {
- return Rt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
+function Ut(e, t) {
+ return Bt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Vt(e) && Ht(e, t) && (!e.parentElement || Ut(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Ht = [
+var z = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2535,60 +2538,60 @@ var Ht = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], B = Ht.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Ht.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Ut = Ht.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Wt(e, t) {
- return e.matches(B) && !Kt(e) && (t?.skipVisibilityCheck || Vt(e));
+], Wt = z.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+z.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Gt = z.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Kt(e, t) {
+ return e.matches(Wt) && !Jt(e) && (t?.skipVisibilityCheck || Ut(e));
}
-function Gt(e) {
- return e.matches(Ut) && Vt(e) && !Kt(e);
+function qt(e) {
+ return e.matches(Gt) && Ut(e) && !Jt(e);
}
-function Kt(e) {
+function Jt(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Et(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Ot(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var V = typeof document < "u" ? x.useLayoutEffect : () => {};
+var B = typeof document < "u" ? x.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function qt(e) {
+function Yt(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Jt(e, t) {
+function Xt(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Yt(e) {
+function Zt(e) {
let t = (0, x.useRef)({
isFocused: !1,
observer: null
});
- return V(() => {
+ return B(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, x.useCallback)((n) => {
- let r = z(n);
+ let r = R(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = qt(r);
+ let t = Yt(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === Ft() ? null : Ft();
+ let e = n === Lt() ? null : Lt();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2601,83 +2604,83 @@ function Yt(e) {
}
}, [e]);
}
-var Xt = !1;
-function Zt(e) {
- for (; e && !Wt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = Ft(Et(e).document);
+var Qt = !1;
+function $t(e) {
+ for (; e && !Kt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Lt(Ot(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && At(n) ? n : Et(e), i = (t) => t === e || t != null && R(e, t), a = (e) => e === t || t != null && e != null && R(t, e);
- Xt = !0;
+ let n = e?.getRootNode(), r = n != null && Mt(n) ? n : Ot(e), i = (t) => t === e || t != null && L(e, t), a = (e) => e === t || t != null && e != null && L(t, e);
+ Qt = !0;
let o = !1, s = (e) => {
- (a(z(e)) || o) && e.stopImmediatePropagation();
+ (a(R(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(z(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xt(t), d()));
+ (a(R(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Ct(t), d()));
}, l = (e) => {
- (i(z(e)) || o) && e.stopImmediatePropagation();
+ (i(R(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(z(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xt(t), d()));
+ (i(R(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Ct(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Xt = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Qt = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Qt(e) {
+function en(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function $t(e) {
+function tn(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function en(e) {
+function nn(e) {
let t = null;
return () => (t ??= e(), t);
}
-var tn = en(function() {
- return $t(/^Mac/i);
-}), nn = en(function() {
- return $t(/^iPhone/i);
-}), rn = en(function() {
- return $t(/^iPad/i) || tn() && navigator.maxTouchPoints > 1;
-}), an = en(function() {
- return nn() || rn();
-}), on = en(function() {
- return tn() || an();
-}), sn = en(function() {
- return Qt(/AppleWebKit/i) && (an() || !cn());
-}), cn = en(function() {
- return Qt(/Chrome|CriOS|CrMo/i);
-}), ln = en(function() {
- return Qt(/Android/i);
-}), un = en(function() {
- return Qt(/(Firefox|FxiOS)/i);
+var rn = nn(function() {
+ return tn(/^Mac/i);
+}), an = nn(function() {
+ return tn(/^iPhone/i);
+}), on = nn(function() {
+ return tn(/^iPad/i) || rn() && navigator.maxTouchPoints > 1;
+}), sn = nn(function() {
+ return an() || on();
+}), cn = nn(function() {
+ return rn() || sn();
+}), ln = nn(function() {
+ return en(/AppleWebKit/i) && (sn() || !un());
+}), un = nn(function() {
+ return en(/Chrome|CriOS|CrMo/i);
+}), dn = nn(function() {
+ return en(/Android/i);
+}), fn = nn(function() {
+ return en(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function dn(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : ln() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function pn(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : dn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function fn(e) {
- return !ln() && e.width === 0 && e.height === 0 || ln() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function mn(e) {
+ return !dn() && e.width === 0 && e.height === 0 || dn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var pn = /*#__PURE__*/ (0, x.createContext)({
+var hn = /*#__PURE__*/ (0, x.createContext)({
isNative: !0,
- open: _n,
+ open: yn,
useHref: (e) => e
});
-function mn() {
- return (0, x.useContext)(pn);
+function gn() {
+ return (0, x.useContext)(hn);
}
-function hn(e, t, n = !0) {
+function _n(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !sn() && un() && window.event?.type?.startsWith("key") && e.target === "_blank" && (tn() ? r = !0 : i = !0);
- let s = sn() && tn() && !rn() ? new KeyboardEvent("keydown", {
+ !ln() && fn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (rn() ? r = !0 : i = !0);
+ let s = ln() && rn() && !on() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2692,21 +2695,21 @@ function hn(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- hn.isOpening = n, xt(e), e.dispatchEvent(s), hn.isOpening = !1;
+ _n.isOpening = n, Ct(e), e.dispatchEvent(s), _n.isOpening = !1;
}
-hn.isOpening = !1;
-function gn(e, t) {
+_n.isOpening = !1;
+function vn(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function _n(e, t) {
- gn(e, (e) => hn(e, t));
+function yn(e, t) {
+ vn(e, (e) => _n(e, t));
}
-function vn(e) {
- let t = mn().useHref(e?.href ?? ""), n = {};
+function bn(e) {
+ let t = gn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2719,121 +2722,121 @@ function vn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var yn = {
+var xn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, bn = /*#__PURE__*/ x.createContext(yn), xn = /*#__PURE__*/ x.createContext(!1);
+}, Sn = /*#__PURE__*/ x.createContext(xn), Cn = /*#__PURE__*/ x.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Sn = /* @__PURE__ */ new WeakMap();
-function Cn(e = !1) {
- let t = (0, x.useContext)(bn), n = (0, x.useRef)(null);
+var wn = /* @__PURE__ */ new WeakMap();
+function Tn(e = !1) {
+ let t = (0, x.useContext)(Sn), n = (0, x.useRef)(null);
if (n.current === null && !e) {
let e = x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Sn.get(e);
- n == null ? Sn.set(e, {
+ let n = wn.get(e);
+ n == null ? wn.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Sn.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, wn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function wn(e) {
- let t = (0, x.useContext)(bn), n = Cn(!!e), r = `react-aria${t.prefix}`;
+function En(e) {
+ let t = (0, x.useContext)(Sn), n = Tn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Tn(e) {
- let t = x.useId(), [n] = (0, x.useState)(An()), r = n ? "react-aria" : `react-aria${yn.prefix}`;
+function Dn(e) {
+ let t = x.useId(), [n] = (0, x.useState)(Mn()), r = n ? "react-aria" : `react-aria${xn.prefix}`;
return e || `${r}-${t}`;
}
-var En = typeof x.useId == "function" ? Tn : wn;
-function Dn() {
+var On = typeof x.useId == "function" ? Dn : En;
+function kn() {
return !1;
}
-function On() {
+function An() {
return !0;
}
-function kn(e) {
+function jn(e) {
return () => {};
}
-function An() {
- return typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore(kn, Dn, On) : (0, x.useContext)(xn);
+function Mn() {
+ return typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore(jn, kn, An) : (0, x.useContext)(Cn);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var jn = null, Mn = /* @__PURE__ */ new Set(), Nn = /* @__PURE__ */ new Map(), Pn = !1, Fn = !1, In = {
+var Nn = null, Pn = /* @__PURE__ */ new Set(), Fn = /* @__PURE__ */ new Map(), In = !1, Ln = !1, Rn = {
Tab: !0,
Escape: !0
};
-function Ln(e, t) {
- for (let n of Mn) n(e, t);
-}
-function Rn(e) {
- return !(e.metaKey || !tn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
-}
-function zn(e) {
- Pn = !0, !hn.isOpening && Rn(e) && (jn = "keyboard", Ln("keyboard", e));
+function zn(e, t) {
+ for (let n of Pn) n(e, t);
}
function Bn(e) {
- jn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Pn = !0, Ln("pointer", e));
+ return !(e.metaKey || !rn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Vn(e) {
- !hn.isOpening && dn(e) && (Pn = !0, jn = "virtual");
+ In = !0, !_n.isOpening && Bn(e) && (Nn = "keyboard", zn("keyboard", e));
}
function Hn(e) {
- if (Xt) return;
- let t = z(e), n = Et(t), r = L(t);
+ Nn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (In = !0, zn("pointer", e));
+}
+function Un(e) {
+ !_n.isOpening && pn(e) && (In = !0, Nn = "virtual");
+}
+function Wn(e) {
+ if (Qt) return;
+ let t = R(e), n = Ot(t), r = I(t);
if (t === n) {
- Fn = !0;
+ Ln = !0;
return;
}
- t === r || !e.isTrusted || (!Pn && !Fn && (jn = "virtual", Ln("virtual", e)), Pn = !1, Fn = !1);
+ t === r || !e.isTrusted || (!In && !Ln && (Nn = "virtual", zn("virtual", e)), In = !1, Ln = !1);
}
-function Un() {
- Xt || (Pn = !1, Fn = !0);
+function Gn() {
+ Qt || (In = !1, Ln = !0);
}
-function Wn(e) {
+function Kn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Et(e), n = L(e);
- if (Nn.get(t)) return;
+ let t = Ot(e), n = I(e);
+ if (Fn.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Pn = !0, r.apply(this, arguments);
+ In = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", zn, !0), n.addEventListener("keyup", zn, !0), n.addEventListener("click", Vn, !0), t.addEventListener("focus", Hn, !0), t.addEventListener("blur", Un, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Bn, !0), n.addEventListener("pointermove", Bn, !0), n.addEventListener("pointerup", Bn, !0)), t.addEventListener("beforeunload", () => {
- Gn(e);
- }, { once: !0 }), Nn.set(t, { focus: r });
+ }), n.addEventListener("keydown", Vn, !0), n.addEventListener("keyup", Vn, !0), n.addEventListener("click", Un, !0), t.addEventListener("focus", Wn, !0), t.addEventListener("blur", Gn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Hn, !0), n.addEventListener("pointermove", Hn, !0), n.addEventListener("pointerup", Hn, !0)), t.addEventListener("beforeunload", () => {
+ qn(e);
+ }, { once: !0 }), Fn.set(t, { focus: r });
}
-var Gn = (e, t) => {
- let n = Et(e), r = L(e);
- t && r.removeEventListener("DOMContentLoaded", t), Nn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var qn = (e, t) => {
+ let n = Ot(e), r = I(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Fn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Nn.get(n).focus
- }), r.removeEventListener("keydown", zn, !0), r.removeEventListener("keyup", zn, !0), r.removeEventListener("click", Vn, !0), n.removeEventListener("focus", Hn, !0), n.removeEventListener("blur", Un, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Bn, !0), r.removeEventListener("pointermove", Bn, !0), r.removeEventListener("pointerup", Bn, !0)), Nn.delete(n));
+ value: Fn.get(n).focus
+ }), r.removeEventListener("keydown", Vn, !0), r.removeEventListener("keyup", Vn, !0), r.removeEventListener("click", Un, !0), n.removeEventListener("focus", Wn, !0), n.removeEventListener("blur", Gn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Hn, !0), r.removeEventListener("pointermove", Hn, !0), r.removeEventListener("pointerup", Hn, !0)), Fn.delete(n));
};
-function Kn(e) {
- let t = L(e), n;
+function Jn(e) {
+ let t = I(e), n;
return t.readyState === "loading" ? (n = () => {
- Wn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Wn(e), () => Gn(e, n);
+ Kn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Kn(e), () => qn(e, n);
}
-typeof document < "u" && Kn();
-function qn() {
- return jn !== "pointer";
+typeof document < "u" && Jn();
+function Yn() {
+ return Nn !== "pointer";
}
-function Jn() {
- return jn;
+function Xn() {
+ return Nn;
}
-function Yn(e) {
- jn = e, Ln(e, null);
+function Zn(e) {
+ Nn = e, zn(e, null);
}
-var Xn = /* @__PURE__ */ new Set([
+var Qn = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2844,77 +2847,77 @@ var Xn = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Zn(e, t, n) {
- let r = n ? z(n) : void 0, i = L(r), a = Et(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Ft(i);
- return e = e || u instanceof o && !Xn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !In[n.key]);
+function $n(e, t, n) {
+ let r = n ? R(n) : void 0, i = I(r), a = Ot(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Lt(i);
+ return e = e || u instanceof o && !Qn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Rn[n.key]);
}
-function Qn(e, t, n) {
- Wn(), (0, x.useEffect)(() => {
+function er(e, t, n) {
+ Kn(), (0, x.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Zn(!!n?.isTextInput, t, r) && e(qn());
+ $n(!!n?.isTextInput, t, r) && e(Yn());
};
- return Mn.add(t), () => {
- Mn.delete(t);
+ return Pn.add(t), () => {
+ Pn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var $n = /* @__PURE__ */ new Map(), er = /* @__PURE__ */ new Set();
-function tr() {
+var tr = /* @__PURE__ */ new Map(), nr = /* @__PURE__ */ new Set();
+function rr() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = z(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = $n.get(r);
- i || (i = /* @__PURE__ */ new Set(), $n.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = tr.get(r);
+ i || (i = /* @__PURE__ */ new Set(), tr.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = z(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = $n.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), $n.delete(r)), $n.size === 0)) {
- for (let e of er) e();
- er.clear();
+ let i = tr.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), tr.delete(r)), tr.size === 0)) {
+ for (let e of nr) e();
+ nr.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", tr) : tr());
-function nr() {
- for (let [e] of $n) "isConnected" in e && !e.isConnected && $n.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", rr) : rr());
+function ir() {
+ for (let [e] of tr) "isConnected" in e && !e.isConnected && tr.delete(e);
}
-function rr(e) {
+function ar(e) {
requestAnimationFrame(() => {
- nr(), $n.size === 0 ? e() : er.add(e);
+ ir(), tr.size === 0 ? e() : nr.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function ir(e) {
+function or(e) {
if (!e.isConnected) return;
- let t = L(e);
- if (Jn() === "virtual") {
- let n = Ft(t);
- rr(() => {
- let r = Ft(t);
- (r === n || r === t.body) && e.isConnected && xt(e);
+ let t = I(e);
+ if (Xn() === "virtual") {
+ let n = Lt(t);
+ ar(() => {
+ let r = Lt(t);
+ (r === n || r === t.body) && e.isConnected && Ct(e);
});
- } else xt(e);
+ } else Ct(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function ar(...e) {
+function sr(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function or(e) {
+function cr(e) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(t), i = (0, x.useRef)(null), a = (0, x.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -2924,7 +2927,7 @@ function or(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return V(() => {
+ return B(() => {
r.current = t, i.current && a.current();
}), [t, (0, x.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -2932,21 +2935,21 @@ function or(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var sr = !!(typeof window < "u" && window.document && window.document.createElement), cr = /* @__PURE__ */ new Map(), lr;
-typeof FinalizationRegistry < "u" && (lr = new FinalizationRegistry((e) => {
- cr.delete(e);
+var lr = !!(typeof window < "u" && window.document && window.document.createElement), ur = /* @__PURE__ */ new Map(), dr;
+typeof FinalizationRegistry < "u" && (dr = new FinalizationRegistry((e) => {
+ ur.delete(e);
}));
-var ur = /* @__PURE__ */ new WeakMap();
-function dr(e) {
- let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(null), i = En(t), a = (0, x.useRef)(null), o = ur.get(a);
- if (lr && o !== i && (o != null && lr.unregister(a), lr.register(a, i, a), ur.set(a, i)), sr) {
- let e = cr.get(i);
- e && !e.includes(r) ? e.push(r) : cr.set(i, [r]);
- }
- return V(() => {
+var fr = /* @__PURE__ */ new WeakMap();
+function pr(e) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(null), i = On(t), a = (0, x.useRef)(null), o = fr.get(a);
+ if (dr && o !== i && (o != null && dr.unregister(a), dr.register(a, i, a), fr.set(a, i)), lr) {
+ let e = ur.get(i);
+ e && !e.includes(r) ? e.push(r) : ur.set(i, [r]);
+ }
+ return B(() => {
let e = i;
return () => {
- lr && (lr.unregister(a), ur.delete(a)), cr.delete(e);
+ dr && (dr.unregister(a), fr.delete(a)), ur.delete(e);
};
}, [i]), (0, x.useEffect)(() => {
let e = r.current;
@@ -2955,20 +2958,20 @@ function dr(e) {
};
}), i;
}
-function fr(e, t) {
+function mr(e, t) {
if (e === t) return e;
- let n = cr.get(e);
+ let n = ur.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = cr.get(t);
+ let r = ur.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function pr(e = []) {
- let t = dr(), [n, r] = or(t), i = (0, x.useCallback)(() => {
+function hr(e = []) {
+ let t = pr(), [n, r] = cr(t), i = (0, x.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return V(i, [
+ return B(i, [
t,
i,
...e
@@ -2976,60 +2979,60 @@ function pr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function mr(...e) {
+function gr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = hr(e, t);
+ let r = _r(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : hr(e[n], null);
+ typeof t == "function" ? t() : _r(e[n], null);
});
};
};
}
-function hr(e, t) {
+function _r(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function gr(e) {
+function vr(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = gr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = vr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function _r() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = gr(e)) && (r && (r += " "), r += t);
+function yr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = vr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function H(...e) {
+function V(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ar(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = _r(n, i) : e === "id" && n && i ? t.id = fr(n, i) : e === "ref" && n && i ? t.ref = mr(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = sr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = yr(n, i) : e === "id" && n && i ? t.id = mr(n, i) : e === "ref" && n && i ? t.ref = gr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function vr(e) {
+function br(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, x.useCallback)((e) => {
- if (z(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Yt(a), s = (0, x.useCallback)((e) => {
- let t = z(e), r = L(t), a = r ? Ft(r) : Ft();
+ if (R(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Zt(a), s = (0, x.useCallback)((e) => {
+ let t = R(e), r = I(t), a = r ? Lt(r) : Lt();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -3043,7 +3046,7 @@ function vr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function yr(e) {
+function xr(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -3068,33 +3071,33 @@ function yr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var br = /* @__PURE__ */ new Set([
+var Sr = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), xr = [
+]), Cr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Sr(e) {
+function wr(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(tn() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(rn() ? "Meta" : "Control"), t;
}
-function Cr(e) {
+function Tr(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function wr(e) {
- return xr.filter((t) => e.has(t));
+function Er(e) {
+ return Cr.filter((t) => e.has(t));
}
-function Tr(e) {
+function Dr(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return br.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Sr.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -3106,10 +3109,10 @@ function Tr(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Er(e) {
+function Or(e) {
return e.toLowerCase();
}
-var Dr = {
+var kr = {
space: " ",
esc: "escape",
del: "delete",
@@ -3121,26 +3124,26 @@ var Dr = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Or(e) {
- let t = Er(e);
- return Dr[t] ?? t;
+function Ar(e) {
+ let t = Or(e);
+ return kr[t] ?? t;
}
-function kr(e) {
- let t = wr(Sr(e)), n = Or(e.key);
+function jr(e) {
+ let t = Er(wr(e)), n = Ar(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Ar(e) {
- let t = wr(Cr(e)), n = Er(e.key);
+function Mr(e) {
+ let t = Er(Tr(e)), n = Or(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function jr(e) {
+function Nr(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Tr(n);
- t.set(kr(e), r);
+ let e = Dr(n);
+ t.set(jr(e), r);
}
return (e) => {
- let n = Ar(e), r = t.get(n), i = r?.(e);
+ let n = Mr(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3152,11 +3155,11 @@ function jr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Mr(e) {
+function Pr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = jr(t), s = yr((e) => {
- if (!R(e.currentTarget, z(e))) {
+ let o = Nr(t), s = xr((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -3165,8 +3168,8 @@ function Mr(e) {
return;
}
o(e);
- }), c = yr((e) => {
- if (!R(e.currentTarget, z(e))) {
+ }), c = xr((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -3176,8 +3179,8 @@ function Mr(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? ar(e.onKeyDown, s) : s, a = e.onKeyUp ? ar(e.onKeyUp, c) : c;
- } else i = yr(e.onKeyDown), a = yr(e.onKeyUp);
+ i = e.onKeyDown ? sr(e.onKeyDown, s) : s, a = e.onKeyUp ? sr(e.onKeyUp, c) : c;
+ } else i = xr(e.onKeyDown), a = xr(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3185,7 +3188,7 @@ function Mr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Nr(e) {
+function Fr(e) {
let t = (0, x.useRef)(null), n = (0, x.useRef)(void 0), r = (0, x.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -3208,8 +3211,8 @@ function Nr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Pr(e, t) {
- V(() => {
+function Ir(e, t) {
+ B(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3217,20 +3220,20 @@ function Pr(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Fr = /*#__PURE__*/ x.createContext(null);
-function Ir(e) {
- let t = (0, x.useContext)(Fr) || {};
- Pr(t, e);
+var Lr = /*#__PURE__*/ x.createContext(null);
+function Rr(e) {
+ let t = (0, x.useContext)(Lr) || {};
+ Ir(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Lr(e, t) {
- let { focusProps: n } = vr(e), { keyboardProps: r } = Mr(e), i = H(n, r), a = Ir(t), o = e.isDisabled ? {} : a, s = (0, x.useRef)(e.autoFocus);
+function zr(e, t) {
+ let { focusProps: n } = br(e), { keyboardProps: r } = Pr(e), i = V(n, r), a = Rr(t), o = e.isDisabled ? {} : a, s = (0, x.useRef)(e.autoFocus);
(0, x.useEffect)(() => {
- s.current && t.current && ir(t.current), s.current = !1;
+ s.current && t.current && or(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: H({
+ return e.isDisabled && (c = void 0), { focusableProps: V({
...i,
tabIndex: c
}, o) };
@@ -3262,22 +3265,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Rr = /*#__PURE__*/ (0, x.createContext)(!1);
-function zr(e) {
- if ((0, x.useContext)(Rr)) return /*#__PURE__*/ x.createElement(x.Fragment, null, e.children);
- let t = /*#__PURE__*/ x.createElement(Rr.Provider, { value: !0 }, e.children);
+var Br = /*#__PURE__*/ (0, x.createContext)(!1);
+function Vr(e) {
+ if ((0, x.useContext)(Br)) return /*#__PURE__*/ x.createElement(x.Fragment, null, e.children);
+ let t = /*#__PURE__*/ x.createElement(Br.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ x.createElement("template", null, t);
}
-function Br(e) {
- let t = (t, n) => (0, x.useContext)(Rr) ? null : e(t, n);
+function Hr(e) {
+ let t = (t, n) => (0, x.useContext)(Br) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, x.forwardRef)(t);
}
-function Vr() {
- return (0, x.useContext)(Rr);
+function Ur() {
+ return (0, x.useContext)(Br);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var Hr = /* @__PURE__ */ m(((e) => {
+var Wr = /* @__PURE__ */ m(((e) => {
var t = v();
function n(e) {
var t = "https://react.dev/errors/" + e;
@@ -3405,7 +3408,7 @@ var Hr = /* @__PURE__ */ m(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Ur = /* @__PURE__ */ m(((e, t) => {
+})), Gr = /* @__PURE__ */ m(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -3413,8 +3416,8 @@ var Hr = /* @__PURE__ */ m(((e) => {
console.error(e);
}
}
- n(), t.exports = Hr();
-})), Wr = /* @__PURE__ */ m(((e) => {
+ n(), t.exports = Wr();
+})), Kr = /* @__PURE__ */ m(((e) => {
var t = v();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -3452,47 +3455,47 @@ var Hr = /* @__PURE__ */ m(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Gr = /* @__PURE__ */ m(((e, t) => {
- t.exports = Wr();
-})), Kr = /* @__PURE__ */ g(Ur(), 1), qr = Gr(), Jr = /*#__PURE__*/ (0, x.createContext)(!1), Yr = /*#__PURE__*/ (0, x.createContext)(null);
-function Xr(e) {
- if ((0, x.useContext)(Yr)) return e.content;
- let { collection: t, document: n } = ei(e.createCollection);
- return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(zr, null, /*#__PURE__*/ x.createElement(Yr.Provider, { value: n }, e.content)), /*#__PURE__*/ x.createElement(Zr, {
+})), qr = /* @__PURE__ */ m(((e, t) => {
+ t.exports = Kr();
+})), Jr = /* @__PURE__ */ g(Gr(), 1), Yr = qr(), Xr = /*#__PURE__*/ (0, x.createContext)(!1), Zr = /*#__PURE__*/ (0, x.createContext)(null);
+function Qr(e) {
+ if ((0, x.useContext)(Zr)) return e.content;
+ let { collection: t, document: n } = ni(e.createCollection);
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Vr, null, /*#__PURE__*/ x.createElement(Zr.Provider, { value: n }, e.content)), /*#__PURE__*/ x.createElement($r, {
render: e.children,
collection: t
}));
}
-function Zr({ collection: e, render: t }) {
+function $r({ collection: e, render: t }) {
return t(e);
}
-function Qr(e, t, n) {
- let r = An(), i = (0, x.useRef)(r);
+function ei(e, t, n) {
+ let r = Mn(), i = (0, x.useRef)(r);
i.current = r;
let a = (0, x.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, qr.useSyncExternalStore)(e, a);
+ return (0, Yr.useSyncExternalStore)(e, a);
}
-var $r = typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore : Qr;
-function ei(e) {
- let [t] = (0, x.useState)(() => new vt(e?.() || new mt()));
+var ti = typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore : ei;
+function ni(e) {
+ let [t] = (0, x.useState)(() => new bt(e?.() || new gt()));
return {
- collection: $r((0, x.useCallback)((e) => t.subscribe(e), [t]), (0, x.useCallback)(() => {
+ collection: ti((0, x.useCallback)((e) => t.subscribe(e), [t]), (0, x.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, x.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ti = /*#__PURE__*/ (0, x.createContext)(null);
-function ni(e) {
- return class extends ut {
+var ri = /*#__PURE__*/ (0, x.createContext)(null);
+function ii(e) {
+ return class extends ft {
static {
this.type = e;
}
};
}
-function ri(e, t, n, r, i, a) {
- typeof e == "string" && (e = ni(e));
+function ai(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ii(e));
let o = (0, x.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -3501,77 +3504,77 @@ function ri(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, x.useContext)(ti);
+ ]), s = (0, x.useContext)(ri);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ x.createElement(ti.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ x.createElement(ri.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ x.createElement(e.type, { ref: o }, i);
}
-function ii(e, t) {
+function oi(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, x.forwardRef)((r, i) => {
- let a = (0, x.useContext)(Fr);
- if (!(0, x.useContext)(Jr)) {
+ let a = (0, x.useContext)(Lr);
+ if (!(0, x.useContext)(Xr)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return ri(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ x.createElement(Fr.Provider, { value: a }, /*#__PURE__*/ x.createElement(n, { node: e })));
+ return ai(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ x.createElement(Lr.Provider, { value: a }, /*#__PURE__*/ x.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ai(e) {
- return yt({
+function si(e) {
+ return xt({
...e,
addIdAndValue: !0
});
}
-var oi = /*#__PURE__*/ (0, x.createContext)(null);
-function si(e) {
- let t = (0, x.useContext)(oi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ai({
+var ci = /*#__PURE__*/ (0, x.createContext)(null);
+function li(e) {
+ let t = (0, x.useContext)(ci), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = si({
...e,
idScope: r,
dependencies: n
});
- return (0, x.useContext)(Yr) && (i = /*#__PURE__*/ x.createElement(ci, null, i)), t = (0, x.useMemo)(() => ({
+ return (0, x.useContext)(Zr) && (i = /*#__PURE__*/ x.createElement(ui, null, i)), t = (0, x.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ x.createElement(oi.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ x.createElement(ci.Provider, { value: t }, i);
}
-function ci({ children: e }) {
- let t = (0, x.useContext)(Yr), n = (0, x.useMemo)(() => /*#__PURE__*/ x.createElement(Yr.Provider, { value: null }, /*#__PURE__*/ x.createElement(Jr.Provider, { value: !0 }, e)), [e]);
- return An() ? /*#__PURE__*/ x.createElement(ti.Provider, { value: t }, n) : /*#__PURE__*/ (0, Kr.createPortal)(n, t);
+function ui({ children: e }) {
+ let t = (0, x.useContext)(Zr), n = (0, x.useMemo)(() => /*#__PURE__*/ x.createElement(Zr.Provider, { value: null }, /*#__PURE__*/ x.createElement(Xr.Provider, { value: !0 }, e)), [e]);
+ return Mn() ? /*#__PURE__*/ x.createElement(ri.Provider, { value: t }, n) : /*#__PURE__*/ (0, Jr.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var li = "react-aria-clear-focus", ui = "react-aria-focus";
+var di = "react-aria-clear-focus", fi = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function di(e) {
- let t = mi(L(e));
- t !== e && (t && fi(t, e), e && pi(e, t));
+function pi(e) {
+ let t = gi(I(e));
+ t !== e && (t && mi(t, e), e && hi(e, t));
}
-function fi(e, t) {
+function mi(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function pi(e, t) {
+function hi(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function mi(e) {
- let t = Ft(e), n = t?.getAttribute("aria-activedescendant");
+function gi(e) {
+ let t = Lt(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function hi(e) {
- return tn() ? e.metaKey : e.ctrlKey;
+function _i(e) {
+ return rn() ? e.metaKey : e.ctrlKey;
}
-var gi = /* @__PURE__ */ new Set([
+var vi = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3582,15 +3585,15 @@ var gi = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function _i(e) {
- return e instanceof HTMLInputElement && !gi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function yi(e) {
+ return e instanceof HTMLInputElement && !vi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var vi = x.useInsertionEffect ?? V;
-function yi(e) {
+var bi = x.useInsertionEffect ?? B;
+function xi(e) {
let t = (0, x.useRef)(null);
- return vi(() => {
+ return bi(() => {
t.current = e;
}, [e]), (0, x.useCallback)((...e) => {
let n = t.current;
@@ -3599,10 +3602,10 @@ function yi(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function bi(e, t, n, r) {
- let i = yi(n), a = n == null;
+function Si(e, t, n, r) {
+ let i = xi(n), a = n == null;
(0, x.useEffect)(() => {
- if (!(a || e.current == null)) return jt(e.current, t, i, r);
+ if (!(a || e.current == null)) return Nt(e.current, t, i, r);
}, [
e,
t,
@@ -3612,9 +3615,9 @@ function bi(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function xi(e, t) {
+function Ci(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = dr(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = pr(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -3622,7 +3625,7 @@ function xi(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Si = /* @__PURE__ */ new Set([
+var wi = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3633,7 +3636,7 @@ var Si = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Ci = /* @__PURE__ */ new Set([
+]), Ti = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3654,20 +3657,20 @@ var Si = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function wi(e) {
+function Ei(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Si.has(t.script);
+ if (t.script) return wi.has(t.script);
}
let t = e.split("-")[0];
- return Ci.has(t);
+ return Ti.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Ti = Symbol.for("react-aria.i18n.locale");
-function Ei() {
- let e = typeof window < "u" && window[Ti] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Di = Symbol.for("react-aria.i18n.locale");
+function Oi() {
+ let e = typeof window < "u" && window[Di] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3675,33 +3678,33 @@ function Ei() {
}
return {
locale: e,
- direction: wi(e) ? "rtl" : "ltr"
+ direction: Ei(e) ? "rtl" : "ltr"
};
}
-var Di = Ei(), Oi = /* @__PURE__ */ new Set();
-function ki() {
- Di = Ei();
- for (let e of Oi) e(Di);
+var ki = Oi(), Ai = /* @__PURE__ */ new Set();
+function ji() {
+ ki = Oi();
+ for (let e of Ai) e(ki);
}
-function Ai() {
- let e = An(), [t, n] = (0, x.useState)(Di);
- return (0, x.useEffect)(() => (Oi.size === 0 && window.addEventListener("languagechange", ki), Oi.add(n), () => {
- Oi.delete(n), Oi.size === 0 && window.removeEventListener("languagechange", ki);
+function Mi() {
+ let e = Mn(), [t, n] = (0, x.useState)(ki);
+ return (0, x.useEffect)(() => (Ai.size === 0 && window.addEventListener("languagechange", ji), Ai.add(n), () => {
+ Ai.delete(n), Ai.size === 0 && window.removeEventListener("languagechange", ji);
}), []), e ? {
- locale: typeof window < "u" && window[Ti] || "en-US",
+ locale: typeof window < "u" && window[Di] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var ji = /*#__PURE__*/ x.createContext(null);
-function Mi() {
- let e = Ai();
- return (0, x.useContext)(ji) || e;
+var Ni = /*#__PURE__*/ x.createContext(null);
+function Pi() {
+ let e = Mi();
+ return (0, x.useContext)(Ni) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Ni = Symbol.for("react-aria.i18n.locale"), Pi = Symbol.for("react-aria.i18n.strings"), Fi = void 0, Ii = class e {
+var Fi = Symbol.for("react-aria.i18n.locale"), Ii = Symbol.for("react-aria.i18n.strings"), Li = void 0, Ri = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3712,39 +3715,39 @@ var Ni = Symbol.for("react-aria.i18n.locale"), Pi = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Li(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = zi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Ni];
- if (Fi === void 0) {
- let t = window[Pi];
+ let n = window[Fi];
+ if (Li === void 0) {
+ let t = window[Ii];
if (!t) return null;
- Fi = {};
- for (let r in t) Fi[r] = new e({ [n]: t[r] }, n);
+ Li = {};
+ for (let r in t) Li[r] = new e({ [n]: t[r] }, n);
}
- let r = Fi?.[t];
+ let r = Li?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Li(e, t, n = "en-US") {
+function zi(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Ri(e), i = zi(e);
+ let r = Bi(e), i = Vi(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Ri(e) {
+function Bi(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function zi(e) {
+function Vi(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Bi = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new Map(), Hi = class {
+var Hi = /* @__PURE__ */ new Map(), Ui = /* @__PURE__ */ new Map(), Wi = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3755,37 +3758,37 @@ var Bi = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new Map(), Hi = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Bi.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Bi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Hi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Hi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Vi.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Vi.set(this.locale, t)), t.format(e);
+ let t = Ui.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Ui.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Ui = /* @__PURE__ */ new WeakMap();
-function Wi(e) {
- let t = Ui.get(e);
- return t || (t = new Ii(e), Ui.set(e, t)), t;
+}, Gi = /* @__PURE__ */ new WeakMap();
+function Ki(e) {
+ let t = Gi.get(e);
+ return t || (t = new Ri(e), Gi.set(e, t)), t;
}
-function Gi(e, t) {
- return t && Ii.getGlobalDictionaryForPackage(t) || Wi(e);
+function qi(e, t) {
+ return t && Ri.getGlobalDictionaryForPackage(t) || Ki(e);
}
-function Ki(e, t) {
- let { locale: n } = Mi(), r = Gi(e, t);
- return (0, x.useMemo)(() => new Hi(n, r), [n, r]);
+function Ji(e, t) {
+ let { locale: n } = Pi(), r = qi(e, t);
+ return (0, x.useMemo)(() => new Wi(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var qi = /* @__PURE__ */ new Set(["id"]), Ji = /* @__PURE__ */ new Set([
+var Yi = /* @__PURE__ */ new Set(["id"]), Xi = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Yi = /* @__PURE__ */ new Set([
+]), Zi = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3793,71 +3796,71 @@ var qi = /* @__PURE__ */ new Set(["id"]), Ji = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Xi = /* @__PURE__ */ new Set([
+]), Qi = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Zi = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Qi = /^(data-.*)$/;
-function U(e, t = {}) {
+]), $i = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), ea = /^(data-.*)$/;
+function H(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (qi.has(t) || n && Ji.has(t) || r && Yi.has(t) || i && Xi.has(t) || a && (Zi.has(t) || t.endsWith("Capture") && Zi.has(t.slice(0, -7))) || o?.has(t) || Qi.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Yi.has(t) || n && Xi.has(t) || r && Zi.has(t) || i && Qi.has(t) || a && ($i.has(t) || t.endsWith("Capture") && $i.has(t.slice(0, -7))) || o?.has(t) || ea.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var $i = "default", W = "", ea = /* @__PURE__ */ new WeakMap();
-function ta(e) {
- if (an() && sn()) {
- if ($i === "default") {
- let t = L(e);
- W = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- $i = "disabled";
+var U = "default", ta = "", na = /* @__PURE__ */ new WeakMap();
+function ra(e) {
+ if (sn() && ln()) {
+ if (U === "default") {
+ let t = I(e);
+ ta = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ U = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- ea.set(e, e.style[t]), e.style[t] = "none";
+ na.set(e, e.style[t]), e.style[t] = "none";
}
}
-function na(e) {
- if (an() && sn()) {
- if ($i !== "disabled") return;
- $i = "restoring", setTimeout(() => {
- rr(() => {
- if ($i === "restoring") {
- let t = L(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = W || ""), W = "", $i = "default";
+function ia(e) {
+ if (sn() && ln()) {
+ if (U !== "disabled") return;
+ U = "restoring", setTimeout(() => {
+ ar(() => {
+ if (U === "restoring") {
+ let t = I(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ta || ""), ta = "", U = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ea.has(e)) {
- let t = ea.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ea.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && na.has(e)) {
+ let t = na.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), na.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function ra(e, t) {
- let n = Et(t), r = L(t);
+function aa(e, t) {
+ let n = Ot(t), r = I(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var ia = /* @__PURE__ */ new WeakMap();
-function aa(e) {
- let t = L(e), n = ia.get(t);
- return n ??= ra("csp-nonce", t), n !== void 0 && ia.set(t, n), n;
+var oa = /* @__PURE__ */ new WeakMap();
+function sa(e) {
+ let t = I(e), n = oa.get(t);
+ return n ??= aa("csp-nonce", t), n !== void 0 && oa.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var oa = x.createContext({ register: () => {} });
-oa.displayName = "PressResponderContext";
+var ca = x.createContext({ register: () => {} });
+ca.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function sa() {
+function la() {
let e = (0, x.useRef)(/* @__PURE__ */ new Map()), t = (0, x.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -3884,15 +3887,15 @@ function sa() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function ca(e) {
- let t = (0, x.useContext)(oa);
+function ua(e) {
+ let t = (0, x.useContext)(ca);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = H(i, e), n();
+ e = V(i, e), n();
}
- return Pr(t, e.ref), e;
+ return Ir(t, e.ref), e;
}
-var la = class {
+var da = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3905,9 +3908,9 @@ var la = class {
get shouldStopPropagation() {
return this.#e;
}
-}, ua = Symbol("linkClicked"), da = "react-aria-pressable-style", fa = "data-react-aria-pressable";
-function pa(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = ca(e), [m, h] = (0, x.useState)(!1), g = (0, x.useRef)({
+}, fa = Symbol("linkClicked"), pa = "react-aria-pressable-style", ma = "data-react-aria-pressable";
+function ha(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = ua(e), [m, h] = (0, x.useState)(!1), g = (0, x.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3917,12 +3920,12 @@ function pa(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = sa(), y = (0, x.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = la(), y = (0, x.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new la("pressstart", t, e);
+ let n = new da("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3936,11 +3939,11 @@ function pa(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new la("pressend", r, e);
+ let t = new da("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new la("press", r, e);
+ let n = new da("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3949,19 +3952,19 @@ function pa(e) {
i,
n,
t
- ]), S = yi(b), C = yi((0, x.useCallback)((e, t) => {
+ ]), S = xi(b), C = xi((0, x.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new la("pressup", t, e);
+ let r = new da("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), w = (0, x.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(ga(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || na(t.target);
+ t.didFirePressStart && t.pointerType != null && b(va(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ia(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -3969,7 +3972,7 @@ function pa(e) {
d,
v,
b
- ]), T = yi(w);
+ ]), T = xi(w);
(0, x.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
@@ -3986,39 +3989,39 @@ function pa(e) {
}, [s, o]), O = (0, x.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Jt(n, t), o(qt(n));
+ Xt(n, t), o(Yt(n));
}
}, [s, o]), k = (0, x.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (ha(t.nativeEvent, t.currentTarget) && R(t.currentTarget, z(t))) {
- va(z(t), t.key) && t.preventDefault();
+ if (_a(t.nativeEvent, t.currentTarget) && L(t.currentTarget, R(t))) {
+ ba(R(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(L(t.currentTarget), "keyup", ar((t) => {
- ha(t, i) && !t.repeat && R(i, z(t)) && e.target && C(ga(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && tn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(I(t.currentTarget), "keyup", sr((t) => {
+ _a(t, i) && !t.repeat && L(i, R(t)) && e.target && C(va(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && rn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !R(t.currentTarget, z(t))) && t && t.button === 0 && !e.isTriggeringEvent && !hn.isOpening) {
+ if (!(t && !L(t.currentTarget, R(t))) && t && t.button === 0 && !e.isTriggeringEvent && !_n.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || dn(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || pn(t.nativeEvent))) {
let e = y(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ga(t.currentTarget, t), r), a = S(ga(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(va(t.currentTarget, t), r), a = S(va(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && ha(t, e.target)) {
- va(z(t), t.key) && t.preventDefault();
- let n = z(t), r = R(e.target, n);
- S(ga(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ma(e.target) && R(e.target, n) && !t[ua] && (t[ua] = !0, hn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && _a(t, e.target)) {
+ ba(R(t), t.key) && t.preventDefault();
+ let n = R(t), r = L(e.target, n);
+ S(va(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ga(e.target) && L(e.target, n) && !t[fa] && (t[fa] = !0, _n(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -4027,39 +4030,39 @@ function pa(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !R(t.currentTarget, z(t))) return;
- if (fn(t.nativeEvent)) {
+ if (t.button !== 0 || !L(t.currentTarget, R(t))) return;
+ if (mn(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ta(e.target), i = y(t, e.pointerType);
- let a = z(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(L(t.currentTarget), "pointerup", n, !1), _(L(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ra(e.target), i = y(t, e.pointerType);
+ let a = R(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(I(t.currentTarget), "pointerup", n, !1), _(I(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (R(t.currentTarget, z(t)) && t.button === 0) {
+ if (L(t.currentTarget, R(t)) && t.button === 0) {
if (l) {
- let n = Zt(t.target);
+ let n = $t(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !R(t.currentTarget, z(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
+ !L(t.currentTarget, R(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(ga(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(va(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(ga(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(va(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (R(e.target, z(t)) && e.pointerType != null) {
+ if (L(e.target, R(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (xt(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (Ct(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
@@ -4069,7 +4072,7 @@ function pa(e) {
T(e);
};
t.onDragStart = (e) => {
- R(e.currentTarget, z(e)) && T(e);
+ L(e.currentTarget, R(e)) && T(e);
};
}
return t;
@@ -4086,14 +4089,14 @@ function pa(e) {
]);
return (0, x.useEffect)(() => {
if (!f) return;
- let e = L(f.current);
- if (!e || !e.head || e.getElementById(da)) return;
+ let e = I(f.current);
+ if (!e || !e.head || e.getElementById(pa)) return;
let t = e.createElement("style");
- t.id = da;
- let n = aa(e);
+ t.id = pa;
+ let n = sa(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${fa}] {
+ [${ma}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -4101,23 +4104,23 @@ function pa(e) {
}, [f]), (0, x.useEffect)(() => {
let e = g.current;
return () => {
- d || na(e.target ?? void 0);
+ d || ia(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, k, { [fa]: !0 })
+ pressProps: V(p, k, { [ma]: !0 })
};
}
-function ma(e) {
+function ga(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function ha(e, t) {
+function _a(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Et(i).HTMLInputElement && !ba(i, n) || i instanceof Et(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ma(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Ot(i).HTMLInputElement && !Sa(i, n) || i instanceof Ot(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ga(i)) && n !== "Enter");
}
-function ga(e, t) {
+function va(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4130,13 +4133,13 @@ function ga(e, t) {
key: t.key
};
}
-function _a(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ma(e);
+function ya(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ga(e);
}
-function va(e, t) {
- return tn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ba(e, t) : _a(e);
+function ba(e, t) {
+ return rn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Sa(e, t) : ya(e);
}
-var ya = /* @__PURE__ */ new Set([
+var xa = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4147,12 +4150,12 @@ var ya = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function ba(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : ya.has(e.type);
+function Sa(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : xa.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function xa(e, t) {
+function Ca(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -4174,7 +4177,7 @@ function xa(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = pa({
+ let { pressProps: _, isPressed: v } = ha({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4184,12 +4187,12 @@ function xa(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Lr(e, t);
+ }), { focusableProps: y } = zr(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, U(e, { labelable: !0 }));
+ let b = V(y, _, H(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: H(g, b, {
+ buttonProps: V(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -4201,7 +4204,7 @@ function xa(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Sa = class {
+var wa = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4226,7 +4229,7 @@ var Sa = class {
return this._currentNode;
}
set currentNode(e) {
- if (!R(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!L(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -4240,7 +4243,7 @@ var Sa = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return R(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return L(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -4304,45 +4307,45 @@ var Sa = class {
return null;
}
};
-function Ca(e, t, n, r) {
- return Pt() ? new Sa(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Ta(e, t, n, r) {
+ return It() ? new wa(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var wa = /*#__PURE__*/ x.createContext(null), Ta = "react-aria-focus-scope-restore", G = null;
-function Ea(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useRef)([]), { parentNode: c } = (0, x.useContext)(wa) || {}, l = (0, x.useMemo)(() => new Ja({ scopeRef: s }), [s]);
- V(() => {
- let e = c || Ya.root;
- if (Ya.getTreeNode(e.scopeRef) && G && !La(G, e.scopeRef)) {
- let t = Ya.getTreeNode(G);
+var Ea = /*#__PURE__*/ x.createContext(null), Da = "react-aria-focus-scope-restore", Oa = null;
+function ka(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useRef)([]), { parentNode: c } = (0, x.useContext)(Ea) || {}, l = (0, x.useMemo)(() => new Za({ scopeRef: s }), [s]);
+ B(() => {
+ let e = c || Qa.root;
+ if (Qa.getTreeNode(e.scopeRef) && Oa && !Ba(Oa, e.scopeRef)) {
+ let t = Qa.getTreeNode(Oa);
t && (e = t);
}
- e.addChild(l), Ya.addNode(l);
- }, [l, c]), V(() => {
- let e = Ya.getTreeNode(s);
+ e.addChild(l), Qa.addNode(l);
+ }, [l, c]), B(() => {
+ let e = Qa.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), V(() => {
+ }, [n]), B(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Ta, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Da, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Ta, n);
+ for (let e of t) e.removeEventListener(Da, n);
};
- }, [t]), Ha(s, r, n), Ma(s, n), Wa(s, r, n), Va(s, i), (0, x.useEffect)(() => {
- let e = Ft(L(s.current ? s.current[0] : void 0)), t = null;
- if (Pa(e, s.current)) {
- for (let n of Ya.traverse()) n.scopeRef && Pa(e, n.scopeRef.current) && (t = n);
- t === Ya.getTreeNode(s) && (G = t.scopeRef);
- }
- }, [s]), V(() => () => {
- let e = Ya.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === G || La(s, G)) && (!e || Ya.getTreeNode(e)) && (G = e), Ya.removeTreeNode(s);
+ }, [t]), Ga(s, r, n), Fa(s, n), qa(s, r, n), Wa(s, i), (0, x.useEffect)(() => {
+ let e = Lt(I(s.current ? s.current[0] : void 0)), t = null;
+ if (La(e, s.current)) {
+ for (let n of Qa.traverse()) n.scopeRef && La(e, n.scopeRef.current) && (t = n);
+ t === Qa.getTreeNode(s) && (Oa = t.scopeRef);
+ }
+ }, [s]), B(() => () => {
+ let e = Qa.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Oa || Ba(s, Oa)) && (!e || Qa.getTreeNode(e)) && (Oa = e), Qa.removeTreeNode(s);
}, [s]);
- let u = (0, x.useMemo)(() => Da(s), []), d = (0, x.useMemo)(() => ({
+ let u = (0, x.useMemo)(() => Aa(s), []), d = (0, x.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ x.createElement(wa.Provider, { value: d }, /*#__PURE__*/ x.createElement("span", {
+ return /*#__PURE__*/ x.createElement(Ea.Provider, { value: d }, /*#__PURE__*/ x.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -4352,154 +4355,154 @@ function Ea(e) {
ref: o
}));
}
-function Da(e) {
+function Aa(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ka(Oa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Lt(I(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ya(ja(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Pa(s, n) ? s : c;
+ l.currentNode = La(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ra(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Va(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ka(Oa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Lt(I(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ya(ja(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Pa(s, n) ? s : c;
+ l.currentNode = La(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ra(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Va(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ya(ja(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ra(o, !0), o;
+ return o && Va(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ya(ja(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ra(o, !0), o;
+ return o && Va(o, !0), o;
}
};
}
-function Oa(e) {
+function ja(e) {
return e[0].parentElement;
}
-function ka(e) {
- let t = Ya.getTreeNode(G);
+function Ma(e) {
+ let t = Qa.getTreeNode(Oa);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Aa(e) {
- if (!e.form) return Array.from(L(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Et(e);
+function Na(e) {
+ if (!e.form) return Array.from(I(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = Ot(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function ja(e) {
+function Pa(e) {
if (e.checked) return !0;
- let t = Aa(e);
+ let t = Na(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Ma(e, t) {
+function Fa(e, t) {
let n = (0, x.useRef)(void 0), r = (0, x.useRef)(void 0);
- V(() => {
+ B(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = L(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
- let n = Ft(a), r = e.current;
- if (!r || !Pa(n, r)) return;
- let i = Ka(Oa(r), { tabbable: !0 }, r);
+ let a = I(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ma(e) || t.isComposing) return;
+ let n = Lt(a), r = e.current;
+ if (!r || !La(n, r)) return;
+ let i = Ya(ja(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Ra(o, !0), o instanceof Et(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Va(o, !0), o instanceof Ot(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!G || La(G, e)) && Pa(z(t), e.current) ? (G = e, n.current = z(t)) : ka(e) && !Fa(z(t), e) ? n.current ? Ra(n.current) : G && G.current && Ba(G.current) : ka(e) && (n.current = z(t));
+ (!Oa || Ba(Oa, e)) && La(R(t), e.current) ? (Oa = e, n.current = R(t)) : Ma(e) && !Ra(R(t), e) ? n.current ? Va(n.current) : Oa && Oa.current && Ua(Oa.current) : Ma(e) && (n.current = R(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Jn(), i = (r === "virtual" || r === null) && ln() && cn(), o = Ft(a);
- if (!i && o && ka(e) && !Fa(o, e)) {
- G = e;
- let r = z(t);
- r && r.isConnected ? (n.current = r, Ra(n.current)) : G.current && Ba(G.current);
+ let r = Xn(), i = (r === "virtual" || r === null) && dn() && un(), o = Lt(a);
+ if (!i && o && Ma(e) && !Ra(o, e)) {
+ Oa = e;
+ let r = R(t);
+ r && r.isConnected ? (n.current = r, Va(n.current)) : Oa.current && Ua(Oa.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), V(() => () => {
+ }, [e, t]), B(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Na(e) {
- return Fa(e);
+function Ia(e) {
+ return Ra(e);
}
-function Pa(e, t) {
- return !e || !t ? !1 : t.some((t) => R(t, e));
+function La(e, t) {
+ return !e || !t ? !1 : t.some((t) => L(t, e));
}
-function Fa(e, t = null) {
+function Ra(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Ya.traverse(Ya.getTreeNode(t))) if (n && Pa(e, n.current)) return !0;
+ for (let { scopeRef: n } of Qa.traverse(Qa.getTreeNode(t))) if (n && La(e, n.current)) return !0;
return !1;
}
-function Ia(e) {
- return Fa(e, G);
+function za(e) {
+ return Ra(e, Oa);
}
-function La(e, t) {
- let n = Ya.getTreeNode(t)?.parent;
+function Ba(e, t) {
+ let n = Qa.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ra(e, t = !1) {
+function Va(e, t = !1) {
if (e != null && !t) try {
- ir(e);
+ or(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function za(e, t = !0) {
- let n = e[0].previousElementSibling, r = Oa(e), i = Ka(r, { tabbable: t }, e);
+function Ha(e, t = !0) {
+ let n = e[0].previousElementSibling, r = ja(e), i = Ya(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Oa(e), i = Ka(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = ja(e), i = Ya(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Ba(e, t = !0) {
- Ra(za(e, t));
+function Ua(e, t = !0) {
+ Va(Ha(e, t));
}
-function Va(e, t) {
+function Wa(e, t) {
let n = x.useRef(t);
(0, x.useEffect)(() => {
- n.current && (G = e, !Pa(Ft(L(e.current ? e.current[0] : void 0)), G.current) && e.current && Ba(e.current)), n.current = !1;
+ n.current && (Oa = e, !La(Lt(I(e.current ? e.current[0] : void 0)), Oa.current) && e.current && Ua(e.current)), n.current = !1;
}, [e]);
}
-function Ha(e, t, n) {
- V(() => {
+function Ga(e, t, n) {
+ B(() => {
if (t || n) return;
- let r = e.current, i = L(r ? r[0] : void 0), a = (t) => {
- let n = z(t);
- Pa(n, e.current) ? G = e : Na(n) || (G = null);
+ let r = e.current, i = I(r ? r[0] : void 0), a = (t) => {
+ let n = R(t);
+ La(n, e.current) ? Oa = e : Ia(n) || (Oa = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -4510,43 +4513,43 @@ function Ha(e, t, n) {
n
]);
}
-function Ua(e) {
- let t = Ya.getTreeNode(G);
+function Ka(e) {
+ let t = Qa.getTreeNode(Oa);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Wa(e, t, n) {
- let r = (0, x.useRef)(typeof document < "u" ? Ft(L(e.current ? e.current[0] : void 0)) : null);
- V(() => {
- let r = e.current, i = L(r ? r[0] : void 0);
+function qa(e, t, n) {
+ let r = (0, x.useRef)(typeof document < "u" ? Lt(I(e.current ? e.current[0] : void 0)) : null);
+ B(() => {
+ let r = e.current, i = I(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!G || La(G, e)) && Pa(Ft(i), e.current) && (G = e);
+ (!Oa || Ba(Oa, e)) && La(Lt(i), e.current) && (Oa = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), V(() => {
- let r = L(e.current ? e.current[0] : void 0);
+ }, [e, n]), B(() => {
+ let r = I(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ma(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Fa(n, e) || !Ua(e)) return;
- let i = Ya.getTreeNode(e);
+ if (!Ra(n, e) || !Ka(e)) return;
+ let i = Qa.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = Ka(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Ya(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Fa(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Ra(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Fa(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ra(s, !0) : Na(a) ? Ra(a, !0) : n.blur();
+ while (Ra(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Va(s, !0) : Ia(a) ? Va(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4556,31 +4559,31 @@ function Wa(e, t, n) {
e,
t,
n
- ]), V(() => {
- let n = L(e.current ? e.current[0] : void 0);
+ ]), B(() => {
+ let n = I(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Ya.getTreeNode(e);
+ let i = Qa.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Ya.getTreeNode(e);
+ let r = Qa.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = Ft(n);
- if (t && i && (a && Fa(a, e) || a === n.body && Ua(e))) {
- let t = Ya.clone();
+ let i = r.nodeToRestore, a = Lt(n);
+ if (t && i && (a && Ra(a, e) || a === n.body && Ka(e))) {
+ let t = Qa.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Ga(n.nodeToRestore);
+ Ja(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Ya.getTreeNode(n.scopeRef)) {
- let e = za(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Qa.getTreeNode(n.scopeRef)) {
+ let e = Ha(n.scopeRef.current, !0);
if (e) {
- Ga(e);
+ Ja(e);
return;
}
}
@@ -4592,21 +4595,21 @@ function Wa(e, t, n) {
};
}, [e, t]);
}
-function Ga(e) {
- e.dispatchEvent(new CustomEvent(Ta, {
+function Ja(e) {
+ e.dispatchEvent(new CustomEvent(Da, {
bubbles: !0,
cancelable: !0
- })) && Ra(e);
+ })) && Va(e);
}
-function Ka(e, t, n) {
- let r = t?.tabbable ? Gt : Wt, i = L(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ca(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return R(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ja(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Pa(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Ya(e, t, n) {
+ let r = t?.tabbable ? qt : Kt, i = I(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ta(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return L(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Pa(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || La(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var qa = class e {
+var Xa = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ja({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Za({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4617,7 +4620,7 @@ var qa = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new Ja({ scopeRef: e });
+ let i = new Za({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4628,7 +4631,7 @@ var qa = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Pa(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && La(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -4640,7 +4643,7 @@ var qa = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, Ja = class {
+}, Za = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4650,13 +4653,13 @@ var qa = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Ya = new qa(), Xa = 7e3, Za = null;
-function Qa(e, t = "assertive", n = Xa) {
- Za ? Za.announce(e, t, n) : (Za = new $a(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Za.announce(e, t, n) : setTimeout(() => {
- Za?.isAttached() && Za?.announce(e, t, n);
+}, Qa = new Xa(), $a = 7e3, eo = null;
+function to(e, t = "assertive", n = $a) {
+ eo ? eo.announce(e, t, n) : (eo = new no(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? eo.announce(e, t, n) : setTimeout(() => {
+ eo?.isAttached() && eo?.announce(e, t, n);
}, 100));
}
-var $a = class {
+var no = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -4681,7 +4684,7 @@ var $a = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Xa) {
+ announce(e, t = "assertive", n = $a) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -4694,46 +4697,46 @@ var $a = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function eo(e, t) {
+function ro(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function to(e, t) {
+function io(e, t) {
let n = e;
- for (eo(n, t) && (n = n.parentElement); n && !eo(n, t);) n = n.parentElement;
+ for (ro(n, t) && (n = n.parentElement); n && !ro(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function no(e, t) {
+function ao(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (eo(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (ro(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function ro(e, t, n = {}) {
- e !== t && io(e, t, t.getBoundingClientRect(), n);
-}
-function io(e, t, n, r = {}) {
- let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, M = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - te, N = e === d ? 0 : e.offsetHeight - e.clientHeight - M, re = p + (f ? 0 : T) + x, P = m - (f ? 0 : E) - S - N, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
- an() && sn() || u.direction === "ltr" ? ae -= ne : u.direction === "rtl" && (ie += ne);
- let oe = k < re || A > P, se = ee < ie || j > ae;
- if (oe && i === "start") o += k - re;
- else if (oe && i === "center") o += (k + A) / 2 - (re + P) / 2;
- else if (oe && i === "end") o += A - P;
- else if (oe && i === "nearest") {
- let e = k - re, t = A - P;
+function oo(e, t, n = {}) {
+ e !== t && so(e, t, t.getBoundingClientRect(), n);
+}
+function so(e, t, n, r = {}) {
+ let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, M = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - te, N = e === d ? 0 : e.offsetHeight - e.clientHeight - M, re = p + (f ? 0 : T) + x, ie = m - (f ? 0 : E) - S - N, ae = h + (f ? 0 : D) + C, oe = g - (f ? 0 : O) - w;
+ sn() && ln() || u.direction === "ltr" ? oe -= ne : u.direction === "rtl" && (ae += ne);
+ let se = k < re || A > ie, ce = ee < ae || j > oe;
+ if (se && i === "start") o += k - re;
+ else if (se && i === "center") o += (k + A) / 2 - (re + ie) / 2;
+ else if (se && i === "end") o += A - ie;
+ else if (se && i === "nearest") {
+ let e = k - re, t = A - ie;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (se && a === "start") s += ee - ie;
- else if (se && a === "center") s += (ee + j) / 2 - (ie + ae) / 2;
- else if (se && a === "end") s += j - ae;
- else if (se && a === "nearest") {
- let e = ee - ie, t = j - ae;
+ if (ce && a === "start") s += ee - ae;
+ else if (ce && a === "center") s += (ee + j) / 2 - (ae + oe) / 2;
+ else if (ce && a === "end") s += j - oe;
+ else if (ce && a === "nearest") {
+ let e = ee - ae, t = j - oe;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -4741,7 +4744,7 @@ function io(e, t, n, r = {}) {
top: o
});
}
-function ao(e, t = {}) {
+function co(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4754,47 +4757,47 @@ function ao(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = no(e, !0);
- for (let t of i) ro(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = ao(e, !0);
+ for (let t of i) oo(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? no(n, !0) : [];
- for (let e of i) ro(e, n, {
+ i = n ? ao(n, !0) : [];
+ for (let e of i) oo(e, n, {
block: "center",
inline: "center"
});
- for (let t of no(e, !0)) ro(t, e);
+ for (let t of ao(e, !0)) oo(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var oo = 0, so = /* @__PURE__ */ new Map();
-function co(e) {
+var lo = 0, uo = /* @__PURE__ */ new Map();
+function fo(e) {
let [t, n] = (0, x.useState)();
- return V(() => {
+ return B(() => {
if (!e) return;
- let t = so.get(e);
+ let t = uo.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${oo++}`;
+ let r = `react-aria-description-${lo++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, so.set(e, t);
+ }, uo.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), so.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), uo.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function lo(e, t, n) {
- let r = yi((e) => {
+function po(e, t, n) {
+ let r = xi((e) => {
n && !e.defaultPrevented && n(t);
});
(0, x.useEffect)(() => {
@@ -4806,21 +4809,21 @@ function lo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function uo(e, t, n) {
+function mo(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- V(() => {
+ B(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(po(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(go(n.current));
}
});
- let a = (0, x.useRef)(!1), o = yi(() => {
+ let a = (0, x.useRef)(!1), o = xi(() => {
a.current || t.resetValidation();
- }), s = yi((e) => {
+ }), s = xi((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && mo(r) === n.current && (i ? i() : n.current?.focus(), Yn("keyboard")), e.preventDefault();
- }), c = yi(() => {
+ !e.defaultPrevented && n && r && _o(r) === n.current && (i ? i() : n.current?.focus(), Zn("keyboard")), e.preventDefault();
+ }), c = xi(() => {
t.commitValidation();
});
(0, x.useEffect)(() => {
@@ -4828,13 +4831,13 @@ function uo(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && z(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && R(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function fo(e) {
+function ho(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4850,14 +4853,14 @@ function fo(e) {
valid: t.valid
};
}
-function po(e) {
+function go(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: fo(e),
+ validationDetails: ho(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function mo(e) {
+function _o(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4866,16 +4869,16 @@ function mo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function ho(e = !0) {
+function vo(e = !0) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return V(() => {
+ return B(() => {
r.current || n(!1);
}, []), [i, t];
}
-function go(e = !0) {
- let t = dr(), [n, r] = ho(e);
+function yo(e = !0) {
+ let t = pr(), [n, r] = vo(e);
return {
id: r ? t : void 0,
ref: n
@@ -4883,7 +4886,7 @@ function go(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var _o = {
+var bo = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4895,18 +4898,18 @@ var _o = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, vo = {
- ..._o,
+}, xo = {
+ ...bo,
customError: !0,
valid: !1
-}, yo = {
+}, So = {
isInvalid: !1,
- validationDetails: _o,
+ validationDetails: bo,
validationErrors: []
-}, bo = (0, x.createContext)({}), xo = "__reactAriaFormValidationState";
-function So(e) {
+}, Co = (0, x.createContext)({}), wo = "__reactAriaFormValidationState";
+function To(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[xo];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[wo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4915,71 +4918,71 @@ function So(e) {
commitValidation: a
};
}
- return Co(e);
+ return Eo(e);
}
-function Co(e) {
+function Eo(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: vo
- }, l = (0, x.useMemo)(() => !o || i == null ? null : Eo(To(o, i)), [o, i]);
+ validationDetails: xo
+ }, l = (0, x.useMemo)(() => !o || i == null ? null : ko(Oo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, x.useContext)(bo), d = (0, x.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => wo(u[e])) : wo(u[r]) : [], [u, r]), [f, p] = (0, x.useState)(u), [m, h] = (0, x.useState)(!1);
+ let u = (0, x.useContext)(Co), d = (0, x.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Do(u[e])) : Do(u[r]) : [], [u, r]), [f, p] = (0, x.useState)(u), [m, h] = (0, x.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, x.useMemo)(() => Eo(m ? [] : d), [m, d]), _ = (0, x.useRef)(yo), [v, y] = (0, x.useState)(yo), b = (0, x.useRef)(yo), S = () => {
+ let g = (0, x.useMemo)(() => ko(m ? [] : d), [m, d]), _ = (0, x.useRef)(So), [v, y] = (0, x.useState)(So), b = (0, x.useRef)(So), S = () => {
if (!C) return;
w(!1);
let e = l || a || _.current;
- Do(e, b.current) || (b.current = e, y(e));
+ Ao(e, b.current) || (b.current = e, y(e));
}, [C, w] = (0, x.useState)(!1);
return (0, x.useEffect)(S), {
- realtimeValidation: c || g || l || a || yo,
+ realtimeValidation: c || g || l || a || So,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !Do(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Ao(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = yo;
- Do(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = So;
+ Ao(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function wo(e) {
+function Do(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function To(e, t) {
+function Oo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return wo(n);
+ if (n && typeof n != "boolean") return Do(n);
}
return [];
}
-function Eo(e) {
+function ko(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: vo
+ validationDetails: xo
} : null;
}
-function Do(e, t) {
+function Ao(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function Oo(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = So({
+function jo(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = To({
...e,
value: t.isSelected
}), { isInvalid: S, validationErrors: C, validationDetails: w } = b.displayValidation;
- uo(e, b, n);
+ mo(e, b, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(z(e).checked);
- }, { pressProps: E, isPressed: D } = pa({
+ e.stopPropagation(), t.setSelected(R(e).checked);
+ }, { pressProps: E, isPressed: D } = ha({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -4987,7 +4990,7 @@ function Oo(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, x.useState)(!1), { pressProps: A } = pa({
+ }), [O, k] = (0, x.useState)(!1), { pressProps: A } = ha({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -5016,16 +5019,16 @@ function Oo(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [xo]: i } = e, { commitValidation: a } = i || b;
+ let { [wo]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: ee } = Lr(e, n), j = H(E, ee), te = U(e, { labelable: !0 });
- lo(n, t.defaultSelected, t.setSelected);
- let M = go(), ne = go();
+ }), { focusableProps: ee } = zr(e, n), j = V(E, ee), te = H(e, { labelable: !0 });
+ po(n, t.defaultSelected, t.setSelected);
+ let M = yo(), ne = yo();
return {
- labelProps: H(A, { onClick: (e) => e.preventDefault() }),
- inputProps: H(te, {
+ labelProps: V(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: V(te, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -5059,12 +5062,12 @@ function Oo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function ko(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = Oo(e, t, n), { isIndeterminate: m } = e;
+function Mo(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = jo(e, t, n), { isIndeterminate: m } = e;
return (0, x.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: H(r, (0, x.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: V(r, (0, x.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -5079,18 +5082,18 @@ function ko(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Ao = /* @__PURE__ */ new WeakMap();
+var No = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function jo(e) {
+function Po(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = dr(t);
- let o = dr(), s = {};
+ t = pr(t);
+ let o = pr(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = xi({
+ let c = Ci({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -5102,19 +5105,19 @@ function jo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Mo(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = jo(e), s = pr([
+function Fo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Po(e), s = hr([
!!t,
!!n,
r,
i
- ]), c = pr([
+ ]), c = hr([
!!t,
!!n,
r,
i
]);
- return o = H(o, { "aria-describedby": [
+ return o = V(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -5127,26 +5130,26 @@ function Mo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function No(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, x.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = sa(), c = (0, x.useCallback)((e) => {
- R(e.currentTarget, z(e)) && a.current.isFocusWithin && !R(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function Io(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, x.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = la(), c = (0, x.useCallback)((e) => {
+ L(e.currentTarget, R(e)) && a.current.isFocusWithin && !L(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Yt(c), u = (0, x.useCallback)((e) => {
- if (!R(e.currentTarget, z(e))) return;
- let t = z(e), n = L(t), s = Ft(n);
+ ]), l = Zt(c), u = (0, x.useCallback)((e) => {
+ if (!L(e.currentTarget, R(e))) return;
+ let t = R(e), n = I(t), s = Lt(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = z(e);
- if (a.current.isFocusWithin && !R(t, r)) {
+ let r = R(e);
+ if (a.current.isFocusWithin && !L(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Jt(e, t);
- let i = qt(e);
+ Xt(e, t);
+ let i = Yt(e);
c(i);
}
}, { capture: !0 });
@@ -5168,14 +5171,14 @@ function No(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Po = typeof document < "u" ? x.useInsertionEffect ?? x.useLayoutEffect : () => {};
-function Fo(e, t, n) {
+var Lo = typeof document < "u" ? x.useInsertionEffect ?? x.useLayoutEffect : () => {};
+function Ro(e, t, n) {
let [r, i] = (0, x.useState)(e || t), a = (0, x.useRef)(r), o = (0, x.useRef)(e !== void 0), s = e !== void 0;
(0, x.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Po(() => {
+ Lo(() => {
a.current = c;
});
let [, l] = (0, x.useReducer)(() => ({}), {});
@@ -5186,8 +5189,8 @@ function Fo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function Io(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Fo(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, x.useState)(n);
+function W(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Ro(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, x.useState)(n);
function a(e) {
t || r(e);
}
@@ -5203,26 +5206,26 @@ function Io(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function K(e, t, n) {
- let r = Io({
+function zo(e, t, n) {
+ let r = W({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Ao.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = No.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = So({
+ let { realtimeValidation: l } = To({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, x.useRef)(yo), d = () => {
+ }), u = (0, x.useRef)(So), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, x.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ko({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Mo({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5230,7 +5233,7 @@ function K(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [xo]: {
+ [wo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5254,12 +5257,12 @@ function K(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Lo(e, t = -Infinity, n = Infinity) {
+function Bo(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Ro = {
+var Vo = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5271,40 +5274,40 @@ var Ro = {
width: "1px",
whiteSpace: "nowrap"
};
-function zo(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, x.useState)(!1), { focusWithinProps: a } = No({
+function Ho(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, x.useState)(!1), { focusWithinProps: a } = Io({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, x.useMemo)(() => r ? t : t ? {
- ...Ro,
+ ...Vo,
...t
- } : Ro, [r]);
+ } : Vo, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Bo(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = zo(e);
- return /*#__PURE__*/ x.createElement(n, H(a, o), t);
+function Uo(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Ho(e);
+ return /*#__PURE__*/ x.createElement(n, V(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Vo(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Fo(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Lr(e, t), d = So({
+function Wo(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Ro(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = zr(e, t), d = To({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Mo({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Fo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = U(e, { labelable: !0 }), b = {
+ }), y = H(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [S] = (0, x.useState)(c);
- return lo(t, e.defaultValue ?? S, l), uo(e, d, t), {
+ return po(t, e.defaultValue ?? S, l), mo(e, d, t), {
labelProps: h,
- inputProps: H(y, n === "input" ? b : void 0, {
+ inputProps: V(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -5316,7 +5319,7 @@ function Vo(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(z(e).value),
+ onChange: (e) => l(R(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -5349,42 +5352,42 @@ function Vo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Ho = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Uo(e) {
+var Go = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Ko(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Wo = /* @__PURE__ */ new WeakMap(), Go = [];
-function Ko(e, t) {
- let n = Et(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Ho, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var qo = /* @__PURE__ */ new WeakMap(), G = [];
+function Jo(e, t) {
+ let n = Ot(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Go, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (Pt()) {
+ if (It()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; At(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Mt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (R(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (L(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Ca(L(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Ta(I(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = Wo.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Wo.set(e, t + 1));
+ let t = qo.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), qo.set(e, t + 1));
};
- Go.length && Go[Go.length - 1].disconnect(), d(i);
+ G.length && G[G.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Pt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ko(e) ? o.add(e) : e instanceof Element && d(e);
+ if (It()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5397,11 +5400,11 @@ function Ko(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (Pt()) for (let e of u) {
+ if (It()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Pt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ko(e) ? o.add(e) : e instanceof Element && d(e);
+ if (It()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5427,59 +5430,59 @@ function Ko(e, t) {
p.disconnect();
}
};
- return Go.push(h), () => {
- if (p.disconnect(), Pt()) for (let e of m) e.disconnect();
+ return G.push(h), () => {
+ if (p.disconnect(), It()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Wo.get(e);
- t != null && (t === 1 ? (l(e, !1), Wo.delete(e)) : Wo.set(e, t - 1));
+ let t = qo.get(e);
+ t != null && (t === 1 ? (l(e, !1), qo.delete(e)) : qo.set(e, t - 1));
}
- h === Go[Go.length - 1] ? (Go.pop(), Go.length && Go[Go.length - 1].observe()) : Go.splice(Go.indexOf(h), 1);
+ h === G[G.length - 1] ? (G.pop(), G.length && G[G.length - 1].observe()) : G.splice(G.indexOf(h), 1);
};
}
-function qo(e) {
- let t = Go[Go.length - 1];
+function Yo(e) {
+ let t = G[G.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Jo = /* @__PURE__ */ new WeakMap();
-function Yo(e) {
+var Xo = /* @__PURE__ */ new WeakMap();
+function Zo(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Xo(e, t) {
- let n = Jo.get(e);
+function Qo(e, t) {
+ let n = Xo.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Yo(t)}`;
+ return `${n.id}-option-${Zo(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Zo(e) {
- return on() ? e.altKey : e.ctrlKey;
+function $o(e) {
+ return cn() ? e.altKey : e.ctrlKey;
}
-function Qo(e, t) {
+function es(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var $o = /* @__PURE__ */ new WeakMap();
-function es(e) {
- let t = dr();
- return $o.set(e, t), t;
+var ts = /* @__PURE__ */ new WeakMap();
+function ns(e) {
+ let t = pr();
+ return ts.set(e, t), t;
}
-function ts(e) {
- return $o.get(e);
+function rs(e) {
+ return ts.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var ns = class {
+var is = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Qo(this.ref, e);
+ let n = e == null ? null : es(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5505,12 +5508,12 @@ var ns = class {
height: e?.clientHeight ?? 0
};
}
-}, rs = class {
+}, as = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new ns(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new ns(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new is(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new is(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5550,14 +5553,14 @@ var ns = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Qo(this.ref, e);
+ let t = this.getNextKey(e), n = es(this.ref, e);
if (t != null) {
- let e = Qo(this.ref, t);
+ let e = es(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Qo(this.ref, r);
+ let e = es(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5591,7 +5594,7 @@ var ns = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !eo(t)) return this.getFirstKey();
+ if (t && !ro(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5606,7 +5609,7 @@ var ns = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !eo(t)) return this.getLastKey();
+ if (t && !ro(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -5629,184 +5632,184 @@ var ns = class {
}
return null;
}
-}, is = {};
-is = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, os = {};
+os = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var as = {};
-as = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var ss = {};
+ss = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var os = {};
-os = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var cs = {};
+cs = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var ss = {};
-ss = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var ls = {};
+ls = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var cs = {};
-cs = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var us = {};
+us = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var ls = {};
-ls = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var ds = {};
+ds = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var us = {};
-us = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var fs = {};
+fs = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ds = {};
-ds = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var ps = {};
+ps = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var fs = {};
-fs = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var ms = {};
+ms = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var ps = {};
-ps = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var hs = {};
+hs = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var ms = {};
-ms = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var gs = {};
+gs = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var hs = {};
-hs = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var _s = {};
+_s = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var gs = {};
-gs = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var vs = {};
+vs = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var _s = {};
-_s = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var ys = {};
+ys = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var vs = {};
-vs = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var bs = {};
+bs = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var ys = {};
-ys = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var xs = {};
+xs = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var bs = {};
-bs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Ss = {};
+Ss = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var xs = {};
-xs = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Cs = {};
+Cs = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Ss = {};
-Ss = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var ws = {};
+ws = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Cs = {};
-Cs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Ts = {};
+Ts = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var ws = {};
-ws = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Es = {};
+Es = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Ts = {};
-Ts = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ds = {};
+Ds = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Es = {};
-Es = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Os = {};
+Os = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Ds = {};
-Ds = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var ks = {};
+ks = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var Os = {};
-Os = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var As = {};
+As = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var ks = {};
-ks = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var js = {};
+js = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var As = {};
-As = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Ms = {};
+Ms = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var js = {};
-js = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Ns = {};
+Ns = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var Ms = {};
-Ms = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Ps = {};
+Ps = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var Ns = {};
-Ns = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Fs = {};
+Fs = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var Ps = {};
-Ps = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Is = {};
+Is = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var Fs = {};
-Fs = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Ls = {};
+Ls = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Is = {};
-Is = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Rs = {};
+Rs = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Ls = {};
-Ls = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var zs = {};
+zs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Rs = {};
-Rs = {
- "ar-AE": is,
- "bg-BG": as,
- "cs-CZ": os,
- "da-DK": ss,
- "de-DE": cs,
- "el-GR": ls,
- "en-US": us,
- "es-ES": ds,
- "et-EE": fs,
- "fi-FI": ps,
- "fr-FR": ms,
- "he-IL": hs,
- "hr-HR": gs,
- "hu-HU": _s,
- "it-IT": vs,
- "ja-JP": ys,
- "ko-KR": bs,
- "lt-LT": xs,
- "lv-LV": Ss,
- "nb-NO": Cs,
- "nl-NL": ws,
- "pl-PL": Ts,
- "pt-BR": Es,
- "pt-PT": Ds,
- "ro-RO": Os,
- "ru-RU": ks,
- "sk-SK": As,
- "sl-SI": js,
- "sr-SP": Ms,
- "sv-SE": Ns,
- "tr-TR": Ps,
- "uk-UA": Fs,
- "zh-CN": Is,
- "zh-TW": Ls
+var Bs = {};
+Bs = {
+ "ar-AE": os,
+ "bg-BG": ss,
+ "cs-CZ": cs,
+ "da-DK": ls,
+ "de-DE": us,
+ "el-GR": ds,
+ "en-US": fs,
+ "es-ES": ps,
+ "et-EE": ms,
+ "fi-FI": hs,
+ "fr-FR": gs,
+ "he-IL": _s,
+ "hr-HR": vs,
+ "hu-HU": ys,
+ "it-IT": bs,
+ "ja-JP": xs,
+ "ko-KR": Ss,
+ "lt-LT": Cs,
+ "lv-LV": ws,
+ "nb-NO": Ts,
+ "nl-NL": Es,
+ "pl-PL": Ds,
+ "pt-BR": Os,
+ "pt-PT": ks,
+ "ro-RO": As,
+ "ru-RU": js,
+ "sk-SK": Ms,
+ "sl-SI": Ns,
+ "sr-SP": Ps,
+ "sv-SE": Fs,
+ "tr-TR": Is,
+ "uk-UA": Ls,
+ "zh-CN": Rs,
+ "zh-TW": zs
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var zs = 500;
-function Bs(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = zs, accessibilityDescription: s } = e, c = (0, x.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = sa(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = pa({
+var Vs = 500;
+function Hs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Vs, accessibilityDescription: s } = e, c = (0, x.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = la(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ha({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5814,12 +5817,12 @@ function Bs(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), L(e.target).activeElement !== e.target && xt(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), I(e.target).activeElement !== e.target && Ct(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = Et(e.target);
+ let t = Ot(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5834,12 +5837,12 @@ function Bs(e) {
});
}
});
- return { longPressProps: H(f, co(a && !t ? s : void 0)) };
+ return { longPressProps: V(f, fo(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Vs(e) {
- let { onContextMenu: t } = e, n = (0, x.useRef)(!1), { longPressProps: r } = Bs({
+function Us(e) {
+ let { onContextMenu: t } = e, n = (0, x.useRef)(!1), { longPressProps: r } = Hs({
onLongPressStart() {
n.current = !1;
},
@@ -5851,7 +5854,7 @@ function Vs(e) {
});
}
});
- return t ? { contextMenuProps: H(an() ? r : {}, {
+ return t ? { contextMenuProps: V(sn() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5862,7 +5865,7 @@ function Vs(e) {
});
},
onKeyDown(e) {
- if (tn() && e.ctrlKey && e.key === "Enter") {
+ if (rn() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5882,13 +5885,13 @@ function Vs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Hs = /* @__PURE__ */ new WeakMap();
-function Us(e) {
+var Ws = /* @__PURE__ */ new WeakMap();
+function Gs(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, x.useEffect)(() => !n || r === null ? void 0 : jt(It(t.current), "scroll", (e) => {
- let n = z(e);
- if (!t.current || n instanceof Node && !R(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Hs.get(t.current);
+ (0, x.useEffect)(() => !n || r === null ? void 0 : Nt(Rt(t.current), "scroll", (e) => {
+ let n = R(e);
+ if (!t.current || n instanceof Node && !L(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Ws.get(t.current);
i && i();
}, !0), [
n,
@@ -5898,14 +5901,14 @@ function Us(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Ws(e, t, n) {
+function Ks(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, x.useEffect)(() => {
- n && n.current && Hs.set(n.current, t.close);
+ n && n.current && Ws.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = dr();
+ let o = pr();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5918,14 +5921,14 @@ function Ws(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Gs(e) {
+function qs(e) {
return e && e.__esModule ? e.default : e;
}
-function Ks(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = dr(), { triggerProps: s, overlayProps: c } = Ws({ type: r }, t, n), l = (e, n, r = "first") => {
+function Js(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = pr(), { triggerProps: s, overlayProps: c } = Ks({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Mr({
+ }, { keyboardProps: u } = Pr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5937,7 +5940,7 @@ function Ks(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Ki(Gs(Rs), "@react-aria/menu"), { longPressProps: f } = Bs({
+ }), d = Ji(qs(Bs), "@react-aria/menu"), { longPressProps: f } = Hs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5949,14 +5952,14 @@ function Ks(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Ct(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (xt(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Ct(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Vs({ onContextMenu(e) {
+ let { contextMenuProps: m } = Us({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -5966,7 +5969,7 @@ function Ks(e, t, n) {
(0, x.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && z(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && R(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -6001,8 +6004,8 @@ function Ks(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var qs = 1e3;
-function Js(e) {
+var Ys = 1e3;
+function Xs(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, x.useRef)({
search: "",
timeout: void 0
@@ -6021,12 +6024,12 @@ function Js(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, qs);
+ }, Ys);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Ys(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !R(e.currentTarget, z(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Zs(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !L(e.currentTarget, R(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -6037,34 +6040,34 @@ function Js(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, qs);
+ }, Ys);
}
} : void 0
} };
}
-function Ys(e) {
+function Zs(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Xs(e, t) {
+function Qs(e, t) {
let n = (0, x.useRef)(!0), r = (0, x.useRef)(null);
- V(() => (n.current = !0, () => {
+ B(() => (n.current = !0, () => {
n.current = !1;
- }), []), V(() => {
+ }), []), B(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Zs(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Mi(), _ = mn(), v = (e, n, i) => {
+function $s(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Pi(), _ = gn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Zo(e)) {
- (0, Kr.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !$o(e)) {
+ (0, Jr.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Qo(r, n), o = t.getItemProps(n);
+ let a = es(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -6076,7 +6079,7 @@ function Zs(e) {
t.extendSelection(n);
return;
}
- if (l && !Zo(e)) {
+ if (l && !$o(e)) {
t.replaceSelection(n);
return;
}
@@ -6103,9 +6106,9 @@ function Zs(e) {
}, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, hi(e));
+ let r = n.getFirstKey(t.focusedKey, _i(e));
if (t.setFocusedKey(r), r != null) {
- if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (_i(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6137,9 +6140,9 @@ function Zs(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, hi(e));
+ let r = n.getLastKey(t.focusedKey, _i(e));
if (t.setFocusedKey(r), r != null) {
- if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (_i(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6176,12 +6179,12 @@ function Zs(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = Ka(r.current, { tabbable: !0 }), t, n;
+ let e = Ya(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = Ft();
- t && (!Lt(t) || i && !Gt(i)) && xt(t);
+ let i = Lt();
+ t && (!zt(t) || i && !qt(i)) && Ct(t);
}
return {
shouldContinuePropagation: !0,
@@ -6191,11 +6194,11 @@ function Zs(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [tn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [rn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [tn() ? e + "+Alt" : e + "+Control"]: t,
+ [rn() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: te } = Mr({
+ }), { keyboardProps: te } = Pr({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -6205,7 +6208,7 @@ function Zs(e) {
...j("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: M } = Mr({ shortcuts: {
+ }), { keyboardProps: M } = Pr({ shortcuts: {
...j("Home", S),
...j("End", T),
"Mod+A": O,
@@ -6216,7 +6219,7 @@ function Zs(e) {
top: 0,
left: 0
});
- bi(p, "scroll", () => {
+ Si(p, "scroll", () => {
ne.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -6224,11 +6227,11 @@ function Zs(e) {
});
let N = (e) => {
if (t.isFocused) {
- R(e.currentTarget, z(e)) || t.setFocused(!1);
+ L(e.currentTarget, R(e)) || t.setFocused(!1);
return;
}
- if (!R(e.currentTarget, z(e))) return;
- let i = Jn();
+ if (!L(e.currentTarget, R(e))) return;
+ let i = Xn();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6239,32 +6242,32 @@ function Zs(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = ne.current.top, p.current.scrollLeft = ne.current.left);
if (t.focusedKey != null && p.current) {
- let e = Qo(r, t.focusedKey);
- e instanceof HTMLElement && (!Lt(e) && !d && xt(e), (i === "keyboard" || h && i === "virtual") && ao(e, { containingElement: r.current }));
+ let e = es(r, t.focusedKey);
+ e instanceof HTMLElement && (!zt(e) && !d && Ct(e), (i === "keyboard" || h && i === "virtual") && co(e, { containingElement: r.current }));
}
}, re = (e) => {
- R(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, P = (0, x.useRef)(!1);
- bi(r, ui, d ? (e) => {
+ L(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, ie = (0, x.useRef)(!1);
+ Si(r, fi, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (P.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ie.current = !0);
} : void 0);
- let ie = n.getFirstKey?.() ?? null;
- Xs(() => {
- if (P.current) {
- if (ie == null) {
- let e = Ft();
- di(r.current), pi(e, null), t.collection.size > 0 && (P.current = !1);
- } else t.setFocusedKey(ie), P.current = !1;
- }
- }, [ie, t.collection.size]), Xs(() => {
- t.collection.size > 0 && (P.current = !1);
- }, [t.focusedKey]), bi(r, li, d ? (e) => {
+ let ae = n.getFirstKey?.() ?? null;
+ Qs(() => {
+ if (ie.current) {
+ if (ae == null) {
+ let e = Lt();
+ pi(r.current), hi(e, null), t.collection.size > 0 && (ie.current = !1);
+ } else t.setFocusedKey(ae), ie.current = !1;
+ }
+ }, [ae, t.collection.size]), Qs(() => {
+ t.collection.size > 0 && (ie.current = !1);
+ }, [t.focusedKey]), Si(r, di, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ae = (0, x.useRef)(i), oe = (0, x.useRef)(!1);
+ let oe = (0, x.useRef)(i), se = (0, x.useRef)(!1);
(0, x.useEffect)(() => {
- if (ae.current) {
+ if (oe.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -6274,53 +6277,53 @@ function Zs(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ir(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && or(r.current), t.collection.size > 0 && (oe.current = !1, se.current = !0);
}
});
- let se = (0, x.useRef)(t.focusedKey), ce = (0, x.useRef)(null);
+ let ce = (0, x.useRef)(t.focusedKey), le = (0, x.useRef)(null);
(0, x.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
- let e = Jn(), n = Qo(r, t.focusedKey);
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ce.current || se.current) && p.current && r.current) {
+ let e = Xn(), n = es(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
- p.current && (ro(p.current, n), e !== "virtual" && ao(n, { containingElement: r.current }));
+ (e === "keyboard" || se.current) && (le.current && cancelAnimationFrame(le.current), le.current = requestAnimationFrame(() => {
+ p.current && (oo(p.current, n), e !== "virtual" && co(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && ir(r.current), se.current = t.focusedKey, oe.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ce.current != null && r.current && or(r.current), ce.current = t.focusedKey, se.current = !1;
}), (0, x.useEffect)(() => () => {
- ce.current && cancelAnimationFrame(ce.current);
- }, []), bi(r, "react-aria-focus-scope-restore", (e) => {
+ le.current && cancelAnimationFrame(le.current);
+ }, []), Si(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let le = {
- ...H(M, te),
+ let ue = {
+ ...V(M, te),
onFocus: N,
onBlur: re,
onMouseDown(e) {
- p.current === z(e) && e.preventDefault();
+ p.current === R(e) && e.preventDefault();
}
- }, { typeSelectProps: ue } = Js({
+ }, { typeSelectProps: de } = Xs({
keyboardDelegate: n,
selectionManager: t
});
- u || (le = H(ue, le));
- let de;
- d || (de = t.focusedKey == null ? 0 : -1);
- let fe = es(t.collection);
- return { collectionProps: H(le, {
- tabIndex: de,
- "data-collection": fe
+ u || (ue = V(de, ue));
+ let fe;
+ d || (fe = t.focusedKey == null ? 0 : -1);
+ let pe = ns(t.collection);
+ return { collectionProps: V(ue, {
+ tabIndex: fe,
+ "data-collection": pe
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Qs(e, t) {
+function ec(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function $s(e) {
- return ec(e, 0);
+function tc(e) {
+ return nc(e, 0);
}
-function ec(e, t) {
+function nc(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6328,96 +6331,96 @@ function ec(e, t) {
n++;
}
}
-function tc(e, t, n) {
+function rc(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...nc(e, t), t], i = [...nc(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...ic(e, t), t], i = [...ic(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function nc(e, t) {
+function ic(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var rc = /* @__PURE__ */ new WeakMap();
-function ic(e) {
- let t = rc.get(e);
+var ac = /* @__PURE__ */ new WeakMap();
+function oc(e) {
+ let t = ac.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Qs(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(ec(i, e)) : i.type === "item" && n++;
};
- return r(e), rc.set(e, n), n;
+ return r(e), ac.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ac = /* @__PURE__ */ new Map();
-function oc(e) {
- let { locale: t } = Mi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ac.has(n)) return ac.get(n);
+var sc = /* @__PURE__ */ new Map();
+function cc(e) {
+ let { locale: t } = Pi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (sc.has(n)) return sc.get(n);
let r = new Intl.Collator(t, e);
- return ac.set(n, r), r;
+ return sc.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function sc({ children: e }) {
+function lc({ children: e }) {
let t = (0, x.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ x.createElement(oa.Provider, { value: t }, e);
+ return /*#__PURE__*/ x.createElement(ca.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var cc = /*#__PURE__*/ (0, x.createContext)({});
-function lc(e) {
- let { getContainer: t } = e, { getContainer: n } = uc();
- return /*#__PURE__*/ x.createElement(cc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var uc = /*#__PURE__*/ (0, x.createContext)({});
+function dc(e) {
+ let { getContainer: t } = e, { getContainer: n } = fc();
+ return /*#__PURE__*/ x.createElement(uc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function uc() {
- return (0, x.useContext)(cc) ?? {};
+function fc() {
+ return (0, x.useContext)(uc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var dc = /*#__PURE__*/ x.createContext(null);
-function fc(e) {
- let t = An(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, x.useState)(!1), o = (0, x.useMemo)(() => ({
+var pc = /*#__PURE__*/ x.createContext(null);
+function mc(e) {
+ let t = Mn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, x.useState)(!1), o = (0, x.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = uc();
+ }), [i, a]), { getContainer: s } = fc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ x.createElement(Ea, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ x.createElement(ka, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ x.createElement(dc.Provider, { value: o }, /*#__PURE__*/ x.createElement(sc, null, /*#__PURE__*/ x.createElement(Fr.Provider, { value: null }, c))), /*#__PURE__*/ Kr.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ x.createElement(pc.Provider, { value: o }, /*#__PURE__*/ x.createElement(lc, null, /*#__PURE__*/ x.createElement(Lr.Provider, { value: null }, c))), /*#__PURE__*/ Jr.createPortal(c, n);
}
-function pc() {
- let e = (0, x.useContext)(dc)?.setContain;
- V(() => {
+function hc() {
+ let e = (0, x.useContext)(pc)?.setContain;
+ B(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function mc(e, t) {
- let { role: n = "dialog" } = e, r = pr();
+function gc(e, t) {
+ let { role: n = "dialog" } = e, r = hr();
r = e["aria-label"] ? void 0 : r;
- let i = pr();
+ let i = hr();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, x.useRef)(!1);
(0, x.useEffect)(() => {
- if (t.current && !Lt(t.current)) {
- ir(t.current);
+ if (t.current && !zt(t.current)) {
+ or(t.current);
let e = setTimeout(() => {
- (Ft() === t.current || Ft() === document.body) && (a.current = !0, t.current && (t.current.blur(), ir(t.current)), a.current = !1);
+ (Lt() === t.current || Lt() === document.body) && (a.current = !0, t.current && (t.current.blur(), or(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), pc(), (0, x.useRef)(!1), (0, x.useEffect)(() => {});
+ }, [t]), hc(), (0, x.useRef)(!1), (0, x.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...U(e, { labelable: !0 }),
+ ...H(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6432,23 +6435,23 @@ function mc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function hc(e = {}) {
+function _c(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, x.useRef)({
isFocused: !1,
- isFocusVisible: t || qn()
+ isFocusVisible: t || Yn()
}), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, x.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, x.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = qn(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = Yn(), o(e), l();
}, [l]);
- Qn((e) => {
+ er((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = vr({
+ let { focusProps: d } = br({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = No({
+ }), { focusWithinProps: f } = Io({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6460,42 +6463,42 @@ function hc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function gc(e = {}) {
- let { locale: t } = Mi();
+function vc(e = {}) {
+ let { locale: t } = Pi();
return (0, x.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var _c = !1, vc = 0;
-function yc() {
- _c = !0, setTimeout(() => {
- _c = !1;
+var yc = !1, bc = 0;
+function xc() {
+ yc = !0, setTimeout(() => {
+ yc = !1;
}, 500);
}
-function bc(e) {
- e.pointerType === "touch" && yc();
+function Sc(e) {
+ e.pointerType === "touch" && xc();
}
-function xc() {
- let e = L(null);
- if (e !== void 0) return vc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", bc), vc++, () => {
- vc--, !(vc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", bc);
+function Cc() {
+ let e = I(null);
+ if (e !== void 0) return bc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Sc), bc++, () => {
+ bc--, !(bc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Sc);
};
}
-function Sc(e) {
+function wc(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, x.useState)(!1), s = (0, x.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, x.useEffect)(xc, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = sa(), { hoverProps: u, triggerHoverEnd: d } = (0, x.useMemo)(() => {
+ (0, x.useEffect)(Cc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = la(), { hoverProps: u, triggerHoverEnd: d } = (0, x.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !R(e.currentTarget, z(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !L(e.currentTarget, R(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(L(z(e)), "pointerover", (e) => {
- s.isHovered && s.target && !R(s.target, z(e)) && a(e, e.pointerType);
+ s.target = l, c(I(R(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !L(s.target, R(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -6510,9 +6513,9 @@ function Sc(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- _c && t.pointerType === "mouse" || e(t, t.pointerType);
+ yc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && R(e.currentTarget, z(e)) && a(e, e.pointerType);
+ !i && L(e.currentTarget, R(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -6535,22 +6538,22 @@ function Sc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Cc(e) {
+function Tc(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, x.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = yi((e) => {
- n && wc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = yi((e) => {
+ }), o = xi((e) => {
+ n && Ec(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = xi((e) => {
n && n(e);
});
(0, x.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = L(n);
+ let n = t.current, i = I(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && wc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Ec(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -6558,24 +6561,24 @@ function Cc(e) {
}
}, [t, r]);
}
-function wc(e, t) {
+function Ec(e, t) {
if (e.button > 0) return !1;
- let n = z(e);
+ let n = R(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !R(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !L(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Tc(e, t) {
+function Dc(e, t) {
let n = t?.isDisabled, [r, i] = (0, x.useState)(!1);
- return V(() => {
+ return B(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = Ka(e.current, { tabbable: !0 });
+ let t = Ya(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -6594,11 +6597,11 @@ function Tc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Ec(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = oc({
+function Oc(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = cc({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, x.useMemo)(() => a || new rs({
+ }), l = t.disabledBehavior, u = (0, x.useMemo)(() => a || new as({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -6615,7 +6618,7 @@ function Ec(e) {
c,
l,
s
- ]), { collectionProps: d } = Zs({
+ ]), { collectionProps: d } = $s({
...e,
ref: i,
selectionManager: t,
@@ -6625,11 +6628,11 @@ function Ec(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Dc(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = mn();
- t = dr(t);
+function kc(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = gn();
+ t = pr(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Zo(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && $o(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -6640,11 +6643,11 @@ function Dc(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (hi(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (_i(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, x.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? di(i.current) : s ? s() : Ft() !== i.current && i.current && ir(i.current));
+ r === n.focusedKey && n.isFocused && (o ? pi(i.current) : s ? s() : Lt() !== i.current && i.current && or(i.current));
}, [
i,
r,
@@ -6657,7 +6660,7 @@ function Dc(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- z(e) === i.current && n.setFocusedKey(r);
+ R(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -6672,23 +6675,23 @@ function Dc(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || kc(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || jc(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Oc(e.key)) return;
+ if (e.pointerType === "keyboard" && !Ac(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kc(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || jc(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Oc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Ac(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let ee = ts(n.collection);
- if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = H(A, {
+ let ee = rs(n.collection);
+ if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -6702,10 +6705,10 @@ function Dc(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = ar(A[e], O[e]));
- let { pressProps: j, isPressed: te } = pa(A), M = S ? (e) => {
+ ]) O[e] && (A[e] = sr(A[e], O[e]));
+ let { pressProps: j, isPressed: te } = ha(A), M = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: ne } = Bs({
+ } : void 0, { longPressProps: ne } = Hs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -6713,39 +6716,39 @@ function Dc(e) {
}), N = (e) => {
w.current === "touch" && E.current && e.preventDefault();
}, re = d !== "none" && n.isLink(r) ? (e) => {
- hn.isOpening || e.preventDefault();
- } : void 0, P = H(m, v || b || o && !c ? j : {}, T ? ne : {}, {
+ _n.isOpening || e.preventDefault();
+ } : void 0, ie = V(m, v || b || o && !c ? j : {}, T ? ne : {}, {
onDoubleClick: M,
onDragStartCapture: N,
onClick: re,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ie = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ae = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
if (e != null) return e !== ee;
t = t.parentElement;
}
- return Gt(e);
- }, ae = P.onPointerDown;
- P.onPointerDown = (e) => {
- let t = z(e);
- if (t && t !== i.current && ie(t)) {
+ return qt(e);
+ }, oe = ie.onPointerDown;
+ ie.onPointerDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && ae(t)) {
e.stopPropagation();
return;
}
- ae?.(e);
+ oe?.(e);
};
- let oe = P.onMouseDown;
- return P.onMouseDown = (e) => {
- let t = z(e);
- if (t && t !== i.current && ie(t)) {
+ let se = ie.onMouseDown;
+ return ie.onMouseDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && ae(t)) {
e.stopPropagation();
return;
}
- oe?.(e);
+ se?.(e);
}, {
- itemProps: P,
+ itemProps: ie,
isPressed: te,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
@@ -6754,30 +6757,30 @@ function Dc(e) {
hasAction: C
};
}
-function Oc(e) {
+function Ac(e) {
return e === "Enter";
}
-function kc(e) {
+function jc(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Ac(e, t, n) {
- let r = U(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Mc(e, t, n) {
+ let r = H(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = Ec({
+ let { listProps: s } = Oc({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = No({
+ }), { focusWithinProps: c } = Io({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = dr(e.id);
- Jo.set(t, {
+ }), l = pr(e.id);
+ Xo.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -6787,24 +6790,24 @@ function Ac(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = jo({
+ let { labelProps: u, fieldProps: d } = Po({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: H(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: V(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...H(d, s)
+ ...V(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function jc(e) {
- let { heading: t, "aria-label": n } = e, r = dr();
+function Nc(e) {
+ let { heading: t, "aria-label": n } = e, r = pr();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -6823,8 +6826,8 @@ function jc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Mc(e, t, n) {
- let { key: r } = e, i = Jo.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = pr(), f = pr(), p = {
+function Pc(e, t, n) {
+ let { key: r } = e, i = Xo.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = hr(), f = hr(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -6834,9 +6837,9 @@ function Mc(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ic(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = oc(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Xo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Dc({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Qo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = kc({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -6845,28 +6848,28 @@ function Mc(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? ar(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? sr(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = Sc({
+ }), { hoverProps: S } = wc({
isDisabled: a || !c,
onHoverStart() {
- qn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Yn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = U(m?.props);
+ }), C = H(m?.props);
delete C.id;
- let w = vn(m?.props);
+ let w = bn(m?.props);
return {
optionProps: {
...p,
- ...H(C, _, S, w),
+ ...V(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && qn(),
+ isFocusVisible: y && t.selectionManager.isFocused && Yn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -6876,15 +6879,15 @@ function Mc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Nc() {
+function Fc() {
return window.ResizeObserver !== void 0;
}
-function Pc(e) {
- let { ref: t, box: n, onResize: r } = e, i = yi(r);
+function Ic(e) {
+ let { ref: t, box: n, onResize: r } = e, i = xi(r);
(0, x.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Nc()) {
+ if (Fc()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -6900,189 +6903,189 @@ function Pc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Fc = {};
-Fc = { dismiss: "تجاهل" };
+var Lc = {};
+Lc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Ic = {};
-Ic = { dismiss: "Отхвърляне" };
+var Rc = {};
+Rc = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Lc = {};
-Lc = { dismiss: "Odstranit" };
+var zc = {};
+zc = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Rc = {};
-Rc = { dismiss: "Luk" };
+var Bc = {};
+Bc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var zc = {};
-zc = { dismiss: "Schließen" };
+var Vc = {};
+Vc = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Bc = {};
-Bc = { dismiss: "Απόρριψη" };
+var Hc = {};
+Hc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Vc = {};
-Vc = { dismiss: "Dismiss" };
+var Uc = {};
+Uc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Hc = {};
-Hc = { dismiss: "Descartar" };
+var Wc = {};
+Wc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Uc = {};
-Uc = { dismiss: "Lõpeta" };
+var Gc = {};
+Gc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Wc = {};
-Wc = { dismiss: "Hylkää" };
+var Kc = {};
+Kc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Gc = {};
-Gc = { dismiss: "Rejeter" };
+var qc = {};
+qc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Kc = {};
-Kc = { dismiss: "התעלם" };
+var Jc = {};
+Jc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var qc = {};
-qc = { dismiss: "Odbaci" };
+var Yc = {};
+Yc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Jc = {};
-Jc = { dismiss: "Elutasítás" };
+var Xc = {};
+Xc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Yc = {};
-Yc = { dismiss: "Ignora" };
+var Zc = {};
+Zc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Xc = {};
-Xc = { dismiss: "閉じる" };
+var Qc = {};
+Qc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Zc = {};
-Zc = { dismiss: "무시" };
+var $c = {};
+$c = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Qc = {};
-Qc = { dismiss: "Atmesti" };
+var el = {};
+el = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var $c = {};
-$c = { dismiss: "Nerādīt" };
+var tl = {};
+tl = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var el = {};
-el = { dismiss: "Lukk" };
+var nl = {};
+nl = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var tl = {};
-tl = { dismiss: "Negeren" };
+var rl = {};
+rl = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var nl = {};
-nl = { dismiss: "Zignoruj" };
+var il = {};
+il = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var rl = {};
-rl = { dismiss: "Descartar" };
+var al = {};
+al = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var il = {};
-il = { dismiss: "Dispensar" };
+var ol = {};
+ol = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var al = {};
-al = { dismiss: "Revocare" };
+var sl = {};
+sl = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ol = {};
-ol = { dismiss: "Пропустить" };
+var cl = {};
+cl = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var sl = {};
-sl = { dismiss: "Zrušiť" };
+var ll = {};
+ll = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var cl = {};
-cl = { dismiss: "Opusti" };
+var ul = {};
+ul = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ll = {};
-ll = { dismiss: "Odbaci" };
+var dl = {};
+dl = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ul = {};
-ul = { dismiss: "Avvisa" };
+var fl = {};
+fl = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var dl = {};
-dl = { dismiss: "Kapat" };
+var pl = {};
+pl = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var fl = {};
-fl = { dismiss: "Скасувати" };
+var ml = {};
+ml = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var pl = {};
-pl = { dismiss: "取消" };
+var hl = {};
+hl = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var ml = {};
-ml = { dismiss: "關閉" };
+var gl = {};
+gl = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var hl = {};
-hl = {
- "ar-AE": Fc,
- "bg-BG": Ic,
- "cs-CZ": Lc,
- "da-DK": Rc,
- "de-DE": zc,
- "el-GR": Bc,
- "en-US": Vc,
- "es-ES": Hc,
- "et-EE": Uc,
- "fi-FI": Wc,
- "fr-FR": Gc,
- "he-IL": Kc,
- "hr-HR": qc,
- "hu-HU": Jc,
- "it-IT": Yc,
- "ja-JP": Xc,
- "ko-KR": Zc,
- "lt-LT": Qc,
- "lv-LV": $c,
- "nb-NO": el,
- "nl-NL": tl,
- "pl-PL": nl,
- "pt-BR": rl,
- "pt-PT": il,
- "ro-RO": al,
- "ru-RU": ol,
- "sk-SK": sl,
- "sl-SI": cl,
- "sr-SP": ll,
- "sv-SE": ul,
- "tr-TR": dl,
- "uk-UA": fl,
- "zh-CN": pl,
- "zh-TW": ml
+var _l = {};
+_l = {
+ "ar-AE": Lc,
+ "bg-BG": Rc,
+ "cs-CZ": zc,
+ "da-DK": Bc,
+ "de-DE": Vc,
+ "el-GR": Hc,
+ "en-US": Uc,
+ "es-ES": Wc,
+ "et-EE": Gc,
+ "fi-FI": Kc,
+ "fr-FR": qc,
+ "he-IL": Jc,
+ "hr-HR": Yc,
+ "hu-HU": Xc,
+ "it-IT": Zc,
+ "ja-JP": Qc,
+ "ko-KR": $c,
+ "lt-LT": el,
+ "lv-LV": tl,
+ "nb-NO": nl,
+ "nl-NL": rl,
+ "pl-PL": il,
+ "pt-BR": al,
+ "pt-PT": ol,
+ "ro-RO": sl,
+ "ru-RU": cl,
+ "sk-SK": ll,
+ "sl-SI": ul,
+ "sr-SP": dl,
+ "sv-SE": fl,
+ "tr-TR": pl,
+ "uk-UA": ml,
+ "zh-CN": hl,
+ "zh-TW": gl
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function gl(e) {
+function vl(e) {
return e && e.__esModule ? e.default : e;
}
-function _l(e) {
- let { onDismiss: t, ...n } = e, r = xi(n, Ki(gl(hl), "@react-aria/overlays").format("dismiss")), i = () => {
+function yl(e) {
+ let { onDismiss: t, ...n } = e, r = Ci(n, Ji(vl(_l), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ x.createElement(Bo, null, /*#__PURE__*/ x.createElement("button", {
+ return /*#__PURE__*/ x.createElement(Uo, null, /*#__PURE__*/ x.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -7094,38 +7097,38 @@ function _l(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var vl = [];
-function yl(e, t) {
+var bl = [];
+function xl(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, x.useRef)(void 0);
(0, x.useEffect)(() => {
- if (i && !vl.includes(t)) return vl.push(t), () => {
- let e = vl.indexOf(t);
- e >= 0 && vl.splice(e, 1);
+ if (i && !bl.includes(t)) return bl.push(t), () => {
+ let e = bl.indexOf(t);
+ e >= 0 && bl.splice(e, 1);
};
}, [i, t]);
let l = () => {
- vl[vl.length - 1] === t && n && n();
+ bl[bl.length - 1] === t && n && n();
}, u = (e) => {
- let n = vl[vl.length - 1];
- c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
+ let n = bl[bl.length - 1];
+ c.current = n, (!s || s(R(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(z(e))) && (vl[vl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Mr({ shortcuts: { Escape: () => {
+ (!s || s(R(e))) && (bl[bl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Pr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- Cc({
+ Tc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = No({
+ let { focusWithinProps: p } = Io({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Ia(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || za(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7138,26 +7141,26 @@ function yl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var bl = typeof document < "u" && window.visualViewport, xl = 0, Sl;
-function Cl(e = {}) {
+var Sl = typeof document < "u" && window.visualViewport, Cl = 0, wl;
+function Tl(e = {}) {
let { isDisabled: t } = e;
- V(() => {
- if (!t) return xl++, xl === 1 && (Sl = an() && sn() ? Tl() : wl()), () => {
- xl--, xl === 0 && Sl();
+ B(() => {
+ if (!t) return Cl++, Cl === 1 && (wl = sn() && ln() ? Dl() : El()), () => {
+ Cl--, Cl === 0 && wl();
};
}, [t]);
}
-function wl() {
+function El() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return ar(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Mt(document.documentElement, "scrollbar-gutter", "stable") : Mt(document.documentElement, "padding-right", `${e}px`)), Mt(document.documentElement, "overflow", "hidden"));
+ return sr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Pt(document.documentElement, "scrollbar-gutter", "stable") : Pt(document.documentElement, "padding-right", `${e}px`)), Pt(document.documentElement, "overflow", "hidden"));
}
-function Tl() {
- let e = Mt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = z(e);
- t = eo(r) ? r : to(r, !0), n = !1;
+function Dl() {
+ let e = Pt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = R(e);
+ t = ro(r) ? r : io(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = aa();
+ }, i = document.createElement("style"), a = sa();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -7168,27 +7171,27 @@ function Tl() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = z(e), n = e.relatedTarget;
- n && _i(n) ? (n.focus({ preventScroll: !0 }), El(n, _i(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = R(e), n = e.relatedTarget;
+ n && yi(n) ? (n.focus({ preventScroll: !0 }), Ol(n, yi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = Ft(), n = t != null && _i(t);
+ let t = Lt(), n = t != null && yi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && El(this, n);
+ }), (!e || !e.preventScroll) && Ol(this, n);
}
});
- let l = ar(jt(document, "touchstart", r, {
+ let l = sr(Nt(document, "touchstart", r, {
passive: !1,
capture: !0
- }), jt(document, "touchmove", o, {
+ }), Nt(document, "touchmove", o, {
passive: !1,
capture: !0
- }), jt(document, "blur", s, !0));
+ }), Nt(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7197,18 +7200,18 @@ function Tl() {
});
};
}
-function El(e, t) {
- t || !bl ? Dl(e) : bl.addEventListener("resize", () => Dl(e), { once: !0 });
+function Ol(e, t) {
+ t || !Sl ? kl(e) : Sl.addEventListener("resize", () => kl(e), { once: !0 });
}
-function Dl(e) {
+function kl(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = to(n);
+ let e = io(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- bl && (n = Math.min(n, bl.offsetTop + bl.height));
+ Sl && (n = Math.min(n, Sl.offsetTop + Sl.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -7221,48 +7224,48 @@ function Dl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Ol(e, t, n) {
- let { overlayProps: r, underlayProps: i } = yl({
+function Al(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = xl({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Cl({ isDisabled: !t.isOpen }), pc(), (0, x.useEffect)(() => {
- if (t.isOpen && n.current) return Ko([n.current], { shouldUseInert: !0 });
+ return Tl({ isDisabled: !t.isOpen }), hc(), (0, x.useEffect)(() => {
+ if (t.isOpen && n.current) return Jo([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
- modalProps: H(r),
+ modalProps: V(r),
underlayProps: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var kl = {
+var jl = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Al = {
+}, Ml = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, jl = {
+}, Nl = {
top: "left",
left: "top"
-}, Ml = {
+}, Pl = {
top: "height",
left: "width"
-}, Nl = {
+}, Fl = {
width: "totalWidth",
height: "totalHeight"
-}, Pl = {}, Fl = () => typeof document < "u" ? window.visualViewport : null;
-function Il(e, t) {
+}, Il = {}, Ll = () => typeof document < "u" ? window.visualViewport : null;
+function Rl(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = ql(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return sn() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Yl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return ln() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -7272,7 +7275,7 @@ function Il(e, t) {
left: s
};
}
-function Ll(e) {
+function zl(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7280,11 +7283,11 @@ function Ll(e) {
height: e.scrollHeight
};
}
-function Rl(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Ml[e]], l = o[e] + r.scroll[kl[e]] + a, u = o[e] + r.scroll[kl[e]] + c - a, d = t - s + r.scroll[kl[e]] + o[e] - r[kl[e]], f = t - s + n + r.scroll[kl[e]] + o[e] - r[kl[e]];
+function Bl(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Pl[e]], l = o[e] + r.scroll[jl[e]] + a, u = o[e] + r.scroll[jl[e]] + c - a, d = t - s + r.scroll[jl[e]] + o[e] - r[jl[e]], f = t - s + n + r.scroll[jl[e]] + o[e] - r[jl[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function zl(e) {
+function Vl(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7293,55 +7296,55 @@ function zl(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Bl(e) {
- if (Pl[e]) return Pl[e];
- let [t, n] = e.split(" "), r = kl[t] || "right", i = jl[r];
- kl[n] || (n = "center");
- let a = Ml[r], o = Ml[i];
- return Pl[e] = {
+function Hl(e) {
+ if (Il[e]) return Il[e];
+ let [t, n] = e.split(" "), r = jl[t] || "right", i = Nl[r];
+ jl[n] || (n = "center");
+ let a = Pl[r], o = Pl[i];
+ return Il[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Pl[e];
+ }, Il[e];
}
-function Vl(e, t, n, r, i, a, o, s, c, l, u) {
+function Ul(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = Lo(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Nl[h]];
- _[Al[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Bo(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Fl[h]];
+ _[Ml[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Hl(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Nl.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Wl(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Fl.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function Ul(e, t, n, r, i, a, o, s) {
+function Gl(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Al[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Al[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ml[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ml[l]] - i);
}
-function Wl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Bl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Vl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ul(s, l, t, i, a + u, v, c, g);
+function Kl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Hl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Ul(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Gl(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Bl(`${Al[S]} ${C}`), r = Vl(t, s, n, e, u, d, l, f, m, h, c);
- Ul(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Hl(`${Ml[S]} ${C}`), r = Ul(t, s, n, e, u, d, l, f, m, h, c);
+ Gl(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Rl(b, w[b], n[x], s, c, a, l);
+ let O = Bl(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Hl(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Vl(t, s, n, v, T, d, l, f, m, h, c), O = Rl(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, ee = t[b] - w[b] - i[kl[b]], j = ee + .5 * t[x], te = m / 2 + h, M = kl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
- A[b] = Lo(Lo(j, t[b] + m / 2 - (w[b] + i[kl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[kl[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
+ let k = Wl(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Ul(t, s, n, v, T, d, l, f, m, h, c), O = Bl(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, ee = t[b] - w[b] - i[jl[b]], j = ee + .5 * t[x], te = m / 2 + h, M = jl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
+ A[b] = Bo(Bo(j, t[b] + m / 2 - (w[b] + i[jl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[jl[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
let N = S === "left" || S === "top" ? n[y] : 0, re = {
x: S === "top" || S === "bottom" ? ee : N,
y: S === "left" || S === "right" ? ee : N
@@ -7355,17 +7358,17 @@ function Wl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: re
};
}
-function Gl(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Fl(), h = r instanceof HTMLElement ? Yl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ql(n, !1, p) : Jl(n, h, !1, p);
+function ql(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Ll(), h = r instanceof HTMLElement ? Zl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Yl(n, !1, p) : Xl(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = ql(r, !0), x = zl(r);
+ let b = Yl(r, !0), x = Vl(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Ll(i), C = Il(s, m), w = Il(h, m), T;
+ let S = zl(i), C = Rl(s, m), w = Rl(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Kl(h, !1);
+ let e = Jl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -7377,11 +7380,11 @@ function Gl(e) {
left: 0,
width: 0,
height: 0
- } : Jl(s, h, !1);
- let E = R(s, h);
- return Wl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Xl(s, h, !1);
+ let E = L(s, h);
+ return Kl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Kl(e, t) {
+function Jl(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -7390,8 +7393,8 @@ function Kl(e, t) {
height: a
};
}
-function ql(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Kl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Yl(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Jl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -7399,30 +7402,30 @@ function ql(e, t, n) {
height: o
};
}
-function Jl(e, t, n, r) {
+function Xl(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Kl(e, n);
+ if (i.position === "fixed") a = r || Jl(e, n);
else {
- a = ql(e, n, r);
- let i = ql(t, n), o = window.getComputedStyle(t);
+ a = Yl(e, n, r);
+ let i = Yl(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Yl(e) {
+function Zl(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Xl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Xl(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Ql(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Ql(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Xl(e) {
+function Ql(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Zl = typeof document < "u" ? window.visualViewport : null;
-function Ql(e) {
- let { direction: t } = Mi(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, x.useState)(null), S = [
+var $l = typeof document < "u" ? window.visualViewport : null;
+function eu(e) {
+ let { direction: t } = Pi(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, x.useState)(null), S = [
p,
s,
i.current,
@@ -7439,15 +7442,15 @@ function Ql(e) {
g,
_,
n
- ], C = (0, x.useRef)(Zl?.scale);
+ ], C = (0, x.useRef)($l?.scale);
(0, x.useEffect)(() => {
- m && (C.current = Zl?.scale);
+ m && (C.current = $l?.scale);
}, [m]);
let w = (0, x.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Zl?.scale !== C.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || $l?.scale !== C.current) return;
let e = null;
- if (o.current && Lt(o.current)) {
- let t = Ft()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && zt(o.current)) {
+ let t = Lt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -7455,8 +7458,8 @@ function Ql(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Gl({
- placement: eu(s, t),
+ let y = ql({
+ placement: nu(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -7466,28 +7469,28 @@ function Ql(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Kl(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Jl(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = Ft();
+ let x = Lt();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, S);
- V(w, S), $l(w), Pc({
+ B(w, S), tu(w), Ic({
ref: i,
onResize: w
- }), Pc({
+ }), Ic({
ref: r,
onResize: w
});
let T = (0, x.useRef)(!1);
- V(() => {
+ B(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -7495,16 +7498,16 @@ function Ql(e) {
}, n = () => {
T.current && t();
};
- Zl?.addEventListener("resize", t), Zl?.addEventListener("scroll", n);
- let r = jt(It(window), "scroll", n);
+ $l?.addEventListener("resize", t), $l?.addEventListener("scroll", n);
+ let r = Nt(Rt(window), "scroll", n);
return () => {
- Zl?.removeEventListener("resize", t), Zl?.removeEventListener("scroll", n), r();
+ $l?.removeEventListener("resize", t), $l?.removeEventListener("scroll", n), r();
};
}, [w]);
let E = (0, x.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Us({
+ return Gs({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -7530,25 +7533,25 @@ function Ql(e) {
updatePosition: w
};
}
-function $l(e) {
- V(() => (window.addEventListener("resize", e, !1), () => {
+function tu(e) {
+ B(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function eu(e, t) {
+function nu(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function tu(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = yl({
+function ru(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = xl({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Ql({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = eu({
...c,
targetRef: n,
overlayRef: r,
@@ -7556,17 +7559,17 @@ function tu(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Cl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
- if (t.isOpen && r.current) return a ? qo(i?.current ?? r.current) : Ko([i?.current ?? r.current], { shouldUseInert: !0 });
+ Tl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Yo(i?.current ?? r.current) : Jo([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = No(e);
+ let { focusWithinProps: g } = Io(e);
return {
- popoverProps: H(u, f, g),
+ popoverProps: V(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -7575,13 +7578,13 @@ function tu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var nu = /* @__PURE__ */ new WeakMap();
+var iu = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function ru(e, t, n) {
+function au(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = pa({
+ }, { pressProps: g, isPressed: _ } = ha({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7589,7 +7592,7 @@ function ru(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = pa({
+ }), { pressProps: v, isPressed: y } = ha({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7599,17 +7602,17 @@ function ru(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Lr(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = H(g, b), C = U(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: b } = zr(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = V(g, b), C = H(e, { labelable: !0 }), w = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);
- let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = nu.get(t);
- lo(n, t.defaultSelectedValue, t.setSelectedValue), uo({ validationBehavior: k }, t, n);
- let A = go();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = iu.get(t);
+ po(n, t.defaultSelectedValue, t.setSelectedValue), mo({ validationBehavior: k }, t, n);
+ let A = yo();
return {
- labelProps: H(v, (0, x.useMemo)(() => ({
+ labelProps: V(v, (0, x.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: H(C, {
+ inputProps: V(C, {
...S,
type: "radio",
name: T,
@@ -7635,13 +7638,13 @@ function ru(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function iu(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Mi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Mo({
+function ou(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Pi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Fo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = U(e, { labelable: !0 }), { focusWithinProps: v } = No({
+ }), _ = H(e, { labelable: !0 }), { focusWithinProps: v } = Io({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -7649,13 +7652,13 @@ function iu(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = Ka(n.currentTarget, {
- from: z(n),
- accept: (e) => e instanceof Et(e).HTMLInputElement && e.type === "radio"
+ let r = Ya(n.currentTarget, {
+ from: R(n),
+ accept: (e) => e instanceof Ot(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Mr({
+ let { keyboardProps: b } = Pr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -7663,15 +7666,15 @@ function iu(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = dr(n);
- return nu.set(t, {
+ }), x = pr(n);
+ return iu.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: H(_, {
+ radioGroupProps: V(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -7693,21 +7696,21 @@ function iu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var au = /* @__PURE__ */ new WeakMap();
-function ou(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = oc({
+var su = /* @__PURE__ */ new WeakMap();
+function cu(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = cc({
usage: "search",
sensitivity: "base"
- }), u = (0, x.useMemo)(() => r || new rs(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, x.useMemo)(() => r || new as(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Ks({
+ ]), { menuTriggerProps: d, menuProps: f } = Js({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Mr({
+ }, t, n), { keyboardProps: p } = Pr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -7723,21 +7726,21 @@ function ou(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Js({
+ }), { typeSelectProps: m } = Xs({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: S } = Mo({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: S } = Fo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = U(e, { labelable: !0 }), w = H(m, d, y), T = dr();
- return au.set(t, {
+ let C = H(e, { labelable: !0 }), w = V(m, d, y), T = pr();
+ return su.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -7747,13 +7750,13 @@ function ou(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Yn("keyboard"));
+ e.isDisabled || (n.current?.focus(), Zn("keyboard"));
}
},
- triggerProps: H(C, {
+ triggerProps: V(C, {
...w,
isDisabled: i,
- onKeyDown: ar(w.onKeyDown, p.onKeyDown),
+ onKeyDown: sr(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -7777,7 +7780,7 @@ function ou(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- R(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ L(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
@@ -7798,18 +7801,18 @@ function ou(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function su(e, t, n) {
- let r = au.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = zo({ style: {
+function lu(e, t, n) {
+ let r = su.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Ho({ style: {
position: "fixed",
top: 0,
left: 0
} });
- lo(e.selectRef, t.defaultValue, t.setValue), uo({
+ po(e.selectRef, t.defaultValue, t.setValue), mo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, x.useCallback)((e) => {
- let t = z(e);
+ let t = R(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -7834,8 +7837,8 @@ function su(e, t, n) {
}
};
}
-function cu(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = su({
+function uu(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = lu({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -7859,7 +7862,7 @@ function cu(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = au.get(t) || {};
+ let { validationBehavior: e } = su.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -7890,8 +7893,8 @@ function cu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function lu(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Oo(e, t, n);
+function du(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = jo(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -7905,28 +7908,28 @@ function lu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var uu = /* @__PURE__ */ new WeakMap();
-function du(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${uu.get(e)}-${n}-${t}`) : "";
+var fu = /* @__PURE__ */ new WeakMap();
+function pu(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${fu.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function fu(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Dc({
+function mu(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = kc({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = du(t, r, "tab"), m = du(t, r, "tabpanel"), { tabIndex: h } = d, g = U(u?.props, { labelable: !0 });
+ }), p = pu(t, r, "tab"), m = pu(t, r, "tabpanel"), { tabIndex: h } = d, g = H(u?.props, { labelable: !0 });
delete g.id;
- let _ = vn(u?.props), { focusableProps: v } = Lr({
+ let _ = bn(u?.props), { focusableProps: v } = zr({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: H(g, v, _, d, {
+ tabProps: V(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -7941,7 +7944,7 @@ function fu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var pu = class {
+var hu = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -7985,11 +7988,11 @@ var pu = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function mu(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Mi(), { collectionProps: l } = Zs({
+function gu(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Pi(), { collectionProps: l } = $s({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, x.useMemo)(() => new pu(a, c, r, s), [
+ keyboardDelegate: (0, x.useMemo)(() => new hu(a, c, r, s), [
a,
s,
r,
@@ -7999,9 +8002,9 @@ function mu(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = dr();
- return uu.set(t, u), { tabListProps: {
- ...H(l, xi({
+ }), u = pr();
+ return fu.set(t, u), { tabListProps: {
+ ...V(l, Ci({
...e,
id: u
})),
@@ -8012,12 +8015,12 @@ function mu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function hu(e, t, n) {
- let r = Tc(n) ? void 0 : 0, i = du(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: H(xi({
+function _u(e, t, n) {
+ let r = Dc(n) ? void 0 : 0, i = pu(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: V(Ci({
...e,
id: i,
- "aria-labelledby": du(t, t?.selectedKey, "tab")
+ "aria-labelledby": pu(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -8027,7 +8030,7 @@ function hu(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var gu = /* @__PURE__ */ m(((e) => {
+var vu = /* @__PURE__ */ m(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -8226,10 +8229,10 @@ var gu = /* @__PURE__ */ m(((e) => {
}
};
};
-})), _u = /* @__PURE__ */ m(((e, t) => {
- t.exports = gu();
-})), vu = /* @__PURE__ */ m(((e) => {
- var t = _u(), n = v(), r = Ur();
+})), yu = /* @__PURE__ */ m(((e, t) => {
+ t.exports = vu();
+})), bu = /* @__PURE__ */ m(((e) => {
+ var t = yu(), n = v(), r = Gr();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -8399,14 +8402,14 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ae = Symbol.for("react.legacy_hidden"), oe = Symbol.for("react.memo_cache_sentinel"), se = Symbol.for("react.view_transition"), ce = Symbol.for("react.recoverable"), le = Symbol.iterator;
- function ue(e) {
- return typeof e != "object" || !e ? null : (e = le && e[le] || e["@@iterator"], typeof e == "function" ? e : null);
+ var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), oe = Symbol.for("react.legacy_hidden"), se = Symbol.for("react.memo_cache_sentinel"), ce = Symbol.for("react.view_transition"), le = Symbol.for("react.recoverable"), ue = Symbol.iterator;
+ function de(e) {
+ return typeof e != "object" || !e ? null : (e = ue && e[ue] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var de = Symbol.for("react.client.reference");
- function fe(e) {
+ var fe = Symbol.for("react.client.reference");
+ function pe(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === fe ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case k: return "Fragment";
@@ -8414,8 +8417,8 @@ var gu = /* @__PURE__ */ m(((e) => {
case A: return "StrictMode";
case ne: return "Suspense";
case N: return "SuspenseList";
- case ie: return "Activity";
- case se: return "ViewTransition";
+ case ae: return "Activity";
+ case ce: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case O: return "Portal";
@@ -8424,38 +8427,38 @@ var gu = /* @__PURE__ */ m(((e) => {
case M:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case re: return t = e.displayName || null, t === null ? fe(e.type) || "Memo" : t;
- case P:
+ case re: return t = e.displayName || null, t === null ? pe(e.type) || "Memo" : t;
+ case ie:
t = e._payload, e = e._init;
try {
- return fe(e(t));
+ return pe(e(t));
} catch {}
}
return null;
}
- var pe = Array.isArray, F = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = {
+ var me = Array.isArray, P = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = {
pending: !1,
data: null,
method: null,
action: null
- }, he = [], ge = -1;
- function _e(e) {
+ }, ge = [], _e = -1;
+ function ve(e) {
return { current: e };
}
- function ve(e) {
- 0 > ge || (e.current = he[ge], he[ge] = null, ge--);
+ function ye(e) {
+ 0 > _e || (e.current = ge[_e], ge[_e] = null, _e--);
}
- function ye(e, t) {
- ge++, he[ge] = e.current, e.current = t;
+ function be(e, t) {
+ _e++, ge[_e] = e.current, e.current = t;
}
- var be = _e(null), xe = _e(null), Se = _e(null), Ce = _e(null);
- function we(e, t) {
- switch (ye(Se, t), ye(xe, e), ye(be, null), t.nodeType) {
+ var xe = ve(null), Se = ve(null), Ce = ve(null), we = ve(null);
+ function Te(e, t) {
+ switch (be(Ce, t), be(Se, e), be(xe, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? dp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = up(t), e = dp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = dp(t), e = fp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -8466,34 +8469,34 @@ var gu = /* @__PURE__ */ m(((e) => {
default: e = 0;
}
}
- ve(be), ye(be, e);
+ ye(xe), be(xe, e);
}
- function Te() {
- ve(be), ve(xe), ve(Se);
+ function Ee() {
+ ye(xe), ye(Se), ye(Ce);
}
- function Ee(e) {
+ function De(e) {
var t = e.memoizedState;
- t !== null && (sh._currentValue = t.memoizedState, ye(Ce, e)), t = be.current;
- var n = dp(t, e.type);
- t !== n && (ye(xe, e), ye(be, n));
+ t !== null && (ch._currentValue = t.memoizedState, be(we, e)), t = xe.current;
+ var n = fp(t, e.type);
+ t !== n && (be(Se, e), be(xe, n));
}
- function De(e) {
- xe.current === e && (ve(be), ve(xe)), Ce.current === e && (ve(Ce), sh._currentValue = me);
+ function Oe(e) {
+ Se.current === e && (ye(xe), ye(Se)), we.current === e && (ye(we), ch._currentValue = he);
}
- var Oe, ke;
- function Ae(e) {
- if (Oe === void 0) try {
+ var ke, Ae;
+ function je(e) {
+ if (ke === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- Oe = t && t[1] || "", ke = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ ke = t && t[1] || "", Ae = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + Oe + e + ke;
+ return "\n" + ke + e + Ae;
}
- var je = !1;
- function Me(e, t) {
- if (!e || je) return "";
- je = !0;
+ var Me = !1;
+ function Ne(e, t) {
+ if (!e || Me) return "";
+ Me = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -8564,50 +8567,50 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
} finally {
- je = !1, Error.prepareStackTrace = n;
+ Me = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? Ae(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? je(n) : "";
}
- function Ne(e, t) {
+ function Pe(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return Ae(e.type);
- case 16: return Ae("Lazy");
- case 13: return e.child !== t && t !== null ? Ae("Suspense Fallback") : Ae("Suspense");
- case 19: return Ae("SuspenseList");
+ case 5: return je(e.type);
+ case 16: return je("Lazy");
+ case 13: return e.child !== t && t !== null ? je("Suspense Fallback") : je("Suspense");
+ case 19: return je("SuspenseList");
case 0:
- case 15: return Me(e.type, !1);
- case 11: return Me(e.type.render, !1);
- case 1: return Me(e.type, !0);
- case 31: return Ae("Activity");
- case 30: return Ae("ViewTransition");
+ case 15: return Ne(e.type, !1);
+ case 11: return Ne(e.type.render, !1);
+ case 1: return Ne(e.type, !0);
+ case 31: return je("Activity");
+ case 30: return je("ViewTransition");
default: return "";
}
}
- function Pe(e) {
+ function Fe(e) {
try {
var t = "", n = null;
do
- t += Ne(e, n), n = e, e = e.return;
+ t += Pe(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Fe = Object.prototype.hasOwnProperty, Ie = t.unstable_scheduleCallback, Le = t.unstable_cancelCallback, Re = t.unstable_shouldYield, ze = t.unstable_requestPaint, Be = t.unstable_now, Ve = t.unstable_getCurrentPriorityLevel, He = t.unstable_ImmediatePriority, Ue = t.unstable_UserBlockingPriority, We = t.unstable_NormalPriority, Ge = t.unstable_LowPriority, Ke = t.unstable_IdlePriority, qe = t.log, Je = t.unstable_setDisableYieldValue, Ye = null, Xe = null;
- function Ze(e) {
- if (typeof qe == "function" && Je(e), Xe && typeof Xe.setStrictMode == "function") try {
- Xe.setStrictMode(Ye, e);
+ var Ie = Object.prototype.hasOwnProperty, Le = t.unstable_scheduleCallback, Re = t.unstable_cancelCallback, ze = t.unstable_shouldYield, Be = t.unstable_requestPaint, Ve = t.unstable_now, He = t.unstable_getCurrentPriorityLevel, Ue = t.unstable_ImmediatePriority, We = t.unstable_UserBlockingPriority, Ge = t.unstable_NormalPriority, Ke = t.unstable_LowPriority, qe = t.unstable_IdlePriority, Je = t.log, Ye = t.unstable_setDisableYieldValue, Xe = null, Ze = null;
+ function Qe(e) {
+ if (typeof Je == "function" && Ye(e), Ze && typeof Ze.setStrictMode == "function") try {
+ Ze.setStrictMode(Xe, e);
} catch {}
}
- var Qe = Math.clz32 ? Math.clz32 : tt, $e = Math.log, et = Math.LN2;
- function tt(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - ($e(e) / et | 0) | 0;
+ var $e = Math.clz32 ? Math.clz32 : nt, et = Math.log, tt = Math.LN2;
+ function nt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - (et(e) / tt | 0) | 0;
}
- var nt = 256, rt = 262144, it = 4194304;
- function at(e) {
+ var rt = 256, it = 262144, at = 4194304;
+ function ot(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -8645,27 +8648,27 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return e;
}
}
- function ot(e, t, n) {
+ function st(e, t, n) {
var r = e.pendingLanes;
if (r === 0) return 0;
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
e = e.warmLanes;
var s = r & 134217727;
- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = at(n))) : i = at(o) : i = at(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = at(n))) : i = at(o)) : i = at(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ot(n))) : i = ot(o) : i = ot(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ot(n))) : i = ot(o)) : i = ot(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
}
- function st(e, t) {
+ function ct(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function ct(e, t) {
+ function lt(e, t) {
t & 8 && (t |= t & 32);
var n = e.entangledLanes;
if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function lt(e, t) {
+ function ut(e, t) {
switch (e) {
case 1:
case 2:
@@ -8701,23 +8704,23 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return -1;
}
}
- function ut() {
- var e = it;
- return it <<= 1, !(it & 62914560) && (it = 4194304), e;
+ function dt() {
+ var e = at;
+ return at <<= 1, !(at & 62914560) && (at = 4194304), e;
}
- function dt(e) {
+ function ft(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function ft(e, t) {
+ function pt(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function pt(e, t, n, r, i, a) {
+ function mt(e, t, n, r, i, a) {
var o = 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 s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
for (n = o & ~n; 0 < n;) {
- var u = 31 - Qe(n), d = 1 << u;
+ var u = 31 - $e(n), d = 1 << u;
s[u] = 0, c[u] = -1;
var f = l[u];
if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
@@ -8726,25 +8729,25 @@ var gu = /* @__PURE__ */ m(((e) => {
}
n &= ~d;
}
- r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function mt(e, t, n) {
+ function ht(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - Qe(t);
+ var r = 31 - $e(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function ht(e, t) {
+ function gt(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function gt(e, t) {
+ function _t(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function _t(e) {
+ function vt(e) {
switch (e) {
case 2:
e = 1;
@@ -8782,33 +8785,33 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return e;
}
- function vt(e) {
+ function yt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function yt() {
- var e = I.p;
- return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
+ function bt() {
+ var e = F.p;
+ return e === 0 ? (e = window.event, e === void 0 ? 32 : wh(e.type)) : e;
}
- function bt(e, t) {
- var n = I.p;
+ function xt(e, t) {
+ var n = F.p;
try {
- return I.p = e, t();
+ return F.p = e, t();
} finally {
- I.p = n;
+ F.p = n;
}
}
- var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, L = "__reactListeners$" + xt, Et = "__reactHandles$" + xt, Dt = "__reactResources$" + xt, Ot = "__reactMarker$" + xt, kt = "__reactLoad$" + xt;
- function At(e) {
- delete e[St], delete e[Ct], delete e[L], delete e[Et];
- }
+ var St = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + St, wt = "__reactProps$" + St, Tt = "__reactContainer$" + St, Et = "__reactEvents$" + St, Dt = "__reactListeners$" + St, I = "__reactHandles$" + St, Ot = "__reactResources$" + St, kt = "__reactMarker$" + St, At = "__reactLoad$" + St;
function jt(e) {
+ delete e[Ct], delete e[wt], delete e[Dt], delete e[I];
+ }
+ function Mt(e) {
var t;
- if (t = e[St]) return t;
+ if (t = e[Ct]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[wt] || n[St]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
- if (n = e[St]) return n;
- e = fm(e);
+ if (t = n[Tt] || n[Ct]) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = pm(e); e !== null;) {
+ if (n = e[Ct]) return n;
+ e = pm(e);
}
return t;
}
@@ -8816,49 +8819,49 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- function Mt(e) {
- if (e = e[St] || e[wt]) {
+ function Nt(e) {
+ if (e = e[Ct] || e[Tt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Nt(e) {
+ function Pt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Pt(e) {
- var t = e[Dt];
- return t ||= e[Dt] = {
+ function Ft(e) {
+ var t = e[Ot];
+ return t ||= e[Ot] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function R(e) {
- e[Ot] = !0;
- }
- function Ft(e) {
- e[kt] = void 0;
+ function It(e) {
+ e[kt] = !0;
}
- var z = /* @__PURE__ */ new Set(), It = {};
- function Lt(e, t) {
- Rt(e, t), Rt(e + "Capture", t);
+ function L(e) {
+ e[At] = void 0;
}
+ var Lt = /* @__PURE__ */ new Set(), R = {};
function Rt(e, t) {
- for (It[e] = t, e = 0; e < t.length; e++) z.add(t[e]);
+ zt(e, t), zt(e + "Capture", t);
+ }
+ function zt(e, t) {
+ for (R[e] = t, e = 0; e < t.length; e++) Lt.add(t[e]);
}
- var zt = 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]*$"), Bt = {}, Vt = {};
- function Ht(e) {
- return Fe.call(Vt, e) ? !0 : Fe.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);
+ var Bt = 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]*$"), Vt = {}, Ht = {};
+ function Ut(e) {
+ return Ie.call(Ht, e) ? !0 : Ie.call(Vt, e) ? !1 : Bt.test(e) ? Ht[e] = !0 : (Vt[e] = !0, !1);
}
- var B = !1;
- function Ut() {
- var e = B;
- return B = !1, e;
+ var z = !1;
+ function Wt() {
+ var e = z;
+ return z = !1, e;
}
- function Wt(e, t, n) {
- if (Ht(t)) {
+ function Gt(e, t, n) {
+ if (Ut(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8878,7 +8881,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
}
- function Gt(e, t, n) {
+ function Kt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8892,7 +8895,7 @@ var gu = /* @__PURE__ */ m(((e) => {
e.setAttribute(t, n);
}
}
- function Kt(e, t, n, r) {
+ function qt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -8906,7 +8909,7 @@ var gu = /* @__PURE__ */ m(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function V(e) {
+ function Jt(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -8917,11 +8920,11 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return "";
}
}
- function qt(e) {
+ function B(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Jt(e, t, n) {
+ function Yt(e, t, n) {
var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
var i = r.get, a = r.set;
@@ -8946,48 +8949,48 @@ var gu = /* @__PURE__ */ m(((e) => {
};
}
}
- function Yt(e) {
+ function Xt(e) {
if (!e._valueTracker) {
- var t = qt(e) ? "checked" : "value";
- e._valueTracker = Jt(e, t, "" + e[t]);
+ var t = B(e) ? "checked" : "value";
+ e._valueTracker = Yt(e, t, "" + e[t]);
}
}
- function Xt(e) {
+ function Zt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = B(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var Zt = /[\n"\\]/g;
- function Qt(e) {
- return e.replace(Zt, function(e) {
+ var Qt = /[\n"\\]/g;
+ function $t(e) {
+ return e.replace(Qt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function $t(e, t, n, r, i, a, o, s) {
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + V(t)) : e.value !== "" + V(t) && (e.value = "" + V(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, V(n)) : o === "number" && e.value == t ? tn(e, V(e.value)) : tn(e, V(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + V(s) : e.removeAttribute("name");
- }
function en(e, t, n, r, i, a, o, s) {
+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Jt(t)) : e.value !== "" + Jt(t) && (e.value = "" + Jt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : nn(e, Jt(n)) : o === "number" && e.value == t ? nn(e, Jt(e.value)) : nn(e, Jt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Jt(s) : e.removeAttribute("name");
+ }
+ function tn(e, t, n, r, i, a, o, s) {
if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
if (!(a !== "submit" && a !== "reset" || t != null)) {
- Yt(e);
+ Xt(e);
return;
}
- n = n == null ? "" : "" + V(n), t = t == null ? n : "" + V(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + Jt(n), t = t == null ? n : "" + Jt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
}
- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Yt(e);
+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Xt(e);
}
- function tn(e, t) {
+ function nn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function nn(e, t, n, r) {
+ function rn(e, t, n, r) {
if (e = e.options, t) {
t = {};
for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
} else {
- for (n = "" + V(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + Jt(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -8997,18 +9000,18 @@ var gu = /* @__PURE__ */ m(((e) => {
t !== null && (t.selected = !0);
}
}
- function rn(e, t, n) {
- if (t != null && (t = "" + V(t), t !== e.value && (e.value = t), n == null)) {
+ function an(e, t, n) {
+ if (t != null && (t = "" + Jt(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + V(n);
+ e.defaultValue = n == null ? "" : "" + Jt(n);
}
- function an(e, t, n, r) {
+ function on(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (pe(r)) {
+ if (me(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -9016,9 +9019,9 @@ var gu = /* @__PURE__ */ m(((e) => {
}
n ??= "", t = n;
}
- n = V(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Yt(e);
+ n = Jt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Xt(e);
}
- function on(e, t) {
+ function sn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -9028,19 +9031,19 @@ var gu = /* @__PURE__ */ m(((e) => {
}
e.textContent = t;
}
- var sn = 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 cn(e, t, n) {
+ var cn = 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 ln(e, t, n) {
var r = t.indexOf("--") === 0;
- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || sn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || cn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function ln(e, t, n) {
+ function un(e, t, n) {
if (t != null && typeof t != "object") throw Error(i(62));
if (e = e.style, n != null) {
- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", B = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (cn(e, a, r), B = !0);
- } else for (var o in t) t.hasOwnProperty(o) && cn(e, o, t[o]);
+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", z = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (ln(e, a, r), z = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && ln(e, o, t[o]);
}
- function un(e) {
+ function dn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -9054,7 +9057,7 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return !0;
}
}
- var dn = /* @__PURE__ */ new Map([
+ var fn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -9134,56 +9137,56 @@ var gu = /* @__PURE__ */ m(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), fn = /^[\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 pn(e) {
- return fn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), pn = /^[\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 mn(e) {
+ return pn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function mn() {}
- var hn = null;
- function gn(e) {
+ function hn() {}
+ var gn = null;
+ function _n(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var _n = null, vn = null;
- function yn(e) {
- var t = Mt(e);
+ var vn = null, yn = null;
+ function bn(e) {
+ var t = Nt(e);
if (t && (e = t.stateNode)) {
- var n = e[Ct] || null;
+ var n = e[wt] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if ($t(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (en(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=\"" + Qt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + $t("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[Ct] || null;
+ var a = r[wt] || null;
if (!a) throw Error(i(90));
- $t(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ en(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
}
}
- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Xt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Zt(r);
}
break a;
case "textarea":
- rn(e, n.value, n.defaultValue);
+ an(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && rn(e, !!n.multiple, t, !1);
}
}
}
- var bn = !1;
- function xn(e, t, n) {
- if (bn) return e(t, n);
- bn = !0;
+ var xn = !1;
+ function Sn(e, t, n) {
+ if (xn) return e(t, n);
+ xn = !0;
try {
return e(t);
} finally {
- if (bn = !1, (_n !== null || vn !== null) && (zd(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);
+ if (xn = !1, (vn !== null || yn !== null) && (Vd(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
}
}
- function Sn(e, t) {
+ function Cn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[Ct] || null;
+ var r = n[wt] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -9206,54 +9209,54 @@ var gu = /* @__PURE__ */ m(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var Cn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), wn = !1;
- if (Cn) try {
- var Tn = {};
- Object.defineProperty(Tn, "passive", { get: function() {
- wn = !0;
- } }), window.addEventListener("test", Tn, Tn), window.removeEventListener("test", Tn, Tn);
+ var wn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Tn = !1;
+ if (wn) try {
+ var En = {};
+ Object.defineProperty(En, "passive", { get: function() {
+ Tn = !0;
+ } }), window.addEventListener("test", En, En), window.removeEventListener("test", En, En);
} catch {
- wn = !1;
+ Tn = !1;
}
- var En = null, Dn = null, On = null;
- function kn() {
- if (On) return On;
- var e, t = Dn, n = t.length, r, i = "value" in En ? En.value : En.textContent, a = i.length;
+ var Dn = null, On = null, kn = null;
+ function An() {
+ if (kn) return kn;
+ var e, t = On, n = t.length, r, i = "value" in Dn ? Dn.value : Dn.textContent, a = i.length;
for (e = 0; e < n && t[e] === i[e]; e++);
var o = n - e;
for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
- return On = i.slice(e, 1 < r ? 1 - r : void 0);
+ return kn = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function An(e) {
+ function jn(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 jn() {
+ function Mn() {
return !0;
}
- function Mn() {
+ function Nn() {
return !1;
}
- function Nn(e) {
+ function Pn(e) {
function t(t, n, r, i, a) {
for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? jn : Mn, this.isPropagationStopped = Mn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Mn : Nn, this.isPropagationStopped = Nn, this;
}
return T(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = jn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Mn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Mn);
},
persist: function() {},
- isPersistent: jn
+ isPersistent: Mn
}), t;
}
- var Pn = {
+ var Fn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -9262,10 +9265,10 @@ var gu = /* @__PURE__ */ m(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, Fn = Nn(Pn), In = T({}, Pn, {
+ }, In = Pn(Fn), Ln = T({}, Fn, {
view: 0,
detail: 0
- }), Ln = Nn(In), Rn, zn, Bn, Vn = T({}, In, {
+ }), Rn = Pn(Ln), zn, Bn, Vn, Hn = T({}, Ln, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -9276,25 +9279,25 @@ var gu = /* @__PURE__ */ m(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: Qn,
+ getModifierState: $n,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
},
movementX: function(e) {
- return "movementX" in e ? e.movementX : (e !== Bn && (Bn && e.type === "mousemove" ? (Rn = e.screenX - Bn.screenX, zn = e.screenY - Bn.screenY) : zn = Rn = 0, Bn = e), Rn);
+ return "movementX" in e ? e.movementX : (e !== Vn && (Vn && e.type === "mousemove" ? (zn = e.screenX - Vn.screenX, Bn = e.screenY - Vn.screenY) : Bn = zn = 0, Vn = e), zn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : zn;
+ return "movementY" in e ? e.movementY : Bn;
}
- }), Hn = Nn(Vn), Un = Nn(T({}, Vn, { dataTransfer: 0 })), Wn = Nn(T({}, In, { relatedTarget: 0 })), Gn = Nn(T({}, Pn, {
+ }), Un = Pn(Hn), Wn = Pn(T({}, Hn, { dataTransfer: 0 })), Gn = Pn(T({}, Ln, { relatedTarget: 0 })), Kn = Pn(T({}, Fn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Kn = Nn(T({}, Pn, { clipboardData: function(e) {
+ })), qn = Pn(T({}, Fn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), qn = Nn(T({}, Pn, { data: 0 })), Jn = {
+ } })), Jn = Pn(T({}, Fn, { data: 0 })), Yn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -9307,7 +9310,7 @@ var gu = /* @__PURE__ */ m(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Yn = {
+ }, Xn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -9344,26 +9347,26 @@ var gu = /* @__PURE__ */ m(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, Xn = {
+ }, Zn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function Zn(e) {
+ function Qn(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = Xn[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Zn[e]) ? !!t[e] : !1;
}
- function Qn() {
- return Zn;
+ function $n() {
+ return Qn;
}
- var $n = Nn(T({}, In, {
+ var er = Pn(T({}, Ln, {
key: function(e) {
if (e.key) {
- var t = Jn[e.key] || e.key;
+ var t = Yn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Yn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = jn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Xn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -9373,17 +9376,17 @@ var gu = /* @__PURE__ */ m(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: Qn,
+ getModifierState: $n,
charCode: function(e) {
- return e.type === "keypress" ? An(e) : 0;
+ return e.type === "keypress" ? jn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? jn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), er = Nn(T({}, Vn, {
+ })), tr = Pn(T({}, Hn, {
pointerId: 0,
width: 0,
height: 0,
@@ -9394,7 +9397,7 @@ var gu = /* @__PURE__ */ m(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), tr = Nn(T({}, Pn, { submitter: 0 })), nr = Nn(T({}, In, {
+ })), nr = Pn(T({}, Fn, { submitter: 0 })), rr = Pn(T({}, Ln, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -9402,12 +9405,12 @@ var gu = /* @__PURE__ */ m(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: Qn
- })), rr = Nn(T({}, Pn, {
+ getModifierState: $n
+ })), ir = Pn(T({}, Fn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), ir = Nn(T({}, Vn, {
+ })), ar = Pn(T({}, Hn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -9416,21 +9419,21 @@ var gu = /* @__PURE__ */ m(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), ar = Nn(T({}, Pn, {
+ })), or = Pn(T({}, Fn, {
newState: 0,
oldState: 0,
source: 0
- })), or = [
+ })), sr = [
9,
13,
27,
32
- ], sr = Cn && "CompositionEvent" in window, cr = null;
- Cn && "documentMode" in document && (cr = document.documentMode);
- var lr = Cn && "TextEvent" in window && !cr, ur = Cn && (!sr || cr && 8 < cr && 11 >= cr), dr = " ", fr = !1;
- function pr(e, t) {
+ ], cr = wn && "CompositionEvent" in window, lr = null;
+ wn && "documentMode" in document && (lr = document.documentMode);
+ var ur = wn && "TextEvent" in window && !lr, dr = wn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", pr = !1;
+ function mr(e, t) {
switch (e) {
- case "keyup": return or.indexOf(t.keyCode) !== -1;
+ case "keyup": return sr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -9438,20 +9441,20 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return !1;
}
}
- function mr(e) {
+ function hr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var hr = !1;
- function gr(e, t) {
+ var gr = !1;
+ function _r(e, t) {
switch (e) {
- case "compositionend": return mr(t);
- case "keypress": return t.which === 32 ? (fr = !0, dr) : null;
- case "textInput": return e = t.data, e === dr && fr ? null : e;
+ case "compositionend": return hr(t);
+ case "keypress": return t.which === 32 ? (pr = !0, fr) : null;
+ case "textInput": return e = t.data, e === fr && pr ? null : e;
default: return null;
}
}
- function _r(e, t) {
- if (hr) return e === "compositionend" || !sr && pr(e, t) ? (e = kn(), On = Dn = En = null, hr = !1, e) : null;
+ function vr(e, t) {
+ if (gr) return e === "compositionend" || !cr && mr(e, t) ? (e = An(), kn = On = Dn = null, gr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -9460,11 +9463,11 @@ var gu = /* @__PURE__ */ m(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return ur && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return dr && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var H = {
+ var yr = {
color: !0,
date: !0,
datetime: !0,
@@ -9481,76 +9484,76 @@ var gu = /* @__PURE__ */ m(((e) => {
url: !0,
week: !0
};
- function vr(e) {
+ function V(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!H[e.type] : t === "textarea";
+ return t === "input" ? !!yr[e.type] : t === "textarea";
}
- function yr(e, t, n, r) {
- _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = Jf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
+ function br(e, t, n, r) {
+ vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = Jf(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var br = null, xr = null;
- function Sr(e) {
+ var xr = null, Sr = null;
+ function Cr(e) {
Vf(e, 0);
}
- function Cr(e) {
- if (Xt(Nt(e))) return e;
+ function wr(e) {
+ if (Zt(Pt(e))) return e;
}
- function wr(e, t) {
+ function Tr(e, t) {
if (e === "change") return t;
}
- var Tr = !1;
- if (Cn) {
- var Er;
- if (Cn) {
- var Dr = "oninput" in document;
- if (!Dr) {
- var Or = document.createElement("div");
- Or.setAttribute("oninput", "return;"), Dr = typeof Or.oninput == "function";
+ var Er = !1;
+ if (wn) {
+ var Dr;
+ if (wn) {
+ var Or = "oninput" in document;
+ if (!Or) {
+ var kr = document.createElement("div");
+ kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";
}
- Er = Dr;
- } else Er = !1;
- Tr = Er && (!document.documentMode || 9 < document.documentMode);
+ Dr = Or;
+ } else Dr = !1;
+ Er = Dr && (!document.documentMode || 9 < document.documentMode);
}
- function kr() {
- br && (br.detachEvent("onpropertychange", Ar), xr = br = null);
+ function Ar() {
+ xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);
}
- function Ar(e) {
- if (e.propertyName === "value" && Cr(xr)) {
+ function jr(e) {
+ if (e.propertyName === "value" && wr(Sr)) {
var t = [];
- yr(t, xr, e, gn(e)), xn(Sr, t);
+ br(t, Sr, e, _n(e)), Sn(Cr, t);
}
}
- function jr(e, t, n) {
- e === "focusin" ? (kr(), br = t, xr = n, br.attachEvent("onpropertychange", Ar)) : e === "focusout" && kr();
+ function Mr(e, t, n) {
+ e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
}
- function Mr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Cr(xr);
- }
- function Nr(e, t) {
- if (e === "click") return Cr(t);
+ function Nr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);
}
function Pr(e, t) {
- if (e === "input" || e === "change") return Cr(t);
+ if (e === "click") return wr(t);
}
function Fr(e, t) {
+ if (e === "input" || e === "change") return wr(t);
+ }
+ function Ir(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Ir = typeof Object.is == "function" ? Object.is : Fr;
- function Lr(e, t) {
- if (Ir(e, t)) return !0;
+ var Lr = typeof Object.is == "function" ? Object.is : Ir;
+ function Rr(e, t) {
+ if (Lr(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Fe.call(t, i) || !Ir(e[i], t[i])) return !1;
+ if (!Ie.call(t, i) || !Lr(e[i], t[i])) return !1;
}
return !0;
}
- function Rr(e) {
+ function zr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -9558,12 +9561,12 @@ var gu = /* @__PURE__ */ m(((e) => {
return e.body;
}
}
- function zr(e) {
+ function Br(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Br(e, t) {
- var n = zr(e);
+ function Vr(e, t) {
+ var n = Br(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -9583,15 +9586,15 @@ var gu = /* @__PURE__ */ m(((e) => {
}
n = void 0;
}
- n = zr(n);
+ n = Br(n);
}
}
- function Vr(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Vr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
+ function Hr(e, t) {
+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Hr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
}
- function Hr(e) {
+ function Ur(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Rr(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -9599,7 +9602,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Rr(e.document);
+ t = zr(e.document);
}
return t;
}
@@ -9607,10 +9610,10 @@ var gu = /* @__PURE__ */ m(((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 Gr = Cn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
- function Xr(e, t, n) {
+ var Kr = wn && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;
+ function Zr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Yr || Kr == null || Kr !== Rr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
+ Xr || qr == null || qr !== zr(r) || (r = qr, "selectionStart" in r && Wr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -9618,48 +9621,48 @@ var gu = /* @__PURE__ */ m(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Jr && Lr(Jr, r) || (Jr = r, r = Jf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
+ }), Yr && Rr(Yr, r) || (Yr = r, r = Jf(Jr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Kr)));
+ }), t.target = qr)));
}
- function Zr(e, t) {
+ function Qr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var Qr = {
- animationend: Zr("Animation", "AnimationEnd"),
- animationiteration: Zr("Animation", "AnimationIteration"),
- animationstart: Zr("Animation", "AnimationStart"),
- transitionrun: Zr("Transition", "TransitionRun"),
- transitionstart: Zr("Transition", "TransitionStart"),
- transitioncancel: Zr("Transition", "TransitionCancel"),
- transitionend: Zr("Transition", "TransitionEnd")
- }, $r = {}, ei = {};
- Cn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
- function ti(e) {
- if ($r[e]) return $r[e];
- if (!Qr[e]) return e;
- var t = Qr[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
+ var $r = {
+ animationend: Qr("Animation", "AnimationEnd"),
+ animationiteration: Qr("Animation", "AnimationIteration"),
+ animationstart: Qr("Animation", "AnimationStart"),
+ transitionrun: Qr("Transition", "TransitionRun"),
+ transitionstart: Qr("Transition", "TransitionStart"),
+ transitioncancel: Qr("Transition", "TransitionCancel"),
+ transitionend: Qr("Transition", "TransitionEnd")
+ }, ei = {}, ti = {};
+ wn && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);
+ function ni(e) {
+ if (ei[e]) return ei[e];
+ if (!$r[e]) return e;
+ var t = $r[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];
return e;
}
- var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");
- ui.push("scrollEnd");
- function di(e, t) {
- li.set(e, t), Lt(t, [e]);
+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");
+ di.push("scrollEnd");
+ function fi(e, t) {
+ ui.set(e, t), Rt(t, [e]);
}
- var fi = 0;
- function pi(e, t) {
+ var pi = 0;
+ function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Sd.identifierPrefix;
- var n = fi++;
+ e = Cd.identifierPrefix;
+ var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function mi(e) {
+ function hi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = kd;
+ var t = null, n = jd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -9669,10 +9672,10 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return t ?? e.default;
}
- function hi(e, t) {
- return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function gi(e, t) {
+ return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var gi = typeof reportError == "function" ? reportError : function(e) {
+ var _i = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -9686,62 +9689,62 @@ var gu = /* @__PURE__ */ m(((e) => {
return;
}
console.error(e);
- }, _i = [], vi = 0, yi = 0;
- function bi() {
- for (var e = vi, t = yi = vi = 0; t < e;) {
- var n = _i[t];
- _i[t++] = null;
- var r = _i[t];
- _i[t++] = null;
- var i = _i[t];
- _i[t++] = null;
- var a = _i[t];
- if (_i[t++] = null, r !== null && i !== null) {
+ }, vi = [], yi = 0, bi = 0;
+ function xi() {
+ for (var e = yi, t = bi = yi = 0; t < e;) {
+ var n = vi[t];
+ vi[t++] = null;
+ var r = vi[t];
+ vi[t++] = null;
+ var i = vi[t];
+ vi[t++] = null;
+ var a = vi[t];
+ if (vi[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && wi(n, i, a);
+ a !== 0 && Ti(n, i, a);
}
}
- function xi(e, t, n, r) {
- _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function Si(e, t, n, r) {
- return xi(e, t, n, r), Ti(e);
+ vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ }
+ function Ci(e, t, n, r) {
+ return Si(e, t, n, r), Ei(e);
}
- function Ci(e, t) {
- return xi(e, null, null, t), Ti(e);
+ function wi(e, t) {
+ return Si(e, null, null, t), Ei(e);
}
- function wi(e, t, n) {
+ function Ti(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $e(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ti(e) {
- if (50 < Ad) throw Ad = 0, jd = null, Error(i(185));
+ function Ei(e) {
+ if (50 < Md) throw Md = 0, J = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ei = {};
- function Di(e, t, n, r) {
+ var Di = {};
+ function Oi(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Oi(e, t, n, r) {
- return new Di(e, t, n, r);
+ function ki(e, t, n, r) {
+ return new Oi(e, t, n, r);
}
- function ki(e) {
+ function Ai(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Ai(e, t) {
+ function ji(e, t) {
var n = e.alternate;
- return n === null ? (n = Oi(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 & 1206910976, 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 : {
+ return n === null ? (n = ki(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 & 1206910976, 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 ji(e, t) {
+ function Mi(e, t) {
e.flags &= 1206910978;
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 : {
@@ -9749,21 +9752,21 @@ var gu = /* @__PURE__ */ m(((e) => {
firstContext: t.firstContext
}), e;
}
- function Mi(e, t, n, r, a, o) {
+ function Ni(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") ki(r) && (s = 1);
- else if (typeof r == "string") s = qm(e, n, be.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") Ai(r) && (s = 1);
+ else if (typeof r == "string") s = Jm(e, n, xe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
- case k: return Ni(n.children, a, o, t);
+ case ae: return e = ki(31, n, t, a), e.elementType = ae, e.lanes = o, e;
+ case k: return Pi(n.children, a, o, t);
case A:
s = 8, a |= 24;
break;
- case ee: return e = Oi(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
- case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case N: return e = Oi(19, n, t, a), e.elementType = N, e.lanes = o, e;
- case ae:
- case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
+ case ee: return e = ki(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
+ case ne: return e = ki(13, n, t, a), e.elementType = ne, e.lanes = o, e;
+ case N: return e = ki(19, n, t, a), e.elementType = N, e.lanes = o, e;
+ case oe:
+ case ce: return e = a | 32, e = ki(30, n, t, e), e.elementType = ce, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -9783,80 +9786,80 @@ var gu = /* @__PURE__ */ m(((e) => {
case re:
s = 14;
break a;
- case P:
+ case ie:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Ni(e, t, n, r) {
- return e = Oi(7, e, r, t), e.lanes = n, e;
+ function Pi(e, t, n, r) {
+ return e = ki(7, e, r, t), e.lanes = n, e;
}
- function Pi(e, t, n) {
- return e = Oi(6, e, null, t), e.lanes = n, e;
+ function Fi(e, t, n) {
+ return e = ki(6, e, null, t), e.lanes = n, e;
}
- function Fi(e) {
- var t = Oi(18, null, null, 0);
+ function Ii(e) {
+ var t = ki(18, null, null, 0);
return t.stateNode = e, t;
}
- function Ii(e, t, n) {
- return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Li(e, t, n) {
+ return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Li = /* @__PURE__ */ new WeakMap();
- function Ri(e, t) {
+ var Ri = /* @__PURE__ */ new WeakMap();
+ function zi(e, t) {
if (typeof e == "object" && e) {
- var n = Li.get(e);
+ var n = Ri.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Pe(t)
- }, Li.set(e, t), t) : n;
+ stack: Fe(t)
+ }, Ri.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Pe(t)
+ stack: Fe(t)
};
}
- var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
- function Ji(e, t) {
- zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
+ var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, Ji = "";
+ function Yi(e, t) {
+ Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
}
- function Yi(e, t, n) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
- var r = Ki;
- e = qi;
- var i = 32 - Qe(r) - 1;
+ function Xi(e, t, n) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, Ki = e;
+ var r = qi;
+ e = Ji;
+ var i = 32 - $e(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - Qe(t) + i;
+ var a = 32 - $e(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - Qe(t) + i | n << i | r, qi = a + e;
- } else Ki = 1 << a | n << i | r, qi = e;
- }
- function Xi(e) {
- e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - $e(t) + i | n << i | r, Ji = a + e;
+ } else qi = 1 << a | n << i | r, Ji = e;
}
function Zi(e) {
- for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
+ e.return !== null && (Yi(e, 1), Xi(e, 1, 0));
}
- function Qi(e, t) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
+ function Qi(e) {
+ for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;
+ for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, Ji = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
}
- var U = null, $i = null, W = !1, ea = null, ta = !1, na = Error(i(519));
- function ra(e) {
- throw la(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
+ function $i(e, t) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;
}
+ var ea = null, H = null, U = !1, ta = null, na = !1, ra = Error(i(519));
function ia(e) {
+ throw ua(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ra;
+ }
+ function aa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[St] = e, t[Ct] = r, n) {
+ switch (t[Ct] = e, t[wt] = r, n) {
case "dialog":
Q("cancel", t), Q("close", t);
break;
@@ -9881,67 +9884,67 @@ var gu = /* @__PURE__ */ m(((e) => {
Q("toggle", t);
break;
case "input":
- Q("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Q("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
Q("invalid", t);
break;
- case "textarea": Q("invalid", t), an(t, r.value, r.defaultValue, r.children);
+ case "textarea": Q("invalid", t), on(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || ep(t.textContent, n) ? (r.popover != null && (Q("beforetoggle", t), Q("toggle", t)), r.onScroll != null && Q("scroll", t), r.onScrollEnd != null && Q("scrollend", t), r.onClick != null && (t.onclick = mn), t = !0) : t = !1, t || ra(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || ep(t.textContent, n) ? (r.popover != null && (Q("beforetoggle", t), Q("toggle", t)), r.onScroll != null && Q("scroll", t), r.onScrollEnd != null && Q("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || ia(e, !0);
}
- function aa(e) {
- for (U = e.return; U;) switch (U.tag) {
+ function oa(e) {
+ for (ea = e.return; ea;) switch (ea.tag) {
case 5:
case 31:
case 13:
- ta = !1;
+ na = !1;
return;
case 27:
case 3:
- ta = !0;
+ na = !0;
return;
- default: U = U.return;
+ default: ea = ea.return;
}
}
- function oa(e) {
- if (e !== U) return !1;
- if (!W) return aa(e), W = !0, !1;
+ function sa(e) {
+ if (e !== ea) return !1;
+ if (!U) return oa(e), U = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && $i && ra(e), aa(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || mp(e.type, e.memoizedProps)), n = !n), n && H && ia(e), oa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- $i = dm(e);
+ H = fm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- $i = dm(e);
- } else t === 27 ? (t = $i, Sp(e.type) ? (e = um, um = null, $i = e) : $i = t) : $i = U ? lm(e.stateNode.nextSibling) : null;
+ H = fm(e);
+ } else t === 27 ? (t = H, Cp(e.type) ? (e = dm, dm = null, H = e) : H = t) : H = ea ? um(e.stateNode.nextSibling) : null;
return !0;
}
- function sa() {
- $i = U = null, W = !1;
- }
function ca() {
- var e = ea;
- return e !== null && (md === null ? md = e : md.push.apply(md, e), ea = null), e;
+ H = ea = null, U = !1;
+ }
+ function la() {
+ var e = ta;
+ return e !== null && (hd === null ? hd = e : hd.push.apply(hd, e), ta = null), e;
}
- function la(e) {
- ea === null ? ea = [e] : ea.push(e);
+ function ua(e) {
+ ta === null ? ta = [e] : ta.push(e);
}
- var ua = _e(null), da = null, fa = null;
- function pa(e, t, n) {
- ye(ua, t._currentValue), t._currentValue = n;
+ var da = ve(null), fa = null, pa = null;
+ function ma(e, t, n) {
+ be(da, t._currentValue), t._currentValue = n;
}
- function ma(e) {
- e._currentValue = ua.current, ve(ua);
+ function ha(e) {
+ e._currentValue = da.current, ye(da);
}
- function ha(e, t, n) {
+ function ga(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function ga(e, t, n, r) {
+ function _a(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -9952,15 +9955,15 @@ var gu = /* @__PURE__ */ m(((e) => {
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ha(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ga(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ha(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ha(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ga(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ga(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -9976,7 +9979,7 @@ var gu = /* @__PURE__ */ m(((e) => {
a = s;
}
}
- function _a(e, t, n, r) {
+ function va(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -9988,48 +9991,48 @@ var gu = /* @__PURE__ */ m(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Ir(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === Ce.current) {
+ } else if (a === we.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [ch] : e.push(ch));
}
a = a.return;
}
- return e !== null && ga(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && _a(t, e, n, r), t.flags |= 262144, e !== null;
}
- function va(e) {
+ function ya(e) {
for (e = e.firstContext; e !== null;) {
- if (!Ir(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function ya(e) {
- da = e, fa = null, e = e.dependencies, e !== null && (e.firstContext = null);
- }
function ba(e) {
- return Sa(da, e);
+ fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function xa(e, t) {
- return da === null && ya(e), Sa(e, t);
+ function xa(e) {
+ return Ca(fa, e);
}
function Sa(e, t) {
+ return fa === null && ba(e), Ca(e, t);
+ }
+ function Ca(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, fa === null) {
+ }, pa === null) {
if (e === null) throw Error(i(308));
- fa = t, e.dependencies = {
+ pa = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else fa = fa.next = t;
+ } else pa = pa.next = t;
return n;
}
- var Ca = typeof AbortController < "u" ? AbortController : function() {
+ var wa = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -10041,7 +10044,7 @@ var gu = /* @__PURE__ */ m(((e) => {
return e();
});
};
- }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, G = {
+ }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, Da = {
$$typeof: te,
Consumer: null,
Provider: null,
@@ -10049,19 +10052,19 @@ var gu = /* @__PURE__ */ m(((e) => {
_currentValue2: null,
_threadCount: 0
};
- function Ea() {
+ function Oa() {
return {
- controller: new Ca(),
+ controller: new wa(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Da(e) {
- e.refCount--, e.refCount === 0 && wa(Ta, function() {
+ function ka(e) {
+ e.refCount--, e.refCount === 0 && Ta(Ea, function() {
e.controller.abort();
});
}
- function Oa(e, t) {
+ function Aa(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -10070,16 +10073,16 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
}
- var ka = null;
- function Aa(e) {
+ var ja = null;
+ function Ma(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var ja = null, Ma = 0, Na = 0, Pa = null;
- function Fa(e, t) {
- if (ja === null) {
- var n = ja = [];
- Ma = 0, Na = Pf(), Pa = {
+ var Na = null, Pa = 0, Fa = 0, Ia = null;
+ function La(e, t) {
+ if (Na === null) {
+ var n = Na = [];
+ Pa = 0, Fa = Pf(), Ia = {
status: "pending",
value: void 0,
then: function(e) {
@@ -10087,17 +10090,17 @@ var gu = /* @__PURE__ */ m(((e) => {
}
};
}
- return Ma++, t.then(Ia, Ia), t;
+ return Pa++, t.then(Ra, Ra), t;
}
- function Ia() {
- if (--Ma === 0 && (ka = null, ja !== null)) {
- Pa !== null && (Pa.status = "fulfilled");
- var e = ja;
- ja = null, Na = 0, Pa = null;
+ function Ra() {
+ if (--Pa === 0 && (ja = null, Na !== null)) {
+ Ia !== null && (Ia.status = "fulfilled");
+ var e = Na;
+ Na = null, Fa = 0, Ia = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function La(e, t) {
+ function za(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -10113,48 +10116,48 @@ var gu = /* @__PURE__ */ m(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ra = F.S;
- F.S = function(e, t) {
- if (_d = Be(), typeof t == "object" && t && typeof t.then == "function" && Fa(e, t), ka !== null) for (var n = bf; n !== null;) Oa(n, ka), n = n.next;
+ var Ba = P.S;
+ P.S = function(e, t) {
+ if (vd = Ve(), typeof t == "object" && t && typeof t.then == "function" && La(e, t), ja !== null) for (var n = xf; n !== null;) Aa(n, ja), n = n.next;
if (n = e.types, n !== null) {
- for (var r = bf; r !== null;) Oa(r, n), r = r.next;
- if (Na !== 0) {
- r = ka, r === null && (r = ka = []);
+ for (var r = xf; r !== null;) Aa(r, n), r = r.next;
+ if (Fa !== 0) {
+ r = ja, r === null && (r = ja = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ra !== null && Ra(e, t);
+ Ba !== null && Ba(e, t);
};
- var za = _e(null);
- function Ba() {
- var e = za.current;
- return e === null ? ed.pooledCache : e;
+ var Va = ve(null);
+ function Ha() {
+ var e = Va.current;
+ return e === null ? td.pooledCache : e;
}
- function Va(e, t) {
- t === null ? ye(za, za.current) : ye(za, t.pool);
+ function Ua(e, t) {
+ t === null ? be(Va, Va.current) : be(Va, t.pool);
}
- function Ha() {
- var e = Ba();
+ function Wa() {
+ var e = Ha();
return e === null ? null : {
- parent: G._currentValue,
+ parent: Da._currentValue,
pool: e
};
}
- var Ua = Error(i(460)), Wa = Error(i(474)), Ga = Error(i(542)), Ka = { then: function() {} };
- function qa(e) {
+ var Ga = Error(i(460)), Ka = Error(i(474)), qa = Error(i(542)), Ja = { then: function() {} };
+ function Ya(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Ja(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(mn, mn), t = n), t.status) {
+ function Xa(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(hn, hn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Qa(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, eo(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(mn, mn);
+ if (typeof t.status == "string") t.then(hn, hn);
else {
- if (e = ed, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = td, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -10169,40 +10172,40 @@ var gu = /* @__PURE__ */ m(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Qa(e), e;
+ case "rejected": throw e = t.reason, eo(e), e;
}
- throw Xa = t, Ua;
+ throw Qa = t, Ga;
}
}
- function Ya(e) {
+ function Za(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Xa = e, Ua) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Qa = e, Ga) : e;
}
}
- var Xa = null;
- function Za() {
- if (Xa === null) throw Error(i(459));
- var e = Xa;
- return Xa = null, e;
+ var Qa = null;
+ function $a() {
+ if (Qa === null) throw Error(i(459));
+ var e = Qa;
+ return Qa = null, e;
}
- function Qa(e) {
- if (e === Ua || e === Ga) throw Error(i(483));
+ function eo(e) {
+ if (e === Ga || e === qa) throw Error(i(483));
}
- var $a = null, eo = 0;
- function to(e) {
- var t = eo;
- return eo += 1, $a === null && ($a = []), Ja($a, e, t);
+ var to = null, no = 0;
+ function ro(e) {
+ var t = no;
+ return no += 1, to === null && (to = []), Xa(to, e, t);
}
- function no(e, t) {
+ function io(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function ro(e, t) {
+ function ao(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 io(e) {
+ function oo(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -10219,7 +10222,7 @@ var gu = /* @__PURE__ */ m(((e) => {
return t;
}
function a(e, t) {
- return e = Ai(e, t), e.index = 0, e.sibling = null, e;
+ return e = ji(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -10228,30 +10231,30 @@ var gu = /* @__PURE__ */ m(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === k ? (e = d(e, t, n.props.children, r, n.key), no(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === P && Ya(i) === t.type) ? (t = a(t, n.props), no(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), no(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), io(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ie && Za(i) === t.type) ? (t = a(t, n.props), io(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), io(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case D: return n = Mi(t.type, t.key, t.props, null, e.mode, n), no(n, t), n.return = e, n;
- case O: return t = Ii(t, e.mode, n), t.return = e, t;
- case P: return t = Ya(t), f(e, t, n);
+ case D: return n = Ni(t.type, t.key, t.props, null, e.mode, n), io(n, t), n.return = e, n;
+ case O: return t = Li(t, e.mode, n), t.return = e, t;
+ case ie: return t = Za(t), f(e, t, n);
}
- if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, to(t), n);
- if (t.$$typeof === te) return f(e, xa(e, t), n);
- ro(e, t);
+ if (me(t) || de(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, ro(t), n);
+ if (t.$$typeof === te) return f(e, Sa(e, t), n);
+ ao(e, t);
}
return null;
}
@@ -10262,12 +10265,12 @@ var gu = /* @__PURE__ */ m(((e) => {
switch (n.$$typeof) {
case D: return n.key === i ? l(e, t, n, r) : null;
case O: return n.key === i ? u(e, t, n, r) : null;
- case P: return n = Ya(n), p(e, t, n, r);
+ case ie: return n = Za(n), p(e, t, n, r);
}
- if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, to(n), r);
- if (n.$$typeof === te) return p(e, t, xa(e, n), r);
- ro(e, n);
+ if (me(n) || de(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, ro(n), r);
+ if (n.$$typeof === te) return p(e, t, Sa(e, n), r);
+ ao(e, n);
}
return null;
}
@@ -10277,12 +10280,12 @@ var gu = /* @__PURE__ */ m(((e) => {
switch (r.$$typeof) {
case D: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case O: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case P: return r = Ya(r), m(e, t, n, r, i);
+ case ie: return r = Za(r), m(e, t, n, r, i);
}
- if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, to(r), i);
- if (r.$$typeof === te) return m(e, t, n, xa(t, r), i);
- ro(t, r);
+ if (me(r) || de(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, ro(r), i);
+ if (r.$$typeof === te) return m(e, t, n, Sa(t, r), i);
+ ao(t, r);
}
return null;
}
@@ -10296,15 +10299,15 @@ var gu = /* @__PURE__ */ m(((e) => {
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), W && Ji(i, h), l;
+ if (h === s.length) return n(i, d), U && Yi(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return W && Ji(i, h), l;
+ return U && Yi(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), W && Ji(i, h), l;
+ }), U && Yi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -10317,15 +10320,15 @@ var gu = /* @__PURE__ */ m(((e) => {
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), W && Ji(a, g), u;
+ if (v.done) return n(a, h), U && Yi(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return W && Ji(a, g), u;
+ return U && Yi(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), W && Ji(a, g), u;
+ }), U && Yi(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === k && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -10336,11 +10339,11 @@ var gu = /* @__PURE__ */ m(((e) => {
if (r.key === l) {
if (l = o.type, l === k) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), no(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), io(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === P && Ya(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), no(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ie && Za(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), io(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -10348,7 +10351,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === k ? (c = Ni(o.props.children, e.mode, c, o.key), no(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), no(c, o), c.return = e, e = c);
+ o.type === k ? (c = Pi(o.props.children, e.mode, c, o.key), io(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), io(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -10364,36 +10367,36 @@ var gu = /* @__PURE__ */ m(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Ii(o, e.mode, c), c.return = e, e = c;
+ c = Li(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case P: return o = Ya(o), _(e, r, o, c);
+ case ie: return o = Za(o), _(e, r, o, c);
}
- if (pe(o)) return h(e, r, o, c);
- if (ue(o)) {
- if (l = ue(o), typeof l != "function") throw Error(i(150));
+ if (me(o)) return h(e, r, o, c);
+ if (de(o)) {
+ if (l = de(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, to(o), c);
- if (o.$$typeof === te) return _(e, r, xa(e, o), c);
- ro(e, o);
+ if (typeof o.then == "function") return _(e, r, ro(o), c);
+ if (o.$$typeof === te) return _(e, r, Sa(e, o), c);
+ ao(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- eo = 0;
+ no = 0;
var i = _(e, t, n, r);
- return $a = null, i;
+ return to = null, i;
} catch (t) {
- if (t === Ua || t === Ga) throw t;
- var a = Oi(29, t, null, e.mode);
+ if (t === Ga || t === qa) throw t;
+ var a = ki(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var ao = io(!0), oo = io(!1), so = !1;
- function co(e) {
+ var so = oo(!0), co = oo(!1), lo = !1;
+ function uo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -10406,7 +10409,7 @@ var gu = /* @__PURE__ */ m(((e) => {
callbacks: null
};
}
- function lo(e, t) {
+ function fo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -10415,7 +10418,7 @@ var gu = /* @__PURE__ */ m(((e) => {
callbacks: null
});
}
- function uo(e) {
+ function po(e) {
return {
lane: e,
tag: 0,
@@ -10424,22 +10427,22 @@ var gu = /* @__PURE__ */ m(((e) => {
next: null
};
}
- function fo(e, t, n) {
+ function mo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, $u & 2) {
+ if (r = r.shared, ed & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
}
- return xi(e, r, t, n), Ti(e);
+ return Si(e, r, t, n), Ei(e);
}
- function po(e, t, n) {
+ function ho(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
}
}
- function mo(e, t) {
+ function go(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -10467,17 +10470,17 @@ var gu = /* @__PURE__ */ m(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var ho = !1;
- function go() {
- if (ho) {
- var e = Pa;
+ var _o = !1;
+ function vo() {
+ if (_o) {
+ var e = Ia;
if (e !== null) throw e;
}
}
- function _o(e, t, n, r) {
- ho = !1;
+ function yo(e, t, n, r) {
+ _o = !1;
var i = e.updateQueue;
- so = !1;
+ lo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -10491,8 +10494,8 @@ var gu = /* @__PURE__ */ m(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (J & f) === f : (r & f) === f) {
- f !== 0 && f === Na && (ho = !0), u !== null && (u = u.next = {
+ if (p ? (q & f) === f : (r & f) === f) {
+ f !== 0 && f === Fa && (_o = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -10516,7 +10519,7 @@ var gu = /* @__PURE__ */ m(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = T({}, d, f);
break a;
- case 2: so = !0;
+ case 2: lo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -10532,56 +10535,56 @@ var gu = /* @__PURE__ */ m(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), cd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), ld |= o, e.lanes = o, e.memoizedState = d;
}
}
- function vo(e, t) {
+ function bo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function yo(e, t) {
+ function xo(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) vo(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) bo(n[e], t);
}
- var bo = _e(null), xo = _e(0);
- function So(e, t) {
- e = od, ye(xo, e), ye(bo, t), od = e | t.baseLanes;
+ var So = ve(null), Co = ve(0);
+ function wo(e, t) {
+ e = sd, be(Co, e), be(So, t), sd = e | t.baseLanes;
}
- function Co() {
- ye(xo, od), ye(bo, bo.current);
+ function To() {
+ be(Co, sd), be(So, So.current);
}
- function wo() {
- od = xo.current, ve(bo), ve(xo);
+ function Eo() {
+ sd = Co.current, ye(So), ye(Co);
}
- var To = _e(null), Eo = null;
- function Do(e) {
+ var Do = ve(null), Oo = null;
+ function ko(e) {
var t = e.alternate;
- ye(Mo, Mo.current & 1), ye(To, e), Eo === null && (t === null || bo.current !== null || t.memoizedState !== null) && (Eo = e);
+ be(Po, Po.current & 1), be(Do, e), Oo === null && (t === null || So.current !== null || t.memoizedState !== null) && (Oo = e);
}
- function Oo(e) {
- ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e);
+ function Ao(e) {
+ be(Po, Po.current), be(Do, e), Oo === null && (Oo = e);
}
- function ko(e) {
- e.tag === 22 ? (ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e)) : Ao();
+ function jo(e) {
+ e.tag === 22 ? (be(Po, Po.current), be(Do, e), Oo === null && (Oo = e)) : Mo();
}
- function Ao() {
- ye(Mo, Mo.current), ye(To, To.current);
+ function Mo() {
+ be(Po, Po.current), be(Do, Do.current);
}
- function jo(e) {
- ve(To), Eo === e && (Eo = null), ve(Mo);
+ function No(e) {
+ ye(Do), Oo === e && (Oo = null), ye(Po);
}
- var Mo = _e(0);
- function No(e, t) {
- ye(To, To.current), ye(Mo, t);
+ var Po = ve(0);
+ function Fo(e, t) {
+ be(Do, Do.current), be(Po, t);
}
- function Po(e) {
- ve(Mo), ve(To), Eo === e && (Eo = null);
+ function Io(e) {
+ ye(Po), ye(Do), Oo === e && (Oo = null);
}
- function Fo(e) {
+ function Lo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || om(n) || sm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || sm(n) || cm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -10597,59 +10600,59 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- var Io = 0, K = null, Lo = null, Ro = null, zo = !1, Bo = !1, Vo = !1, Ho = 0, Uo = 0, Wo = null, Go = 0;
- function Ko() {
+ var Ro = 0, W = null, zo = null, Bo = null, Vo = !1, Ho = !1, Uo = !1, Wo = 0, Go = 0, Ko = null, qo = 0;
+ function G() {
throw Error(i(321));
}
- function qo(e, t) {
+ function Jo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Ir(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
return !0;
}
- function Jo(e, t, n, r, i, a) {
- return Io = a, K = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, F.H = e === null || e.memoizedState === null ? dc : fc, Vo = !1, a = n(r, i), Vo = !1, Bo && (a = Xo(t, n, r, i)), Yo(e), a;
+ function Yo(e, t, n, r, i, a) {
+ return Ro = a, W = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, P.H = e === null || e.memoizedState === null ? fc : pc, Uo = !1, a = n(r, i), Uo = !1, Ho && (a = Zo(t, n, r, i)), Xo(e), a;
}
- function Yo(e) {
- F.H = uc;
- var t = Lo !== null && Lo.next !== null;
- if (Io = 0, Ro = Lo = K = null, zo = !1, Uo = 0, Wo = null, t) throw Error(i(300));
- e === null || kc || (e = e.dependencies, e !== null && va(e) && (kc = !0));
+ function Xo(e) {
+ P.H = dc;
+ var t = zo !== null && zo.next !== null;
+ if (Ro = 0, Bo = zo = W = null, Vo = !1, Go = 0, Ko = null, t) throw Error(i(300));
+ e === null || Ac || (e = e.dependencies, e !== null && ya(e) && (Ac = !0));
}
- function Xo(e, t, n, r) {
- K = e;
+ function Zo(e, t, n, r) {
+ W = e;
var a = 0;
do {
- if (Bo && (Wo = null), Uo = 0, Bo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Ro = Lo = null, e.updateQueue != null) {
+ if (Ho && (Ko = null), Go = 0, Ho = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Bo = zo = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- F.H = pc, o = t(n, r);
- } while (Bo);
+ P.H = mc, o = t(n, r);
+ } while (Ho);
return o;
}
- function Zo() {
- var e = F.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? is(t) : t, e = e.useState()[0], (Lo === null ? null : Lo.memoizedState) !== e && (K.flags |= 1024), t;
- }
function Qo() {
- var e = Ho !== 0;
- return Ho = 0, e;
+ var e = P.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (zo === null ? null : zo.memoizedState) !== e && (W.flags |= 1024), t;
}
- function $o(e, t, n) {
+ function $o() {
+ var e = Wo !== 0;
+ return Wo = 0, e;
+ }
+ function es(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function es(e) {
- if (zo) {
+ function ts(e) {
+ if (Vo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- zo = !1;
+ Vo = !1;
}
- Io = 0, Ro = Lo = K = null, Bo = !1, Uo = Ho = 0, Wo = null;
+ Ro = 0, Bo = zo = W = null, Ho = !1, Go = Wo = 0, Ko = null;
}
- function ts() {
+ function ns() {
var e = {
memoizedState: null,
baseState: null,
@@ -10657,28 +10660,28 @@ var gu = /* @__PURE__ */ m(((e) => {
queue: null,
next: null
};
- return Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e, Ro;
+ return Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e, Bo;
}
- function ns() {
- if (Lo === null) {
- var e = K.alternate;
+ function rs() {
+ if (zo === null) {
+ var e = W.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Lo.next;
- var t = Ro === null ? K.memoizedState : Ro.next;
- if (t !== null) Ro = t, Lo = e;
+ } else e = zo.next;
+ var t = Bo === null ? W.memoizedState : Bo.next;
+ if (t !== null) Bo = t, zo = e;
else {
- if (e === null) throw K.alternate === null ? Error(i(467)) : Error(i(310));
- Lo = e, e = {
- memoizedState: Lo.memoizedState,
- baseState: Lo.baseState,
- baseQueue: Lo.baseQueue,
- queue: Lo.queue,
+ if (e === null) throw W.alternate === null ? Error(i(467)) : Error(i(310));
+ zo = e, e = {
+ memoizedState: zo.memoizedState,
+ baseState: zo.baseState,
+ baseQueue: zo.baseQueue,
+ queue: zo.queue,
next: null
- }, Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e;
+ }, Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e;
}
- return Ro;
+ return Bo;
}
- function rs() {
+ function is() {
return {
lastEffect: null,
events: null,
@@ -10686,22 +10689,22 @@ var gu = /* @__PURE__ */ m(((e) => {
memoCache: null
};
}
- function is(e) {
- var t = Uo;
- return Uo += 1, Wo === null && (Wo = []), e = Ja(Wo, e, t), t = K, (Ro === null ? t.memoizedState : Ro.next) === null && (t = t.alternate, F.H = t === null || t.memoizedState === null ? dc : fc), e;
- }
function as(e) {
+ var t = Go;
+ return Go += 1, Ko === null && (Ko = []), e = Xa(Ko, e, t), t = W, (Bo === null ? t.memoizedState : Bo.next) === null && (t = t.alternate, P.H = t === null || t.memoizedState === null ? fc : pc), e;
+ }
+ function os(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return is(e);
- if (e.$$typeof === ce) return;
- if (e.$$typeof === te) return ba(e);
+ if (typeof e.then == "function") return as(e);
+ if (e.$$typeof === le) return;
+ if (e.$$typeof === te) return xa(e);
}
throw Error(i(438, String(e)));
}
- function os(e) {
- var t = null, n = K.updateQueue;
+ function ss(e) {
+ var t = null, n = W.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = K.alternate;
+ var r = W.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -10712,16 +10715,16 @@ var gu = /* @__PURE__ */ m(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = rs(), K.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
+ }, n === null && (n = is(), W.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = se;
return t.index++, n;
}
- function ss(e, t) {
+ function cs(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function cs(e) {
- return ls(ns(), Lo, e);
+ function ls(e) {
+ return us(rs(), zo, e);
}
- function ls(e, t, n) {
+ function us(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -10739,7 +10742,7 @@ var gu = /* @__PURE__ */ m(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Io & f) === f : (J & f) === f) {
+ if (f === u.lane ? (Ro & f) === f : (q & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -10749,9 +10752,9 @@ var gu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Na && (d = !0);
- else if ((Io & p) === p) {
- u = u.next, p === Na && (d = !0);
+ }), f === Fa && (d = !0);
+ else if ((Ro & p) === p) {
+ u = u.next, p === Fa && (d = !0);
continue;
} else f = {
lane: 0,
@@ -10761,8 +10764,8 @@ var gu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, K.lanes |= p, cd |= p;
- f = u.action, Vo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, W.lanes |= p, ld |= p;
+ f = u.action, Uo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -10771,16 +10774,16 @@ var gu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, K.lanes |= f, cd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, W.lanes |= f, ld |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Ir(o, e.memoizedState) && (kc = !0, d && (n = Pa, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Ac = !0, d && (n = Ia, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function us(e) {
- var t = ns(), n = t.queue;
+ function ds(e) {
+ var t = rs(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -10790,61 +10793,61 @@ var gu = /* @__PURE__ */ m(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Ir(o, t.memoizedState) || (kc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Lr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ds(e, t, n) {
- var r = K, a = ns(), o = W;
+ function fs(e, t, n) {
+ var r = W, a = rs(), o = U;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Ir((Lo || a).memoizedState, n);
- if (s && (a.memoizedState = n, kc = !0), a = a.queue, Is(ms.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ro !== null && !!(Ro.memoizedState.tag & 1), js(e ? 9 : 8, { destroy: void 0 }, ps.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, ed === null) throw Error(i(349));
- o || Io & 127 || fs(r, t, n);
+ var s = !Lr((zo || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Ac = !0), a = a.queue, Ls(hs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Bo !== null && !!(Bo.memoizedState.tag & 1), Ms(e ? 9 : 8, { destroy: void 0 }, ms.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, td === null) throw Error(i(349));
+ o || Ro & 127 || ps(r, t, n);
}
return n;
}
- function fs(e, t, n) {
+ function ps(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = K.updateQueue, t === null ? (t = rs(), K.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = W.updateQueue, t === null ? (t = is(), W.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function ps(e, t, n, r) {
- t.value = n, t.getSnapshot = r, hs(t) && gs(e);
+ function ms(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, gs(t) && _s(e);
}
- function ms(e, t, n) {
+ function hs(e, t, n) {
return n(function() {
- hs(t) && gs(e);
+ gs(t) && _s(e);
});
}
- function hs(e) {
+ function gs(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Ir(e, n);
+ return !Lr(e, n);
} catch {
return !0;
}
}
- function gs(e) {
- var t = Ci(e, 2);
- t !== null && Fd(t, e, 2);
- }
function _s(e) {
- var t = ts();
+ var t = wi(e, 2);
+ t !== null && Id(t, e, 2);
+ }
+ function vs(e) {
+ var t = ns();
if (typeof e == "function") {
var n = e;
- if (e = n(), Vo) {
- Ze(!0);
+ if (e = n(), Uo) {
+ Qe(!0);
try {
n();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
}
@@ -10852,15 +10855,15 @@ var gu = /* @__PURE__ */ m(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: cs,
lastRenderedState: e
}, t;
}
- function vs(e, t, n, r) {
- return e.baseState = n, ls(e, Lo, typeof r == "function" ? r : ss);
+ function ys(e, t, n, r) {
+ return e.baseState = n, us(e, zo, typeof r == "function" ? r : cs);
}
- function ys(e, t, n, r, a) {
- if (sc(e)) throw Error(i(485));
+ function bs(e, t, n, r, a) {
+ if (cc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -10875,70 +10878,70 @@ var gu = /* @__PURE__ */ m(((e) => {
o.listeners.push(e);
}
};
- F.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, bs(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ P.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, xs(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function bs(e, t) {
+ function xs(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = F.T, o = {};
- o.types = a === null ? null : a.types, F.T = o;
+ var a = P.T, o = {};
+ o.types = a === null ? null : a.types, P.T = o;
try {
- var s = n(i, r), c = F.S;
- c !== null && c(o, s), xs(e, t, s);
+ var s = n(i, r), c = P.S;
+ c !== null && c(o, s), Ss(e, t, s);
} catch (n) {
- Cs(e, t, n);
+ ws(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), F.T = a;
+ a !== null && o.types !== null && (a.types = o.types), P.T = a;
}
} else try {
- a = n(i, r), xs(e, t, a);
+ a = n(i, r), Ss(e, t, a);
} catch (n) {
- Cs(e, t, n);
+ ws(e, t, n);
}
}
- function xs(e, t, n) {
+ function Ss(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Ss(e, t, n);
+ Cs(e, t, n);
}, function(n) {
- return Cs(e, t, n);
- }) : Ss(e, t, n);
- }
- function Ss(e, t, n) {
- t.status = "fulfilled", t.value = n, ws(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, bs(e, n)));
+ return ws(e, t, n);
+ }) : Cs(e, t, n);
}
function Cs(e, t, n) {
+ t.status = "fulfilled", t.value = n, Ts(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, xs(e, n)));
+ }
+ function ws(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, ws(t), t = t.next;
+ t.status = "rejected", t.reason = n, Ts(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function ws(e) {
+ function Ts(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Ts(e, t) {
+ function Es(e, t) {
return t;
}
- function Es(e, t) {
- if (W) {
- var n = ed.formState;
+ function Ds(e, t) {
+ if (U) {
+ var n = td.formState;
if (n !== null) {
a: {
- var r = K;
- if (W) {
- if ($i) {
+ var r = W;
+ if (U) {
+ if (H) {
b: {
- for (var i = $i, a = ta; i.nodeType !== 8;) {
+ for (var i = H, a = na; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
}
- if (i = lm(i.nextSibling), i === null) {
+ if (i = um(i.nextSibling), i === null) {
i = null;
break b;
}
@@ -10946,59 +10949,59 @@ var gu = /* @__PURE__ */ m(((e) => {
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- $i = lm(i.nextSibling), r = i.data === "F!";
+ H = um(i.nextSibling), r = i.data === "F!";
break a;
}
}
- ra(r);
+ ia(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = ts(), n.memoizedState = n.baseState = t, r = {
+ return n = ns(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Ts,
+ lastRenderedReducer: Es,
lastRenderedState: t
- }, n.queue = r, n = ic.bind(null, K, r), r.dispatch = n, r = _s(!1), a = oc.bind(null, K, !1, r.queue), r = ts(), i = {
+ }, n.queue = r, n = ac.bind(null, W, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, W, !1, r.queue), r = ns(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = ys.bind(null, K, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = bs.bind(null, W, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ds(e) {
- return Os(ns(), Lo, e);
+ function Os(e) {
+ return ks(rs(), zo, e);
}
- function Os(e, t, n) {
- if (t = ls(e, t, Ts)[0], e = cs(ss)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = is(t);
+ function ks(e, t, n) {
+ if (t = us(e, t, Es)[0], e = ls(cs)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = as(t);
} catch (e) {
- throw e === Ua ? Ga : e;
+ throw e === Ga ? qa : e;
}
else r = t;
- t = ns();
+ t = rs();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (K.flags |= 2048, js(9, { destroy: void 0 }, ks.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (W.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
r,
a,
e
];
}
- function ks(e, t) {
+ function As(e, t) {
e.action = t;
}
- function As(e) {
- var t = ns(), n = Lo;
- if (n !== null) return Os(t, n, e);
- ns(), t = t.memoizedState, n = ns();
+ function js(e) {
+ var t = rs(), n = zo;
+ if (n !== null) return ks(t, n, e);
+ rs(), t = t.memoizedState, n = rs();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -11006,60 +11009,60 @@ var gu = /* @__PURE__ */ m(((e) => {
!1
];
}
- function js(e, t, n, r) {
+ function Ms(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = K.updateQueue, t === null && (t = rs(), K.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
- }
- function Ms() {
- return ns().memoizedState;
+ }, t = W.updateQueue, t === null && (t = is(), W.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
}
- function Ns(e, t, n, r) {
- var i = ts();
- K.flags |= e, i.memoizedState = js(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ function Ns() {
+ return rs().memoizedState;
}
function Ps(e, t, n, r) {
var i = ns();
+ W.flags |= e, i.memoizedState = Ms(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ }
+ function Fs(e, t, n, r) {
+ var i = rs();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Lo !== null && r !== null && qo(r, Lo.memoizedState.deps) ? i.memoizedState = js(t, a, n, r) : (K.flags |= e, i.memoizedState = js(1 | t, a, n, r));
- }
- function Fs(e, t) {
- Ns(8390656, 8, e, t);
+ zo !== null && r !== null && Jo(r, zo.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (W.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));
}
function Is(e, t) {
- Ps(2048, 8, e, t);
+ Ps(8390656, 8, e, t);
}
- function Ls(e) {
- K.flags |= 4;
- var t = K.updateQueue;
- if (t === null) t = rs(), K.updateQueue = t, t.events = [e];
+ function Ls(e, t) {
+ Fs(2048, 8, e, t);
+ }
+ function Rs(e) {
+ W.flags |= 4;
+ var t = W.updateQueue;
+ if (t === null) t = is(), W.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Rs(e) {
- var t = ns().memoizedState;
- return Ls({
+ function zs(e) {
+ var t = rs().memoizedState;
+ return Rs({
ref: t,
nextImpl: e
}), function() {
- if ($u & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
- function zs(e, t) {
- return Ps(4, 2, e, t);
- }
function Bs(e, t) {
- return Ps(4, 4, e, t);
+ return Fs(4, 2, e, t);
}
function Vs(e, t) {
+ return Fs(4, 4, e, t);
+ }
+ function Hs(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -11071,76 +11074,76 @@ var gu = /* @__PURE__ */ m(((e) => {
t.current = null;
};
}
- function Hs(e, t, n) {
- n = n == null ? null : n.concat([e]), Ps(4, 4, Vs.bind(null, t, e), n);
+ function Us(e, t, n) {
+ n = n == null ? null : n.concat([e]), Fs(4, 4, Hs.bind(null, t, e), n);
}
- function Us() {}
- function Ws(e, t) {
- var n = ns();
+ function Ws() {}
+ function Gs(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Jo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Gs(e, t) {
- var n = ns();
+ function Ks(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && qo(t, r[1])) return r[0];
- if (r = e(), Vo) {
- Ze(!0);
+ if (t !== null && Jo(t, r[1])) return r[0];
+ if (r = e(), Uo) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Ks(e, t, n) {
- return n === void 0 || Io & 1073741824 && !(J & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Nd(), K.lanes |= e, cd |= e, n);
+ function qs(e, t, n) {
+ return n === void 0 || Ro & 1073741824 && !(q & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Pd(), W.lanes |= e, ld |= e, n);
}
- function qs(e, t, n, r) {
- return Ir(n, t) ? n : bo.current === null ? !(Io & 106) || Io & 1073741824 && !(J & 261930) ? (kc = !0, e.memoizedState = n) : (e = Nd(), K.lanes |= e, cd |= e, t) : (e = Ks(e, n, r), Ir(e, t) || (kc = !0), e);
+ function Js(e, t, n, r) {
+ return Lr(n, t) ? n : So.current === null ? !(Ro & 106) || Ro & 1073741824 && !(q & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Pd(), W.lanes |= e, ld |= e, t) : (e = qs(e, n, r), Lr(e, t) || (Ac = !0), e);
}
- function Js(e, t, n, r, i) {
- var a = I.p;
- I.p = a !== 0 && 8 > a ? a : 8;
- var o = F.T, s = {};
- s.types = o === null ? null : o.types, F.T = s, oc(e, !1, t, n);
+ function Ys(e, t, n, r, i) {
+ var a = F.p;
+ F.p = a !== 0 && 8 > a ? a : 8;
+ var o = P.T, s = {};
+ s.types = o === null ? null : o.types, P.T = s, sc(e, !1, t, n);
try {
- var c = i(), l = F.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, La(c, r), Md(e)) : ac(e, t, r, Md(e));
+ var c = i(), l = P.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, za(c, r), Nd(e)) : oc(e, t, r, Nd(e));
} catch (n) {
- ac(e, t, {
+ oc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Md());
+ }, Nd());
} finally {
- I.p = a, o !== null && s.types !== null && (o.types = s.types), F.T = o;
+ F.p = a, o !== null && s.types !== null && (o.types = s.types), P.T = o;
}
}
- function Ys() {}
- function Xs(e, t, n, r) {
+ function Xs() {}
+ function Zs(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = Zs(e).queue;
- Js(e, a, t, me, n === null ? Ys : function() {
- return Qs(e), n(r);
+ var a = Qs(e).queue;
+ Ys(e, a, t, he, n === null ? Xs : function() {
+ return $s(e), n(r);
});
}
- function Zs(e) {
+ function Qs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: me,
- baseState: me,
+ memoizedState: he,
+ baseState: he,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
- lastRenderedState: me
+ lastRenderedReducer: cs,
+ lastRenderedState: he
},
next: null
};
@@ -11153,41 +11156,41 @@ var gu = /* @__PURE__ */ m(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: cs,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function Qs(e) {
- var t = Zs(e);
- t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, Md());
- }
- function $s() {
- return ba(sh);
+ function $s(e) {
+ var t = Qs(e);
+ t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, Nd());
}
function ec() {
- return ns().memoizedState;
+ return xa(ch);
}
function tc() {
- return ns().memoizedState;
+ return rs().memoizedState;
}
- function nc(e) {
+ function nc() {
+ return rs().memoizedState;
+ }
+ function rc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = Md();
- e = uo(n);
- var r = fo(t, e, n);
- r !== null && (Fd(r, t, n), po(r, t, n)), t = { cache: Ea() }, e.payload = t;
+ var n = Nd();
+ e = po(n);
+ var r = mo(t, e, n);
+ r !== null && (Id(r, t, n), ho(r, t, n)), t = { cache: Oa() }, e.payload = t;
return;
}
t = t.return;
}
}
- function rc(e, t, n) {
- var r = Md();
+ function ic(e, t, n) {
+ var r = Nd();
n = {
lane: r,
revertLane: 0,
@@ -11196,12 +11199,12 @@ var gu = /* @__PURE__ */ m(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e) ? cc(t, n) : (n = Si(e, t, n, r), n !== null && (Fd(n, e, r), lc(n, t, r)));
+ }, cc(e) ? lc(t, n) : (n = Ci(e, t, n, r), n !== null && (Id(n, e, r), uc(n, t, r)));
}
- function ic(e, t, n) {
- ac(e, t, n, Md());
+ function ac(e, t, n) {
+ oc(e, t, n, Nd());
}
- function ac(e, t, n, r) {
+ function oc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -11211,18 +11214,18 @@ var gu = /* @__PURE__ */ m(((e) => {
eagerState: null,
next: null
};
- if (sc(e)) cc(t, i);
+ if (cc(e)) lc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Ir(s, o)) return xi(e, t, i, 0), ed === null && bi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return Si(e, t, i, 0), td === null && xi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Fd(n, e, r), lc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Id(n, e, r), uc(n, t, r), !0;
}
return !1;
}
- function oc(e, t, n, r) {
+ function sc(e, t, n, r) {
if (r = {
lane: 2,
revertLane: Pf(),
@@ -11231,91 +11234,91 @@ var gu = /* @__PURE__ */ m(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e)) {
+ }, cc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Fd(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Id(t, e, 2);
}
- function sc(e) {
+ function cc(e) {
var t = e.alternate;
- return e === K || t !== null && t === K;
+ return e === W || t !== null && t === W;
}
- function cc(e, t) {
- Bo = zo = !0;
+ function lc(e, t) {
+ Ho = Vo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function lc(e, t, n) {
+ function uc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
- }
- }
- var uc = {
- readContext: ba,
- use: as,
- useCallback: Ko,
- useContext: Ko,
- useEffect: Ko,
- useImperativeHandle: Ko,
- useLayoutEffect: Ko,
- useInsertionEffect: Ko,
- useMemo: Ko,
- useReducer: Ko,
- useRef: Ko,
- useState: Ko,
- useDebugValue: Ko,
- useDeferredValue: Ko,
- useTransition: Ko,
- useSyncExternalStore: Ko,
- useId: Ko,
- useHostTransitionStatus: Ko,
- useFormState: Ko,
- useActionState: Ko,
- useOptimistic: Ko,
- useMemoCache: Ko,
- useCacheRefresh: Ko,
- useEffectEvent: Ko
- }, dc = {
- readContext: ba,
- use: as,
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
+ }
+ }
+ var dc = {
+ readContext: xa,
+ use: os,
+ useCallback: G,
+ useContext: G,
+ useEffect: G,
+ useImperativeHandle: G,
+ useLayoutEffect: G,
+ useInsertionEffect: G,
+ useMemo: G,
+ useReducer: G,
+ useRef: G,
+ useState: G,
+ useDebugValue: G,
+ useDeferredValue: G,
+ useTransition: G,
+ useSyncExternalStore: G,
+ useId: G,
+ useHostTransitionStatus: G,
+ useFormState: G,
+ useActionState: G,
+ useOptimistic: G,
+ useMemoCache: G,
+ useCacheRefresh: G,
+ useEffectEvent: G
+ }, fc = {
+ readContext: xa,
+ use: os,
useCallback: function(e, t) {
- return ts().memoizedState = [e, t === void 0 ? null : t], e;
+ return ns().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: ba,
- useEffect: Fs,
+ useContext: xa,
+ useEffect: Is,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Ns(4194308, 4, Vs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Ns(4194308, 4, e, t);
+ return Ps(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Ns(4, 2, e, t);
+ Ps(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = ts();
+ var n = ns();
t = t === void 0 ? null : t;
var r = e();
- if (Vo) {
- Ze(!0);
+ if (Uo) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = ts();
+ var r = ns();
if (n !== void 0) {
var i = n(t);
- if (Vo) {
- Ze(!0);
+ if (Uo) {
+ Qe(!0);
try {
n(t);
} finally {
- Ze(!1);
+ Qe(!1);
}
}
} else i = t;
@@ -11325,54 +11328,54 @@ var gu = /* @__PURE__ */ m(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = rc.bind(null, K, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = ic.bind(null, W, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = ts();
+ var t = ns();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = _s(e);
- var t = e.queue, n = ic.bind(null, K, t);
+ e = vs(e);
+ var t = e.queue, n = ac.bind(null, W, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return Ks(ts(), e, t);
+ return qs(ns(), e, t);
},
useTransition: function() {
- var e = _s(!1);
- return e = Js.bind(null, K, e.queue, !0, !1), ts().memoizedState = e, [!1, e];
+ var e = vs(!1);
+ return e = Ys.bind(null, W, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = K, a = ts();
- if (W) {
+ var r = W, a = ns();
+ if (U) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), ed === null) throw Error(i(349));
- J & 127 || fs(r, t, n);
+ if (n = t(), td === null) throw Error(i(349));
+ q & 127 || ps(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Fs(ms.bind(null, r, o, e), [e]), r.flags |= 2048, js(9, { destroy: void 0 }, ps.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Is(hs.bind(null, r, o, e), [e]), r.flags |= 2048, Ms(9, { destroy: void 0 }, ms.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = ts(), t = ed.identifierPrefix;
- if (W) {
- var n = qi, r = Ki;
- n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ho++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Go++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = ns(), t = td.identifierPrefix;
+ if (U) {
+ var n = Ji, r = qi;
+ n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Wo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = qo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: $s,
- useFormState: Es,
- useActionState: Es,
+ useHostTransitionStatus: ec,
+ useFormState: Ds,
+ useActionState: Ds,
useOptimistic: function(e) {
- var t = ts();
+ var t = ns();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -11381,132 +11384,132 @@ var gu = /* @__PURE__ */ m(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = oc.bind(null, K, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = sc.bind(null, W, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: os,
+ useMemoCache: ss,
useCacheRefresh: function() {
- return ts().memoizedState = nc.bind(null, K);
+ return ns().memoizedState = rc.bind(null, W);
},
useEffectEvent: function(e) {
- var t = ts(), n = { impl: e };
+ var t = ns(), n = { impl: e };
return t.memoizedState = n, function() {
- if ($u & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, fc = {
- readContext: ba,
- use: as,
- useCallback: Ws,
- useContext: ba,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: cs,
- useRef: Ms,
+ }, pc = {
+ readContext: xa,
+ use: os,
+ useCallback: Gs,
+ useContext: xa,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ls,
+ useRef: Ns,
useState: function() {
- return cs(ss);
+ return ls(cs);
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return qs(ns(), Lo.memoizedState, e, t);
+ return Js(rs(), zo.memoizedState, e, t);
},
useTransition: function() {
- var e = cs(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ls(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: Ds,
- useActionState: Ds,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: Os,
+ useActionState: Os,
useOptimistic: function(e, t) {
- return vs(ns(), Lo, e, t);
+ return ys(rs(), zo, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
- }, pc = {
- readContext: ba,
- use: as,
- useCallback: Ws,
- useContext: ba,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: us,
- useRef: Ms,
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
+ }, mc = {
+ readContext: xa,
+ use: os,
+ useCallback: Gs,
+ useContext: xa,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ds,
+ useRef: Ns,
useState: function() {
- return us(ss);
+ return ds(cs);
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- var n = ns();
- return Lo === null ? Ks(n, e, t) : qs(n, Lo.memoizedState, e, t);
+ var n = rs();
+ return zo === null ? qs(n, e, t) : Js(n, zo.memoizedState, e, t);
},
useTransition: function() {
- var e = us(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ds(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: As,
- useActionState: As,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e, t) {
- var n = ns();
- return Lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : vs(n, Lo, e, t);
+ var n = rs();
+ return zo === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, zo, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
};
- function mc(e, t, n, r) {
+ function hc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : T({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var hc = {
+ var gc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = uo(r);
- i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Fd(t, e, r), po(t, e, r));
+ var r = Nd(), i = po(r);
+ i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Id(t, e, r), ho(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = uo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Fd(t, e, r), po(t, e, r));
+ var r = Nd(), i = po(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Id(t, e, r), ho(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Md(), r = uo(n);
- r.tag = 2, t != null && (r.callback = t), t = fo(e, r, n), t !== null && (Fd(t, e, n), po(t, e, n));
+ var n = Nd(), r = po(n);
+ r.tag = 2, t != null && (r.callback = t), t = mo(e, r, n), t !== null && (Id(t, e, n), ho(t, e, n));
}
};
- function gc(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Lr(n, r) || !Lr(i, a) : !0;
+ function _c(e, t, n, r, i, a, o) {
+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;
}
- function _c(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && hc.enqueueReplaceState(t, t.state, null);
+ function vc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && gc.enqueueReplaceState(t, t.state, null);
}
- function vc(e, t) {
+ function yc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = T({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function yc(e) {
- gi(e);
- }
function bc(e) {
- console.error(e);
+ _i(e);
}
function xc(e) {
- gi(e);
+ console.error(e);
}
- function Sc(e, t) {
+ function Sc(e) {
+ _i(e);
+ }
+ function Cc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -11516,7 +11519,7 @@ var gu = /* @__PURE__ */ m(((e) => {
});
}
}
- function Cc(e, t, n) {
+ function wc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -11529,57 +11532,57 @@ var gu = /* @__PURE__ */ m(((e) => {
});
}
}
- function wc(e, t, n) {
- return n = uo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Sc(e, t);
+ function Tc(e, t, n) {
+ return n = po(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Cc(e, t);
}, n;
}
- function Tc(e) {
- return e = uo(e), e.tag = 3, e;
+ function Ec(e) {
+ return e = po(e), e.tag = 3, e;
}
- function Ec(e, t, n, r) {
+ function Dc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Cc(t, n, r);
+ wc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Cc(t, n, r), typeof i != "function" && (bd === null ? bd = /* @__PURE__ */ new Set([this]) : bd.add(this));
+ wc(t, n, r), typeof i != "function" && (xd === null ? xd = /* @__PURE__ */ new Set([this]) : xd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Dc(e, t, n, r, a) {
+ function Oc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && _a(t, n, a, !0), n = To.current, n !== null) {
+ if (t = n.alternate, t !== null && va(t, n, a, !0), n = Do.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Eo === null ? Gd() : n.alternate === null && sd === 0 && (sd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), mf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Oo === null ? qd() : n.alternate === null && cd === 0 && (cd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), hf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), mf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), hf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return mf(e, r, a), Gd(), !1;
+ return hf(e, r, a), qd(), !1;
}
- if (W) return t = To.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), la(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = wc(e.stateNode, r, a), mo(e, a), sd !== 4 && (sd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), la(Ri(e, n)))), !1;
+ if (U) return t = Do.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Tc(e.stateNode, r, a), go(e, a), cd !== 4 && (cd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Ri(o, n), pd === null ? pd = [o] : pd.push(o), sd !== 4 && (sd = 2), t === null) return !0;
- r = Ri(r, n), n = t;
+ if (o = zi(o, n), md === null ? md = [o] : md.push(o), cd !== 4 && (cd = 2), t === null) return !0;
+ r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = wc(n.stateNode, r, e), mo(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), go(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (bd === null || !bd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), mo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (xd === null || !xd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), go(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -11587,41 +11590,41 @@ var gu = /* @__PURE__ */ m(((e) => {
} while (n !== null);
return !1;
}
- var Oc = Error(i(461)), kc = !1;
- function Ac(e, t, n, r) {
- t.child = e === null ? oo(t, null, n, r) : ao(t, e.child, n, r);
+ var kc = Error(i(461)), Ac = !1;
+ function jc(e, t, n, r) {
+ t.child = e === null ? co(t, null, n, r) : so(t, e.child, n, r);
}
- function jc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return ya(t), r = Jo(e, t, n, o, a, i), s = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && s && Xi(t), t.flags |= 1, Ac(e, t, r, i), t.child);
+ return ba(t), r = Yo(e, t, n, o, a, i), s = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && s && Zi(t), t.flags |= 1, jc(e, t, r, i), t.child);
}
- function Mc(e, t, n, r, i) {
+ function Nc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Nc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Pc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !ol(e, i)) {
+ if (a = e.child, !sl(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Lr : n, n(o, r) && e.ref === t.ref) return al(e, t, i);
+ if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
}
- return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Nc(e, t, n, r, i) {
+ function Pc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Lr(a, r) && e.ref === t.ref) {
- if (kc = !1, t.pendingProps = r = a, ol(e, i)) e.flags & 131072 && (kc = !0);
- else return t.lanes = e.lanes, al(e, t, i);
+ if (Rr(a, r) && e.ref === t.ref) {
+ if (Ac = !1, t.pendingProps = r = a, sl(e, i)) e.flags & 131072 && (Ac = !0);
+ else return t.lanes = e.lanes, ol(e, t, i);
}
}
- return Vc(e, t, n, r, i);
+ return Hc(e, t, n, r, i);
}
- function Pc(e, t, n, r) {
+ function Fc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -11634,17 +11637,17 @@ var gu = /* @__PURE__ */ m(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Ic(e, t, a, n, r);
+ return Lc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Va(t, a === null ? null : a.cachePool), a === null ? Co() : So(t, a), ko(t);
- else return r = t.lanes = 536870912, Ic(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Va(t, null), Co(), Ao()) : (Va(t, a.cachePool), So(t, a), Ao(), t.memoizedState = null);
- return Ac(e, t, i, n), t.child;
+ }, e !== null && Ua(t, a === null ? null : a.cachePool), a === null ? To() : wo(t, a), jo(t);
+ else return r = t.lanes = 536870912, Lc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ua(t, null), To(), Mo()) : (Ua(t, a.cachePool), wo(t, a), Mo(), t.memoizedState = null);
+ return jc(e, t, i, n), t.child;
}
- function Fc(e, t) {
+ function Ic(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -11652,68 +11655,68 @@ var gu = /* @__PURE__ */ m(((e) => {
_transitions: null
}), t.sibling;
}
- function Ic(e, t, n, r, i) {
- var a = Ba();
+ function Lc(e, t, n, r, i) {
+ var a = Ha();
return a = a === null ? null : {
- parent: G._currentValue,
+ parent: Da._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Va(t, null), Co(), ko(t), e !== null && _a(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ua(t, null), To(), jo(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
}
- function Lc(e, t) {
- return t = Xc({
+ function Rc(e, t) {
+ return t = Zc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Rc(e, t, n) {
- return ao(t, e.child, null, n), e = Lc(t, t.pendingProps), e.flags |= 2, jo(t), t.memoizedState = null, e;
- }
function zc(e, t, n) {
+ return so(t, e.child, null, n), e = Rc(t, t.pendingProps), e.flags |= 2, No(t), t.memoizedState = null, e;
+ }
+ function Bc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (W) {
- if (r.mode === "hidden") return e = Lc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (U) {
+ if (r.mode === "hidden") return e = Rc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Fc(null, e);
- if (Oo(t), (e = $i) ? (e = am(e, ta), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Ic(null, e);
+ if (Ao(t), (e = H) ? (e = om(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, H = null)) : e = null, e === null) throw ia(t);
return t.lanes = 536870912, null;
}
- return Lc(t, r);
+ return Rc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Oo(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Rc(e, t, n);
+ if (Ao(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = zc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (kc || _a(e, t, n, !1), a = (n & e.childLanes) !== 0, kc || a) {
- if (bo.current === null) {
- if (r = ed, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Fd(r, e, s), Oc;
- Gd();
+ } else if (Ac || va(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {
+ if (So.current === null) {
+ if (r = td, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Id(r, e, s), kc;
+ qd();
}
- t = Rc(e, t, n);
- } else e = o.treeContext, $i = lm(s.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Lc(t, r), t.flags |= 134221824;
+ t = zc(e, t, n);
+ } else e = o.treeContext, H = um(s.nextSibling), ea = t, U = !0, ta = null, na = !1, e !== null && $i(t, e), t = Rc(t, r), t.flags |= 134221824;
return t;
}
- return e = Ai(e.child, {
+ return e = ji(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Bc(e, t) {
+ function Vc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -11721,135 +11724,135 @@ var gu = /* @__PURE__ */ m(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Vc(e, t, n, r, i) {
- return ya(t), n = Jo(e, t, n, r, void 0, i), r = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, i), t.child);
+ function Hc(e, t, n, r, i) {
+ return ba(t), n = Yo(e, t, n, r, void 0, i), r = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && r && Zi(t), t.flags |= 1, jc(e, t, n, i), t.child);
}
- function Hc(e, t, n, r, i, a) {
- return ya(t), t.updateQueue = null, n = Xo(t, r, n, i), Yo(e), r = Qo(), e !== null && !kc ? ($o(e, t, a), al(e, t, a)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, a), t.child);
+ function Uc(e, t, n, r, i, a) {
+ return ba(t), t.updateQueue = null, n = Zo(t, r, n, i), Xo(e), r = $o(), e !== null && !Ac ? (es(e, t, a), ol(e, t, a)) : (U && r && Zi(t), t.flags |= 1, jc(e, t, n, a), t.child);
}
- function Uc(e, t, n, r, i) {
- if (ya(t), t.stateNode === null) {
- var a = Ei, o = n.contextType;
- typeof o == "object" && o && (a = ba(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = hc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, co(t), o = n.contextType, a.context = typeof o == "object" && o ? ba(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (mc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && hc.enqueueReplaceState(a, a.state, null), _o(t, r, a, i), go(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function Wc(e, t, n, r, i) {
+ if (ba(t), t.stateNode === null) {
+ var a = Di, o = n.contextType;
+ typeof o == "object" && o && (a = xa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = gc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, uo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (hc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && gc.enqueueReplaceState(a, a.state, null), yo(t, r, a, i), vo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = vc(n, s);
+ var s = t.memoizedProps, c = yc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ei, typeof u == "object" && u && (o = ba(u));
+ o = Di, typeof u == "object" && u && (o = xa(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && _c(t, a, r, o), so = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && vc(t, a, r, o), lo = !1;
var f = t.memoizedState;
- a.state = f, _o(t, r, a, i), go(), l = t.memoizedState, s || f !== l || so ? (typeof d == "function" && (mc(t, n, d, r), l = t.memoizedState), (c = so || gc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, yo(t, r, a, i), vo(), l = t.memoizedState, s || f !== l || lo ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = lo || _c(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, lo(e, t), o = t.memoizedProps, u = vc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = ba(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && _c(t, a, r, c), so = !1, f = t.memoizedState, a.state = f, _o(t, r, a, i), go();
+ a = t.stateNode, fo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = xa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && vc(t, a, r, c), lo = !1, f = t.memoizedState, a.state = f, yo(t, r, a, i), vo();
var p = t.memoizedState;
- o !== d || f !== p || so || e !== null && e.dependencies !== null && va(e.dependencies) ? (typeof s == "function" && (mc(t, n, s, r), p = t.memoizedState), (u = so || gc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && va(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || lo || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = lo || _c(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Bc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = ao(t, e.child, null, i), t.child = ao(t, null, n, i)) : Ac(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = al(e, t, i), e;
+ return a = r, Vc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = so(t, e.child, null, i), t.child = so(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ol(e, t, i), e;
}
- function Wc(e, t, n, r) {
- return sa(), t.flags |= 256, Ac(e, t, n, r), t.child;
+ function Gc(e, t, n, r) {
+ return ca(), t.flags |= 256, jc(e, t, n, r), t.child;
}
- var Gc = {
+ var Kc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Kc(e) {
+ function qc(e) {
return {
baseLanes: e,
- cachePool: Ha()
+ cachePool: Wa()
};
}
- function qc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= dd), e;
- }
function Jc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= fd), e;
+ }
+ function Yc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Mo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (W) {
- if (i ? Do(t) : Ao(), (e = $i) ? (e = am(e, ta), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Po.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (U) {
+ if (i ? ko(t) : Mo(), (e = H) ? (e = om(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
- return t.lanes = sm(e) ? 32 : 536870912, null;
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, H = null)) : e = null, e === null) throw ia(t);
+ return t.lanes = cm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Ao(), i = t.mode, a = Xc({
+ return a = r.children, r = r.fallback, i ? (Mo(), i = t.mode, a = Zc({
mode: "hidden",
children: a
- }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Kc(n), r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(null, r)) : (Do(t), Yc(t, a));
+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = qc(n), r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(null, r)) : (ko(t), Xc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return Qc(e, t, a, o, r, c, s, n);
+ if (c !== null) return $c(e, t, a, o, r, c, s, n);
}
- return i ? (Ao(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
+ return i ? (Mo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Fc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Kc(n) : (a = i.cachePool, a === null ? a = Ha() : (s = G._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Ic(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = qc(n) : (a = i.cachePool, a === null ? a = Wa() : (s = Da._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(e.child, r)) : (Do(t), n = e.child, e = n.sibling, n = Ai(n, {
+ }), r.memoizedState = i, r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(e.child, r)) : (ko(t), n = e.child, e = n.sibling, n = ji(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function Yc(e, t) {
- return t = Xc({
+ function Xc(e, t) {
+ return t = Zc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Xc(e, t) {
- return e = Oi(22, e, null, t), e.lanes = 0, e;
+ function Zc(e, t) {
+ return e = ki(22, e, null, t), e.lanes = 0, e;
}
- function Zc(e, t, n) {
- return ao(t, e.child, null, n), e = Yc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Qc(e, t, n) {
+ return so(t, e.child, null, n), e = Xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function Qc(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Do(t), t.flags &= -257, Zc(e, t, c)) : t.memoizedState === null ? (Ao(), o = a.fallback, s = t.mode, a = Xc({
+ function $c(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (ko(t), t.flags &= -257, Qc(e, t, c)) : t.memoizedState === null ? (Mo(), o = a.fallback, s = t.mode, a = Zc({
mode: "visible",
children: a.children
- }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, ao(t, e.child, null, c), a = t.child, a.memoizedState = Kc(c), a.childLanes = qc(e, r, c), t.memoizedState = Gc, Fc(null, a)) : (Ao(), t.child = e.child, t.flags |= 128, null);
- if (Do(t), sm(o)) {
+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, so(t, e.child, null, c), a = t.child, a.memoizedState = qc(c), a.childLanes = Jc(e, r, c), t.memoizedState = Kc, Ic(null, a)) : (Mo(), t.child = e.child, t.flags |= 128, null);
+ if (ko(t), cm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, la({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ua({
value: a,
source: null,
stack: null
- })), Zc(e, t, c);
+ })), Qc(e, t, c);
}
- if (kc || _a(e, t, c, !1), r = (c & e.childLanes) !== 0, kc || r) {
- if (bo.current !== null) return Zc(e, t, c);
- if (r = ed, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Fd(r, e, a), Oc;
- return om(o) || Gd(), Zc(e, t, c);
+ if (Ac || va(e, t, c, !1), r = (c & e.childLanes) !== 0, Ac || r) {
+ if (So.current !== null) return Qc(e, t, c);
+ if (r = td, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Id(r, e, a), kc;
+ return sm(o) || qd(), Qc(e, t, c);
}
- return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = lm(o.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Yc(t, a.children), t.flags |= 134221824, t);
+ return sm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, H = um(o.nextSibling), ea = t, U = !0, ta = null, na = !1, e !== null && $i(t, e), t = Xc(t, a.children), t.flags |= 134221824, t);
}
- function $c(e, t, n) {
+ function el(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), ha(e.return, t, n);
+ r !== null && (r.lanes |= t), ga(e.return, t, n);
}
- function el(e) {
+ function tl(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Fo(n) === null && (t = e), e = e.sibling;
+ n !== null && Lo(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function tl(e, t, n, r, i, a) {
+ function nl(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -11861,22 +11864,22 @@ var gu = /* @__PURE__ */ m(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function nl(e) {
+ function rl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function rl(e, t, n) {
+ function il(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Mo.current;
- if (t.flags & 128) return No(t, o), null;
+ var o = Po.current;
+ if (t.flags & 128) return Fo(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, No(t, o), i === "backwards" && e !== null ? (nl(e), Ac(e, t, r, n), nl(e)) : Ac(e, t, r, n), r = W ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && $c(e, n, t);
- else if (e.tag === 19) $c(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Fo(t, o), i === "backwards" && e !== null ? (rl(e), jc(e, t, r, n), rl(e)) : jc(e, t, r, n), r = U ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && el(e, n, t);
+ else if (e.tag === 19) el(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -11890,142 +11893,142 @@ var gu = /* @__PURE__ */ m(((e) => {
}
switch (i) {
case "backwards":
- n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, nl(t)), tl(t, !0, i, null, a, r);
+ n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, rl(t)), nl(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Fo(e) === null) {
+ if (e = i.alternate, e !== null && Lo(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- tl(t, !0, n, null, a, r);
+ nl(t, !0, n, null, a, r);
break;
case "together":
- tl(t, !1, null, null, void 0, r);
+ nl(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), tl(t, !1, i, n, a, r);
+ default: n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), nl(t, !1, i, n, a, r);
}
return t.child;
}
- function il(e, t, n) {
+ function al(e, t, n) {
var r = t.pendingProps;
- return pa(t, t.type, r.value), Ac(e, t, r.children, n), t.child;
+ return ma(t, t.type, r.value), jc(e, t, r.children, n), t.child;
}
- function al(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), cd |= t.lanes, (n & t.childLanes) === 0) {
+ function ol(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), ld |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (_a(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (va(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 = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function ol(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && va(e)));
+ function sl(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ya(e)));
}
- function sl(e, t, n) {
+ function cl(e, t, n) {
switch (t.tag) {
case 3:
- we(t, t.stateNode.containerInfo), pa(t, G, e.memoizedState.cache), sa();
+ Te(t, t.stateNode.containerInfo), ma(t, Da, e.memoizedState.cache), ca();
break;
case 27:
case 5:
- Ee(t);
+ De(t);
break;
case 4:
- we(t, t.stateNode.containerInfo);
+ Te(t, t.stateNode.containerInfo);
break;
case 10:
- pa(t, t.type, t.memoizedProps.value);
+ ma(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Oo(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Ao(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Do(t), t.flags |= 128, null;
- r = _a(e, t, n, !1);
+ if (r.dehydrated !== null) return ko(t), t.flags |= 128, null;
+ r = va(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Jc(e, t, n) : (Do(t), e = al(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Yc(e, t, n) : (ko(t), e = ol(e, t, n), e === null ? null : e.sibling);
}
- Do(t);
+ ko(t);
break;
case 19:
- if (t.flags & 128) return rl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (_a(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return rl(e, t, n);
+ if (t.flags & 128) return il(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (va(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return il(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), No(t, Mo.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Fo(t, Po.current), r) break;
return null;
- case 22: return t.lanes = 0, Pc(e, t, n, t.pendingProps);
- case 24: pa(t, G, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Fc(e, t, n, t.pendingProps);
+ case 24: ma(t, Da, e.memoizedState.cache);
}
- return al(e, t, n);
+ return ol(e, t, n);
}
- function cl(e, t, n) {
+ function ll(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) kc = !0;
+ if (e.memoizedProps !== t.pendingProps) Ac = !0;
else {
- if (!ol(e, n) && !(t.flags & 128)) return kc = !1, sl(e, t, n);
- kc = !!(e.flags & 131072);
+ if (!sl(e, n) && !(t.flags & 128)) return Ac = !1, cl(e, t, n);
+ Ac = !!(e.flags & 131072);
}
- } else kc = !1, W && t.flags & 1048576 && Yi(t, Hi, t.index);
+ } else Ac = !1, U && t.flags & 1048576 && Xi(t, Ui, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Ya(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = vc(e, r), t.tag = 1, t = Uc(null, t, e, r, n)) : (t.tag = 0, t = Vc(null, t, e, r, n));
+ if (e = Za(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = yc(e, r), t.tag = 1, t = Wc(null, t, e, r, n)) : (t.tag = 0, t = Hc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === M) {
- t.tag = 11, t = jc(null, t, e, r, n);
+ t.tag = 11, t = Mc(null, t, e, r, n);
break a;
}
if (a === re) {
- t.tag = 14, t = Mc(null, t, e, r, n);
+ t.tag = 14, t = Nc(null, t, e, r, n);
break a;
}
if (a === te) {
- t.tag = 10, t.type = e, t = il(null, t, n);
+ t.tag = 10, t.type = e, t = al(null, t, n);
break a;
}
}
- throw t = fe(e) || e, Error(i(306, t, ""));
+ throw t = pe(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Vc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = vc(r, t.pendingProps), Uc(e, t, r, a, n);
+ case 0: return Hc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = yc(r, t.pendingProps), Wc(e, t, r, a, n);
case 3:
a: {
- if (we(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, lo(e, t), _o(t, r, null, n);
+ a = o.element, fo(e, t), yo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, pa(t, G, r), r !== o.cache && ga(t, [G], n, !0), go(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ma(t, Da, r), r !== o.cache && _a(t, [Da], n, !0), vo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Wc(e, t, r, n);
+ t = Gc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Ri(Error(i(424)), t), la(a), t = Wc(e, t, r, n);
+ a = zi(Error(i(424)), t), ua(a), t = Gc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -12034,76 +12037,76 @@ var gu = /* @__PURE__ */ m(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for ($i = lm(e.firstChild), U = t, W = !0, ea = null, ta = !0, n = oo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (H = um(e.firstChild), ea = t, U = !0, ta = null, na = !0, n = co(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (sa(), r === a) {
- t = al(e, t, n);
+ if (ca(), r === a) {
+ t = ol(e, t, n);
break a;
}
- Ac(e, t, r, n);
+ jc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Bc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : W || (t.stateNode = fp(t.type, t.pendingProps, Se.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Ee(t), e === null && W && (r = t.stateNode = hm(t.type, t.pendingProps, Se.current), U = t, ta = !0, a = $i, Sp(t.type) ? (um = a, $i = lm(r.firstChild)) : $i = a), Ac(e, t, t.pendingProps.children, n), Bc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && W && ((a = r = $i) && (r = rm(r, t.type, t.pendingProps, ta), r === null ? a = !1 : (t.stateNode = r, U = t, $i = lm(r.firstChild), ta = !1, a = !0)), a || ra(t)), Ee(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Jo(e, t, Zo, null, null, n), sh._currentValue = a), Bc(e, t), Ac(e, t, r, n), t.child;
- case 6: return e === null && W && ((e = n = $i) && (n = im(n, t.pendingProps, ta), n === null ? e = !1 : (t.stateNode = n, U = t, $i = null, e = !0)), e || ra(t)), null;
- case 13: return Jc(e, t, n);
- case 4: return we(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = ao(t, null, r, n) : Ac(e, t, r, n), t.child;
- case 11: return jc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Bc(e, t), Ac(e, t, r, n), t.child;
- case 8: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 12: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 10: return il(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, ya(t), a = ba(a), r = r(a), t.flags |= 1, Ac(e, t, r, n), t.child;
- case 14: return Mc(e, t, t.type, t.pendingProps, n);
- case 15: return Nc(e, t, t.type, t.pendingProps, n);
- case 19: return rl(e, t, n);
- case 31: return zc(e, t, n);
- case 22: return Pc(e, t, n, t.pendingProps);
- case 24: return ya(t), r = ba(G), e === null ? (a = Ba(), a === null && (a = ed, o = Ea(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Vc(e, t), e === null ? (n = Pm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : U || (t.stateNode = pp(t.type, t.pendingProps, Ce.current, t)) : t.memoizedState = Pm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return De(t), e === null && U && (r = t.stateNode = gm(t.type, t.pendingProps, Ce.current), ea = t, na = !0, a = H, Cp(t.type) ? (dm = a, H = um(r.firstChild)) : H = a), jc(e, t, t.pendingProps.children, n), Vc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && U && ((a = r = H) && (r = im(r, t.type, t.pendingProps, na), r === null ? a = !1 : (t.stateNode = r, ea = t, H = um(r.firstChild), na = !1, a = !0)), a || ia(t)), De(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, mp(a, o) ? r = null : s !== null && mp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Yo(e, t, Qo, null, null, n), ch._currentValue = a), Vc(e, t), jc(e, t, r, n), t.child;
+ case 6: return e === null && U && ((e = n = H) && (n = am(n, t.pendingProps, na), n === null ? e = !1 : (t.stateNode = n, ea = t, H = null, e = !0)), e || ia(t)), null;
+ case 13: return Yc(e, t, n);
+ case 4: return Te(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = so(t, null, r, n) : jc(e, t, r, n), t.child;
+ case 11: return Mc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Vc(e, t), jc(e, t, r, n), t.child;
+ case 8: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return al(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = xa(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;
+ case 14: return Nc(e, t, t.type, t.pendingProps, n);
+ case 15: return Pc(e, t, t.type, t.pendingProps, n);
+ case 19: return il(e, t, n);
+ case 31: return Bc(e, t, n);
+ case 22: return Fc(e, t, n, t.pendingProps);
+ case 24: return ba(t), r = xa(Da), e === null ? (a = Ha(), a === null && (a = td, o = Oa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, co(t), pa(t, G, a)) : ((e.lanes & n) !== 0 && (lo(e, t), _o(t, null, null, n), go()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, pa(t, G, r), r !== a.cache && ga(t, [G], n, !0)) : (a = {
+ }, uo(t), ma(t, Da, a)) : ((e.lanes & n) !== 0 && (fo(e, t), yo(t, null, null, n), vo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Da, r), r !== a.cache && _a(t, [Da], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), pa(t, G, r))), Ac(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Da, r))), jc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : W && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Bc(e, t), Ac(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : U && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Vc(e, t), jc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ll(e) {
+ function ul(e) {
e.flags |= 4;
}
- function ul(e, t, n, r, i) {
+ function dl(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? Jm(t, r) : Jm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? Ym(t, r) : Ym(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Z()) e.flags |= 8192;
- else throw Xa = Ka, Wa;
+ else if (Wd()) e.flags |= 8192;
+ else throw Qa = Ja, Ka;
}
} else e.flags &= -16777217;
}
- function dl(e, t) {
+ function fl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !Ym(t)) {
- if (Z()) e.flags |= 8192;
- else throw Xa = Ka, Wa;
+ else if (e.flags |= 16777216, !Xm(t)) {
+ if (Wd()) e.flags |= 8192;
+ else throw Qa = Ja, Ka;
}
}
- function fl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, fd |= t);
- }
function pl(e, t) {
- if (!W) switch (e.tailMode) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, pd |= t);
+ }
+ function ml(e, t) {
+ if (!U) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -12114,15 +12117,15 @@ var gu = /* @__PURE__ */ m(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function ml(e) {
+ function hl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function hl(e, t, n) {
+ function gl(e, t, n) {
var r = t.pendingProps;
- switch (Zi(t), t.tag) {
+ switch (Qi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -12131,32 +12134,32 @@ var gu = /* @__PURE__ */ m(((e) => {
case 8:
case 12:
case 9:
- case 14: return ml(t), null;
- case 1: return ml(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ma(G), Te(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (oa(t) ? ll(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ca())), ml(t), null;
+ case 14: return hl(t), null;
+ case 1: return hl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Da), Ee(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? ul(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), hl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ll(t), o === null ? (ml(t), ul(t, a, null, r, n)) : (ml(t), dl(t, o))) : o ? o === e.memoizedState ? (ml(t), t.flags &= -16777217) : (ll(t), ml(t), dl(t, o)) : (e = e.memoizedProps, e !== r && ll(t), ml(t), ul(t, a, e, r, n)), null;
+ return e === null ? (ul(t), o === null ? (hl(t), dl(t, a, null, r, n)) : (hl(t), fl(t, o))) : o ? o === e.memoizedState ? (hl(t), t.flags &= -16777217) : (ul(t), hl(t), fl(t, o)) : (e = e.memoizedProps, e !== r && ul(t), hl(t), dl(t, a, e, r, n)), null;
case 27:
- if (De(t), n = Se.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Oe(t), n = Ce.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- e = be.current, oa(t) ? ia(t, e) : (e = hm(a, r, n), t.stateNode = e, ll(t));
+ e = xe.current, sa(t) ? aa(t, e) : (e = gm(a, r, n), t.stateNode = e, ul(t));
}
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (De(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = be.current, oa(t)) ia(t, o);
+ if (o = xe.current, sa(t)) aa(t, o);
else {
- var s = lp(Se.current);
+ var s = up(Ce.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -12180,7 +12183,7 @@ var gu = /* @__PURE__ */ m(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[St] = t, o[Ct] = r;
+ o[Ct] = t, o[wt] = r;
a: for (s = t.child; s !== null;) {
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -12195,7 +12198,7 @@ var gu = /* @__PURE__ */ m(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (np(o, a, r), a) {
+ a: switch (rp(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -12207,71 +12210,71 @@ var gu = /* @__PURE__ */ m(((e) => {
break a;
default: r = !1;
}
- r && ll(t);
+ r && ul(t);
}
}
- return ml(t), t.subtreeFlags &= -33554433, ul(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return hl(t), t.subtreeFlags &= -33554433, dl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = Se.current, oa(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = U, a !== null) switch (a.tag) {
+ if (e = Ce.current, sa(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = ea, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || ra(t, !0);
- } else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
+ e[Ct] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || ia(t, !0);
+ } else e = up(e).createTextNode(r), e[Ct] = t, t.stateNode = e;
}
- return ml(t), null;
+ return hl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = oa(t), n !== null) {
+ if (r = sa(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[St] = t;
- } else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), e = !1;
- } else n = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
+ e[Ct] = t;
+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ hl(t), e = !1;
+ } else n = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (No(t), t) : (No(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return ml(t), null;
+ return hl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = oa(t), r !== null && r.dehydrated !== null) {
+ if (a = sa(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[St] = t;
- } else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), a = !1;
- } else a = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
+ a[Ct] = t;
+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ hl(t), a = !1;
+ } else a = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (No(t), t) : (No(t), null);
}
- return jo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), fl(t, t.updateQueue), ml(t), null);
- case 4: return Te(), e === null && Wf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
- case 10: return ma(t.type), ml(t), null;
+ return No(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), pl(t, t.updateQueue), hl(t), null);
+ case 4: return Ee(), e === null && Wf(t.stateNode.containerInfo), t.flags |= 67108864, hl(t), null;
+ case 10: return ha(t.type), hl(t), null;
case 19:
- if (Po(t), r = t.memoizedState, r === null) return ml(t), null;
+ if (Io(t), r = t.memoizedState, r === null) return hl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) pl(r, !1);
+ if (a) ml(r, !1);
else {
- if (sd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Fo(e), o !== null) {
- for (t.flags |= 128, pl(r, !1), e = o.updateQueue, t.updateQueue = e, fl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
- return No(t, Mo.current & 1 | 2), W && Ji(t, r.treeForkCount), t.child;
+ if (cd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = Lo(e), o !== null) {
+ for (t.flags |= 128, ml(r, !1), e = o.updateQueue, t.updateQueue = e, pl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
+ return Fo(t, Po.current & 1 | 2), U && Yi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Be() > vd && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Ve() > yd && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Fo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, fl(t, e), pl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !W) return ml(t), null;
- } else 2 * Be() - r.renderingStartTime > vd && n !== 536870912 && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ if (e = Lo(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, pl(t, e), ml(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !U) return hl(t), null;
+ } else 2 * Ve() - r.renderingStartTime > yd && n !== 536870912 && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -12287,79 +12290,79 @@ var gu = /* @__PURE__ */ m(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Mo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || W ? No(t, o) : (n = o, ye(To, t), ye(Mo, n), Eo === null && (Eo = t)), W && Ji(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ve(), e.sibling = null, o = Po.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Fo(t, o) : (n = o, be(Do, t), be(Po, n), Oo === null && (Oo = t)), U && Yi(t, r.treeForkCount), e;
}
- return ml(t), null;
+ return hl(t), null;
case 22:
- case 23: return jo(t), wo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (ml(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ml(t), n = t.updateQueue, n !== null && fl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ve(za), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ma(G), ml(t), null;
+ case 23: return No(t), Eo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (hl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : hl(t), n = t.updateQueue, n !== null && pl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ye(Va), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Da), hl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, ml(t), null;
+ case 30: return t.flags |= 33554432, hl(t), null;
}
throw Error(i(156, t.tag));
}
- function gl(e, t) {
- switch (Zi(t), t.tag) {
+ function _l(e, t) {
+ switch (Qi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ma(G), Te(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ha(Da), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return De(t), null;
+ case 5: return Oe(t), null;
case 31:
if (t.memoizedState !== null) {
- if (jo(t), t.alternate === null) throw Error(i(340));
- sa();
+ if (No(t), t.alternate === null) throw Error(i(340));
+ ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (jo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (No(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- sa();
+ ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Po(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return Te(), null;
- case 10: return ma(t.type), null;
+ case 19: return Io(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 4: return Ee(), null;
+ case 10: return ha(t.type), null;
case 22:
- case 23: return jo(t), wo(), e !== null && ve(za), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ma(G), null;
+ case 23: return No(t), Eo(), e !== null && ye(Va), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ha(Da), null;
case 25: return null;
default: return null;
}
}
- function _l(e, t) {
- switch (Zi(t), t.tag) {
+ function vl(e, t) {
+ switch (Qi(t), t.tag) {
case 3:
- ma(G), Te();
+ ha(Da), Ee();
break;
case 26:
case 27:
case 5:
- De(t);
+ Oe(t);
break;
case 4:
- Te();
+ Ee();
break;
case 31:
- t.memoizedState !== null && jo(t);
+ t.memoizedState !== null && No(t);
break;
case 13:
- jo(t);
+ No(t);
break;
case 19:
- Po(t);
+ Io(t);
break;
case 10:
- ma(t.type);
+ ha(t.type);
break;
case 22:
case 23:
- jo(t), wo(), e !== null && ve(za);
+ No(t), Eo(), e !== null && ye(Va);
break;
- case 24: ma(G);
+ case 24: ha(Da);
}
}
- function vl(e, t) {
+ function yl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -12375,10 +12378,10 @@ var gu = /* @__PURE__ */ m(((e) => {
} while (n !== i);
}
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function yl(e, t, n) {
+ function bl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -12393,7 +12396,7 @@ var gu = /* @__PURE__ */ m(((e) => {
try {
l();
} catch (e) {
- pf(i, c, e);
+ mf(i, c, e);
}
}
}
@@ -12401,29 +12404,29 @@ var gu = /* @__PURE__ */ m(((e) => {
} while (r !== a);
}
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function bl(e) {
+ function xl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- yo(t, n);
+ xo(t, n);
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
}
- function xl(e, t, n) {
- n.props = vc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function Sl(e, t, n) {
+ n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- pf(e, t, n);
+ mf(e, t, n);
}
}
- function Sl(e, t) {
+ function Cl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -12434,13 +12437,13 @@ var gu = /* @__PURE__ */ m(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = pi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;
+ var i = e.stateNode, a = mi(e.memoizedProps, i);
+ (i.ref === null || i.ref.name !== a) && (i.ref = Fp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new Fp(e);
- f(e.child, !1, Qp, o, void 0, void 0), e.stateNode = o;
+ var o = new Ip(e);
+ f(e.child, !1, $p, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -12449,43 +12452,43 @@ var gu = /* @__PURE__ */ m(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- pf(e, t, n);
+ mf(e, t, n);
}
}
- function Cl(e, t) {
+ function wl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- pf(e, t, n);
+ mf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- pf(e, t, n);
+ mf(e, t, n);
}
else n.current = null;
}
}
- function wl(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) em(e.stateNode, t[n]);
- }
- function Tl(e) {
- for (var t = e.return; t !== null && (Ol(t) && em(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
+ function Tl(e, t) {
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) tm(e.stateNode, t[n]);
}
function El(e) {
- for (var t = e.return; t !== null && (Ol(t) && tm(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
+ for (var t = e.return; t !== null && (kl(t) && tm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
}
function Dl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 27;
+ for (var t = e.return; t !== null && (kl(t) && nm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
}
function Ol(e) {
- return e && e.tag === 7 && e.stateNode !== null;
+ return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
function kl(e) {
+ return e && e.tag === 7 && e.stateNode !== null;
+ }
+ function Al(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -12498,103 +12501,103 @@ var gu = /* @__PURE__ */ m(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function Al(e, t, n) {
+ function jl(e, t, n) {
try {
var r = e.stateNode;
- ip(r, e.type, n, t), r[Ct] = t;
+ ap(r, e.type, n, t), r[wt] = t;
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function jl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Sp(e.type) || e.tag === 4;
- }
function Ml(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Cp(e.type) || e.tag === 4;
+ }
+ function Nl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || jl(e.return)) return null;
+ if (e.return === null || Ml(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 && Sp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Cp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Nl(e, t, n, r) {
+ function Pl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = mn)), wl(e, r), B = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), Tl(e, r), z = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Cp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
}
- function Pl(e, t, n, r) {
+ function Fl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), wl(e, r), B = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Tl(e, r), z = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Cp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Fl(e, t, n, r), e = e.sibling; e !== null;) Fl(e, t, n, r), e = e.sibling;
}
- function Fl(e) {
+ function Il(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- np(t, r, n), t[St] = e, t[Ct] = n;
+ rp(t, r, n), t[Ct] = e, t[wt] = n;
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- var Il = !1, Ll = null;
- function Rl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Il = !0);
- }
- var zl = null;
- function Bl() {
- var e = zl;
- return zl = null, e;
+ var Ll = !1, Rl = null;
+ function zl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Ll = !0);
}
- var Vl = 0;
- function Hl(e, t, n, r, i) {
- return Vl = 0, Ul(e.child, t, n, r, i);
+ var Bl = null;
+ function Vl() {
+ var e = Bl;
+ return Bl = null, e;
}
+ var Hl = 0;
function Ul(e, t, n, r, i) {
+ return Hl = 0, Wl(e.child, t, n, r, i);
+ }
+ function Wl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Op(o);
+ var s = kp(o);
r.push(s), s.view && (a = !0);
- } else a || Op(o).view && (a = !0);
- Il = !0, Tp(o, Vl === 0 ? t : t + "_" + Vl, n), Vl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Ul(e.child, t, n, r, i) && (a = !0));
+ } else a || kp(o).view && (a = !0);
+ Ll = !0, Ep(o, Hl === 0 ? t : t + "_" + Hl, n), Hl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Wl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Wl(e, t) {
- for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Wl(e.child, t)), e = e.sibling;
+ function Gl(e, t) {
+ for (; e !== null;) e.tag === 5 ? Dp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Gl(e.child, t)), e = e.sibling;
}
- function Gl(e) {
+ function Kl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Gl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Kl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = hi(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (Ul(e, n, t, null, !1) || Gl(e.child, !1));
}
e = e.sibling;
}
}
- function Kl(e, t) {
+ function ql(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Gl(e) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || Pd(e, r.onEnter)) : Wl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e, t), e = e.sibling;
- else Gl(e);
- }
- function ql(e) {
- if (Ll !== null && Ll.size !== 0) {
- var t = Ll;
+ var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Kl(e) : Ul(e, i, a, null, !1) ? (Kl(e), n.paired || t || Fd(e, r.onEnter)) : Gl(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e, t), e = e.sibling;
+ else Kl(e);
+ }
+ function Jl(e) {
+ if (Rl !== null && Rl.size !== 0) {
+ var t = Rl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -12602,59 +12605,59 @@ var gu = /* @__PURE__ */ m(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = hi(n.default, n.share);
- if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Pd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = gi(n.default, n.share);
+ if (a !== "none" && (Ul(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Fd(e, n.onShare)) : Gl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- ql(e);
+ Jl(e);
}
e = e.sibling;
}
}
}
- function Jl(e) {
+ function Yl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? Pd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), Pd(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
- else Ll !== null && ql(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Rl === null ? void 0 : Rl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Ul(e, n, i, null, !1) ? r === void 0 ? Fd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Rl.delete(n), Fd(e, t.onShare)) : Gl(e.child, !1)), Rl !== null && Jl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e), e = e.sibling;
+ else Rl !== null && Jl(e);
}
- function Yl(e) {
+ function Xl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode);
- t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Hl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Yl(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode);
+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Ul(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Xl(e);
e = e.sibling;
}
}
- function Xl(e) {
+ function Zl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Wl(e.child, !1));
+ t.paired !== null && (t.paired = null, Gl(e.child, !1));
}
- Xl(e);
+ Zl(e);
}
e = e.sibling;
}
}
- function Zl(e) {
- if (e.tag === 30) e.stateNode.paired = null, Wl(e.child, !1), Xl(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
- else Xl(e);
- }
function Ql(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, Gl(e.child, !1), Zl(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
+ else Zl(e);
+ }
+ function $l(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Gl(e.child, !1) : e.subtreeFlags & 33554432 && $l(e), e = e.sibling;
}
- function $l(e, t, n, r, i, a, o) {
+ function eu(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Vl < a.length) {
- var l = a[Vl], u = Op(c);
+ if (a !== null && Hl < a.length) {
+ var l = a[Hl], u = kp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -12667,30 +12670,30 @@ var gu = /* @__PURE__ */ m(((e) => {
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && Tp(c, Vl === 0 ? n : n + "_" + Vl, i), s && e.flags & 4 || (zl === null && (zl = []), zl.push(c, Vl === 0 ? r : r + "_" + Vl, t.memoizedProps)), Vl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : $l(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Ep(c, Hl === 0 ? n : n + "_" + Hl, i), s && e.flags & 4 || (Bl === null && (Bl = []), Bl.push(c, Hl === 0 ? r : r + "_" + Hl, t.memoizedProps)), Hl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : eu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function eu(e, t) {
+ function tu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(kp);
+ var o = r === null ? null : r.map(Ap);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && eu(e, t);
+ Hl = 0, i = eu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Fd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && tu(e, t);
e = e.sibling;
}
}
- var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, lu = !1, uu = !1;
- function du(e, t, n) {
- if (e = e.containerInfo, sp = gh, e = Hr(e), Wr(e)) {
+ var nu = !1, ru = !1, iu = !1, au = !1, ou = typeof WeakSet == "function" ? WeakSet : Set, su = null, cu = !1, lu = !1, uu = !1, du = !1;
+ function fu(e, t, n) {
+ if (e = e.containerInfo, cp = _h, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -12729,31 +12732,31 @@ var gu = /* @__PURE__ */ m(((e) => {
end: 0
};
} else r = null;
- for (cp = {
+ for (lp = {
focusedElem: e,
selectionRange: r
- }, gh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
- if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Rl(e), fu(n);
+ }, _h = !1, n = (n & 335544064) === n, su = t, t = n ? 9270 : 1024; su !== null;) {
+ if (e = su, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Yl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && zl(e), pu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Jl(r), fu(n);
+ r !== null && r.memoizedState === null && n && Yl(r), pu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Rl(e), fu(n);
+ n && zl(e), pu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), fu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, su = r) : (n && Xl(e), pu(n));
}
}
- Ll = null;
+ Rl = null;
}
- function fu(e) {
- for (; ou !== null;) {
- var t = ou, n = e, r = t.alternate, a = t.flags;
+ function pu(e) {
+ for (; su !== null;) {
+ var t = su, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -12763,21 +12766,21 @@ var gu = /* @__PURE__ */ m(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = vc(t.type, a);
+ var s = yc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) nm(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) rm(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- nm(r);
+ rm(r);
break;
default: r.textContent = "";
}
@@ -12790,46 +12793,46 @@ var gu = /* @__PURE__ */ m(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Hl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Ul(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, ou = r;
+ r.return = t.return, su = r;
break;
}
- ou = t.return;
+ su = t.return;
}
}
- function pu(e, t, n) {
+ function mu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Pu(e, n), r & 4 && vl(5, n);
+ Fu(e, n), r & 4 && yl(5, n);
break;
case 1:
- if (Pu(e, n), r & 4) {
+ if (Fu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- pf(n, n.return, e);
+ mf(n, n.return, e);
}
else {
- var i = vc(n.type, t.memoizedProps);
+ var i = yc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- pf(n, n.return, e);
+ mf(n, n.return, e);
}
}
}
- r & 64 && bl(n), r & 512 && Sl(n, n.return);
+ r & 64 && xl(n), r & 512 && Cl(n, n.return);
break;
case 3:
- if (Pu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -12838,43 +12841,43 @@ var gu = /* @__PURE__ */ m(((e) => {
case 1: t = n.child.stateNode;
}
try {
- yo(e, t);
+ xo(e, t);
} catch (e) {
- pf(n, n.return, e);
+ mf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Fl(n);
+ case 27: t === null && r & 4 && Il(n);
case 26:
case 5:
- Pu(e, n), t === null && r & 4 && kl(n), r & 512 && Sl(n, n.return);
+ Fu(e, n), t === null && r & 4 && Al(n), r & 512 && Cl(n, n.return);
break;
case 12:
- Pu(e, n);
+ Fu(e, n);
break;
case 31:
- Pu(e, n), r & 4 && Cu(e, n);
+ Fu(e, n), r & 4 && wu(e, n);
break;
case 13:
- Pu(e, n), r & 4 && wu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = _f.bind(null, n), cm(e, n))));
+ Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = vf.bind(null, n), lm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || tu, !r) {
- var a = t !== null && t.memoizedState !== null || nu;
- t = tu, i = nu, tu = r, (nu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Iu(e, n, r)) : Pu(e, n), tu = t, nu = i;
+ if (r = n.memoizedState !== null || nu, !r) {
+ var a = t !== null && t.memoizedState !== null || ru;
+ t = nu, i = ru, nu = r, (ru = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), nu = t, ru = i;
}
break;
case 30:
- Pu(e, n), r & 512 && Sl(n, n.return);
+ Fu(e, n), r & 512 && Cl(n, n.return);
break;
- case 7: r & 512 && Sl(n, n.return);
- default: Pu(e, n);
+ case 7: r & 512 && Cl(n, n.return);
+ default: Fu(e, n);
}
}
- function mu(e, t) {
- for (e = e.child; e !== null;) hu(e, t), e = e.sibling;
- }
function hu(e, t) {
+ for (e = e.child; e !== null;) gu(e, t), e = e.sibling;
+ }
+ function gu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -12888,44 +12891,44 @@ var gu = /* @__PURE__ */ m(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
- gu(e, t);
+ _u(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, B = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, z = !0;
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? wp(s, !0) : wp(e.stateNode, !1);
+ t ? Tp(s, !0) : Tp(e.stateNode, !1);
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && mu(e, t);
+ e.memoizedState === null && hu(e, t);
break;
- default: mu(e, t);
+ default: hu(e, t);
}
}
- function gu(e, t) {
+ function _u(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- hu(n, r);
+ gu(n, r);
break a;
case 22:
- n.memoizedState === null && gu(n, r);
+ n.memoizedState === null && _u(n, r);
break a;
- default: gu(n, r);
+ default: _u(n, r);
}
}
e = e.sibling;
@@ -12933,137 +12936,137 @@ var gu = /* @__PURE__ */ m(((e) => {
}
function vu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, vu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(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 yu = null, bu = !1;
- function xu(e, t, n) {
- for (n = n.child; n !== null;) Su(e, t, n), n = n.sibling;
+ t !== null && (e.alternate = null, vu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && jt(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 bu = null, xu = !1;
function Su(e, t, n) {
- if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
- Xe.onCommitFiberUnmount(Ye, n);
+ for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
+ }
+ function Cu(e, t, n) {
+ if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
+ Ze.onCommitFiberUnmount(Xe, n);
} catch {}
switch (n.tag) {
case 26:
- nu || Cl(n, t), xu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
+ ru || wl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ru && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- nu || Cl(n, t), El(n);
- var r = yu, i = bu;
- Sp(n.type) && (yu = n.stateNode, bu = !1), xu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), yu = r, bu = i;
+ ru || wl(n, t), Dl(n);
+ var r = bu, i = xu;
+ Cp(n.type) && (bu = n.stateNode, xu = !1), Su(e, t, n), _m(n.stateNode, n.type, n.memoizedProps), bu = r, xu = i;
break;
- case 5: nu || Cl(n, t), El(n);
+ case 5: ru || wl(n, t), Dl(n);
case 6:
- if (n.tag === 6 && El(n), r = yu, i = bu, yu = null, xu(e, t, n), yu = r, bu = i, yu !== null) {
- if (bu) try {
- (yu.nodeType === 9 ? yu.body : yu.nodeName === "HTML" ? yu.ownerDocument.body : yu).removeChild(n.stateNode), B = !0;
+ if (n.tag === 6 && Dl(n), r = bu, i = xu, bu = null, Su(e, t, n), bu = r, xu = i, bu !== null) {
+ if (xu) try {
+ (bu.nodeType === 9 ? bu.body : bu.nodeName === "HTML" ? bu.ownerDocument.body : bu).removeChild(n.stateNode), z = !0;
} catch (e) {
- pf(n, t, e);
+ mf(n, t, e);
}
else try {
- yu.removeChild(n.stateNode), B = !0;
+ bu.removeChild(n.stateNode), z = !0;
} catch (e) {
- pf(n, t, e);
+ mf(n, t, e);
}
}
break;
case 18:
- yu !== null && (bu ? (e = yu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(yu, n.stateNode));
+ bu !== null && (xu ? (e = bu, wp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Uh(e)) : wp(bu, n.stateNode));
break;
case 4:
- r = yu, i = bu, yu = n.stateNode.containerInfo, bu = !0, xu(e, t, n), yu = r, bu = i;
+ r = bu, i = xu, bu = n.stateNode.containerInfo, xu = !0, Su(e, t, n), bu = r, xu = i;
break;
case 0:
case 11:
case 14:
case 15:
- yl(2, n, t), nu || yl(4, n, t), xu(e, t, n);
+ bl(2, n, t), ru || bl(4, n, t), Su(e, t, n);
break;
case 1:
- nu || (Cl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && xl(n, t, r)), xu(e, t, n);
+ ru || (wl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Sl(n, t, r)), Su(e, t, n);
break;
case 21:
- xu(e, t, n);
+ Su(e, t, n);
break;
case 22:
- nu = (r = nu) || n.memoizedState !== null, xu(e, t, n), nu = r;
+ ru = (r = ru) || n.memoizedState !== null, Su(e, t, n), ru = r;
break;
case 30:
- Cl(n, t), xu(e, t, n);
+ wl(n, t), Su(e, t, n);
break;
case 7:
- nu || Cl(n, t), xu(e, t, n);
+ ru || wl(n, t), Su(e, t, n);
break;
- default: xu(e, t, n);
+ default: Su(e, t, n);
}
}
- function Cu(e, t) {
+ function wu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Hh(e);
+ Uh(e);
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
}
}
- function wu(e, t) {
+ function Tu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Hh(e);
+ Uh(e);
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function Tu(e) {
+ function Eu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new au()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new au()), t;
+ return t === null && (t = e.stateNode = new ou()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new ou()), t;
default: throw Error(i(435, e.tag));
}
}
- function Eu(e, t) {
- var n = Tu(e);
+ function Du(e, t) {
+ var n = Eu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = vf.bind(null, e, t);
+ var r = yf.bind(null, e, t);
t.then(r, r);
}
});
}
- function Du(e, t, n) {
+ function Ou(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (Sp(l.type)) {
- yu = l.stateNode, bu = !1;
+ if (Cp(l.type)) {
+ bu = l.stateNode, xu = !1;
break a;
}
break;
case 5:
- yu = l.stateNode, bu = !1;
+ bu = l.stateNode, xu = !1;
break a;
case 3:
case 4:
- yu = l.stateNode.containerInfo, bu = !0;
+ bu = l.stateNode.containerInfo, xu = !0;
break a;
}
l = l.return;
}
- if (yu === null) throw Error(i(160));
- Su(s, c, o), yu = null, bu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (bu === null) throw Error(i(160));
+ Cu(s, c, o), bu = null, xu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ku(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
}
- var Ou = null;
- function ku(e, t, n) {
+ var ku = null;
+ function Au(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -13074,120 +13077,120 @@ var gu = /* @__PURE__ */ m(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Du(t, e, n), Au(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
+ Ou(t, e, n), ju(e), a & 4 && (bl(3, e, e.return), yl(3, e), bl(5, e, e.return));
break;
case 1:
- Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 64 && tu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 64 && nu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Ou, Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 4) {
+ if (o = ku, Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (tu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (nu) e.stateNode = pp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[St] = e, R(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[kt] || r[Ct] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), rp(r, t, n), r[Ct] = e, It(r), t = r;
break a;
case "link":
- if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
+ if (o = Km("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), np(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), rp(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Gm("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = Km("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), np(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), rp(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
- r[St] = e, R(r), t = r;
+ r[Ct] = e, It(r), t = r;
}
e.stateNode = t;
}
- } else tu || Km(o, e.type, e.stateNode);
- } else e.stateNode = Bm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Al(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || nu || t.parentNode.removeChild(t)) : a.count--, n === null ? tu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
+ } else nu || qm(o, e.type, e.stateNode);
+ } else e.stateNode = Vm(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && jl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ru || t.parentNode.removeChild(t)) : a.count--, n === null ? nu || qm(o, e.type, e.stateNode) : Vm(o, n, e.memoizedProps));
}
break;
case 27:
- Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), r !== null && a & 4 && Al(e, e.memoizedProps, r.memoizedProps);
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), r !== null && a & 4 && jl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = ru, ru = !1, Du(t, e, n), ru = o, Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), e.flags & 32) {
+ if (o = iu, iu = !1, Ou(t, e, n), iu = o, ju(e), a & 512 && (ru || r === null || wl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- on(t, ""), B = !0;
+ sn(t, ""), z = !0;
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, jl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (au = !0);
break;
case 6:
- if (Du(t, e, n), Au(e), a & 4) {
+ if (Ou(t, e, n), ju(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, B = !0;
+ n.nodeValue = t, z = !0;
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
}
break;
case 3:
- if (B = !1, Wm = null, o = Ou, Ou = bm(t.containerInfo), Du(t, e, n), Ou = o, Au(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Hh(t.containerInfo);
+ if (z = !1, Gm = null, o = ku, ku = xm(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ Uh(t.containerInfo);
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
- iu && (iu = !1, ju(e)), B = !1;
+ au && (au = !1, Mu(e)), z = !1;
break;
case 4:
- a = ru, ru = tu, r = Ut(), o = Ou, Ou = bm(e.stateNode.containerInfo), Du(t, e, n), Au(e), Ou = o, B && cu && (lu = !0), B = r, ru = a;
+ a = iu, iu = nu, r = Wt(), o = ku, ku = xm(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, z && lu && (uu = !0), z = r, iu = a;
break;
case 12:
- Du(t, e, n), Au(e);
+ Ou(t, e, n), ju(e);
break;
case 31:
- Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 13:
- Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (gd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (_d = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = tu, l = nu, u = ru;
- tu = c || o, ru = u || o, nu = l || s, Du(t, e, n), nu = l, ru = u, tu = c, Au(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || tu || nu || (t = s || nu, n = tu, r = nu, tu = o || tu, nu = t, Fu(e, 2), tu = n, nu = r), !o && ru || mu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Eu(e, n))));
+ var c = nu, l = ru, u = iu;
+ nu = c || o, iu = u || o, ru = l || s, Ou(t, e, n), ru = l, iu = u, nu = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || nu || ru || (t = s || ru, n = nu, r = ru, nu = o || nu, ru = t, Iu(e, 2), nu = n, ru = r), !o && iu || hu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
break;
case 19:
- Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 30:
- a & 512 && (nu || r === null || Cl(r, r.return)), a = Ut(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && hi(c.default, c.update) !== "none", Du(t, e, n), Au(e), s && r !== null && B && (e.flags |= 4), cu = o, B = a;
+ a & 512 && (ru || r === null || wl(r, r.return)), a = Wt(), o = lu, s = (n & 335544064) === n, c = e.memoizedProps, lu = s && gi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && z && (e.flags |= 4), lu = o, z = a;
break;
case 21: break;
- case 7: a & 512 && (nu || r === null || Cl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Du(t, e, n), Au(e);
+ case 7: a & 512 && (ru || r === null || wl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Ou(t, e, n), ju(e);
}
}
- function Au(e) {
+ function ju(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (jl(r)) {
+ if (Ml(r)) {
n = r;
break;
}
@@ -13195,11 +13198,11 @@ var gu = /* @__PURE__ */ m(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Ol(a)) {
+ if (kl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Dl(a)) break;
+ if (Ol(a)) break;
a = a.return;
}
var s = r;
@@ -13207,46 +13210,46 @@ var gu = /* @__PURE__ */ m(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Pl(e, Ml(e), c, s);
+ Fl(e, Nl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (on(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
+ n.flags & 32 && (sn(l, ""), n.flags &= -33), Fl(e, Nl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Nl(e, Ml(e), u, s);
+ Pl(e, Nl(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- pf(e, e.return, t);
+ mf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function ju(e) {
+ function Mu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- ju(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
+ Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, _h = !0, t.reset(), _h = !1), e = e.sibling;
}
}
- function Mu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Nu(t, e), t = t.sibling;
- else eu(t, !1);
- }
function Nu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;
+ else tu(t, !1);
+ }
+ function Pu(e, t) {
var n = e.alternate;
- if (n === null) Kl(e, !1);
+ if (n === null) ql(e, !1);
else switch (e.tag) {
case 3:
- if (uu = su = !1, Bl(), Mu(t, e), !su && !lu) {
- if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (du = cu = !1, Vl(), Nu(t, e), !cu && !uu) {
+ if (e = Bl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Ep(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Dp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -13269,33 +13272,33 @@ var gu = /* @__PURE__ */ m(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), uu = !0;
+ })), du = !0;
}
- zl = null;
+ Bl = null;
break;
case 5:
- Mu(t, e);
+ Nu(t, e);
break;
case 4:
- r = su, su = !1, Mu(t, e), su && (lu = !0), su = r;
+ r = cu, cu = !1, Nu(t, e), cu && (uu = !0), cu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Mu(t, e) : Kl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : ql(e, !1));
break;
case 30:
- r = su, i = Bl(), su = !1, Mu(t, e), su && (e.flags |= 4);
+ r = cu, i = Vl(), cu = !1, Nu(t, e), cu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = pi(a, o), o = pi(n.memoizedProps, o);
- var s = hi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
+ t = mi(a, o), o = mi(n.memoizedProps, o);
+ var s = gi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Hl = 0, t = eu(e, n, t, o, s, a, !0), Hl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Fd(e, e.memoizedProps.onUpdate), Bl = i) : i !== null && (i.push.apply(i, Bl), Bl = i), cu = e.flags & 32 ? !0 : r;
break;
- default: Mu(t, e);
+ default: Nu(t, e);
}
}
- function Pu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) pu(e, t.alternate, t), t = t.sibling;
- }
function Fu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) mu(e, t.alternate, t), t = t.sibling;
+ }
+ function Iu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -13303,218 +13306,218 @@ var gu = /* @__PURE__ */ m(((e) => {
case 11:
case 14:
case 15:
- yl(4, n, n.return), Fu(n, r);
+ bl(4, n, n.return), Iu(n, r);
break;
case 1:
- Cl(n, n.return);
+ wl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && xl(n, n.return, i), Fu(n, r);
+ typeof i.componentWillUnmount == "function" && Sl(n, n.return, i), Iu(n, r);
break;
- case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && _m(n.stateNode, n.type, n.memoizedProps);
case 5:
- Cl(n, n.return), n.tag !== 5 && n.tag !== 27 || El(n), Fu(n, r);
+ wl(n, n.return), n.tag !== 5 && n.tag !== 27 || Dl(n), Iu(n, r);
break;
case 6:
- El(n);
+ Dl(n);
break;
case 26:
- Cl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Fu(n, r);
+ wl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ru || i.parentNode.removeChild(i), Iu(n, r);
break;
case 22:
- n.memoizedState === null && Fu(n, r);
+ n.memoizedState === null && Iu(n, r);
break;
case 30:
- Cl(n, n.return), Fu(n, r);
+ wl(n, n.return), Iu(n, r);
break;
- case 7: Cl(n, n.return);
- default: Fu(n, r);
+ case 7: wl(n, n.return);
+ default: Iu(n, r);
}
e = e.sibling;
}
}
- function Iu(e, t, n) {
+ function Lu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Iu(i, a, n), vl(4, a);
+ Lu(i, a, n), yl(4, a);
break;
case 1:
- if (Iu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- pf(r, r.return, e);
+ mf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) vo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) bo(l[i], c);
} catch (e) {
- pf(r, r.return, e);
+ mf(r, r.return, e);
}
}
- s && o & 64 && bl(a), Sl(a, a.return);
+ s && o & 64 && xl(a), Cl(a, a.return);
break;
- case 27: n & 2 && Fl(a);
+ case 27: n & 2 && Il(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Tl(a), Iu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || El(a), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 6:
- Tl(a);
+ El(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || tu || Km(bm(c.ownerDocument), a.type, c), Iu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || nu || qm(xm(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 12:
- Iu(i, a, n);
+ Lu(i, a, n);
break;
case 31:
- Iu(i, a, n), s && o & 4 && Cu(i, a);
+ Lu(i, a, n), s && o & 4 && wu(i, a);
break;
case 13:
- Iu(i, a, n), s && o & 4 && wu(i, a);
+ Lu(i, a, n), s && o & 4 && Tu(i, a);
break;
case 22:
- a.memoizedState === null && Iu(i, a, n), Sl(a, a.return);
+ a.memoizedState === null && Lu(i, a, n), Cl(a, a.return);
break;
case 30:
- Iu(i, a, n), Sl(a, a.return);
+ Lu(i, a, n), Cl(a, a.return);
break;
- case 7: Sl(a, a.return);
- default: Iu(i, a, n);
+ case 7: Cl(a, a.return);
+ default: Lu(i, a, n);
}
t = t.sibling;
}
}
- function Lu(e, t) {
+ function Ru(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 && Da(n));
+ 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 && ka(n));
}
- function Ru(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Da(e));
+ function zu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ka(e));
}
- function zu(e, t, n, r) {
+ function Bu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Bu(e, t, n, r), t = t.sibling;
- else i && Ql(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
+ else i && $l(t);
}
- function Bu(e, t, n, r) {
+ function Vu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Ql(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- zu(e, t, n, r), a & 2048 && vl(9, t);
+ Bu(e, t, n, r), a & 2048 && yl(9, t);
break;
case 1:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 3:
- zu(e, t, n, r), i && uu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Da(a)));
+ Bu(e, t, n, r), i && du && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ka(a)));
break;
case 12:
if (a & 2048) {
- zu(e, t, n, r), a = t.stateNode;
+ Bu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- pf(t, t.return, e);
+ mf(t, t.return, e);
}
- } else zu(e, t, n, r);
+ } else Bu(e, t, n, r);
break;
case 31:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 13:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ? zu(e, t, n, r) : (o._visibility |= 2, Vu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Zl(s), o._visibility & 2 ? zu(e, t, n, r) : Hu(e, t)), a & 2048 && Lu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Ql(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Ql(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);
break;
case 24:
- zu(e, t, n, r), a & 2048 && Ru(t.alternate, t);
+ Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Wl(a.child, !0), Wl(t.child, !0))), zu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Gl(a.child, !0), Gl(t.child, !0))), Bu(e, t, n, r);
break;
- default: zu(e, t, n, r);
+ default: Bu(e, t, n, r);
}
}
- function Vu(e, t, n, r, i) {
+ function Hu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Vu(a, o, s, c, i), vl(8, o);
+ Hu(a, o, s, c, i), yl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Vu(a, o, s, c, i)) : u._visibility & 2 ? Vu(a, o, s, c, i) : Hu(a, o), i && l & 2048 && Lu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);
break;
case 24:
- Vu(a, o, s, c, i), i && l & 2048 && Ru(o.alternate, o);
+ Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
break;
- default: Vu(a, o, s, c, i);
+ default: Hu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Hu(e, t) {
+ function Uu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- Hu(n, r), i & 2048 && Lu(r.alternate, r);
+ Uu(n, r), i & 2048 && Ru(r.alternate, r);
break;
case 24:
- Hu(n, r), i & 2048 && Ru(r.alternate, r);
+ Uu(n, r), i & 2048 && zu(r.alternate, r);
break;
- default: Hu(n, r);
+ default: Uu(n, r);
}
t = t.sibling;
}
}
- var Uu = 8192;
- function Wu(e, t, n) {
- if (e.subtreeFlags & Uu) for (e = e.child; e !== null;) Gu(e, t, n), e = e.sibling;
- }
+ var Wu = 8192;
function Gu(e, t, n) {
+ if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;
+ }
+ function Ku(e, t, n) {
switch (e.tag) {
case 26:
- Wu(e, t, n), e.flags & Uu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Ou, e.memoizedState, e.memoizedProps));
+ Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Qm(n, e)) : $m(n, ku, e.memoizedState, e.memoizedProps));
break;
case 5:
- Wu(e, t, n), e.flags & Uu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
+ Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && Qm(n, e));
break;
case 3:
case 4:
- var r = Ou;
- Ou = bm(e.stateNode.containerInfo), Wu(e, t, n), Ou = r;
+ var r = ku;
+ ku = xm(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Uu, Uu = 16777216, Wu(e, t, n), Uu = r) : Wu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));
break;
case 30:
- if ((e.flags & Uu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Ll === null && (Ll = /* @__PURE__ */ new Map()), Ll.set(r, i);
+ i.paired = null, Rl === null && (Rl = /* @__PURE__ */ new Map()), Rl.set(r, i);
}
- Wu(e, t, n);
+ Gu(e, t, n);
break;
- default: Wu(e, t, n);
+ default: Gu(e, t, n);
}
}
- function Ku(e) {
+ function qu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -13523,69 +13526,69 @@ var gu = /* @__PURE__ */ m(((e) => {
while (e !== null);
}
}
- function qu(e) {
+ function Ju(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Xu(r, e);
+ su = r, Zu(r, e);
}
- Ku(e);
+ qu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ju(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
}
- function Ju(e) {
+ function Yu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- qu(e), e.flags & 2048 && yl(9, e, e.return);
+ Ju(e), e.flags & 2048 && bl(9, e, e.return);
break;
case 3:
- qu(e);
+ Ju(e);
break;
case 12:
- qu(e);
+ Ju(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Yu(e)) : qu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
break;
- default: qu(e);
+ default: Ju(e);
}
}
- function Yu(e) {
+ function Xu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Xu(r, e);
+ su = r, Zu(r, e);
}
- Ku(e);
+ qu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- yl(8, t, t.return), Yu(t);
+ bl(8, t, t.return), Xu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Yu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
break;
- default: Yu(t);
+ default: Xu(t);
}
e = e.sibling;
}
}
- function Xu(e, t) {
- for (; ou !== null;) {
- var n = ou;
+ function Zu(e, t) {
+ for (; su !== null;) {
+ var n = su;
switch (n.tag) {
case 0:
case 11:
case 15:
- yl(8, n, t);
+ bl(8, n, t);
break;
case 23:
case 22:
@@ -13594,64 +13597,64 @@ var gu = /* @__PURE__ */ m(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Da(n.memoizedState.cache);
+ case 24: ka(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, ou = r;
- else a: for (n = e; ou !== null;) {
- r = ou;
+ if (r = n.child, r !== null) r.return = n, su = r;
+ else a: for (n = e; su !== null;) {
+ r = su;
var i = r.sibling, a = r.return;
if (vu(r), r === n) {
- ou = null;
+ su = null;
break a;
}
if (i !== null) {
- i.return = a, ou = i;
+ i.return = a, su = i;
break a;
}
- ou = a;
+ su = a;
}
}
}
- var Zu = {
+ var Qu = {
getCacheForType: function(e) {
- var t = ba(G), n = t.data.get(e);
+ var t = xa(Da), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return ba(G).controller.signal;
+ return xa(Da).controller.signal;
}
- }, Qu = typeof WeakMap == "function" ? WeakMap : Map, $u = 0, ed = null, q = null, J = 0, td = 0, nd = null, rd = !1, id = !1, ad = !1, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = null, md = null, hd = !1, gd = 0, _d = 0, vd = Infinity, yd = null, bd = null, xd = 0, Sd = null, Cd = null, wd = 0, Y = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, jd = null;
- function Md() {
- return $u & 2 && J !== 0 ? J & -J : F.T === null ? yt() : Pf();
- }
+ }, $u = typeof WeakMap == "function" ? WeakMap : Map, ed = 0, td = null, K = null, q = 0, nd = 0, rd = null, id = !1, ad = !1, od = !1, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = 0, md = null, hd = null, gd = !1, _d = 0, vd = 0, yd = Infinity, bd = null, xd = null, Sd = 0, Cd = null, wd = null, Td = 0, Ed = 0, Dd = null, Od = null, kd = null, Ad = null, jd = null, Md = 0, J = null;
function Nd() {
- if (dd === 0) {
- if (!(J & 536870912) || W) {
- var e = rt;
- rt <<= 1, !(rt & 3932160) && (rt = 262144), dd = e;
- } else dd = 536870912;
+ return ed & 2 && q !== 0 ? q & -q : P.T === null ? bt() : Pf();
+ }
+ function Pd() {
+ if (fd === 0) {
+ if (!(q & 536870912) || U) {
+ var e = it;
+ it <<= 1, !(it & 3932160) && (it = 262144), fd = e;
+ } else fd = 536870912;
}
- return e = To.current, e !== null && (e.flags |= 32), dd;
+ return e = Do.current, e !== null && (e.flags |= 32), fd;
}
- function Pd(e, t) {
+ function Fd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Od === null && (Od = []), Od.push(t.bind(null, r));
+ r === null && (r = n.ref = Fp(mi(e.memoizedProps, n))), Ad === null && (Ad = []), Ad.push(t.bind(null, r));
}
}
- function Fd(e, t, n) {
- (e === ed && (td === 2 || td === 9) || e.cancelPendingCommit !== null) && (Vd(e, 0), Rd(e, J, dd, !1)), ft(e, n), (!($u & 2) || e !== ed) && (e === ed && (!($u & 2) && (ld |= n), sd === 4 && Rd(e, J, dd, !1)), Ef(e));
+ function Id(e, t, n) {
+ (e === td && (nd === 2 || nd === 9) || e.cancelPendingCommit !== null) && (Ud(e, 0), Bd(e, q, fd, !1)), pt(e, n), (!(ed & 2) || e !== td) && (e === td && (!(ed & 2) && (ud |= n), cd === 4 && Bd(e, q, fd, !1)), Ef(e));
}
- function X(e, t, n) {
- if ($u & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? Jd(e, t) : Kd(e, t, !0), o = r;
+ function Ld(e, t, n) {
+ if (ed & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? Xd(e, t) : Jd(e, t, !0), o = r;
do {
if (a === 0) {
- id && !r && Rd(e, t, 0, !1);
+ ad && !r && Bd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Ld(n)) {
- a = Kd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !zd(n)) {
+ a = Jd(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -13661,14 +13664,14 @@ var gu = /* @__PURE__ */ m(((e) => {
t = s;
a: {
var c = e;
- a = pd;
+ a = md;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Vd(c, s).flags |= 256), s = Kd(c, s, !1), s !== 2 && s !== 6) {
- if (ad && !l) {
- c.errorRecoveryDisabledLanes |= o, ld |= o, a = 4;
+ if (l && (Ud(c, s).flags |= 256), s = Jd(c, s, !1), s !== 2 && s !== 6) {
+ if (od && !l) {
+ c.errorRecoveryDisabledLanes |= o, ud |= o, a = 4;
break a;
}
- o = md, md = a, o !== null && (md === null ? md = o : md.push.apply(md, o));
+ o = hd, hd = a, o !== null && (hd === null ? hd = o : hd.push.apply(hd, o));
}
a = s;
}
@@ -13676,7 +13679,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
if (a === 1) {
- Vd(e, 0), Rd(e, t, 0, !0);
+ Ud(e, 0), Bd(e, t, 0, !0);
break;
}
a: {
@@ -13685,27 +13688,27 @@ var gu = /* @__PURE__ */ m(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Rd(r, t, dd, !rd);
+ Bd(r, t, fd, !id);
break a;
case 2:
- md = null;
+ hd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = gd + 300 - Be(), 10 < a)) {
- if (Rd(r, t, dd, !rd), ot(r, 0, !0) !== 0) break a;
- wd = t, r.timeoutHandle = gp(Id.bind(null, r, n, md, yd, hd, t, dd, ld, fd, rd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = _d + 300 - Ve(), 10 < a)) {
+ if (Bd(r, t, fd, !id), st(r, 0, !0) !== 0) break a;
+ Td = t, r.timeoutHandle = _p(Rd.bind(null, r, n, hd, bd, gd, t, fd, ud, pd, id, o, "Throttled", -0, 0), a);
break a;
}
- Id(r, n, md, yd, hd, t, dd, ld, fd, rd, o, null, -0, 0);
+ Rd(r, n, hd, bd, gd, t, fd, ud, pd, id, o, null, -0, 0);
}
break;
} while (1);
Ef(e);
}
- function Id(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Rd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -13716,21 +13719,21 @@ var gu = /* @__PURE__ */ m(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: mn
- }, Ll = null, Gu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? gd - Be() : (a & 4194048) === a ? _d - Be() : 0, m = eh(d, m), m !== null)) {
- wd = a, e.cancelPendingCommit = m(tf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Rd(e, a, o, !l);
+ unsuspend: hn
+ }, Rl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = rh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? _d - Ve() : (a & 4194048) === a ? vd - Ve() : 0, m = th(d, m), m !== null)) {
+ Td = a, e.cancelPendingCommit = m(nf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Bd(e, a, o, !l);
return;
}
- tf(e, t, a, n, r, i, o, s, c, l, u, d);
+ nf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Ld(e) {
+ function zd(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 r = 0; r < n.length; r++) {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Ir(a(), i)) return !1;
+ if (!Lr(a(), i)) return !1;
} catch {
return !1;
}
@@ -13747,280 +13750,280 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return !0;
}
- function Rd(e, t, n, r) {
- t = ct(e, t), t &= ~ud, t &= ~ld, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Bd(e, t, n, r) {
+ t = lt(e, t), t &= ~dd, t &= ~ud, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - Qe(i), o = 1 << a;
+ var a = 31 - $e(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && mt(e, n, t);
+ n !== 0 && ht(e, n, t);
}
- function zd() {
- return $u & 6 ? !0 : (Df(0, !1), !1);
+ function Vd() {
+ return ed & 6 ? !0 : (Df(0, !1), !1);
}
- function Bd() {
- if (q !== null) {
- if (td === 0) var e = q.return;
- else e = q, fa = da = null, es(e), $a = null, eo = 0, e = q;
- for (; e !== null;) _l(e.alternate, e), e = e.return;
- q = null;
+ function Hd() {
+ if (K !== null) {
+ if (nd === 0) var e = K.return;
+ else e = K, pa = fa = null, ts(e), to = null, no = 0, e = K;
+ for (; e !== null;) vl(e.alternate, e), e = e.return;
+ K = null;
}
}
- function Vd(e, t) {
+ function Ud(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), wd = 0, Bd(), ed = e, q = n = Ai(e.current, null), J = t, td = 0, nd = null, rd = !1, id = st(e, t), ad = !1, fd = dd = ud = ld = cd = sd = 0, md = pd = null, hd = !1, od = ct(e, t), bi(), n;
- }
- function Hd(e, t) {
- K = null, F.H = uc, t === Ua || t === Ga ? (t = Za(), td = 3) : t === Wa ? (t = Za(), td = 4) : td = t === Oc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, nd = t, q === null && (sd = 1, Sc(e, Ri(t, e.current)));
- }
- function Z() {
- var e = To.current;
- return e === null ? !0 : (J & 4194048) === J ? Eo === null : (J & 62914560) === J || J & 536870912 ? e === Eo : !1;
+ return n !== -1 && (e.timeoutHandle = -1, vp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Td = 0, Hd(), td = e, K = n = ji(e.current, null), q = t, nd = 0, rd = null, id = !1, ad = ct(e, t), od = !1, pd = fd = dd = ud = ld = cd = 0, hd = md = null, gd = !1, sd = lt(e, t), xi(), n;
}
- function Ud() {
- var e = F.H;
- return F.H = uc, e === null ? uc : e;
+ function Y(e, t) {
+ W = null, P.H = dc, t === Ga || t === qa ? (t = $a(), nd = 3) : t === Ka ? (t = $a(), nd = 4) : nd = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, rd = t, K === null && (cd = 1, Cc(e, zi(t, e.current)));
}
function Wd() {
- var e = F.A;
- return F.A = Zu, e;
+ var e = Do.current;
+ return e === null ? !0 : (q & 4194048) === q ? Oo === null : (q & 62914560) === q || q & 536870912 ? e === Oo : !1;
}
function Gd() {
- sd = 4, rd || (J & 4194048) !== J && To.current !== null || (id = !0), !(cd & 134217727) && !(ld & 134217727) || ed === null || Rd(ed, J, dd, !1);
- }
- function Kd(e, t, n) {
- var r = $u;
- $u |= 2;
- var i = Ud(), a = Wd();
- (ed !== e || J !== t) && (yd = null, Vd(e, t)), t = !1;
- var o = sd;
+ var e = P.H;
+ return P.H = dc, e === null ? dc : e;
+ }
+ function Kd() {
+ var e = P.A;
+ return P.A = Qu, e;
+ }
+ function qd() {
+ cd = 4, id || (q & 4194048) !== q && Do.current !== null || (ad = !0), !(ld & 134217727) && !(ud & 134217727) || td === null || Bd(td, q, fd, !1);
+ }
+ function Jd(e, t, n) {
+ var r = ed;
+ ed |= 2;
+ var i = Gd(), a = Kd();
+ (td !== e || q !== t) && (bd = null, Ud(e, t)), t = !1;
+ var o = cd;
a: do
try {
- if (td !== 0 && q !== null) {
- var s = q, c = nd;
- switch (td) {
+ if (nd !== 0 && K !== null) {
+ var s = K, c = rd;
+ switch (nd) {
case 8:
- Bd(), o = 6;
+ Hd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- To.current === null && (t = !0);
- var l = td;
- if (td = 0, nd = null, Qd(e, s, c, l), n && id) {
+ Do.current === null && (t = !0);
+ var l = nd;
+ if (nd = 0, rd = null, $d(e, s, c, l), n && ad) {
o = 0;
break a;
}
break;
- default: l = td, td = 0, nd = null, Qd(e, s, c, l);
+ default: l = nd, nd = 0, rd = null, $d(e, s, c, l);
}
}
- qd(), o = sd;
+ Yd(), o = cd;
break;
} catch (t) {
- Hd(e, t);
+ Y(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, fa = da = null, $u = r, F.H = i, F.A = a, q === null && (ed = null, J = 0, bi()), o;
+ return t && e.shellSuspendCounter++, pa = fa = null, ed = r, P.H = i, P.A = a, K === null && (td = null, q = 0, xi()), o;
}
- function qd() {
- for (; q !== null;) Xd(q);
+ function Yd() {
+ for (; K !== null;) Zd(K);
}
- function Jd(e, t) {
- var n = $u;
- $u |= 2;
- var r = Ud(), a = Wd();
- ed !== e || J !== t ? (yd = null, vd = Be() + 500, Vd(e, t)) : id = st(e, t);
+ function Xd(e, t) {
+ var n = ed;
+ ed |= 2;
+ var r = Gd(), a = Kd();
+ td !== e || q !== t ? (bd = null, yd = Ve() + 500, Ud(e, t)) : ad = ct(e, t);
a: do
try {
- if (td !== 0 && q !== null) {
- t = q;
- var o = nd;
- b: switch (td) {
+ if (nd !== 0 && K !== null) {
+ t = K;
+ var o = rd;
+ b: switch (nd) {
case 1:
- td = 0, nd = null, Qd(e, t, o, 1);
+ nd = 0, rd = null, $d(e, t, o, 1);
break;
case 2:
case 9:
- if (qa(o)) {
- td = 0, nd = null, Zd(t);
+ if (Ya(o)) {
+ nd = 0, rd = null, Qd(t);
break;
}
t = function() {
- td !== 2 && td !== 9 || ed !== e || (td = 7), Ef(e);
+ nd !== 2 && nd !== 9 || td !== e || (nd = 7), Ef(e);
}, o.then(t, t);
break a;
case 3:
- td = 7;
+ nd = 7;
break a;
case 4:
- td = 5;
+ nd = 5;
break a;
case 7:
- qa(o) ? (td = 0, nd = null, Zd(t)) : (td = 0, nd = null, Qd(e, t, o, 7));
+ Ya(o) ? (nd = 0, rd = null, Qd(t)) : (nd = 0, rd = null, $d(e, t, o, 7));
break;
case 5:
var s = null;
- switch (q.tag) {
- case 26: s = q.memoizedState;
+ switch (K.tag) {
+ case 26: s = K.memoizedState;
case 5:
case 27:
- var c = q;
- if (s ? Ym(s) : c.stateNode.complete) {
- td = 0, nd = null;
+ var c = K;
+ if (s ? Xm(s) : c.stateNode.complete) {
+ nd = 0, rd = null;
var l = c.sibling;
- if (l !== null) q = l;
+ if (l !== null) K = l;
else {
var u = c.return;
- u === null ? q = null : (q = u, $d(u));
+ u === null ? K = null : (K = u, ef(u));
}
break b;
}
}
- td = 0, nd = null, Qd(e, t, o, 5);
+ nd = 0, rd = null, $d(e, t, o, 5);
break;
case 6:
- td = 0, nd = null, Qd(e, t, o, 6);
+ nd = 0, rd = null, $d(e, t, o, 6);
break;
case 8:
- Bd(), sd = 6;
+ Hd(), cd = 6;
break a;
default: throw Error(i(462));
}
}
- Yd();
+ X();
break;
} catch (t) {
- Hd(e, t);
+ Y(e, t);
}
while (1);
- return fa = da = null, F.H = r, F.A = a, $u = n, q === null ? (ed = null, J = 0, bi(), sd) : 0;
- }
- function Yd() {
- for (; q !== null && !Re();) Xd(q);
+ return pa = fa = null, P.H = r, P.A = a, ed = n, K === null ? (td = null, q = 0, xi(), cd) : 0;
}
- function Xd(e) {
- var t = cl(e.alternate, e, od);
- e.memoizedProps = e.pendingProps, t === null ? $d(e) : q = t;
+ function X() {
+ for (; K !== null && !ze();) Zd(K);
}
function Zd(e) {
+ var t = ll(e.alternate, e, sd);
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : K = t;
+ }
+ function Qd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Hc(n, t, t.pendingProps, t.type, void 0, J);
+ t = Uc(n, t, t.pendingProps, t.type, void 0, q);
break;
case 11:
- t = Hc(n, t, t.pendingProps, t.type.render, t.ref, J);
+ t = Uc(n, t, t.pendingProps, t.type.render, t.ref, q);
break;
case 5:
- es(t);
+ ts(t);
var r = t;
- r === U && (W ? (aa(r), r.tag === 5 && r.stateNode != null && ($i = r.stateNode)) : (aa(r), W = !0));
- default: _l(n, t), t = q = ji(t, od), t = cl(n, t, od);
+ r === ea && (U ? (oa(r), r.tag === 5 && r.stateNode != null && (H = r.stateNode)) : (oa(r), U = !0));
+ default: vl(n, t), t = K = Mi(t, sd), t = ll(n, t, sd);
}
- e.memoizedProps = e.pendingProps, t === null ? $d(e) : q = t;
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : K = t;
}
- function Qd(e, t, n, r) {
- fa = da = null, es(t), $a = null, eo = 0;
+ function $d(e, t, n, r) {
+ pa = fa = null, ts(t), to = null, no = 0;
var i = t.return;
try {
- if (Dc(e, i, t, n, J)) {
- sd = 1, Sc(e, Ri(n, e.current)), q = null;
+ if (Oc(e, i, t, n, q)) {
+ cd = 1, Cc(e, zi(n, e.current)), K = null;
return;
}
} catch (t) {
- if (i !== null) throw q = i, t;
- sd = 1, Sc(e, Ri(n, e.current)), q = null;
+ if (i !== null) throw K = i, t;
+ cd = 1, Cc(e, zi(n, e.current)), K = null;
return;
}
- t.flags & 32768 ? (W || r === 1 ? e = !0 : id || J & 536870912 ? e = !1 : (rd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = To.current, r !== null && r.tag === 13 && (r.flags |= 16384))), ef(t, e)) : $d(t);
+ t.flags & 32768 ? (U || r === 1 ? e = !0 : ad || q & 536870912 ? e = !1 : (id = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Do.current, r !== null && r.tag === 13 && (r.flags |= 16384))), tf(t, e)) : ef(t);
}
- function $d(e) {
+ function ef(e) {
var t = e;
do {
if (t.flags & 32768) {
- ef(t, rd);
+ tf(t, id);
return;
}
e = t.return;
- var n = hl(t.alternate, t, od);
+ var n = gl(t.alternate, t, sd);
if (n !== null) {
- q = n;
+ K = n;
return;
}
if (t = t.sibling, t !== null) {
- q = t;
+ K = t;
return;
}
- q = t = e;
+ K = t = e;
} while (t !== null);
- sd === 0 && (sd = 5);
+ cd === 0 && (cd = 5);
}
- function ef(e, t) {
+ function tf(e, t) {
do {
- var n = gl(e.alternate, e);
+ var n = _l(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, q = n;
+ n.flags &= 32767, K = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- q = e;
+ K = e;
return;
}
- q = e = n;
+ K = e = n;
} while (e !== null);
- sd = 6, q = null;
+ cd = 6, K = null;
}
- function tf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function nf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- uf();
- while (xd !== 0);
- if ($u & 6) throw Error(i(327));
+ df();
+ while (Sd !== 0);
+ if (ed & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === ed && (q = ed = null, J = 0), Cd = t, Sd = e, wd = n, Td = a, Ed = r, nf(e, t, n, s, c, l, f);
+ e === td && (K = td = null, q = 0), wd = t, Cd = e, Td = n, Dd = a, Od = r, rf(e, t, n, s, c, l, f);
}
}
- function nf(e, t, n, r, i, a, o) {
+ function rf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (Y = s, s |= yi, pt(e, n, s, r, i, a), Od = null, (n & 335544064) === n ? (kd = Aa(e), r = 10262) : (kd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, yf(We, function() {
- return df(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = F.T, F.T = null, i = I.p, I.p = 2, a = $u, $u |= 4;
+ if (Ed = s, s |= bi, mt(e, n, s, r, i, a), Ad = null, (n & 335544064) === n ? (jd = Ma(e), r = 10262) : (jd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, bf(Ge, function() {
+ return ff(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Ll = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = P.T, P.T = null, i = F.p, F.p = 2, a = ed, ed |= 4;
try {
- du(e, t, n);
+ fu(e, t, n);
} finally {
- $u = a, I.p = i, F.T = r;
+ ed = a, F.p = i, P.T = r;
}
}
- xd = 1, Il ? Dd = Mp(o, e.containerInfo, kd, of, sf, af, cf, df, rf, null, null) : (of(), sf(), cf());
+ Sd = 1, Ll ? kd = Np(o, e.containerInfo, jd, sf, cf, of, lf, ff, af, null, null) : (sf(), cf(), lf());
}
- function rf(e) {
- if (xd !== 0) {
- var t = Sd.onRecoverableError;
+ function af(e) {
+ if (Sd !== 0) {
+ var t = Cd.onRecoverableError;
t(e, { componentStack: null });
}
}
- function af() {
- xd === 3 && (xd = 0, Nu(Cd, Sd), xd = 4);
- }
function of() {
- if (xd === 1) {
- xd = 0;
- var e = Sd, t = Cd, n = wd, r = !!(t.flags & 13878);
+ Sd === 3 && (Sd = 0, Pu(wd, Cd), Sd = 4);
+ }
+ function sf() {
+ if (Sd === 1) {
+ Sd = 0;
+ var e = Cd, t = wd, n = Td, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = F.T, F.T = null;
- var i = I.p;
- I.p = 2;
- var a = $u;
- $u |= 4;
+ r = P.T, P.T = null;
+ var i = F.p;
+ F.p = 2;
+ var a = ed;
+ ed |= 4;
try {
- cu = lu = !1, ku(t, e, n), n = cp;
- var o = Hr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Vr(s.ownerDocument.documentElement, s)) {
+ lu = uu = !1, Au(t, e, n), n = lp;
+ var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
+ if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {
if (c !== null && Wr(s)) {
var l = c.start, u = c.end;
if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
@@ -14029,7 +14032,7 @@ var gu = /* @__PURE__ */ m(((e) => {
if (f.getSelection) {
var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
!p.extend && h > g && (o = g, g = h, h = o);
- var _ = Br(s, h), v = Br(s, g);
+ var _ = Vr(s, h), v = Vr(s, g);
if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
var y = d.createRange();
y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
@@ -14047,122 +14050,122 @@ var gu = /* @__PURE__ */ m(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- gh = !!sp, cp = sp = null;
+ _h = !!cp, lp = cp = null;
} finally {
- $u = a, I.p = i, F.T = r;
+ ed = a, F.p = i, P.T = r;
}
}
- e.current = t, xd = 2;
+ e.current = t, Sd = 2;
}
}
- function sf() {
- if (xd === 2) {
- xd = 0;
- var e = Sd, t = Cd, n = !!(t.flags & 8772);
+ function cf() {
+ if (Sd === 2) {
+ Sd = 0;
+ var e = Cd, t = wd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = F.T, F.T = null;
- var r = I.p;
- I.p = 2;
- var i = $u;
- $u |= 4;
+ n = P.T, P.T = null;
+ var r = F.p;
+ F.p = 2;
+ var i = ed;
+ ed |= 4;
try {
- pu(e, t.alternate, t);
+ mu(e, t.alternate, t);
} finally {
- $u = i, I.p = r, F.T = n;
+ ed = i, F.p = r, P.T = n;
}
}
- xd = 3;
+ Sd = 3;
}
}
- function cf() {
- if (xd === 4 || xd === 3) {
- xd = 0;
- var e = Dd;
- Dd = null, ze();
- var t = Sd, n = Cd, r = wd, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? xd = 5 : (xd = 0, Cd = Sd = null, lf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (bd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
- Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
+ function lf() {
+ if (Sd === 4 || Sd === 3) {
+ Sd = 0;
+ var e = kd;
+ kd = null, Be();
+ var t = Cd, n = wd, r = Td, i = Od, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Sd = 5 : (Sd = 0, wd = Cd = null, uf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (xd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
+ Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = F.T, a = I.p, I.p = 2, F.T = null;
+ n = P.T, a = F.p, F.p = 2, P.T = null;
try {
for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {
var c = i[s];
o(c.value, { componentStack: c.stack });
}
} finally {
- F.T = n, I.p = a;
+ P.T = n, F.p = a;
}
}
- if (i = Od, o = kd, kd = null, i !== null && (Od = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- wd & 3 && uf(), Ef(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === jd ? Ad++ : (Ad = 0, jd = t) : (Ad = 0, jd = null), Df(0, !1);
+ if (i = Ad, o = jd, jd = null, i !== null && (Ad = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ Td & 3 && df(), Ef(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === J ? Md++ : (Md = 0, J = t) : (Md = 0, J = null), Df(0, !1);
}
}
- function lf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Da(t)));
- }
- function uf() {
- return Dd !== null && (Dd.skipTransition(), Dd = null), of(), sf(), cf(), df();
+ function uf(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ka(t)));
}
function df() {
- if (xd !== 5) return !1;
- var e = Sd, t = Y;
- Y = 0;
- var n = vt(wd), r = F.T, a = I.p;
+ return kd !== null && (kd.skipTransition(), kd = null), sf(), cf(), lf(), ff();
+ }
+ function ff() {
+ if (Sd !== 5) return !1;
+ var e = Cd, t = Ed;
+ Ed = 0;
+ var n = yt(Td), r = P.T, a = F.p;
try {
- I.p = 32 > n ? 32 : n, F.T = null, n = Td, Td = null;
- var o = Sd, s = wd;
- if (xd = 0, Cd = Sd = null, wd = 0, $u & 6) throw Error(i(331));
- var c = $u;
- if ($u |= 4, Ju(o.current), Bu(o, o.current, s, n), $u = c, Df(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
- Xe.onPostCommitFiberRoot(Ye, o);
+ F.p = 32 > n ? 32 : n, P.T = null, n = Dd, Dd = null;
+ var o = Cd, s = Td;
+ if (Sd = 0, wd = Cd = null, Td = 0, ed & 6) throw Error(i(331));
+ var c = ed;
+ if (ed |= 4, Yu(o.current), Vu(o, o.current, s, n), ed = c, Df(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
+ Ze.onPostCommitFiberRoot(Xe, o);
} catch {}
return !0;
} finally {
- I.p = a, F.T = r, lf(e, t);
+ F.p = a, P.T = r, uf(e, t);
}
}
- function ff(e, t, n) {
- t = Ri(n, t), t = wc(e.stateNode, t, 2), e = fo(e, t, 2), e !== null && (ft(e, 2), Ef(e));
- }
function pf(e, t, n) {
- if (e.tag === 3) ff(e, e, n);
+ t = zi(n, t), t = Tc(e.stateNode, t, 2), e = mo(e, t, 2), e !== null && (pt(e, 2), Ef(e));
+ }
+ function mf(e, t, n) {
+ if (e.tag === 3) pf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- ff(t, e, n);
+ pf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (bd === null || !bd.has(r))) {
- e = Ri(n, e), n = Tc(2), r = fo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Ef(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (xd === null || !xd.has(r))) {
+ e = zi(n, e), n = Ec(2), r = mo(t, n, 2), r !== null && (Dc(n, r, t, e), pt(r, 2), Ef(r));
break;
}
}
t = t.return;
}
}
- function mf(e, t, n) {
+ function hf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Qu();
+ r = e.pingCache = new $u();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (ad = !0, i.add(n), e = hf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (od = !0, i.add(n), e = gf.bind(null, e, t, n), t.then(e, e));
}
- function hf(e, t, n) {
+ function gf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, ed === e && (J & n) === n && (sd === 4 || sd === 3 && (J & 62914560) === J && 300 > Be() - gd ? $u & 2 ? ud |= n : Vd(e, 0) : ud |= n, fd === J && (fd = 0)), Ef(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, td === e && (q & n) === n && (cd === 4 || cd === 3 && (q & 62914560) === q && 300 > Ve() - _d ? ed & 2 ? dd |= n : Ud(e, 0) : dd |= n, pd === q && (pd = 0)), Ef(e);
}
- function gf(e, t) {
- t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Ef(e));
+ function _f(e, t) {
+ t === 0 && (t = dt()), e = wi(e, t), e !== null && (pt(e, t), Ef(e));
}
- function _f(e) {
+ function vf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), gf(e, n);
+ t !== null && (n = t.retryLane), _f(e, n);
}
- function vf(e, t) {
+ function yf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -14178,30 +14181,30 @@ var gu = /* @__PURE__ */ m(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), gf(e, n);
+ r !== null && r.delete(t), _f(e, n);
}
- function yf(e, t) {
- return Ie(e, t);
+ function bf(e, t) {
+ return Le(e, t);
}
- var bf = null, xf = null, Sf = !1, Cf = !1, wf = !1, Tf = 0;
+ var xf = null, Sf = null, Cf = !1, Z = !1, wf = !1, Tf = 0;
function Ef(e) {
- e !== xf && e.next === null && (xf === null ? bf = xf = e : xf = xf.next = e), Cf = !0, Sf || (Sf = !0, Nf());
+ e !== Sf && e.next === null && (Sf === null ? xf = Sf = e : Sf = Sf.next = e), Z = !0, Cf || (Cf = !0, Nf());
}
function Df(e, t) {
- if (!wf && Cf) {
+ if (!wf && Z) {
wf = !0;
do
- for (var n = !1, r = bf; r !== null;) {
+ for (var n = !1, r = xf; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - Qe(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
a !== 0 && (n = !0, Mf(r, a));
- } else a = J, a = ot(r, r === ed ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Mf(r, a));
+ } else a = q, a = st(r, r === td ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, Mf(r, a));
}
r = r.next;
}
@@ -14213,71 +14216,71 @@ var gu = /* @__PURE__ */ m(((e) => {
kf();
}
function kf() {
- Cf = Sf = !1;
+ Z = Cf = !1;
var e = 0;
- Tf !== 0 && hp() && (e = Tf);
- for (var t = Be(), n = null, r = bf; r !== null;) {
+ Tf !== 0 && gp() && (e = Tf);
+ for (var t = Ve(), n = null, r = xf; r !== null;) {
var i = r.next, a = Af(r, t);
- a === 0 ? (r.next = null, n === null ? bf = i : n.next = i, i === null && (xf = n)) : (n = r, (e !== 0 || a & 3) && (Cf = !0)), r = i;
+ a === 0 ? (r.next = null, n === null ? xf = i : n.next = i, i === null && (Sf = n)) : (n = r, (e !== 0 || a & 3) && (Z = !0)), r = i;
}
- xd !== 0 && xd !== 5 || Df(e, !1), Tf !== 0 && (Tf = 0);
+ Sd !== 0 && Sd !== 5 || Df(e, !1), Tf !== 0 && (Tf = 0);
}
function Af(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- var o = 31 - Qe(a), s = 1 << o, c = i[o];
- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
+ var o = 31 - $e(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ut(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = ed, n = J, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (td === 2 || td === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Le(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || st(e, n)) {
+ if (t = td, n = q, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (nd === 2 || nd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || ct(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Le(r), vt(n)) {
+ switch (r !== null && Re(r), yt(n)) {
case 2:
case 8:
- n = Ue;
+ n = We;
break;
case 32:
- n = We;
+ n = Ge;
break;
case 268435456:
- n = Ke;
+ n = qe;
break;
- default: n = We;
+ default: n = Ge;
}
- return r = jf.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = jf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
function jf(e, t) {
- if (xd !== 0 && xd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ if (Sd !== 0 && Sd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (uf() && e.callbackNode !== n) return null;
- var r = J;
- return r = ot(e, e === ed ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (X(e, r, t), Af(e, Be()), e.callbackNode != null && e.callbackNode === n ? jf.bind(null, e) : null);
+ if (df() && e.callbackNode !== n) return null;
+ var r = q;
+ return r = st(e, e === td ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Ld(e, r, t), Af(e, Ve()), e.callbackNode != null && e.callbackNode === n ? jf.bind(null, e) : null);
}
function Mf(e, t) {
- if (uf()) return null;
- X(e, t, !0);
+ if (df()) return null;
+ Ld(e, t, !0);
}
function Nf() {
- bp(function() {
- $u & 6 ? Ie(He, Of) : kf();
+ xp(function() {
+ ed & 6 ? Le(Ue, Of) : kf();
});
}
function Pf() {
if (Tf === 0) {
- var e = Na;
- e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Tf = e;
+ var e = Fa;
+ e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), Tf = e;
}
return Tf;
}
function Ff(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
}
function If(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Ff((i[Ct] || null).action), o = r.submitter;
- o && (t = (t = o[Ct] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new Fn("action", "action", null, r, i);
+ var a = Ff((i[wt] || null).action), o = r.submitter;
+ o && (t = (t = o[wt] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new In("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
@@ -14286,14 +14289,14 @@ var gu = /* @__PURE__ */ m(((e) => {
if (r.defaultPrevented) {
if (Tf !== 0) {
var e = new FormData(i, o);
- Xs(n, {
+ Zs(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Xs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Zs(n, {
pending: !0,
data: e,
method: i.method,
@@ -14305,16 +14308,16 @@ var gu = /* @__PURE__ */ m(((e) => {
});
}
}
- for (var Lf = 0; Lf < ui.length; Lf++) {
- var Rf = ui[Lf];
- di(Rf.toLowerCase(), "on" + (Rf[0].toUpperCase() + Rf.slice(1)));
+ for (var Lf = 0; Lf < di.length; Lf++) {
+ var Rf = di[Lf];
+ fi(Rf.toLowerCase(), "on" + (Rf[0].toUpperCase() + Rf.slice(1)));
}
- di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Rt("onMouseEnter", ["mouseout", "mouseover"]), Rt("onMouseLeave", ["mouseout", "mouseover"]), Rt("onPointerEnter", ["pointerout", "pointerover"]), Rt("onPointerLeave", ["pointerout", "pointerover"]), Lt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Lt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Lt("onBeforeInput", [
+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), zt("onMouseEnter", ["mouseout", "mouseover"]), zt("onMouseLeave", ["mouseout", "mouseover"]), zt("onPointerEnter", ["pointerout", "pointerover"]), zt("onPointerLeave", ["pointerout", "pointerover"]), Rt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Rt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Rt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ ]), Rt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var zf = "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(" "), Bf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zf));
function Vf(e, t) {
t = !!(t & 4);
@@ -14330,7 +14333,7 @@ var gu = /* @__PURE__ */ m(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -14340,7 +14343,7 @@ var gu = /* @__PURE__ */ m(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -14348,8 +14351,8 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
function Q(e, t) {
- var n = t[Tt];
- n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
+ var n = t[Et];
+ n === void 0 && (n = t[Et] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
n.has(r) || (Gf(t, e, 2, !1), n.add(r));
}
@@ -14360,7 +14363,7 @@ var gu = /* @__PURE__ */ m(((e) => {
var Uf = "_reactListening" + Math.random().toString(36).slice(2);
function Wf(e) {
if (!e[Uf]) {
- e[Uf] = !0, z.forEach(function(t) {
+ e[Uf] = !0, Lt.forEach(function(t) {
t !== "selectionchange" && (Bf.has(t) || Hf(t, !1, e), Hf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -14368,16 +14371,16 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
function Gf(e, t, n, r) {
- switch (Ch(t)) {
+ switch (wh(t)) {
case 2:
- var i = _h;
+ var i = vh;
break;
case 8:
- i = vh;
+ i = yh;
break;
- default: i = yh;
+ default: i = bh;
}
- n = i.bind(null, t, n, e), i = void 0, !wn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
+ n = i.bind(null, t, n, e), i = void 0, !Tn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
@@ -14396,7 +14399,7 @@ var gu = /* @__PURE__ */ m(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = jt(c), s === null) return;
+ if (s = Mt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -14406,27 +14409,27 @@ var gu = /* @__PURE__ */ m(((e) => {
}
r = r.return;
}
- xn(function() {
- var r = a, i = gn(n), s = [];
+ Sn(function() {
+ var r = a, i = _n(n), s = [];
a: {
- var c = li.get(e);
+ var c = ui.get(e);
if (c !== void 0) {
- var l = Fn, u = e;
+ var l = In, u = e;
switch (e) {
- case "keypress": if (An(n) === 0) break a;
+ case "keypress": if (jn(n) === 0) break a;
case "keydown":
case "keyup":
- l = $n;
+ l = er;
break;
case "focusin":
- u = "focus", l = Wn;
+ u = "focus", l = Gn;
break;
case "focusout":
- u = "blur", l = Wn;
+ u = "blur", l = Gn;
break;
case "beforeblur":
case "afterblur":
- l = Wn;
+ l = Gn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -14437,7 +14440,7 @@ var gu = /* @__PURE__ */ m(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Hn;
+ l = Un;
break;
case "drag":
case "dragend":
@@ -14447,33 +14450,33 @@ var gu = /* @__PURE__ */ m(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = Un;
+ l = Wn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = nr;
+ l = rr;
break;
- case ni:
case ri:
case ii:
- l = Gn;
+ case ai:
+ l = Kn;
break;
- case ci:
- l = rr;
+ case li:
+ l = ir;
break;
case "scroll":
case "scrollend":
- l = Ln;
+ l = Rn;
break;
case "wheel":
- l = ir;
+ l = ar;
break;
case "copy":
case "cut":
case "paste":
- l = Kn;
+ l = qn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -14483,19 +14486,19 @@ var gu = /* @__PURE__ */ m(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = er;
+ l = tr;
break;
case "submit":
- l = tr;
+ l = nr;
break;
case "toggle":
- case "beforetoggle": l = ar;
+ case "beforetoggle": l = or;
}
var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Sn(m, p), g != null && d.push(qf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(qf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -14506,45 +14509,45 @@ var gu = /* @__PURE__ */ m(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== hn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[wt])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Yf) : null, c !== null && Xf(s, u, c, d, !1), l !== null && f !== null && Xf(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (Mt(u) || u[Tt])) break a;
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Mt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Pt(c), h = l == null ? u : Pt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Mt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Yf) : null, c !== null && Xf(s, u, c, d, !1), l !== null && f !== null && Xf(s, f, l, d, !0)));
}
a: {
- if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = wr;
- else if (vr(c)) {
- if (Tr) _ = Pr;
+ if (c = r ? Pt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
+ else if (V(c)) {
+ if (Er) _ = Fr;
else {
- _ = Mr;
- var v = jr;
+ _ = Nr;
+ var v = Mr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = wr) : _ = Nr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && dn(r.elementType) && (_ = Tr) : _ = Pr;
if (_ &&= _(e, r)) {
- yr(s, _, n, i);
+ br(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Nt(r) : window, e) {
+ switch (v = r ? Pt(r) : window, e) {
case "focusin":
- (vr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
+ (V(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
break;
case "focusout":
- Jr = qr = Kr = null;
+ Yr = Jr = qr = null;
break;
case "mousedown":
- Yr = !0;
+ Xr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Yr = !1, Xr(s, n, i);
+ Xr = !1, Zr(s, n, i);
break;
- case "selectionchange": if (Gr) break;
+ case "selectionchange": if (Kr) break;
case "keydown":
- case "keyup": Xr(s, n, i);
+ case "keyup": Zr(s, n, i);
}
var y;
- if (sr) b: {
+ if (cr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -14558,11 +14561,11 @@ var gu = /* @__PURE__ */ m(((e) => {
}
b = void 0;
}
- else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = Jf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
+ else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = Jf(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = Jf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = Jf(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), If(s, e, r, n, i);
@@ -14580,7 +14583,7 @@ var gu = /* @__PURE__ */ m(((e) => {
function Jf(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Sn(e, n), i != null && r.unshift(qf(e, i, a)), i = Sn(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(qf(e, i, a)), i = Cn(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
@@ -14596,7 +14599,7 @@ var gu = /* @__PURE__ */ m(((e) => {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Sn(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
@@ -14610,31 +14613,31 @@ var gu = /* @__PURE__ */ m(((e) => {
function ep(e, t) {
return t = $f(t), $f(e) === t;
}
- function $(e, t, n, r, a, o) {
+ function tp(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && on(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && sn(e, "" + r);
else return;
break;
case "className":
- Gt(e, "class", r);
+ Kt(e, "class", r);
break;
case "tabIndex":
- Gt(e, "tabindex", r);
+ Kt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Gt(e, n, r);
+ Kt(e, n, r);
break;
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "data": if (t !== "object") {
- Gt(e, "data", r);
+ Kt(e, "data", r);
break;
}
case "src":
@@ -14647,7 +14650,7 @@ var gu = /* @__PURE__ */ m(((e) => {
e.removeAttribute(n);
break;
}
- r = pn(r), e.setAttribute(n, r);
+ r = mn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -14655,14 +14658,14 @@ var gu = /* @__PURE__ */ m(((e) => {
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;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && $(e, t, "name", a.name, a, null), $(e, t, "formEncType", a.formEncType, a, null), $(e, t, "formMethod", a.formMethod, a, null), $(e, t, "formTarget", a.formTarget, a, null)) : ($(e, t, "encType", a.encType, a, null), $(e, t, "method", a.method, a, null), $(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && tp(e, t, "name", a.name, a, null), tp(e, t, "formEncType", a.formEncType, a, null), tp(e, t, "formMethod", a.formMethod, a, null), tp(e, t, "formTarget", a.formTarget, a, null)) : (tp(e, t, "encType", a.encType, a, null), tp(e, t, "method", a.method, a, null), tp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
- r = pn(r), e.setAttribute(n, r);
+ r = mn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = mn);
+ r != null && (e.onclick = hn);
return;
case "onScroll":
r != null && Q("scroll", e);
@@ -14697,7 +14700,7 @@ var gu = /* @__PURE__ */ m(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = pn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = mn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -14750,49 +14753,49 @@ var gu = /* @__PURE__ */ m(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Q("beforetoggle", e), Q("toggle", e), Wt(e, "popover", r);
+ Q("beforetoggle", e), Q("toggle", e), Gt(e, "popover", r);
break;
case "xlinkActuate":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Wt(e, "is", r);
+ Gt(e, "is", r);
break;
case "innerText":
case "textContent": return;
- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = dn.get(n) || n, Wt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = fn.get(n) || n, Gt(e, n, r);
else return;
}
- B = !0;
+ z = !0;
}
- function tp(e, t, n, r, a, o) {
+ function np(e, t, n, r, a, o) {
switch (n) {
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14804,8 +14807,8 @@ var gu = /* @__PURE__ */ m(((e) => {
}
break;
case "children":
- if (typeof r == "string") on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") on(e, "" + r);
+ if (typeof r == "string") sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") sn(e, "" + r);
else return;
break;
case "onScroll":
@@ -14815,7 +14818,7 @@ var gu = /* @__PURE__ */ m(((e) => {
r != null && Q("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = mn);
+ r != null && (e.onclick = hn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -14824,18 +14827,18 @@ var gu = /* @__PURE__ */ m(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!It.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Ct] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!R.hasOwnProperty(n)) a: {
+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[wt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
break a;
}
- B = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Wt(e, n, r);
+ z = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Gt(e, n, r);
}
return;
}
- B = !0;
+ z = !0;
}
- function np(e, t, n) {
+ function rp(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -14859,10 +14862,10 @@ var gu = /* @__PURE__ */ m(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: $(e, t, o, s, n, null);
+ default: tp(e, t, o, s, n, null);
}
}
- a && $(e, t, "srcSet", n.srcSet, n, null), r && $(e, t, "src", n.src, n, null);
+ a && tp(e, t, "srcSet", n.srcSet, n, null), r && tp(e, t, "src", n.src, n, null);
return;
case "input":
Q("invalid", e);
@@ -14892,10 +14895,10 @@ var gu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: $(e, t, r, d, n, null);
+ default: tp(e, t, r, d, n, null);
}
}
- en(e, o, c, l, u, s, a, !1);
+ tn(e, o, c, l, u, s, a, !1);
return;
case "select":
for (a in Q("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
@@ -14906,9 +14909,9 @@ var gu = /* @__PURE__ */ m(((e) => {
s = c;
break;
case "multiple": r = c;
- default: $(e, t, a, c, n, null);
+ default: tp(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && nn(e, !!r, n, !0) : nn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
return;
case "textarea":
for (s in Q("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
@@ -14924,16 +14927,16 @@ var gu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: $(e, t, s, c, n, null);
+ default: tp(e, t, s, c, n, null);
}
- an(e, r, a, o);
+ on(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: $(e, t, l, r, n, null);
+ default: tp(e, t, l, r, n, null);
}
return;
case "dialog":
@@ -14970,18 +14973,18 @@ var gu = /* @__PURE__ */ m(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: $(e, t, u, r, n, null);
+ default: tp(e, t, u, r, n, null);
}
return;
- default: if (un(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && tp(e, t, d, r, n, void 0));
+ default: if (dn(t)) {
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && np(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && $(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && tp(e, t, c, r, n, null));
}
- var rp = {};
- function ip(e, t, n, r) {
+ var ip = {};
+ function ap(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -14999,90 +15002,90 @@ var gu = /* @__PURE__ */ m(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || $(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || tp(e, t, m, null, r, f);
}
}
for (var p in r) {
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (B = !0), o = m;
+ m !== f && (z = !0), o = m;
break;
case "name":
- m !== f && (B = !0), a = m;
+ m !== f && (z = !0), a = m;
break;
case "checked":
- m !== f && (B = !0), u = m;
+ m !== f && (z = !0), u = m;
break;
case "defaultChecked":
- m !== f && (B = !0), d = m;
+ m !== f && (z = !0), d = m;
break;
case "value":
- m !== f && (B = !0), s = m;
+ m !== f && (z = !0), s = m;
break;
case "defaultValue":
- m !== f && (B = !0), c = m;
+ m !== f && (z = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && $(e, t, p, m, r, f);
+ default: m !== f && tp(e, t, p, m, r, f);
}
}
- $t(e, s, c, l, u, d, o, a);
+ en(e, s, c, l, u, d, o, a);
return;
case "select":
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || $(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || tp(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (B = !0), p = o;
+ o !== l && (z = !0), p = o;
break;
case "defaultValue":
- o !== l && (B = !0), c = o;
+ o !== l && (z = !0), c = o;
break;
- case "multiple": o !== l && (B = !0), s = o;
- default: o !== l && $(e, t, a, o, r, l);
+ case "multiple": o !== l && (z = !0), s = o;
+ default: o !== l && tp(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? nn(e, !!n, n ? [] : "", !1) : nn(e, !!n, t, !0)) : nn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
return;
case "textarea":
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: $(e, t, c, null, r, a);
+ default: tp(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (B = !0), p = a;
+ a !== o && (z = !0), p = a;
break;
case "defaultValue":
- a !== o && (B = !0), m = a;
+ a !== o && (z = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && $(e, t, s, a, r, o);
+ default: a !== o && tp(e, t, s, a, r, o);
}
- rn(e, p, m);
+ an(e, p, m);
return;
case "option":
for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {
case "selected":
e.selected = !1;
break;
- default: $(e, t, h, null, r, p);
+ default: tp(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
- p !== m && (B = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
+ p !== m && (z = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: $(e, t, l, p, r, m);
+ default: tp(e, t, l, p, r, m);
}
return;
case "img":
@@ -15100,25 +15103,25 @@ var gu = /* @__PURE__ */ m(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && $(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && tp(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: $(e, t, u, p, r, m);
+ default: tp(e, t, u, p, r, m);
}
return;
- default: if (un(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && tp(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || tp(e, t, d, p, r, m);
+ default: if (dn(t)) {
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && np(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || np(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && $(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || $(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && tp(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || tp(e, t, f, p, r, m);
}
- function ap(e) {
+ function op(e) {
switch (e) {
case "css":
case "script":
@@ -15130,16 +15133,16 @@ var gu = /* @__PURE__ */ m(((e) => {
default: return !1;
}
}
- function op() {
+ function sp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && ap(o)) {
+ if (a && s && op(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && ap(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && op(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -15148,18 +15151,18 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var sp = null, cp = null;
- function lp(e) {
+ var cp = null, lp = null;
+ function up(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function up(e) {
+ function dp(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 dp(e, t) {
+ function fp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -15167,54 +15170,54 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function fp(e, t, n, r) {
- return n = lp(n).createElement(e), n[St] = r, n[Ct] = t, np(n, e, t), R(n), n;
+ function pp(e, t, n, r) {
+ return n = up(n).createElement(e), n[Ct] = r, n[wt] = t, rp(n, e, t), It(n), n;
}
- function pp(e, t) {
+ function mp(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 mp = null;
- function hp() {
+ var hp = null;
+ function gp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== mp && (mp = e, !0) : (mp = null, !1);
+ return e && e.type === "popstate" ? e !== hp && (hp = e, !0) : (hp = null, !1);
}
- var gp = typeof setTimeout == "function" ? setTimeout : void 0, _p = typeof clearTimeout == "function" ? clearTimeout : void 0, vp = typeof Promise == "function" ? Promise : void 0, yp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : gp, bp = typeof queueMicrotask == "function" ? queueMicrotask : vp === void 0 ? gp : function(e) {
- return vp.resolve(null).then(e).catch(xp);
+ var _p = typeof setTimeout == "function" ? setTimeout : void 0, vp = typeof clearTimeout == "function" ? clearTimeout : void 0, yp = typeof Promise == "function" ? Promise : void 0, bp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : _p, xp = typeof queueMicrotask == "function" ? queueMicrotask : yp === void 0 ? _p : function(e) {
+ return yp.resolve(null).then(e).catch(Sp);
};
- function xp(e) {
+ function Sp(e) {
setTimeout(function() {
throw e;
});
}
- function Sp(e) {
+ function Cp(e) {
return e === "head";
}
- function Cp(e, t) {
+ function wp(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Hh(t);
+ e.removeChild(i), Uh(t);
return;
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") _m(e.ownerDocument.documentElement);
+ else if (n === "html") vm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, _m(n);
+ n = e.ownerDocument.head, vm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[kt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && _m(e.ownerDocument.body);
+ } else n === "body" && vm(e.ownerDocument.body);
}
n = i;
} while (n);
- Hh(t);
+ Uh(t);
}
- function wp(e, t) {
+ function Tp(e, t) {
var n = e;
e = 0;
do {
@@ -15228,7 +15231,7 @@ var gu = /* @__PURE__ */ m(((e) => {
n = r;
} while (n);
}
- function Tp(e, t, n) {
+ function Ep(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -15238,12 +15241,12 @@ var gu = /* @__PURE__ */ m(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Ep(e, t) {
+ function Dp(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function Dp(e, t, n) {
+ function Op(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -15251,22 +15254,22 @@ var gu = /* @__PURE__ */ m(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Op(e) {
- return Dp(e.getBoundingClientRect(), getComputedStyle(e), e);
- }
function kp(e) {
+ return Op(e.getBoundingClientRect(), getComputedStyle(e), e);
+ }
+ function Ap(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return Dp(t, n, e);
+ return Op(t, n, e);
}
- function Ap(e) {
+ function jp(e) {
return e.documentElement.clientHeight;
}
- function jp(e) {
+ function Mp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Mp(e, t, n, r, i, a, o, s, c) {
+ function Np(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -15274,16 +15277,16 @@ var gu = /* @__PURE__ */ m(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (Ap(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (jp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += Xm(f), u > $m) {
+ if (u += Zm(f), u > eh) {
s.length = o;
break;
}
- f = new Promise(jp.bind(f)), s.push(f);
+ f = new Promise(Mp.bind(f)), s.push(f);
}
}
}
@@ -15338,86 +15341,86 @@ var gu = /* @__PURE__ */ m(((e) => {
return r(), i(), o(), null;
}
}
- function Np(e, t) {
+ function Pp(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Np.prototype.animate = function(e, t) {
+ Pp.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : T({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Np.prototype.getAnimations = function() {
+ }, Pp.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Np.prototype.getComputedStyle = function() {
+ }, Pp.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Pp(e) {
+ function Fp(e) {
return {
name: e,
- group: new Np("group", e),
- imagePair: new Np("image-pair", e),
- old: new Np("old", e),
- new: new Np("new", e)
+ group: new Pp("group", e),
+ imagePair: new Pp("image-pair", e),
+ old: new Pp("old", e),
+ new: new Pp("new", e)
};
}
- function Fp(e) {
+ function Ip(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- Fp.prototype.addEventListener = function(e, t, n) {
+ Ip.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Bp(a, e, t, n) === -1) {
+ if (Vp(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Rp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = zp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Ip, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Lp, e, s, r);
}
this._eventListeners = a;
}
};
- function Ip(e, t, n, r) {
+ function Lp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- Fp.prototype.removeEventListener = function(e, t, n) {
+ Ip.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Bp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Vp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = Rp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Lp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = zp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Rp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Lp(e, t, n, r) {
+ function Rp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function Rp(e) {
+ function zp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function zp(e) {
+ function Bp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Bp(e, t, n, r) {
+ function Vp(e, t, n, r) {
if (e.length === 0) return -1;
- r = zp(r);
+ r = Bp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && zp(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && Bp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- Fp.prototype.dispatchEvent = function(e) {
+ Ip.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -15426,74 +15429,74 @@ var gu = /* @__PURE__ */ m(((e) => {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, Rp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, zp(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Rp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, zp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, Fp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Vp, e, void 0, void 0);
+ }, Ip.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Hp, e, void 0, void 0);
};
- function Vp(e, t) {
- return e.tag !== 6 && (e = _(e), pm(e, t));
+ function Hp(e, t) {
+ return e.tag !== 6 && (e = _(e), mm(e, t));
}
- Fp.prototype.focusLast = function(e) {
+ Ip.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Hp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Vp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Up, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Hp(t[n], e); n--);
};
- function Hp(e, t) {
+ function Up(e, t) {
return t.push(e), !1;
}
- Fp.prototype.blur = function() {
+ Ip.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));
+ e !== null && (e = _(e), e = up(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Wp, e, void 0, void 0));
};
- function Up(e, t) {
+ function Wp(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- Fp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Wp, e, void 0, void 0);
+ Ip.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Gp, e, void 0, void 0);
};
- function Wp(e, t) {
+ function Gp(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- Fp.prototype.unobserveUsing = function(e) {
+ Ip.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, Gp, e, void 0, void 0);
- for (var n = t = 0; n < Kp.length; n++) {
- var r = Kp[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Kp[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, Kp, e, void 0, void 0);
+ for (var n = t = 0; n < qp.length; n++) {
+ var r = qp[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : qp[t++] = r;
}
- Kp.length = t;
+ qp.length = t;
}
};
- function Gp(e, t) {
+ function Kp(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var Kp = [], qp = !1;
- function Jp(e, t, n) {
- Kp.push({
+ var qp = [], Jp = !1;
+ function Yp(e, t, n) {
+ qp.push({
fragmentInstance: e,
observer: t,
instance: n
- }), qp || (qp = !0, mm(function() {
- qp = !1;
- var e = Kp;
- Kp = [];
+ }), Jp || (Jp = !0, hm(function() {
+ Jp = !1;
+ var e = qp;
+ qp = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- Fp.prototype.getClientRects = function() {
+ Ip.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, Yp, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, Xp, e, void 0, void 0), e;
};
- function Yp(e, t) {
+ function Xp(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -15501,14 +15504,14 @@ var gu = /* @__PURE__ */ m(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- Fp.prototype.getRootNode = function(e) {
+ Ip.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, Fp.prototype.compareDocumentPosition = function(e) {
+ }, Ip.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Up, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -15534,10 +15537,10 @@ var gu = /* @__PURE__ */ m(((e) => {
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || Xp(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || Zp(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function Xp(e, t, n, r, i) {
- var a = jt(i);
+ function Zp(e, t, n, r, i) {
+ var a = Mt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -15567,20 +15570,20 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, x, a, n), a = y, y = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, S, a, r), a = y, b = y = null, t = a !== null)), t) : !1;
}
- function Zp(e, t) {
+ function Qp(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- Fp.prototype.scrollIntoView = function(e) {
+ Ip.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Hp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Up, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), Zp(e, n);
+ e = _(r), Qp(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -15593,40 +15596,40 @@ var gu = /* @__PURE__ */ m(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), Zp(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), Qp(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function Qp(e, t) {
- return e = _(e), $p(e, t), !1;
- }
function $p(e, t) {
- e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ return e = _(e), em(e, t), !1;
}
function em(e, t) {
+ e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ }
+ function tm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, Rp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, zp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < Kp.length; i++) {
- var a = Kp[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (Kp[r++] = a);
+ for (var r = 0, i = 0; i < qp.length; i++) {
+ var a = qp[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (qp[r++] = a);
}
- Kp.length = r, n.observe(e);
- }), $p(e, t));
+ qp.length = r, n.observe(e);
+ }), em(e, t));
}
- function tm(e, t) {
+ function nm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, Rp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, zp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? Jp(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? Yp(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function nm(e) {
+ function rm(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -15634,7 +15637,7 @@ var gu = /* @__PURE__ */ m(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- nm(n), At(n);
+ rm(n), jt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -15643,7 +15646,7 @@ var gu = /* @__PURE__ */ m(((e) => {
e.removeChild(n);
}
}
- function rm(e, t, n, r) {
+ function im(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -15653,7 +15656,7 @@ var gu = /* @__PURE__ */ m(((e) => {
var a = i.name == null ? null : "" + i.name;
if (i.type === "hidden" && e.getAttribute("name") === a) return e;
} else return e;
- } else if (!e[Ot]) switch (t) {
+ } else if (!e[kt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -15668,26 +15671,26 @@ var gu = /* @__PURE__ */ m(((e) => {
return e;
default: return e;
}
- if (e = lm(e.nextSibling), e === null) break;
+ if (e = um(e.nextSibling), e === null) break;
}
return null;
}
- function im(e, t, n) {
+ function am(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = lm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = um(e.nextSibling), e === null)) return null;
return e;
}
- function am(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = lm(e.nextSibling), e === null)) return null;
+ function om(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = um(e.nextSibling), e === null)) return null;
return e;
}
- function om(e) {
+ function sm(e) {
return e.data === "$?" || e.data === "$~";
}
- function sm(e) {
+ function cm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function cm(e, t) {
+ function lm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -15698,7 +15701,7 @@ var gu = /* @__PURE__ */ m(((e) => {
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function lm(e) {
+ function um(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -15709,14 +15712,14 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return e;
}
- var um = null;
- function dm(e) {
+ var dm = null;
+ function fm(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return lm(e.nextSibling);
+ if (t === 0) return um(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -15724,7 +15727,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- function fm(e) {
+ function pm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -15738,7 +15741,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- function pm(e, t) {
+ function mm(e, t) {
function n() {
r = !0;
}
@@ -15751,15 +15754,15 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return r;
}
- function mm(e) {
- yp(function() {
- yp(function(t) {
+ function hm(e) {
+ bp(function() {
+ bp(function(t) {
return e(t);
});
});
}
- function hm(e, t, n) {
- switch (t = lp(n), e) {
+ function gm(e, t, n) {
+ switch (t = up(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -15772,122 +15775,122 @@ var gu = /* @__PURE__ */ m(((e) => {
default: throw Error(i(451));
}
}
- function gm(e, t, n) {
+ function _m(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && $(e, t, r, null, rp, i);
+ n.hasOwnProperty(r) && i != null && tp(e, t, r, null, ip, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), At(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), jt(e);
}
- function _m(e) {
+ function vm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- At(e);
+ jt(e);
}
- var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();
- function bm(e) {
+ var ym = /* @__PURE__ */ new Map(), bm = /* @__PURE__ */ new Set();
+ function xm(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var xm = I.d;
- I.d = {
- f: Sm,
- r: Cm,
- D: Em,
- C: Dm,
- L: Om,
- m: km,
- X: jm,
- S: Am,
- M: Mm
+ var Sm = F.d;
+ F.d = {
+ f: Cm,
+ r: wm,
+ D: Dm,
+ C: Om,
+ L: km,
+ m: Am,
+ X: Mm,
+ S: jm,
+ M: Nm
};
- function Sm() {
- var e = xm.f(), t = zd();
+ function Cm() {
+ var e = Sm.f(), t = Vd();
return e || t;
}
- function Cm(e) {
- var t = Mt(e);
- t !== null && t.tag === 5 && t.type === "form" ? Qs(t) : xm.r(e);
+ function wm(e) {
+ var t = Nt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? $s(t) : Sm.r(e);
}
- var wm = typeof document > "u" ? null : document;
- function Tm(e, t, n) {
- var r = wm;
+ var Tm = typeof document > "u" ? null : document;
+ function Em(e, t, n) {
+ var r = Tm;
if (r && typeof t == "string" && t) {
- var i = Qt(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), ym.has(i) || (ym.add(i), e = {
+ var i = $t(t);
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), bm.has(i) || (bm.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), R(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), rp(t, "link", e), It(t), r.head.appendChild(t)));
}
}
- function Em(e) {
- xm.D(e), Tm("dns-prefetch", e, null);
+ function Dm(e) {
+ Sm.D(e), Em("dns-prefetch", e, null);
}
- function Dm(e, t) {
- xm.C(e, t), Tm("preconnect", e, t);
+ function Om(e, t) {
+ Sm.C(e, t), Em("preconnect", e, t);
}
- function Om(e, t, n) {
- xm.L(e, t, n);
- var r = wm;
+ function km(e, t, n) {
+ Sm.L(e, t, n);
+ var r = Tm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + Qt(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Qt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Qt(n.imageSizes) + "\"]")) : i += "[href=\"" + Qt(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + $t(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + $t(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + $t(n.imageSizes) + "\"]")) : i += "[href=\"" + $t(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Pm(e);
+ a = Fm(e);
break;
- case "script": a = Rm(e);
+ case "script": a = zm(e);
}
- if (!(vm.has(a) || (e = T({
+ if (!(ym.has(a) || (e = T({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), vm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Fm(a)) || t === "script" && r.querySelector(zm(a))))) {
+ }, n), ym.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Im(a)) || t === "script" && r.querySelector(Bm(a))))) {
var o = r.createElement("link");
- np(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
- Ft(o);
- }), R(o), r.head.appendChild(o);
+ rp(o, "link", e), t === "style" && (o[At] = !0, o.onload = o.onerror = function() {
+ L(o);
+ }), It(o), r.head.appendChild(o);
}
}
}
- function km(e, t) {
- xm.m(e, t);
- var n = wm;
+ function Am(e, t) {
+ Sm.m(e, t);
+ var n = Tm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Qt(r) + "\"][href=\"" + Qt(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = Rm(e);
+ case "script": a = zm(e);
}
- if (!vm.has(a) && (e = T({
+ if (!ym.has(a) && (e = T({
rel: "modulepreload",
href: e
- }, t), vm.set(a, e), n.querySelector(i) === null)) {
+ }, t), ym.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(zm(a))) return;
+ case "script": if (n.querySelector(Bm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), R(r), n.head.appendChild(r);
+ r = n.createElement("link"), rp(r, "link", e), It(r), n.head.appendChild(r);
}
}
}
- function Am(e, t, n) {
- xm.S(e, t, n);
- var r = wm;
+ function jm(e, t, n) {
+ Sm.S(e, t, n);
+ var r = Tm;
if (r && e) {
- var i = Pt(r).hoistableStyles, a = Pm(e);
+ var i = Ft(r).hoistableStyles, a = Fm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -15895,21 +15898,21 @@ var gu = /* @__PURE__ */ m(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Fm(a))) s.loading = 5;
+ if (o = r.querySelector(Im(a))) s.loading = 5;
else {
e = T({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = vm.get(a)) && Hm(e, n);
+ }, n), (n = ym.get(a)) && Um(e, n);
var c = o = r.createElement("link");
- R(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ It(c), rp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, Vm(o, t, r);
+ }), s.loading |= 4, Hm(o, t, r);
}
o = {
type: "stylesheet",
@@ -15920,15 +15923,15 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}
}
- function jm(e, t) {
- xm.X(e, t);
- var n = wm;
+ function Mm(e, t) {
+ Sm.X(e, t);
+ var n = Tm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
- a || (a = n.querySelector(zm(i)), a || (e = T({
+ var r = Ft(n).hoistableScripts, i = zm(e), a = r.get(i);
+ a || (a = n.querySelector(Bm(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = ym.get(i)) && Wm(e, t), a = n.createElement("script"), It(a), rp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15936,16 +15939,16 @@ var gu = /* @__PURE__ */ m(((e) => {
}, r.set(i, a));
}
}
- function Mm(e, t) {
- xm.M(e, t);
- var n = wm;
+ function Nm(e, t) {
+ Sm.M(e, t);
+ var n = Tm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
- a || (a = n.querySelector(zm(i)), a || (e = T({
+ var r = Ft(n).hoistableScripts, i = zm(e), a = r.get(i);
+ a || (a = n.querySelector(Bm(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = ym.get(i)) && Wm(e, t), a = n.createElement("script"), It(a), rp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15953,13 +15956,13 @@ var gu = /* @__PURE__ */ m(((e) => {
}, r.set(i, a));
}
}
- function Nm(e, t, n, r) {
- var a = (a = Se.current) ? bm(a) : null;
+ function Pm(e, t, n, r) {
+ var a = (a = Ce.current) ? xm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Fm(n.href), t = Ft(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -15972,8 +15975,8 @@ var gu = /* @__PURE__ */ m(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Pm(n.href);
- var o = Pt(a).hoistableStyles, s = o.get(e);
+ e = Fm(n.href);
+ var o = Ft(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -15982,7 +15985,7 @@ var gu = /* @__PURE__ */ m(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Fm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = vm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Im(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = ym.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -15991,12 +15994,12 @@ var gu = /* @__PURE__ */ m(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, vm.set(e, o)), Lm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, ym.set(e, o)), Rm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
if (t && r !== 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" ? (n = Rm(n), t = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = zm(n), t = Ft(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -16010,66 +16013,66 @@ var gu = /* @__PURE__ */ m(((e) => {
default: throw Error(i(444, e));
}
}
- function Pm(e) {
- return "href=\"" + Qt(e) + "\"";
- }
function Fm(e) {
- return "link[rel=\"stylesheet\"][" + e + "]";
+ return "href=\"" + $t(e) + "\"";
}
function Im(e) {
+ return "link[rel=\"stylesheet\"][" + e + "]";
+ }
+ function Lm(e) {
return T({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Lm(e, t, n, r) {
+ function Rm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[kt]) {
+ if (!0 !== t[At]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), R(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[At] = !0, t.onload = t.onerror = L.bind(null, t), rp(t, "link", n), It(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function Rm(e) {
- return "[src=\"" + Qt(e) + "\"]";
- }
function zm(e) {
+ return "[src=\"" + $t(e) + "\"]";
+ }
+ function Bm(e) {
return "script[async]" + e;
}
- function Bm(e, t, n) {
+ function Vm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
- if (r) return t.instance = r, R(r), r;
+ var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
+ if (r) return t.instance = r, It(r), r;
var a = T({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), R(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), It(r), rp(r, "style", a), Hm(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Pm(n.href);
- var o = e.querySelector(Fm(a));
- if (o) return t.state.loading |= 4, t.instance = o, R(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), R(o);
+ a = Fm(n.href);
+ var o = e.querySelector(Im(a));
+ if (o) return t.state.loading |= 4, t.instance = o, It(o), o;
+ r = Lm(n), (a = ym.get(a)) && Um(r, a), o = (e.ownerDocument || e).createElement("link"), It(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), np(o, "link", r), t.state.loading |= 4, Vm(o, n.precedence, e), t.instance = o;
- case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, R(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), R(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), rp(o, "link", r), t.state.loading |= 4, Hm(o, n.precedence, e), t.instance = o;
+ case "script": return o = zm(n.src), (a = e.querySelector(Bm(o))) ? (t.instance = a, It(a), a) : (r = n, (a = ym.get(o)) && (r = T({}, n), Wm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), It(a), rp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Vm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Hm(r, n.precedence, e));
return t.instance;
}
- function Vm(e, t, n) {
+ function Hm(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -16077,22 +16080,22 @@ var gu = /* @__PURE__ */ m(((e) => {
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Hm(e, t) {
+ function Um(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function Um(e, t) {
+ function Wm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Wm = null;
- function Gm(e, t, n) {
- if (Wm === null) {
- var r = /* @__PURE__ */ new Map(), i = Wm = /* @__PURE__ */ new Map();
+ var Gm = null;
+ function Km(e, t, n) {
+ if (Gm === null) {
+ var r = /* @__PURE__ */ new Map(), i = Gm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Wm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Gm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
- if (!(a[Ot] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[kt] || a[Ct] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
var o = a.getAttribute(t) || "";
o = e + o;
var s = r.get(o);
@@ -16101,10 +16104,10 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return r;
}
- function Km(e, t, n) {
+ function qm(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function qm(e, t, n) {
+ function Jm(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -16122,196 +16125,196 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return !1;
}
- function Jm(e, t) {
+ function Ym(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function Ym(e) {
+ function Xm(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function Xm(e) {
+ function Zm(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function Zm(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += Xm(t), e.suspenseyImages.push(t)), e = rh.bind(e), t.decode().then(e, e));
+ function Qm(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += Zm(t), e.suspenseyImages.push(t)), e = ih.bind(e), t.decode().then(e, e));
}
- function Qm(e, t, n, r) {
+ function $m(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Pm(r.href), a = t.querySelector(Fm(i));
+ var i = Fm(r.href), a = t.querySelector(Im(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, R(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = rh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, It(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), R(a);
+ a = t.ownerDocument || t, r = Lm(r), (i = ym.get(i)) && Um(r, i), a = a.createElement("link"), It(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), np(a, "link", r), n.instance = a;
+ }), rp(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = nh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = rh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var $m = 0;
- function eh(e, t) {
- return e.stylesheets && e.count === 0 && ah(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var eh = 0;
+ function th(e, t) {
+ return e.stylesheets && e.count === 0 && oh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && ah(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && oh(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && $m === 0 && ($m = 62500 * op());
+ 0 < e.imgBytes && eh === 0 && (eh = 62500 * sp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && ah(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && oh(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > $m ? 50 : 800) + t);
+ }, (e.imgBytes > eh ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function th(e) {
+ function nh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) ah(e, e.stylesheets);
+ if (e.stylesheets) oh(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
- function nh() {
- this.count--, th(this);
- }
function rh() {
- this.imgCount--, th(this);
+ this.count--, nh(this);
}
- var ih = null;
- function ah(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, ih = /* @__PURE__ */ new Map(), t.forEach(oh, e), ih = null, nh.call(e));
+ function ih() {
+ this.imgCount--, nh(this);
}
+ var ah = null;
function oh(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, ah = /* @__PURE__ */ new Map(), t.forEach(sh, e), ah = null, rh.call(e));
+ }
+ function sh(e, t) {
if (!(t.state.loading & 4)) {
- var n = ih.get(e);
+ var n = ah.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), ih.set(e, n);
+ n = /* @__PURE__ */ new Map(), ah.set(e, n);
for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
var o = i[a];
(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = nh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = rh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
- var sh = {
+ var ch = {
$$typeof: te,
Provider: null,
Consumer: null,
- _currentValue: me,
- _currentValue2: me,
+ _currentValue: he,
+ _currentValue2: he,
_threadCount: 0
};
- function ch(e, t, n, r, i, a, o, s, c) {
- 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 = dt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = dt(0), this.hiddenUpdates = dt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
+ function lh(e, t, n, r, i, a, o, s, c) {
+ 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 = ft(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ft(0), this.hiddenUpdates = ft(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
- function lh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Ea(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function uh(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new lh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Oa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, co(a), e;
+ }, uo(a), e;
}
- function uh(e) {
- return e ? (e = Ei, e) : Ei;
+ function dh(e) {
+ return e ? (e = Di, e) : Di;
}
- function dh(e, t, n, r, i, a) {
- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = uo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = fo(e, r, t), n !== null && (Fd(n, e, t), po(n, e, t));
+ function fh(e, t, n, r, i, a) {
+ i = dh(i), r.context === null ? r.context = i : r.pendingContext = i, r = po(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mo(e, r, t), n !== null && (Id(n, e, t), ho(n, e, t));
}
- function fh(e, t) {
+ function ph(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function ph(e, t) {
- fh(e, t), (e = e.alternate) && fh(e, t);
+ function mh(e, t) {
+ ph(e, t), (e = e.alternate) && ph(e, t);
}
- function mh(e) {
+ function hh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ci(e, 67108864);
- t !== null && Fd(t, e, 67108864), ph(e, 67108864);
+ var t = wi(e, 67108864);
+ t !== null && Id(t, e, 67108864), mh(e, 67108864);
}
}
- function hh(e) {
+ function gh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Md();
- t = _t(t);
- var n = Ci(e, t);
- n !== null && Fd(n, e, t), ph(e, t);
+ var t = Nd();
+ t = vt(t);
+ var n = wi(e, t);
+ n !== null && Id(n, e, t), mh(e, t);
}
}
- var gh = !0;
- function _h(e, t, n, r) {
- var i = F.T;
- F.T = null;
- var a = I.p;
+ var _h = !0;
+ function vh(e, t, n, r) {
+ var i = P.T;
+ P.T = null;
+ var a = F.p;
try {
- I.p = 2, yh(e, t, n, r);
+ F.p = 2, bh(e, t, n, r);
} finally {
- I.p = a, F.T = i;
+ F.p = a, P.T = i;
}
}
- function vh(e, t, n, r) {
- var i = F.T;
- F.T = null;
- var a = I.p;
+ function yh(e, t, n, r) {
+ var i = P.T;
+ P.T = null;
+ var a = F.p;
try {
- I.p = 8, yh(e, t, n, r);
+ F.p = 8, bh(e, t, n, r);
} finally {
- I.p = a, F.T = i;
+ F.p = a, P.T = i;
}
}
- function yh(e, t, n, r) {
- if (gh) {
- var i = bh(r);
- if (i === null) Kf(e, t, r, xh, n), Mh(e, r);
- else if (Ph(i, e, t, n, r)) r.stopPropagation();
- else if (Mh(e, r), t & 4 && -1 < jh.indexOf(e)) {
+ function bh(e, t, n, r) {
+ if (_h) {
+ var i = xh(r);
+ if (i === null) Kf(e, t, r, Sh, n), Nh(e, r);
+ else if (Fh(i, e, t, n, r)) r.stopPropagation();
+ else if (Nh(e, r), t & 4 && -1 < Mh.indexOf(e)) {
for (; i !== null;) {
- var a = Mt(i);
+ var a = Nt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = at(a.pendingLanes);
+ var o = ot(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - Qe(o);
+ var c = 1 << 31 - $e(o);
s.entanglements[1] |= c, o &= ~c;
}
- Ef(a), !($u & 6) && (vd = Be() + 500, Df(0, !1));
+ Ef(a), !(ed & 6) && (yd = Ve() + 500, Df(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Fd(s, a, 2), zd(), ph(a, 2);
+ case 13: s = wi(a, 2), s !== null && Id(s, a, 2), Vd(), mh(a, 2);
}
- if (a = bh(r), a === null && Kf(e, t, r, xh, n), a === i) break;
+ if (a = xh(r), a === null && Kf(e, t, r, Sh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
} else Kf(e, t, r, null, n);
}
}
- function bh(e) {
- return e = gn(e), Sh(e);
+ function xh(e) {
+ return e = _n(e), Ch(e);
}
- var xh = null;
- function Sh(e) {
- if (xh = null, e = jt(e), e !== null) {
+ var Sh = null;
+ function Ch(e) {
+ if (Sh = null, e = Mt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -16328,9 +16331,9 @@ var gu = /* @__PURE__ */ m(((e) => {
} else t !== e && (e = null);
}
}
- return xh = e, null;
+ return Sh = e, null;
}
- function Ch(e) {
+ function wh(e) {
switch (e) {
case "beforetoggle":
case "cancel":
@@ -16404,77 +16407,77 @@ var gu = /* @__PURE__ */ m(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Ve()) {
- case He: return 2;
- case Ue: return 8;
- case We:
- case Ge: return 32;
- case Ke: return 268435456;
+ case "message": switch (He()) {
+ case Ue: return 2;
+ case We: return 8;
+ case Ge:
+ case Ke: return 32;
+ case qe: return 268435456;
default: return 32;
}
default: return 32;
}
}
- var wh = !1, Th = null, Eh = null, Dh = null, Oh = /* @__PURE__ */ new Map(), kh = /* @__PURE__ */ new Map(), Ah = [], jh = "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 Mh(e, t) {
+ var Th = !1, Eh = null, Dh = null, Oh = null, kh = /* @__PURE__ */ new Map(), Ah = /* @__PURE__ */ new Map(), jh = [], Mh = "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 Nh(e, t) {
switch (e) {
case "focusin":
case "focusout":
- Th = null;
+ Eh = null;
break;
case "dragenter":
case "dragleave":
- Eh = null;
+ Dh = null;
break;
case "mouseover":
case "mouseout":
- Dh = null;
+ Oh = null;
break;
case "pointerover":
case "pointerout":
- Oh.delete(t.pointerId);
+ kh.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": kh.delete(t.pointerId);
+ case "lostpointercapture": Ah.delete(t.pointerId);
}
}
- function Nh(e, t, n, r, i, a) {
+ function Ph(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Mt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Nt(t), t !== null && hh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Ph(e, t, n, r, i) {
+ function Fh(e, t, n, r, i) {
switch (t) {
- case "focusin": return Th = Nh(Th, e, t, n, r, i), !0;
- case "dragenter": return Eh = Nh(Eh, e, t, n, r, i), !0;
- case "mouseover": return Dh = Nh(Dh, e, t, n, r, i), !0;
+ case "focusin": return Eh = Ph(Eh, e, t, n, r, i), !0;
+ case "dragenter": return Dh = Ph(Dh, e, t, n, r, i), !0;
+ case "mouseover": return Oh = Ph(Oh, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Oh.set(a, Nh(Oh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, kh.set(a, Nh(kh.get(a) || null, e, t, n, r, i)), !0;
+ return kh.set(a, Ph(kh.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Ah.set(a, Ph(Ah.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function Fh(e) {
- var t = jt(e.target);
+ function Ih(e) {
+ var t = Mt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
- hh(n);
+ e.blockedOn = t, xt(e.priority, function() {
+ gh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
- hh(n);
+ e.blockedOn = t, xt(e.priority, function() {
+ gh(n);
});
return;
}
@@ -16486,40 +16489,40 @@ var gu = /* @__PURE__ */ m(((e) => {
}
e.blockedOn = null;
}
- function Ih(e) {
+ function Lh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = bh(e.nativeEvent);
+ var n = xh(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- hn = r, n.target.dispatchEvent(r), hn = null;
- } else return t = Mt(n), t !== null && mh(t), e.blockedOn = n, !1;
+ gn = r, n.target.dispatchEvent(r), gn = null;
+ } else return t = Nt(n), t !== null && hh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
}
- function Lh(e, t, n) {
- Ih(e) && n.delete(t);
+ function Rh(e, t, n) {
+ Lh(e) && n.delete(t);
}
- function Rh() {
- wh = !1, Th !== null && Ih(Th) && (Th = null), Eh !== null && Ih(Eh) && (Eh = null), Dh !== null && Ih(Dh) && (Dh = null), Oh.forEach(Lh), kh.forEach(Lh);
+ function zh() {
+ Th = !1, Eh !== null && Lh(Eh) && (Eh = null), Dh !== null && Lh(Dh) && (Dh = null), Oh !== null && Lh(Oh) && (Oh = null), kh.forEach(Rh), Ah.forEach(Rh);
}
- function zh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, wh || (wh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Rh)));
+ function Bh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Th || (Th = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, zh)));
}
- var Bh = null;
- function Vh(e) {
- Bh !== e && (Bh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Bh === e && (Bh = null);
+ var Vh = null;
+ function Hh(e) {
+ Vh !== e && (Vh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Vh === e && (Vh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
- if (Sh(r || n) === null) continue;
+ if (Ch(r || n) === null) continue;
break;
}
- var a = Mt(n);
- a !== null && (e.splice(t, 3), t -= 3, Xs(a, {
+ var a = Nt(n);
+ a !== null && (e.splice(t, 3), t -= 3, Zs(a, {
pending: !0,
data: i,
method: n.method,
@@ -16528,30 +16531,30 @@ var gu = /* @__PURE__ */ m(((e) => {
}
}));
}
- function Hh(e) {
+ function Uh(e) {
function t(t) {
- return zh(t, e);
+ return Bh(t, e);
}
- Th !== null && zh(Th, e), Eh !== null && zh(Eh, e), Dh !== null && zh(Dh, e), Oh.forEach(t), kh.forEach(t);
- for (var n = 0; n < Ah.length; n++) {
- var r = Ah[n];
+ Eh !== null && Bh(Eh, e), Dh !== null && Bh(Dh, e), Oh !== null && Bh(Oh, e), kh.forEach(t), Ah.forEach(t);
+ for (var n = 0; n < jh.length; n++) {
+ var r = jh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < Ah.length && (n = Ah[0], n.blockedOn === null);) Fh(n), n.blockedOn === null && Ah.shift();
+ for (; 0 < jh.length && (n = jh[0], n.blockedOn === null);) Ih(n), n.blockedOn === null && jh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
- var i = n[r], a = n[r + 1], o = i[Ct] || null;
- if (typeof a == "function") o || Vh(n);
+ var i = n[r], a = n[r + 1], o = i[wt] || null;
+ if (typeof a == "function") o || Hh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[Ct] || null) s = o.formAction;
- else if (Sh(i) !== null) continue;
+ if (i = a, o = a[wt] || null) s = o.formAction;
+ else if (Ch(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Hh(n);
}
}
}
- function Uh() {
+ function Wh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -16583,63 +16586,63 @@ var gu = /* @__PURE__ */ m(((e) => {
};
}
}
- function Wh(e) {
+ function Gh(e) {
this._internalRoot = e;
}
- Gh.prototype.render = Wh.prototype.render = function(e) {
+ Kh.prototype.render = Gh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- dh(n, Md(), e, t, null, null);
- }, Gh.prototype.unmount = Wh.prototype.unmount = function() {
+ fh(n, Nd(), e, t, null, null);
+ }, Kh.prototype.unmount = Gh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- dh(e.current, 2, null, e, null, null), zd(), t[wt] = null;
+ fh(e.current, 2, null, e, null, null), Vd(), t[Tt] = null;
}
};
- function Gh(e) {
+ function Kh(e) {
this._internalRoot = e;
}
- Gh.prototype.unstable_scheduleHydration = function(e) {
+ Kh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = yt();
+ var t = bt();
e = {
blockedOn: null,
target: e,
priority: t
};
- for (var n = 0; n < Ah.length && t !== 0 && t < Ah[n].priority; n++);
- Ah.splice(n, 0, e), n === 0 && Fh(e);
+ for (var n = 0; n < jh.length && t !== 0 && t < jh[n].priority; n++);
+ jh.splice(n, 0, e), n === 0 && Ih(e);
}
};
- var Kh = n.version;
- if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));
- I.findDOMNode = function(e) {
+ var qh = n.version;
+ if (qh !== "19.3.0") throw Error(i(527, qh, "19.3.0"));
+ 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 = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var qh = {
+ var Jh = {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: F,
+ currentDispatcherRef: P,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!Jh.isDisabled && Jh.supportsFiber) try {
- Ye = Jh.inject(qh), Xe = Jh;
+ var Yh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!Yh.isDisabled && Yh.supportsFiber) try {
+ Xe = Yh.inject(Jh), Ze = Yh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = yc, s = bc, c = xc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[wt] = t.current, Wf(e), new Wh(t);
+ var n = !1, r = "", o = bc, s = xc, c = Sc;
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = uh(e, 1, !1, null, null, n, r, null, o, s, c, Wh), e[Tt] = t.current, Wf(e), new Gh(t);
};
-})), yu = (/* @__PURE__ */ m(((e, t) => {
+})), xu = (/* @__PURE__ */ m(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -16647,8 +16650,56 @@ var gu = /* @__PURE__ */ m(((e) => {
console.error(e);
}
}
- n(), t.exports = vu();
-})))(), bu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ n(), t.exports = bu();
+})))(), Su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Tu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Eu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Ou = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16656,7 +16707,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), xu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), ku = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16664,7 +16715,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), Su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Au = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16672,7 +16723,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), ju = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16680,7 +16731,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16688,7 +16739,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Tu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Nu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16696,7 +16747,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Eu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16704,7 +16755,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16712,7 +16763,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Ou = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Iu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16720,7 +16771,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), ku = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16728,7 +16779,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Au = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Ru = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16736,7 +16787,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), ju = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), zu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16744,7 +16795,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Bu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16752,7 +16803,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Nu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Vu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16760,7 +16811,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), Hu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16768,7 +16819,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Uu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16776,7 +16827,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Iu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16784,7 +16835,7 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Gu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16792,100 +16843,100 @@ var gu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ru = (e, t) => {
+}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ku = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, zu = (e, t) => ({
+}, qu = (e, t) => ({
classGroupId: e,
validator: t
-}), Bu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), Ju = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), Vu = "-", Hu = [], Uu = "arbitrary..", Wu = (e) => {
- let t = qu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), Yu = "-", Xu = [], Zu = "arbitrary..", Qu = (e) => {
+ let t = td(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Ku(e);
- let n = e.split(Vu);
- return Gu(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return ed(e);
+ let n = e.split(Yu);
+ return $u(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Ru(i, t) : t : i || Hu;
+ return t ? i ? Ku(i, t) : t : i || Xu;
}
- return n[e] || Hu;
+ return n[e] || Xu;
}
};
-}, Gu = (e, t, n) => {
+}, $u = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Gu(e, t + 1, i);
+ let n = $u(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(Vu) : e.slice(t).join(Vu), s = a.length;
+ let o = t === 0 ? e.join(Yu) : e.slice(t).join(Yu), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Ku = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, ed = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Uu + r : void 0;
-})(), qu = (e) => {
+ return r ? Zu + r : void 0;
+})(), td = (e) => {
let { theme: t, classGroups: n } = e;
- return Ju(n, t);
-}, Ju = (e, t) => {
- let n = Bu();
+ return K(n, t);
+}, K = (e, t) => {
+ let n = Ju();
for (let r in e) {
let i = e[r];
- Yu(i, n, r, t);
+ q(i, n, r, t);
}
return n;
-}, Yu = (e, t, n, r) => {
+}, q = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Xu(i, t, n, r);
+ nd(i, t, n, r);
}
-}, Xu = (e, t, n, r) => {
+}, nd = (e, t, n, r) => {
if (typeof e == "string") {
- Zu(e, t, n);
+ rd(e, t, n);
return;
}
if (typeof e == "function") {
- Qu(e, t, n, r);
+ id(e, t, n, r);
return;
}
- $u(e, t, n, r);
-}, Zu = (e, t, n) => {
- let r = e === "" ? t : ed(t, e);
+ ad(e, t, n, r);
+}, rd = (e, t, n) => {
+ let r = e === "" ? t : od(t, e);
r.classGroupId = n;
-}, Qu = (e, t, n, r) => {
- if (q(e)) {
- Yu(e(r), t, n, r);
+}, id = (e, t, n, r) => {
+ if (sd(e)) {
+ q(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(zu(n, e));
-}, $u = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(qu(n, e));
+}, ad = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Yu(o, ed(t, a), n, r);
+ q(o, od(t, a), n, r);
}
-}, ed = (e, t) => {
- let n = e, r = t.split(Vu), i = r.length;
+}, od = (e, t) => {
+ let n = e, r = t.split(Yu), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = Bu(), n.nextPart.set(t, i)), n = i;
+ i || (i = Ju(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, q = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, J = (e) => {
+}, sd = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, cd = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -16903,19 +16954,19 @@ var gu = /* @__PURE__ */ m(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, td = "!", nd = ":", rd = [], id = (e, t, n, r, i) => ({
+}, ld = "!", ud = ":", dd = [], fd = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), ad = (e) => {
+}), pd = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === nd) {
+ if (o === ud) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -16927,13 +16978,13 @@ var gu = /* @__PURE__ */ m(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(td) ? (c = s.slice(0, -1), l = !0) : s.startsWith(td) && (c = s.slice(1), l = !0);
+ s.endsWith(ld) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ld) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return id(t, l, c, u);
+ return fd(t, l, c, u);
};
if (t) {
- let e = t + nd, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : id(rd, !1, t, void 0, !0);
+ let e = t + ud, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : fd(dd, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -16943,7 +16994,7 @@ var gu = /* @__PURE__ */ m(((e) => {
});
}
return r;
-}, od = (e) => {
+}, md = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -16955,18 +17006,18 @@ var gu = /* @__PURE__ */ m(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, sd = (e) => ({
- cache: J(e.cacheSize),
- parseClassName: ad(e),
- sortModifiers: od(e),
- postfixLookupClassGroupIds: cd(e),
- ...Wu(e)
-}), cd = (e) => {
+}, hd = (e) => ({
+ cache: cd(e.cacheSize),
+ parseClassName: pd(e),
+ sortModifiers: md(e),
+ postfixLookupClassGroupIds: gd(e),
+ ...Qu(e)
+}), gd = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, ld = /\s+/, ud = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ld), l = "";
+}, _d = /\s+/, vd = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(_d), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -16990,7 +17041,7 @@ var gu = /* @__PURE__ */ m(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + td : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + ld : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -17001,34 +17052,34 @@ var gu = /* @__PURE__ */ m(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, dd = (...e) => {
+}, yd = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = fd(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = bd(n)) && (i && (i += " "), i += r);
return i;
-}, fd = (e) => {
+}, bd = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = fd(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = bd(e[r])) && (n && (n += " "), n += t);
return n;
-}, pd = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = sd(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, xd = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = hd(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = ud(e, n);
+ let a = vd(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(dd(...e));
-}, md = [], hd = (e) => {
- let t = (t) => t[e] || md;
+ return a = o, (...e) => a(yd(...e));
+}, Sd = [], Cd = (e) => {
+ let t = (t) => t[e] || Sd;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, gd = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _d = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vd = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, yd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bd = /\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$/, xd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Sd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, wd = (e) => vd.test(e), Y = (e) => !!e && !Number.isNaN(Number(e)), Td = (e) => !!e && Number.isInteger(Number(e)), Ed = (e) => e.endsWith("%") && Y(e.slice(0, -1)), Dd = (e) => yd.test(e), Od = () => !0, kd = (e) => bd.test(e) && !xd.test(e), Ad = () => !1, jd = (e) => Sd.test(e), Md = (e) => Cd.test(e), Nd = (e) => !X(e) && !Z(e), Pd = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Fd = (e) => Xd(e, ef, Ad), X = (e) => gd.test(e), Id = (e) => Xd(e, tf, kd), Ld = (e) => Xd(e, nf, Y), Rd = (e) => Xd(e, af, Od), zd = (e) => Xd(e, rf, Ad), Bd = (e) => Xd(e, Qd, Ad), Vd = (e) => Xd(e, $d, Md), Hd = (e) => Xd(e, of, jd), Z = (e) => _d.test(e), Ud = (e) => Zd(e, tf), Wd = (e) => Zd(e, rf), Gd = (e) => Zd(e, Qd), Kd = (e) => Zd(e, ef), qd = (e) => Zd(e, $d), Jd = (e) => Zd(e, of, !0), Yd = (e) => Zd(e, af, !0), Xd = (e, t, n) => {
- let r = gd.exec(e);
+}, wd = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Td = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ed = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Dd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Od = /\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$/, kd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Ad = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Md = (e) => Ed.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), Nd = (e) => !!e && Number.isInteger(Number(e)), Pd = (e) => e.endsWith("%") && J(e.slice(0, -1)), Fd = (e) => Dd.test(e), Id = () => !0, Ld = (e) => Od.test(e) && !kd.test(e), Rd = () => !1, zd = (e) => Ad.test(e), Bd = (e) => jd.test(e), Vd = (e) => !Y(e) && !X(e), Hd = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Ud = (e) => af(e, lf, Rd), Y = (e) => wd.test(e), Wd = (e) => af(e, uf, Ld), Gd = (e) => af(e, df, J), Kd = (e) => af(e, pf, Id), qd = (e) => af(e, ff, Rd), Jd = (e) => af(e, sf, Rd), Yd = (e) => af(e, cf, Bd), Xd = (e) => af(e, mf, zd), X = (e) => Td.test(e), Zd = (e) => of(e, uf), Qd = (e) => of(e, ff), $d = (e) => of(e, sf), ef = (e) => of(e, lf), tf = (e) => of(e, cf), nf = (e) => of(e, mf, !0), rf = (e) => of(e, pf, !0), af = (e, t, n) => {
+ let r = wd.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Zd = (e, t, n = !1) => {
- let r = _d.exec(e);
+}, of = (e, t, n = !1) => {
+ let r = Td.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Qd = (e) => e === "position" || e === "percentage", $d = (e) => e === "image" || e === "url", ef = (e) => e === "length" || e === "size" || e === "bg-size", tf = (e) => e === "length", nf = (e) => e === "number", rf = (e) => e === "family-name", af = (e) => e === "number" || e === "weight", of = (e) => e === "shadow", sf = () => {
- let e = hd("color"), t = hd("font"), n = hd("text"), r = hd("font-weight"), i = hd("tracking"), a = hd("leading"), o = hd("breakpoint"), s = hd("container"), c = hd("spacing"), l = hd("radius"), u = hd("shadow"), d = hd("inset-shadow"), f = hd("text-shadow"), p = hd("drop-shadow"), m = hd("blur"), h = hd("perspective"), g = hd("aspect"), _ = hd("ease"), v = hd("animate"), y = () => [
+}, sf = (e) => e === "position" || e === "percentage", cf = (e) => e === "image" || e === "url", lf = (e) => e === "length" || e === "size" || e === "bg-size", uf = (e) => e === "length", df = (e) => e === "number", ff = (e) => e === "family-name", pf = (e) => e === "number" || e === "weight", mf = (e) => e === "shadow", hf = () => {
+ let e = Cd("color"), t = Cd("font"), n = Cd("text"), r = Cd("font-weight"), i = Cd("tracking"), a = Cd("leading"), o = Cd("breakpoint"), s = Cd("container"), c = Cd("spacing"), l = Cd("radius"), u = Cd("shadow"), d = Cd("inset-shadow"), f = Cd("text-shadow"), p = Cd("drop-shadow"), m = Cd("blur"), h = Cd("perspective"), g = Cd("aspect"), _ = Cd("ease"), v = Cd("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -17053,8 +17104,8 @@ var gu = /* @__PURE__ */ m(((e) => {
"left-bottom"
], x = () => [
...b(),
- Z,
- X
+ X,
+ Y
], S = () => [
"auto",
"hidden",
@@ -17066,43 +17117,43 @@ var gu = /* @__PURE__ */ m(((e) => {
"contain",
"none"
], w = () => [
- Z,
X,
+ Y,
c
], T = () => [
- wd,
+ Md,
"full",
"auto",
...w()
], E = () => [
- Td,
+ Nd,
"none",
"subgrid",
- Z,
- X
+ X,
+ Y
], D = () => [
"auto",
{ span: [
"full",
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
] },
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
], O = () => [
- Td,
+ Nd,
"auto",
- Z,
- X
+ X,
+ Y
], k = () => [
"auto",
"min",
"max",
"fr",
- Z,
- X
+ X,
+ Y
], A = () => [
"start",
"end",
@@ -17122,7 +17173,7 @@ var gu = /* @__PURE__ */ m(((e) => {
"center-safe",
"end-safe"
], j = () => ["auto", ...w()], te = () => [
- wd,
+ Md,
"auto",
"full",
"dvw",
@@ -17137,7 +17188,7 @@ var gu = /* @__PURE__ */ m(((e) => {
...w()
], M = () => [
s,
- wd,
+ Md,
"screen",
"full",
"dvw",
@@ -17148,7 +17199,7 @@ var gu = /* @__PURE__ */ m(((e) => {
"fit",
...w()
], ne = () => [
- wd,
+ Md,
"screen",
"full",
"lh",
@@ -17161,48 +17212,48 @@ var gu = /* @__PURE__ */ m(((e) => {
...w()
], N = () => [
e,
- Z,
- X
+ X,
+ Y
], re = () => [
...b(),
- Gd,
- Bd,
- { position: [Z, X] }
- ], P = () => ["no-repeat", { repeat: [
+ $d,
+ Jd,
+ { position: [X, Y] }
+ ], ie = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], ie = () => [
+ ] }], ae = () => [
"auto",
"cover",
"contain",
- Kd,
- Fd,
- { size: [Z, X] }
- ], ae = () => [
- Ed,
+ ef,
Ud,
- Id
+ { size: [X, Y] }
], oe = () => [
+ Pd,
+ Zd,
+ Wd
+ ], se = () => [
"",
"none",
"full",
l,
- Z,
- X
- ], se = () => [
- "",
- Y,
- Ud,
- Id
+ X,
+ Y
], ce = () => [
+ "",
+ J,
+ Zd,
+ Wd
+ ], le = () => [
"solid",
"dashed",
"dotted",
"double"
- ], le = () => [
+ ], ue = () => [
"normal",
"multiply",
"screen",
@@ -17219,33 +17270,33 @@ var gu = /* @__PURE__ */ m(((e) => {
"saturation",
"color",
"luminosity"
- ], ue = () => [
- Y,
- Ed,
- Gd,
- Bd
], de = () => [
+ J,
+ Pd,
+ $d,
+ Jd
+ ], fe = () => [
"",
"none",
m,
- Z,
- X
- ], fe = () => [
- "none",
- Y,
- Z,
- X
+ X,
+ Y
], pe = () => [
"none",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
+ ], me = () => [
+ "none",
+ J,
+ X,
+ Y
+ ], P = () => [
+ J,
+ X,
+ Y
], F = () => [
- Y,
- Z,
- X
- ], I = () => [
- wd,
+ Md,
"full",
...w()
];
@@ -17259,17 +17310,17 @@ var gu = /* @__PURE__ */ m(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [Dd],
- breakpoint: [Dd],
- color: [Od],
- container: [Dd],
- "drop-shadow": [Dd],
+ blur: [Fd],
+ breakpoint: [Fd],
+ color: [Id],
+ container: [Fd],
+ "drop-shadow": [Fd],
ease: [
"in",
"out",
"in-out"
],
- font: [Nd],
+ font: [Vd],
"font-weight": [
"thin",
"extralight",
@@ -17281,7 +17332,7 @@ var gu = /* @__PURE__ */ m(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [Dd],
+ "inset-shadow": [Fd],
leading: [
"none",
"tight",
@@ -17298,11 +17349,11 @@ var gu = /* @__PURE__ */ m(((e) => {
"distant",
"none"
],
- radius: [Dd],
- shadow: [Dd],
- spacing: ["px", Y],
- text: [Dd],
- "text-shadow": [Dd],
+ radius: [Fd],
+ shadow: [Fd],
+ spacing: ["px", J],
+ text: [Fd],
+ "text-shadow": [Fd],
tracking: [
"tighter",
"tight",
@@ -17316,9 +17367,9 @@ var gu = /* @__PURE__ */ m(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- wd,
+ Md,
+ Y,
X,
- Z,
g
] }],
container: ["container"],
@@ -17326,15 +17377,15 @@ var gu = /* @__PURE__ */ m(((e) => {
"",
"normal",
"size",
- Z,
- X
+ X,
+ Y
] }],
- "container-named": [Pd],
+ "container-named": [Hd],
columns: [{ columns: [
- Y,
+ J,
"auto",
+ Y,
X,
- Z,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -17431,13 +17482,13 @@ var gu = /* @__PURE__ */ m(((e) => {
"collapse"
],
z: [{ z: [
- Td,
+ Nd,
"auto",
- Z,
- X
+ X,
+ Y
] }],
basis: [{ basis: [
- wd,
+ Md,
"full",
"auto",
s,
@@ -17455,32 +17506,32 @@ var gu = /* @__PURE__ */ m(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- Y,
- wd,
+ J,
+ Md,
"auto",
"initial",
"none",
- X
+ Y
] }],
grow: [{ grow: [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
shrink: [{ shrink: [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
order: [{ order: [
- Td,
+ Nd,
"first",
"last",
"none",
- Z,
- X
+ X,
+ Y
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -17587,15 +17638,15 @@ var gu = /* @__PURE__ */ m(((e) => {
"font-size": [{ text: [
"base",
n,
- Ud,
- Id
+ Zd,
+ Wd
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Yd,
- Rd
+ rf,
+ Kd
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17607,15 +17658,15 @@ var gu = /* @__PURE__ */ m(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- Ed,
- X
+ Pd,
+ Y
] }],
"font-family": [{ font: [
- Wd,
- zd,
+ Qd,
+ qd,
t
] }],
- "font-features": [{ "font-features": [X] }],
+ "font-features": [{ "font-features": [Y] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -17624,14 +17675,14 @@ var gu = /* @__PURE__ */ m(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- Z,
- X
+ X,
+ Y
] }],
"line-clamp": [{ "line-clamp": [
- Y,
+ J,
"none",
- Z,
- Ld
+ X,
+ Gd
] }],
leading: [{ leading: [
"none",
@@ -17640,16 +17691,16 @@ var gu = /* @__PURE__ */ m(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- Z,
- X
+ X,
+ Y
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- Z,
- X
+ X,
+ Y
] }],
"text-alignment": [{ text: [
"left",
@@ -17667,20 +17718,20 @@ var gu = /* @__PURE__ */ m(((e) => {
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...le(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- Y,
+ J,
"from-font",
"auto",
- Z,
- Id
+ X,
+ Wd
] }],
"text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
- Y,
+ J,
"auto",
- Z,
- X
+ X,
+ Y
] }],
"text-transform": [
"uppercase",
@@ -17701,9 +17752,9 @@ var gu = /* @__PURE__ */ m(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
] }],
"vertical-align": [{ align: [
"baseline",
@@ -17714,8 +17765,8 @@ var gu = /* @__PURE__ */ m(((e) => {
"text-bottom",
"sub",
"super",
- Z,
- X
+ X,
+ Y
] }],
whitespace: [{ whitespace: [
"normal",
@@ -17743,8 +17794,8 @@ var gu = /* @__PURE__ */ m(((e) => {
] }],
content: [{ content: [
"none",
- Z,
- X
+ X,
+ Y
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -17763,8 +17814,8 @@ var gu = /* @__PURE__ */ m(((e) => {
"content"
] }],
"bg-position": [{ bg: re() }],
- "bg-repeat": [{ bg: P() }],
- "bg-size": [{ bg: ie() }],
+ "bg-repeat": [{ bg: ie() }],
+ "bg-size": [{ bg: ae() }],
"bg-image": [{ bg: [
"none",
{
@@ -17779,69 +17830,69 @@ var gu = /* @__PURE__ */ m(((e) => {
"l",
"tl"
] },
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
],
radial: [
"",
- Z,
- X
+ X,
+ Y
],
conic: [
"",
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
]
},
- qd,
- Vd
+ tf,
+ Yd
] }],
"bg-color": [{ bg: N() }],
- "gradient-from-pos": [{ from: ae() }],
- "gradient-via-pos": [{ via: ae() }],
- "gradient-to-pos": [{ to: ae() }],
+ "gradient-from-pos": [{ from: oe() }],
+ "gradient-via-pos": [{ via: oe() }],
+ "gradient-to-pos": [{ to: oe() }],
"gradient-from": [{ from: N() }],
"gradient-via": [{ via: N() }],
"gradient-to": [{ to: N() }],
- rounded: [{ rounded: oe() }],
- "rounded-s": [{ "rounded-s": oe() }],
- "rounded-e": [{ "rounded-e": oe() }],
- "rounded-t": [{ "rounded-t": oe() }],
- "rounded-r": [{ "rounded-r": oe() }],
- "rounded-b": [{ "rounded-b": oe() }],
- "rounded-l": [{ "rounded-l": oe() }],
- "rounded-ss": [{ "rounded-ss": oe() }],
- "rounded-se": [{ "rounded-se": oe() }],
- "rounded-ee": [{ "rounded-ee": oe() }],
- "rounded-es": [{ "rounded-es": oe() }],
- "rounded-tl": [{ "rounded-tl": oe() }],
- "rounded-tr": [{ "rounded-tr": oe() }],
- "rounded-br": [{ "rounded-br": oe() }],
- "rounded-bl": [{ "rounded-bl": oe() }],
- "border-w": [{ border: se() }],
- "border-w-x": [{ "border-x": se() }],
- "border-w-y": [{ "border-y": se() }],
- "border-w-s": [{ "border-s": se() }],
- "border-w-e": [{ "border-e": se() }],
- "border-w-bs": [{ "border-bs": se() }],
- "border-w-be": [{ "border-be": se() }],
- "border-w-t": [{ "border-t": se() }],
- "border-w-r": [{ "border-r": se() }],
- "border-w-b": [{ "border-b": se() }],
- "border-w-l": [{ "border-l": se() }],
- "divide-x": [{ "divide-x": se() }],
+ rounded: [{ rounded: se() }],
+ "rounded-s": [{ "rounded-s": se() }],
+ "rounded-e": [{ "rounded-e": se() }],
+ "rounded-t": [{ "rounded-t": se() }],
+ "rounded-r": [{ "rounded-r": se() }],
+ "rounded-b": [{ "rounded-b": se() }],
+ "rounded-l": [{ "rounded-l": se() }],
+ "rounded-ss": [{ "rounded-ss": se() }],
+ "rounded-se": [{ "rounded-se": se() }],
+ "rounded-ee": [{ "rounded-ee": se() }],
+ "rounded-es": [{ "rounded-es": se() }],
+ "rounded-tl": [{ "rounded-tl": se() }],
+ "rounded-tr": [{ "rounded-tr": se() }],
+ "rounded-br": [{ "rounded-br": se() }],
+ "rounded-bl": [{ "rounded-bl": se() }],
+ "border-w": [{ border: ce() }],
+ "border-w-x": [{ "border-x": ce() }],
+ "border-w-y": [{ "border-y": ce() }],
+ "border-w-s": [{ "border-s": ce() }],
+ "border-w-e": [{ "border-e": ce() }],
+ "border-w-bs": [{ "border-bs": ce() }],
+ "border-w-be": [{ "border-be": ce() }],
+ "border-w-t": [{ "border-t": ce() }],
+ "border-w-r": [{ "border-r": ce() }],
+ "border-w-b": [{ "border-b": ce() }],
+ "border-w-l": [{ "border-l": ce() }],
+ "divide-x": [{ "divide-x": ce() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": se() }],
+ "divide-y": [{ "divide-y": ce() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...ce(),
+ ...le(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...ce(),
+ ...le(),
"hidden",
"none"
] }],
@@ -17858,20 +17909,20 @@ var gu = /* @__PURE__ */ m(((e) => {
"border-color-l": [{ "border-l": N() }],
"divide-color": [{ divide: N() }],
"outline-style": [{ outline: [
- ...ce(),
+ ...le(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"outline-w": [{ outline: [
"",
- Y,
- Ud,
- Id
+ J,
+ Zd,
+ Wd
] }],
"outline-color": [{ outline: N() }],
shadow: [{ shadow: [
@@ -17879,42 +17930,42 @@ var gu = /* @__PURE__ */ m(((e) => {
"inner",
"none",
u,
- Jd,
- Hd
+ nf,
+ Xd
] }],
"shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Jd,
- Hd
+ nf,
+ Xd
] }],
"inset-shadow-color": [{ "inset-shadow": N() }],
- "ring-w": [{ ring: se() }],
+ "ring-w": [{ ring: ce() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [Y, Id] }],
+ "ring-offset-w": [{ "ring-offset": [J, Wd] }],
"ring-offset-color": [{ "ring-offset": N() }],
- "inset-ring-w": [{ "inset-ring": se() }],
+ "inset-ring-w": [{ "inset-ring": ce() }],
"inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Jd,
- Hd
+ nf,
+ Xd
] }],
"text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"mix-blend": [{ "mix-blend": [
- ...le(),
+ ...ue(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": le() }],
+ "bg-blend": [{ "bg-blend": ue() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -17929,38 +17980,38 @@ var gu = /* @__PURE__ */ m(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [Y] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": ue() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": ue() }],
+ "mask-image-linear-pos": [{ "mask-linear": [J] }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": de() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": de() }],
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
- "mask-image-t-from-pos": [{ "mask-t-from": ue() }],
- "mask-image-t-to-pos": [{ "mask-t-to": ue() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": de() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": de() }],
"mask-image-t-from-color": [{ "mask-t-from": N() }],
"mask-image-t-to-color": [{ "mask-t-to": N() }],
- "mask-image-r-from-pos": [{ "mask-r-from": ue() }],
- "mask-image-r-to-pos": [{ "mask-r-to": ue() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": de() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": de() }],
"mask-image-r-from-color": [{ "mask-r-from": N() }],
"mask-image-r-to-color": [{ "mask-r-to": N() }],
- "mask-image-b-from-pos": [{ "mask-b-from": ue() }],
- "mask-image-b-to-pos": [{ "mask-b-to": ue() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": de() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": de() }],
"mask-image-b-from-color": [{ "mask-b-from": N() }],
"mask-image-b-to-color": [{ "mask-b-to": N() }],
- "mask-image-l-from-pos": [{ "mask-l-from": ue() }],
- "mask-image-l-to-pos": [{ "mask-l-to": ue() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": de() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": de() }],
"mask-image-l-from-color": [{ "mask-l-from": N() }],
"mask-image-l-to-color": [{ "mask-l-to": N() }],
- "mask-image-x-from-pos": [{ "mask-x-from": ue() }],
- "mask-image-x-to-pos": [{ "mask-x-to": ue() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": de() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": de() }],
"mask-image-x-from-color": [{ "mask-x-from": N() }],
"mask-image-x-to-color": [{ "mask-x-to": N() }],
- "mask-image-y-from-pos": [{ "mask-y-from": ue() }],
- "mask-image-y-to-pos": [{ "mask-y-to": ue() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": de() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": de() }],
"mask-image-y-from-color": [{ "mask-y-from": N() }],
"mask-image-y-to-color": [{ "mask-y-to": N() }],
- "mask-image-radial": [{ "mask-radial": [Z, X] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": ue() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": ue() }],
+ "mask-image-radial": [{ "mask-radial": [X, Y] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": de() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": de() }],
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
@@ -17969,9 +18020,9 @@ var gu = /* @__PURE__ */ m(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [Y] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": ue() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": ue() }],
+ "mask-image-conic-pos": [{ "mask-conic": [J] }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": de() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": de() }],
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
"mask-mode": [{ mask: [
@@ -17988,116 +18039,116 @@ var gu = /* @__PURE__ */ m(((e) => {
"view"
] }],
"mask-position": [{ mask: re() }],
- "mask-repeat": [{ mask: P() }],
- "mask-size": [{ mask: ie() }],
+ "mask-repeat": [{ mask: ie() }],
+ "mask-size": [{ mask: ae() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- Z,
- X
+ X,
+ Y
] }],
filter: [{ filter: [
"",
"none",
- Z,
- X
+ X,
+ Y
] }],
- blur: [{ blur: de() }],
+ blur: [{ blur: fe() }],
brightness: [{ brightness: [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
contrast: [{ contrast: [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Jd,
- Hd
+ nf,
+ Xd
] }],
"drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"hue-rotate": [{ "hue-rotate": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
invert: [{ invert: [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
saturate: [{ saturate: [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
sepia: [{ sepia: [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- Z,
- X
+ X,
+ Y
] }],
- "backdrop-blur": [{ "backdrop-blur": de() }],
+ "backdrop-blur": [{ "backdrop-blur": fe() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -18113,56 +18164,56 @@ var gu = /* @__PURE__ */ m(((e) => {
"shadow",
"transform",
"none",
- Z,
- X
+ X,
+ Y
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- Y,
+ J,
"initial",
- Z,
- X
+ X,
+ Y
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- Z,
- X
+ X,
+ Y
] }],
delay: [{ delay: [
- Y,
- Z,
- X
+ J,
+ X,
+ Y
] }],
animate: [{ animate: [
"none",
v,
- Z,
- X
+ X,
+ Y
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- Z,
- X
+ X,
+ Y
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: fe() }],
- "rotate-x": [{ "rotate-x": fe() }],
- "rotate-y": [{ "rotate-y": fe() }],
- "rotate-z": [{ "rotate-z": fe() }],
- scale: [{ scale: pe() }],
- "scale-x": [{ "scale-x": pe() }],
- "scale-y": [{ "scale-y": pe() }],
- "scale-z": [{ "scale-z": pe() }],
+ rotate: [{ rotate: pe() }],
+ "rotate-x": [{ "rotate-x": pe() }],
+ "rotate-y": [{ "rotate-y": pe() }],
+ "rotate-z": [{ "rotate-z": pe() }],
+ scale: [{ scale: me() }],
+ "scale-x": [{ "scale-x": me() }],
+ "scale-y": [{ "scale-y": me() }],
+ "scale-z": [{ "scale-z": me() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: F() }],
- "skew-x": [{ "skew-x": F() }],
- "skew-y": [{ "skew-y": F() }],
+ skew: [{ skew: P() }],
+ "skew-x": [{ "skew-x": P() }],
+ "skew-y": [{ "skew-y": P() }],
transform: [{ transform: [
- Z,
X,
+ Y,
"",
"none",
"gpu",
@@ -18170,15 +18221,15 @@ var gu = /* @__PURE__ */ m(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: I() }],
- "translate-x": [{ "translate-x": I() }],
- "translate-y": [{ "translate-y": I() }],
- "translate-z": [{ "translate-z": I() }],
+ translate: [{ translate: F() }],
+ "translate-x": [{ "translate-x": F() }],
+ "translate-y": [{ "translate-y": F() }],
+ "translate-z": [{ "translate-z": F() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- Td,
- Z,
- X
+ Nd,
+ X,
+ Y
] }],
accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -18228,8 +18279,8 @@ var gu = /* @__PURE__ */ m(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- Z,
- X
+ X,
+ Y
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -18315,15 +18366,15 @@ var gu = /* @__PURE__ */ m(((e) => {
"scroll",
"contents",
"transform",
- Z,
- X
+ X,
+ Y
] }],
fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
- Y,
- Ud,
- Id,
- Ld
+ J,
+ Zd,
+ Wd,
+ Gd
] }],
stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18581,16 +18632,16 @@ var gu = /* @__PURE__ */ m(((e) => {
"selection"
]
};
-}, cf = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (lf(e, "cacheSize", t), lf(e, "prefix", n), lf(e, "experimentalParseClassName", r), uf(e.theme, a.theme), uf(e.classGroups, a.classGroups), uf(e.conflictingClassGroups, a.conflictingClassGroups), uf(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), lf(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), lf(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), df(e.theme, i.theme), df(e.classGroups, i.classGroups), df(e.conflictingClassGroups, i.conflictingClassGroups), df(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), ff(e, i, "postfixLookupClassGroups"), ff(e, i, "orderSensitiveModifiers"), e), lf = (e, t, n) => {
+}, gf = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (_f(e, "cacheSize", t), _f(e, "prefix", n), _f(e, "experimentalParseClassName", r), vf(e.theme, a.theme), vf(e.classGroups, a.classGroups), vf(e.conflictingClassGroups, a.conflictingClassGroups), vf(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), _f(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), _f(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), yf(e.theme, i.theme), yf(e.classGroups, i.classGroups), yf(e.conflictingClassGroups, i.conflictingClassGroups), yf(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), bf(e, i, "postfixLookupClassGroups"), bf(e, i, "orderSensitiveModifiers"), e), _f = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, uf = (e, t) => {
- if (t) for (let n in t) lf(e, n, t[n]);
-}, df = (e, t) => {
- if (t) for (let n in t) ff(e, t, n);
-}, ff = (e, t, n) => {
+}, vf = (e, t) => {
+ if (t) for (let n in t) _f(e, n, t[n]);
+}, yf = (e, t) => {
+ if (t) for (let n in t) bf(e, t, n);
+}, bf = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, pf = (e, ...t) => typeof e == "function" ? pd(sf, e, ...t) : pd(() => cf(sf(), e), ...t), mf = [
+}, xf = (e, ...t) => typeof e == "function" ? xd(hf, e, ...t) : xd(() => gf(hf(), e), ...t), Sf = [
"large-title",
"display-1",
"display-2",
@@ -18604,18 +18655,18 @@ var gu = /* @__PURE__ */ m(((e) => {
"body-2",
"caption-1",
"caption-2"
-], hf = [
+], Cf = [
"regular",
"medium",
"semibold",
"bold"
-], gf = pf({ extend: { classGroups: { "font-size": [{ text: mf.flatMap((e) => hf.map((t) => `${e}-${t}`)) }] } } });
-function _f(e) {
+], Z = xf({ extend: { classGroups: { "font-size": [{ text: Sf.flatMap((e) => Cf.map((t) => `${e}-${t}`)) }] } } });
+function wf(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var vf = _f({
+var Tf = wf({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -18634,22 +18685,22 @@ var vf = _f({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function yf({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function Ef({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, S.jsx)("span", {
ref: r,
- className: gf(vf.base, vf.variant[e], vf.color[t], n),
+ className: Z(Tf.base, Tf.variant[e], Tf.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var bf = class extends Error {
+var Df = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(r(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, xf = (e) => {
+}, Of = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -18661,8 +18712,8 @@ var bf = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, Sf = (e) => r(e);
-async function Cf(e, t) {
+}, kf = (e) => r(e);
+async function Af(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -18671,10 +18722,10 @@ async function Cf(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new bf(xf(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Df(Of(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function wf(e, t, n = "POST", r) {
+async function jf(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -18688,12 +18739,12 @@ async function wf(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new bf(xf(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Df(Of(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/empty-state.tsx
-function Tf({ icon: e, title: t, actions: n, children: r }) {
+function Mf({ icon: e, title: t, actions: n, children: r }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
children: [
@@ -18718,7 +18769,7 @@ function Tf({ icon: e, title: t, actions: n, children: r }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Ef({ label: e }) {
+function Nf({ label: e }) {
return /* @__PURE__ */ (0, S.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -18735,7 +18786,7 @@ function Ef({ label: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function Df({ tone: e, title: t, extra: n, children: r }) {
+function Pf({ tone: e, title: t, extra: n, children: r }) {
let i = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
t ? /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium",
@@ -18777,7 +18828,7 @@ function Df({ tone: e, title: t, extra: n, children: r }) {
}
//#endregion
//#region src/react/components/page.tsx
-function Of({ children: e }) {
+function Ff({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -18785,7 +18836,7 @@ function Of({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-function kf({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function If({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
@@ -18818,32 +18869,32 @@ function kf({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var Af = new Ye({ defaultOptions: { queries: {
+var Lf = new Ze({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), jf = "/api/tasks", Mf = ["tasks"], Nf = 2e3, Pf = 1e4, Ff = (e) => e?.running.length ? Nf : Pf, If = (e) => Cf(jf, e);
-async function Lf(e) {
- await Af.fetchQuery({
- queryKey: Mf,
- queryFn: () => If(e)
+} } }), Rf = "/api/tasks", zf = ["tasks"], Bf = 2e3, Vf = 1e4, Q = (e) => e?.running.length ? Bf : Vf, Hf = (e) => Af(Rf, e);
+async function Uf(e) {
+ await Lf.fetchQuery({
+ queryKey: zf,
+ queryFn: () => Hf(e)
});
}
-var Rf = {
+var Wf = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, zf = {
+}, Gf = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Bf = (e) => zf[e] || e, Vf = {
+}, Kf = (e) => Gf[e] || e, qf = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -18863,14 +18914,14 @@ var Rf = {
exit_code: "退出码",
issue_count: "问题"
};
-function Q(e) {
+function Jf(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function Hf(e) {
+function Yf(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -18880,24 +18931,24 @@ function Hf(e) {
minute: "2-digit"
});
}
-function Uf(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Vf[e] || e} ${t}`).join(" · ");
+function Xf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${qf[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Wf = {
+var Zf = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Gf({ status: e }) {
- return /* @__PURE__ */ (0, S.jsx)(yf, {
- color: Wf[e] ?? "neutral",
- children: Bf(e)
+function Qf({ status: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(Ef, {
+ color: Zf[e] ?? "neutral",
+ children: Kf(e)
});
}
-function Kf({ run: e, meta: t, children: n, footer: r }) {
+function $f({ run: e, meta: t, children: n, footer: r }) {
return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
@@ -18910,7 +18961,7 @@ function Kf({ run: e, meta: t, children: n, footer: r }) {
children: [/* @__PURE__ */ (0, S.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, S.jsx)(Gf, { status: e.status })]
+ }), /* @__PURE__ */ (0, S.jsx)(Qf, { status: e.status })]
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -18927,14 +18978,14 @@ function Kf({ run: e, meta: t, children: n, footer: r }) {
}) : null]
});
}
-function qf({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Q(e.elapsed_seconds), a = [Rf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(Kf, {
+function ep({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Jf(e.elapsed_seconds), a = [Wf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, S.jsx)($f, {
run: e,
meta: a,
children: t > 0 ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(If, {
label: r,
value: n,
max: t
@@ -18949,16 +19000,16 @@ function qf({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, S.jsx)(Ef, { label: r })
+ }) : /* @__PURE__ */ (0, S.jsx)(Nf, { label: r })
});
}
-function Jf({ run: e }) {
- let t = Uf(e.result_summary), n = Q(e.elapsed_seconds), r = [
- Rf[e.trigger] || e.trigger,
- Hf(e.finished_at),
+function tp({ run: e }) {
+ let t = Xf(e.result_summary), n = Jf(e.elapsed_seconds), r = [
+ Wf[e.trigger] || e.trigger,
+ Yf(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(Kf, {
+ return /* @__PURE__ */ (0, S.jsx)($f, {
run: e,
meta: r,
footer: e.error,
@@ -18968,7 +19019,7 @@ function Jf({ run: e }) {
}) : null
});
}
-function Yf({ title: e, children: t }) {
+function np({ title: e, children: t }) {
let n = (0, x.useId)();
return /* @__PURE__ */ (0, S.jsxs)("section", {
"aria-labelledby": n,
@@ -18980,67 +19031,67 @@ function Yf({ title: e, children: t }) {
}), t]
});
}
-function Xf({ live: e = !1, children: t }) {
+function rp({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Zf(e) {
- let t = ct({
- queryKey: Mf,
- queryFn: ({ signal: e }) => If(e),
- refetchInterval: (e) => Ff(e.state.data)
- }), n = t.data, r = t.error ? Sf(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
+function ip(e) {
+ let t = ut({
+ queryKey: zf,
+ queryFn: ({ signal: e }) => Hf(e),
+ refetchInterval: (e) => Q(e.state.data)
+ }), n = t.data, r = t.error ? kf(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
children: r || "读取任务中心失败"
}) });
let i = n.running || [], a = n.skipped || [], o = (n.finished || []).filter((e) => !a.some((t) => t.id === e.id)), s = !i.length && !a.length && !o.length;
- return /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
- r ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ return /* @__PURE__ */ (0, S.jsxs)(Ff, { children: [
+ r ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: ju,
+ s ? /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Fu,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- /* @__PURE__ */ (0, S.jsx)(Yf, {
+ /* @__PURE__ */ (0, S.jsx)(np, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, S.jsx)(Xf, {
+ children: i.length ? /* @__PURE__ */ (0, S.jsx)(rp, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(qf, { run: e }, e.id))
+ children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(ep, { run: e }, e.id))
}) : /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, S.jsx)(Yf, {
+ a.length ? /* @__PURE__ */ (0, S.jsx)(np, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, S.jsx)(Xf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(Jf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(rp, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(tp, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, S.jsx)(Yf, {
+ o.length ? /* @__PURE__ */ (0, S.jsx)(np, {
title: "最近完成",
- children: /* @__PURE__ */ (0, S.jsx)(Xf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(Jf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(rp, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(tp, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Qf = Symbol("default");
-function $f({ values: e, children: t }) {
+var ap = Symbol("default");
+function op({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ x.createElement(n.Provider, { value: r }, t);
return t;
}
-function ep(e) {
+function sp(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, x.useMemo)(() => {
let e, l, u;
@@ -19074,11 +19125,11 @@ function ep(e) {
c
]);
}
-function $(e, t) {
+function cp(e, t) {
let n = (0, x.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Qf;
+ let e = t || ap;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -19087,8 +19138,8 @@ function $(e, t) {
}
return n;
}
-function tp(e, t, n) {
- let { ref: r, ...i } = $(n, e.slot) || {}, a = Nr((0, x.useMemo)(() => mr(t, r), [t, r])), o = H(i, e);
+function lp(e, t, n) {
+ let { ref: r, ...i } = cp(n, e.slot) || {}, a = Fr((0, x.useMemo)(() => gr(t, r), [t, r])), o = V(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -19106,42 +19157,42 @@ function tp(e, t, n) {
...e.style
}), [o, a];
}
-function np(e = !0) {
+function up(e = !0) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return V(() => {
+ return B(() => {
r.current || n(!1);
}, []), [i, t];
}
-function rp(e) {
+function dp(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function ip(e, t, n) {
- let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => mr(n, a), [n, a]);
- V(() => {}, [e, r]);
+function fp(e, t, n) {
+ let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => gr(n, a), [n, a]);
+ B(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ x.createElement(e, s);
}
-var ap = {}, op = new Proxy({}, { get(e, t) {
+var pp = {}, mp = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = ap[t];
- return n || (n = /*#__PURE__*/ (0, x.forwardRef)(ip.bind(null, t)), ap[t] = n), n;
-} }), sp = /*#__PURE__*/ (0, x.createContext)(null), cp = /*#__PURE__*/ (0, x.createContext)(null), lp = /*#__PURE__*/ (0, x.createContext)(null), up = {
+ let n = pp[t];
+ return n || (n = /*#__PURE__*/ (0, x.forwardRef)(fp.bind(null, t)), pp[t] = n), n;
+} }), hp = /*#__PURE__*/ (0, x.createContext)(null), gp = /*#__PURE__*/ (0, x.createContext)(null), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return dp(e, null, t);
+ return yp(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return dp(e, t, n);
+ return yp(e, t, n);
}
};
-function dp(e, t, n) {
- return yt({
+function yp(e, t, n) {
+ return xt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -19151,11 +19202,11 @@ function dp(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, fp(e, t, n));
+ }), r, bp(e, t, n));
}
});
}
-function fp(e, t, n) {
+function bp(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -19174,25 +19225,25 @@ function fp(e, t, n) {
}
return s;
}
-var pp = /*#__PURE__*/ (0, x.createContext)(up);
-function mp(e) {
+var xp = /*#__PURE__*/ (0, x.createContext)(vp);
+function Sp(e) {
return (0, x.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var hp = /*#__PURE__*/ (0, x.createContext)({}), gp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, hp);
- let { elementType: n = "label", ...r } = e, i = op[n];
+var Cp = /*#__PURE__*/ (0, x.createContext)({}), wp = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Cp);
+ let { elementType: n = "label", ...r } = e, i = mp[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = /*#__PURE__*/ (0, x.createContext)({}), yp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, vp);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = xa(e, t);
- i = xp(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = hc(e), { hoverProps: l, isHovered: u } = Sc({
+}), Tp = /*#__PURE__*/ (0, x.createContext)(null), Ep = /*#__PURE__*/ (0, x.createContext)({}), Dp = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Ep);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ca(e, t);
+ i = kp(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = _c(e), { hoverProps: l, isHovered: u } = wc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -19202,25 +19253,25 @@ var hp = /*#__PURE__*/ (0, x.createContext)({}), gp = /*#__PURE__*/ Br(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = ep({
+ }, f = sp({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = dr(i.id), m = dr(), h = i["aria-labelledby"];
+ }), p = pr(i.id), m = pr(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, x.useRef)(r);
(0, x.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Qa(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && to(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = U(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ x.createElement(op.button, {
- ...H(_, f, i, o, l),
+ let _ = H(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ x.createElement(mp.button, {
+ ...V(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -19233,62 +19284,62 @@ var hp = /*#__PURE__*/ (0, x.createContext)({}), gp = /*#__PURE__*/ Br(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ x.createElement(_p.Provider, { value: { id: m } }, f.children));
-}), bp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function xp(e, t) {
+ }, /*#__PURE__*/ x.createElement(Tp.Provider, { value: { id: m } }, f.children));
+}), Op = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function kp(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !bp.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Op.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var Sp = /*#__PURE__*/ (0, x.createContext)({}), Cp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, Sp);
- let { children: n, level: r = 3, className: i, ...a } = e, o = op[`h${r}`];
+var Ap = /*#__PURE__*/ (0, x.createContext)({}), jp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, Ap);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = mp[`h${r}`];
return /*#__PURE__*/ x.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), wp = /*#__PURE__*/ (0, x.createContext)({}), Tp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, wp);
- let { elementType: n = "span", ...r } = e, i = op[n];
+}), Mp = /*#__PURE__*/ (0, x.createContext)({}), Np = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Mp);
+ let { elementType: n = "span", ...r } = e, i = mp[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), Ep = /*#__PURE__*/ (0, x.createContext)(null), Dp = /*#__PURE__*/ (0, x.createContext)(null), Op = /*#__PURE__*/ (0, x.createContext)(null), kp = /*#__PURE__*/ (0, x.createContext)(null), Ap = /*#__PURE__*/ (0, x.createContext)(null);
-function jp(e, t) {
- let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(kp), a = Nr((0, x.useMemo)(() => mr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...rp(e),
+}), Pp = /*#__PURE__*/ (0, x.createContext)(null), Fp = /*#__PURE__*/ (0, x.createContext)(null), Ip = /*#__PURE__*/ (0, x.createContext)(null), Lp = /*#__PURE__*/ (0, x.createContext)(null), Rp = /*#__PURE__*/ (0, x.createContext)(null);
+function zp(e, t) {
+ let { validationBehavior: n } = cp(Fp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(Lp), a = Fr((0, x.useMemo)(() => gr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...dp(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? K(o, i, a) : ko(o, Io(e), a), a];
+ return [i ? zo(o, i, a) : Mo(o, W(e), a), a];
}
-var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var Bp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = tp(r, t, Op);
- let [i, a] = jp(e, n);
- return /*#__PURE__*/ x.createElement(Ap.Provider, { value: {
+ [e, t] = lp(r, t, Ip);
+ let [i, a] = zp(e, n);
+ return /*#__PURE__*/ x.createElement(Rp.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ x.createElement(Np, {
+ } }, /*#__PURE__*/ x.createElement(Vp, {
...e,
ref: t
}));
-}), Np = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, x.useContext)(Ap), { isFocused: p, isFocusVisible: m, focusProps: h } = hc(), g = a || o, { hoverProps: _, isHovered: v } = Sc({
+}), Vp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, x.useContext)(Rp), { isFocused: p, isFocusVisible: m, focusProps: h } = _c(), g = a || o, { hoverProps: _, isHovered: v } = wc({
...e,
isDisabled: g
- }), y = ep({
+ }), y = sp({
...e,
defaultClassName: u,
values: {
@@ -19303,9 +19354,9 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(op.label, {
- ...H(b, n, _, y),
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(mp.label, {
+ ...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -19318,20 +19369,20 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, h),
+ }, /*#__PURE__*/ x.createElement(Uo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, h),
ref: l
})), y.children);
-}), Pp = /*#__PURE__*/ (0, x.createContext)({}), Fp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, Pp);
+}), Hp = /*#__PURE__*/ (0, x.createContext)({}), Up = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, Hp);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = Sc({
+ let { hoverProps: l, isHovered: u } = wc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = hc({ within: !0 }), m = ep({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = _c({ within: !0 }), m = sp({
...e,
values: {
isHovered: u,
@@ -19342,8 +19393,8 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ x.createElement(op.div, {
- ...H(c, p, l),
+ return /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -19355,18 +19406,18 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Ip = /*#__PURE__*/ (0, x.createContext)({}), Lp = (e) => {
+}), Wp = /*#__PURE__*/ (0, x.createContext)({}), Gp = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Rp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, Ip);
- let { hoverProps: n, isHovered: r } = Sc({
+}, Kp = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Wp);
+ let { hoverProps: n, isHovered: r } = wc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = hc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = _c({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ep({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = sp({
...e,
values: {
isHovered: r,
@@ -19377,8 +19428,8 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ x.createElement(op.input, {
- ...H(Lp(e), o, n),
+ return /*#__PURE__*/ x.createElement(mp.input, {
+ ...V(Gp(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -19387,8 +19438,8 @@ var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), zp = {};
-zp = {
+}), qp = {};
+qp = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -19396,8 +19447,8 @@ zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var Bp = {};
-Bp = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -19405,8 +19456,8 @@ Bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var Vp = {};
-Vp = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -19414,8 +19465,8 @@ Vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var Hp = {};
-Hp = {
+var Xp = {};
+Xp = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -19423,8 +19474,8 @@ Hp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var Up = {};
-Up = {
+var Zp = {};
+Zp = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -19432,8 +19483,8 @@ Up = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Wp = {};
-Wp = {
+var Qp = {};
+Qp = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -19441,8 +19492,8 @@ Wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Gp = {};
-Gp = {
+var $p = {};
+$p = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -19450,8 +19501,8 @@ Gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Kp = {};
-Kp = {
+var em = {};
+em = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -19459,8 +19510,8 @@ Kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var qp = {};
-qp = {
+var tm = {};
+tm = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -19468,8 +19519,8 @@ qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Jp = {};
-Jp = {
+var nm = {};
+nm = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -19477,8 +19528,8 @@ Jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Yp = {};
-Yp = {
+var rm = {};
+rm = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -19486,8 +19537,8 @@ Yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Xp = {};
-Xp = {
+var im = {};
+im = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -19495,8 +19546,8 @@ Xp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Zp = {};
-Zp = {
+var am = {};
+am = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -19504,8 +19555,8 @@ Zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Qp = {};
-Qp = {
+var om = {};
+om = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -19513,8 +19564,8 @@ Qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var $p = {};
-$p = {
+var sm = {};
+sm = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -19522,8 +19573,8 @@ $p = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var em = {};
-em = {
+var cm = {};
+cm = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -19531,8 +19582,8 @@ em = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var tm = {};
-tm = {
+var lm = {};
+lm = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -19540,8 +19591,8 @@ tm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var nm = {};
-nm = {
+var um = {};
+um = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -19549,8 +19600,8 @@ nm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var rm = {};
-rm = {
+var dm = {};
+dm = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -19558,8 +19609,8 @@ rm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var im = {};
-im = {
+var fm = {};
+fm = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -19567,8 +19618,8 @@ im = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var am = {};
-am = {
+var pm = {};
+pm = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -19576,8 +19627,8 @@ am = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var om = {};
-om = {
+var mm = {};
+mm = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -19585,8 +19636,8 @@ om = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var sm = {};
-sm = {
+var hm = {};
+hm = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19594,8 +19645,8 @@ sm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var cm = {};
-cm = {
+var gm = {};
+gm = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19603,8 +19654,8 @@ cm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var lm = {};
-lm = {
+var _m = {};
+_m = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19612,8 +19663,8 @@ lm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var um = {};
-um = {
+var vm = {};
+vm = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19621,8 +19672,8 @@ um = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var dm = {};
-dm = {
+var ym = {};
+ym = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19630,8 +19681,8 @@ dm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var fm = {};
-fm = {
+var bm = {};
+bm = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19639,8 +19690,8 @@ fm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var pm = {};
-pm = {
+var xm = {};
+xm = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19648,8 +19699,8 @@ pm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var mm = {};
-mm = {
+var Sm = {};
+Sm = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19657,8 +19708,8 @@ mm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var hm = {};
-hm = {
+var Cm = {};
+Cm = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19666,8 +19717,8 @@ hm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var gm = {};
-gm = {
+var wm = {};
+wm = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19675,8 +19726,8 @@ gm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var _m = {};
-_m = {
+var Tm = {};
+Tm = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19684,8 +19735,8 @@ _m = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var vm = {};
-vm = {
+var Em = {};
+Em = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19693,52 +19744,52 @@ vm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var ym = {};
-ym = {
- "ar-AE": zp,
- "bg-BG": Bp,
- "cs-CZ": Vp,
- "da-DK": Hp,
- "de-DE": Up,
- "el-GR": Wp,
- "en-US": Gp,
- "es-ES": Kp,
- "et-EE": qp,
- "fi-FI": Jp,
- "fr-FR": Yp,
- "he-IL": Xp,
- "hr-HR": Zp,
- "hu-HU": Qp,
- "it-IT": $p,
- "ja-JP": em,
- "ko-KR": tm,
- "lt-LT": nm,
- "lv-LV": rm,
- "nb-NO": im,
- "nl-NL": am,
- "pl-PL": om,
- "pt-BR": sm,
- "pt-PT": cm,
- "ro-RO": lm,
- "ru-RU": um,
- "sk-SK": dm,
- "sl-SI": fm,
- "sr-SP": pm,
- "sv-SE": mm,
- "tr-TR": hm,
- "uk-UA": gm,
- "zh-CN": _m,
- "zh-TW": vm
+var Dm = {};
+Dm = {
+ "ar-AE": qp,
+ "bg-BG": Jp,
+ "cs-CZ": Yp,
+ "da-DK": Xp,
+ "de-DE": Zp,
+ "el-GR": Qp,
+ "en-US": $p,
+ "es-ES": em,
+ "et-EE": tm,
+ "fi-FI": nm,
+ "fr-FR": rm,
+ "he-IL": im,
+ "hr-HR": am,
+ "hu-HU": om,
+ "it-IT": sm,
+ "ja-JP": cm,
+ "ko-KR": lm,
+ "lt-LT": um,
+ "lv-LV": dm,
+ "nb-NO": fm,
+ "nl-NL": pm,
+ "pl-PL": mm,
+ "pt-BR": hm,
+ "pt-PT": gm,
+ "ro-RO": _m,
+ "ru-RU": vm,
+ "sk-SK": ym,
+ "sl-SI": bm,
+ "sr-SP": xm,
+ "sv-SE": Sm,
+ "tr-TR": Cm,
+ "uk-UA": wm,
+ "zh-CN": Tm,
+ "zh-TW": Em
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var bm = /*#__PURE__*/ (0, x.createContext)({}), xm = /*#__PURE__*/ (0, x.createContext)(null), Sm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { render: n } = (0, x.useContext)(xm);
+var Om = /*#__PURE__*/ (0, x.createContext)({}), km = /*#__PURE__*/ (0, x.createContext)(null), Am = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { render: n } = (0, x.useContext)(km);
return /*#__PURE__*/ x.createElement(x.Fragment, null, n(e, t));
});
-function Cm(e, t) {
+function jm(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, x.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(Sm, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(Am, { target: e });
}, [
t?.target,
r,
@@ -19746,7 +19797,7 @@ function Cm(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function wm(e, t, n) {
+function Mm(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -19769,15 +19820,15 @@ function wm(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Tm = /*#__PURE__*/ (0, x.createContext)({}), Em = /*#__PURE__*/ (0, x.createContext)(null);
-function Dm(e) {
+var Nm = /*#__PURE__*/ (0, x.createContext)({}), Pm = /*#__PURE__*/ (0, x.createContext)(null);
+function Fm(e) {
let t = (0, x.useRef)({});
- return /*#__PURE__*/ x.createElement(Em.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ x.createElement(Pm.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Om = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), km = /*#__PURE__*/ (0, x.createContext)({});
-(class extends ut {
+var Im = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), Lm = /*#__PURE__*/ (0, x.createContext)({});
+(class extends ft {
static {
this.type = "separator";
}
@@ -19792,13 +19843,13 @@ var Om = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), km = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function Am(e) {
+function Rm(e) {
let t = x.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var jm = class {
+var zm = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -19842,20 +19893,20 @@ var jm = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Mm = class e extends Set {
+}, Bm = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Nm(e, t) {
+function Vm(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Pm(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Fo((0, x.useMemo)(() => Fm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => Fm(e.defaultSelectedKeys, new Mm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
+function Hm(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Ro((0, x.useMemo)(() => Um(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => Um(e.defaultSelectedKeys, new Bm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, x.useRef)(i);
return (0, x.useEffect)(() => {
@@ -19882,18 +19933,18 @@ function Pm(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Nm(e, d)) && f(e);
+ (r || !Vm(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function Fm(e, t) {
- return e ? e === "all" ? "all" : new Mm(e) : t;
+function Um(e, t) {
+ return e ? e === "all" ? "all" : new Bm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Im = class e {
+var Wm = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -19949,7 +20000,7 @@ var Im = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && tc(this.collection, n, e) < 0) && (e = n);
+ (!e || n && rc(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19957,7 +20008,7 @@ var Im = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && tc(this.collection, n, e) > 0) && (e = n);
+ (!e || n && rc(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19976,10 +20027,10 @@ var Im = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new Mm([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Bm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new Mm(e, r, t);
+ n = new Bm(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -19987,7 +20038,7 @@ var Im = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? tc(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? rc(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -20013,19 +20064,19 @@ var Im = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new Mm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Bm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new Mm([t], t, t) : new Mm();
+ let n = this.canSelectItem(t) ? new Bm([t], t, t) : new Bm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new Mm();
+ let t = new Bm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -20037,7 +20088,7 @@ var Im = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n($s(Qs(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(tc(ec(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -20048,7 +20099,7 @@ var Im = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Mm());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Bm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -20089,9 +20140,9 @@ var Im = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Lm = class {
+}, Gm = class {
build(e, t) {
- return this.context = t, Rm(() => this.iterateCollection(e));
+ return this.context = t, Km(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -20173,10 +20224,10 @@ var Im = class e {
...a,
key: l,
index: s,
- wrapper: zm(e.wrapper, a.wrapper)
+ wrapper: qm(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${Bm(t.type)}> in <${Bm(r?.type ?? "unknown parent type")}>. Only <${Bm(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${Jm(t.type)}> in <${Jm(r?.type ?? "unknown parent type")}>. Only <${Jm(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20198,7 +20249,7 @@ var Im = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Rm(function* () {
+ childNodes: Km(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20217,7 +20268,7 @@ var Im = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Rm(e) {
+function Km(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20225,18 +20276,18 @@ function Rm(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function zm(e, t) {
+function qm(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Bm(e) {
+function Jm(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function Vm(e, t, n) {
- let r = (0, x.useMemo)(() => new Lm(), []), { children: i, items: a, collection: o } = e;
+function Ym(e, t, n) {
+ let r = (0, x.useMemo)(() => new Gm(), []), { children: i, items: a, collection: o } = e;
return (0, x.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -20251,27 +20302,27 @@ function Vm(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function Hm(e) {
- let { filter: t, layoutDelegate: n } = e, r = Pm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Vm(e, (0, x.useCallback)((e) => t ? new jm(t(e)) : new jm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Im(a, r, { layoutDelegate: n }), [
+function Xm(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Hm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Ym(e, (0, x.useCallback)((e) => t ? new zm(t(e)) : new zm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Wm(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Wm(a, o), {
+ return Qm(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Um(e, t) {
+function Zm(e, t) {
let n = (0, x.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Wm(n, r), {
+ return Qm(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Wm(e, t) {
+function Qm(e, t) {
let n = (0, x.useRef)(null);
(0, x.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -20299,15 +20350,15 @@ function Wm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Gm(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = yi((e) => {
+function $m(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = xi((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- V(() => {
+ B(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: to(t?.current),
+ root: io(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -20323,42 +20374,42 @@ function Gm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Km = /*#__PURE__*/ (0, x.createContext)(null), qm = /*#__PURE__*/ (0, x.createContext)(null), Jm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, Km);
- let n = (0, x.useContext)(qm);
- return n ? /*#__PURE__*/ x.createElement(Xm, {
+var eh = /*#__PURE__*/ (0, x.createContext)(null), th = /*#__PURE__*/ (0, x.createContext)(null), nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, eh);
+ let n = (0, x.useContext)(th);
+ return n ? /*#__PURE__*/ x.createElement(ih, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ x.createElement(Xr, { content: /*#__PURE__*/ x.createElement(si, e) }, (n) => /*#__PURE__*/ x.createElement(Ym, {
+ }) : /*#__PURE__*/ x.createElement(Qr, { content: /*#__PURE__*/ x.createElement(li, e) }, (n) => /*#__PURE__*/ x.createElement(rh, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Ym({ props: e, listBoxRef: t, collection: n }) {
+function rh({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, x.useContext)(pp), i = Hm({
+ let { layoutDelegate: r } = (0, x.useContext)(xp), i = Xm({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ x.createElement(Xm, {
+ return /*#__PURE__*/ x.createElement(ih, {
state: i,
props: e,
listBoxRef: t
});
}
-function Xm({ state: e, props: t, listBoxRef: n }) {
- [t, n] = tp(t, n, sp);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Um(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Mi(), { disabledBehavior: p, disabledKeys: m } = l, h = oc({
+function ih({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = lp(t, n, hp);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Zm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pi(), { disabledBehavior: p, disabledKeys: m } = l, h = cc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(pp), b = (0, x.useMemo)(() => t.keyboardDelegate || new rs({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(xp), b = (0, x.useMemo)(() => t.keyboardDelegate || new as({
collection: c,
collator: h,
ref: n,
@@ -20379,7 +20430,7 @@ function Xm({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: S } = Ac({
+ ]), { listBoxProps: S } = Mc({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -20411,7 +20462,7 @@ function Xm({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: ee } = hc(), j = s.collection.size === 0, te = {
+ let { focusProps: k, isFocused: A, isFocusVisible: ee } = _c(), j = s.collection.size === 0, te = {
isDropTarget: E,
isEmpty: j,
isFocused: A,
@@ -20419,7 +20470,7 @@ function Xm({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, M = ep({
+ }, M = sp({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -20429,9 +20480,9 @@ function Xm({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(te)));
- let N = U(t, { global: !0 });
- return /*#__PURE__*/ x.createElement(Ea, null, /*#__PURE__*/ x.createElement(op.div, {
- ...H(N, M, S, k, T?.collectionProps),
+ let N = H(t, { global: !0 });
+ return /*#__PURE__*/ x.createElement(ka, null, /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(N, M, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -20441,60 +20492,60 @@ function Xm({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": ee || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ x.createElement($f, { values: [
- [Km, t],
- [qm, s],
- [bm, {
+ }, /*#__PURE__*/ x.createElement(op, { values: [
+ [eh, t],
+ [th, s],
+ [Om, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [km, { elementType: "div" }],
- [xm, { render: $m }],
- [lp, {
+ [Lm, { elementType: "div" }],
+ [km, { render: sh }],
+ [_p, {
name: "ListBoxSection",
- render: Zm
+ render: ah
}]
- ] }, /*#__PURE__*/ x.createElement(Dm, null, /*#__PURE__*/ x.createElement(y, {
+ ] }, /*#__PURE__*/ x.createElement(Fm, null, /*#__PURE__*/ x.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: wm(l, r, w),
- renderDropIndicator: Cm(r, w)
+ persistedKeys: Mm(l, r, w),
+ renderDropIndicator: jm(r, w)
}))), ne, D));
}
-function Zm(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, x.useContext)(qm), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(bm), { CollectionBranch: s } = (0, x.useContext)(pp), [c, l] = np(), { headingProps: u, groupProps: d } = jc({
+function ah(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, x.useContext)(th), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(Om), { CollectionBranch: s } = (0, x.useContext)(xp), [c, l] = up(), { headingProps: u, groupProps: d } = Nc({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = ep({
+ }), f = sp({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = U(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ x.createElement(op.section, {
- ...H(p, f, d),
+ }), p = H(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ x.createElement(mp.section, {
+ ...V(p, f, d),
ref: t
- }, /*#__PURE__*/ x.createElement(Tm.Provider, { value: {
+ }, /*#__PURE__*/ x.createElement(Nm.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ x.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Cm(a, o)
+ renderDropIndicator: jm(a, o)
})));
}
-var Qm = /*#__PURE__*/ ii(pt, function(e, t, n) {
- let r = Nr(t), i = (0, x.useContext)(qm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(bm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Mc({
+var oh = /*#__PURE__*/ oi(ht, function(e, t, n) {
+ let r = Fr(t), i = (0, x.useContext)(th), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(Om), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Pc({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = Sc({
+ }, i, r), { hoverProps: p, isHovered: m } = wc({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Mr(e), { focusProps: g } = vr(e), _ = null;
+ }), { keyboardProps: h } = Pr(e), { focusProps: g } = br(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -20505,7 +20556,7 @@ var Qm = /*#__PURE__*/ ii(pt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = ep({
+ let y = o && o.isDragging(n.key), b = sp({
...e,
id: void 0,
children: e.children,
@@ -20523,9 +20574,9 @@ var Qm = /*#__PURE__*/ ii(pt, function(e, t, n) {
(0, x.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? op.a : op.div, C = U(e, { global: !0 });
+ let S = e.href ? mp.a : mp.div, C = H(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ x.createElement(S, {
- ...H(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...V(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -20537,29 +20588,29 @@ var Qm = /*#__PURE__*/ ii(pt, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ x.createElement($f, { values: [[wp, { slots: {
- [Qf]: u,
+ }, /*#__PURE__*/ x.createElement(op, { values: [[Mp, { slots: {
+ [ap]: u,
label: u,
description: d
- } }], [Om, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Im, { isSelected: f.isSelected }]] }, b.children));
});
-function $m(e, t) {
- t = Nr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(bm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ x.createElement(th, {
+function sh(e, t) {
+ t = Fr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(Om), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ x.createElement(lh, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function eh(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ep({
+function ch(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = sp({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(op.div, {
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(mp.div, {
...n,
...a,
role: "option",
@@ -20567,10 +20618,10 @@ function eh(e, t) {
"data-drop-target": r || void 0
}));
}
-var th = /*#__PURE__*/ (0, x.forwardRef)(eh);
-ii(ft, function(e, t, n) {
- let r = (0, x.useContext)(qm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
- Gm((0, x.useMemo)(() => ({
+var lh = /*#__PURE__*/ (0, x.forwardRef)(ch);
+oi(mt, function(e, t, n) {
+ let r = (0, x.useContext)(th), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
+ $m((0, x.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -20580,7 +20631,7 @@ ii(ft, function(e, t, n) {
o,
r?.collection
]), c);
- let l = ep({
+ let l = sp({
...s,
id: void 0,
children: n.rendered,
@@ -20593,7 +20644,7 @@ ii(ft, function(e, t, n) {
width: 0,
height: 0
},
- inert: Am(!0)
+ inert: Rm(!0)
}, /*#__PURE__*/ x.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -20602,8 +20653,8 @@ ii(ft, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(op.div, {
- ...H(U(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(H(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -20611,11 +20662,11 @@ ii(ft, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var nh = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
+var uh = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function rh(e) {
- let [t, n] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
+function dh(e) {
+ let [t, n] = Ro(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -20634,13 +20685,13 @@ function rh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function ih(e, t = !0) {
+function fh(e, t = !0) {
let [n, r] = (0, x.useState)(!0), i = n && t;
- return V(() => {
+ return B(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), oh(e, i, (0, x.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), mh(e, i, (0, x.useCallback)(() => r(!1), [])), i;
}
-function ah(e, t) {
+function ph(e, t) {
let [n, r] = (0, x.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -20650,12 +20701,12 @@ function ah(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return oh(e, i, (0, x.useCallback)(() => {
+ return mh(e, i, (0, x.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function oh(e, t, n) {
- V(() => {
+function mh(e, t, n) {
+ B(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -20668,7 +20719,7 @@ function oh(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Kr.flushSync)(() => {
+ r || (0, Jr.flushSync)(() => {
n();
});
}), () => {
@@ -20683,9 +20734,9 @@ function oh(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.createContext)(null), lh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, sh);
- let n = (0, x.useContext)(fh), r = rh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ah(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vr(), { direction: c } = Mi();
+var hh = /*#__PURE__*/ (0, x.createContext)(null), gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, hh);
+ let n = (0, x.useContext)(bh), r = dh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ph(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Ur(), { direction: c } = Pi();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20696,7 +20747,7 @@ var sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.crea
defaultChildren: null
})), /*#__PURE__*/ x.createElement(x.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement(uh, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement(vh, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20705,13 +20756,13 @@ var sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.crea
dir: c
});
});
-function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(ch), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = tu({
+function vh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(gh), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ru({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = ih(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ep({
+ }, e), m = i.popoverRef, h = fh(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = sp({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20721,10 +20772,10 @@ function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, x.useState)(i.trigger === "PreviewTrigger");
- V(() => {
+ B(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, x.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Jn() !== "pointer") && m.current && !Lt(m.current) && ir(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Xn() !== "pointer") && m.current && !zt(m.current) && or(m.current);
}, [
y,
m,
@@ -20737,7 +20788,7 @@ function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}, [_.children, r]), [C, w] = (0, x.useState)(null), T = (0, x.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- V(T, [T]), Pc({
+ B(T, [T]), Ic({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -20746,8 +20797,8 @@ function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ x.createElement(op.div, {
- ...H(U(i, { global: !0 }), l),
+ }, D = /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(H(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -20762,17 +20813,17 @@ function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(nh.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ x.createElement(yl, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(uh.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ x.createElement(fc, {
+ } }, S), /*#__PURE__*/ x.createElement(yl, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ x.createElement(mc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ x.createElement(fc, {
+ }, D) : /*#__PURE__*/ x.createElement(mc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -20787,87 +20838,87 @@ function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}), /*#__PURE__*/ x.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ x.createElement(ch.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ x.createElement(gh.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var dh = /*#__PURE__*/ (0, x.createContext)(null), fh = /*#__PURE__*/ (0, x.createContext)(null), ph = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var yh = /*#__PURE__*/ (0, x.createContext)(null), bh = /*#__PURE__*/ (0, x.createContext)(null), xh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = tp(e, t, dh);
- let { dialogProps: r, titleProps: i, contentProps: a } = mc({
+ [e, t] = lp(e, t, yh);
+ let { dialogProps: r, titleProps: i, contentProps: a } = gc({
...e,
"aria-labelledby": n
- }, t), o = (0, x.useContext)(fh);
+ }, t), o = (0, x.useContext)(bh);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = ep({
+ let s = sp({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(op.section, {
- ...H(c, s, r),
+ }), c = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(mp.section, {
+ ...V(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [
- [Sp, { slots: {
- [Qf]: {},
+ }, /*#__PURE__*/ x.createElement(op, { values: [
+ [Ap, { slots: {
+ [ap]: {},
title: {
...i,
level: 2
}
} }],
- [wp, { slots: {
- [Qf]: {},
+ [Mp, { slots: {
+ [ap]: {},
description: a
} }],
- [vp, { slots: {
- [Qf]: {},
+ [Ep, { slots: {
+ [ap]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), mh = typeof document < "u" && window.visualViewport;
-function hh() {
- let e = An(), [t, n] = (0, x.useState)(() => e ? {
+}), Sh = typeof document < "u" && window.visualViewport;
+function Ch() {
+ let e = Mn(), [t, n] = (0, x.useState)(() => e ? {
width: 0,
height: 0
- } : gh());
+ } : wh());
return (0, x.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- mh && mh.scale > 1 || e(gh());
+ Sh && Sh.scale > 1 || e(wh());
}, r, i = (t) => {
- mh && mh.scale > 1 || _i(z(t)) && (r = requestAnimationFrame(() => {
- let t = Ft();
- (!t || !_i(t)) && e({
+ Sh && Sh.scale > 1 || yi(R(t)) && (r = requestAnimationFrame(() => {
+ let t = Lt();
+ (!t || !yi(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(gh()), an() && sn() && window.addEventListener("blur", i, !0), mh ? mh.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), an() && sn() && window.removeEventListener("blur", i, !0), mh ? mh.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(wh()), sn() && ln() && window.addEventListener("blur", i, !0), Sh ? Sh.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), sn() && ln() && window.removeEventListener("blur", i, !0), Sh ? Sh.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function gh() {
+function wh() {
return {
- width: mh ? Math.min(mh.width * mh.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: mh ? mh.height * mh.scale : document.documentElement.clientHeight
+ width: Sh ? Math.min(Sh.width * Sh.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Sh ? Sh.height * Sh.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ (0, x.createContext)(null), yh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- if ((0, x.useContext)(vh)) return /*#__PURE__*/ x.createElement(Ch, {
+var Th = /*#__PURE__*/ (0, x.createContext)(null), Eh = /*#__PURE__*/ (0, x.createContext)(null), Dh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ if ((0, x.useContext)(Eh)) return /*#__PURE__*/ x.createElement(jh, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ x.createElement(xh, {
+ return /*#__PURE__*/ x.createElement(kh, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -20877,15 +20928,15 @@ var _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ (0, x.crea
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ x.createElement(Ch, {
+ }, /*#__PURE__*/ x.createElement(jh, {
...f,
modalRef: t
}, s));
});
-function bh(e, t) {
- [e, t] = tp(e, t, _h);
- let n = (0, x.useContext)(fh), r = rh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nr(t), o = (0, x.useRef)(null), s = ah(a, i.isOpen), c = ah(o, i.isOpen), l = s || c || e.isExiting || !1, u = An();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ x.createElement(Sh, {
+function Oh(e, t) {
+ [e, t] = lp(e, t, Th);
+ let n = (0, x.useContext)(bh), r = dh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Fr(t), o = (0, x.useRef)(null), s = ph(a, i.isOpen), c = ph(o, i.isOpen), l = s || c || e.isExiting || !1, u = Mn();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ x.createElement(Ah, {
...e,
state: i,
isExiting: l,
@@ -20893,9 +20944,9 @@ function bh(e, t) {
modalRef: o
});
}
-var xh = /*#__PURE__*/ (0, x.forwardRef)(bh);
-function Sh({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ol(t, r, n), o = ih(t.overlayRef) || t.isEntering || !1, s = ep({
+var kh = /*#__PURE__*/ (0, x.forwardRef)(Oh);
+function Ah({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Al(t, r, n), o = fh(t.overlayRef) || t.isEntering || !1, s = sp({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -20903,9 +20954,9 @@ function Sh({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = hh(), l, u;
+ }), c = Ch(), l, u;
if (typeof document < "u") {
- let e = eo(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = ro(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -20915,25 +20966,25 @@ function Sh({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ x.createElement(fc, {
+ return /*#__PURE__*/ x.createElement(mc, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ x.createElement(op.div, {
- ...H(U(t, { global: !0 }), a),
+ }, /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(H(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [[vh, {
+ }, /*#__PURE__*/ x.createElement(op, { values: [[Eh, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [fh, r]] }, s.children)));
+ }], [bh, r]] }, s.children)));
}
-function Ch(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, x.useContext)(vh), a = (0, x.useContext)(fh), o = Nr((0, x.useMemo)(() => mr(e.modalRef, n), [e.modalRef, n])), s = ih(o), c = ep({
+function jh(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, x.useContext)(Eh), a = (0, x.useContext)(bh), o = Fr((0, x.useMemo)(() => gr(e.modalRef, n), [e.modalRef, n])), s = fh(o), c = sp({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -20942,19 +20993,19 @@ function Ch(e) {
state: a
}
});
- return /*#__PURE__*/ x.createElement(op.div, {
- ...H(U(e, { global: !0 }), t),
+ return /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(H(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ x.createElement(_l, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ x.createElement(yl, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var wh = Math.round(Math.random() * 1e10), Th = 0;
-function Eh(e) {
- let t = (0, x.useMemo)(() => e.name || `radio-group-${wh}-${++Th}`, [e.name]), [n, r] = Fo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = So({
+var Mh = Math.round(Math.random() * 1e10), Nh = 0;
+function Ph(e) {
+ let t = (0, x.useMemo)(() => e.name || `radio-group-${Mh}-${++Nh}`, [e.name]), [n, r] = Ro(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = To({
...e,
value: n
}), c = (t) => {
@@ -20977,16 +21028,16 @@ function Eh(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.createContext)(null), kh = /*#__PURE__*/ (0, x.createContext)(null), Ah = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, Dh);
- let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = Eh({
+var Fh = /*#__PURE__*/ (0, x.createContext)(null), Ih = /*#__PURE__*/ (0, x.createContext)(null), Lh = /*#__PURE__*/ (0, x.createContext)(null), Rh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, Fh);
+ let { validationBehavior: n } = cp(Fp) || {}, r = e.validationBehavior ?? n ?? "native", i = Ph({
...e,
validationBehavior: r
- }), [a, o] = np(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = iu({
+ }), [a, o] = up(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ou({
...e,
label: o,
validationBehavior: r
- }, i), f = ep({
+ }, i), f = sp({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -20997,9 +21048,9 @@ var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(op.div, {
- ...H(p, f, s),
+ }), p = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -21007,39 +21058,39 @@ var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [
- [kh, i],
- [hp, {
+ }, /*#__PURE__*/ x.createElement(op, { values: [
+ [Lh, i],
+ [Cp, {
...c,
ref: a,
elementType: "span"
}],
- [wp, { slots: {
+ [Mp, { slots: {
description: l,
errorMessage: u
} }],
- [Ep, d]
- ] }, /*#__PURE__*/ x.createElement(Dm, null, f.children)));
-}), jh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [Pp, d]
+ ] }, /*#__PURE__*/ x.createElement(Fm, null, f.children)));
+}), zh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = tp(r, t, Oh);
- let i = x.useContext(kh), a = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ru({
- ...rp(e),
+ [e, t] = lp(r, t, Ih);
+ let i = x.useContext(Lh), a = Fr((0, x.useMemo)(() => gr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = au({
+ ...dp(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ x.createElement(Mh.Provider, { value: {
+ return /*#__PURE__*/ x.createElement(Bh.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ x.createElement(Nh, {
+ } }, /*#__PURE__*/ x.createElement(Vh, {
...e,
ref: t
}));
-}), Mh = /*#__PURE__*/ (0, x.createContext)(null), Nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(Mh), l = x.useContext(kh), { isFocused: u, isFocusVisible: d, focusProps: f } = hc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sc({
+}), Bh = /*#__PURE__*/ (0, x.createContext)(null), Vh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(Bh), l = x.useContext(Lh), { isFocused: u, isFocusVisible: d, focusProps: f } = _c(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = wc({
...e,
isDisabled: p
- }), g = ep({
+ }), g = sp({
...e,
defaultClassName: s,
values: {
@@ -21053,9 +21104,9 @@ var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = U(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(op.label, {
- ...H(_, n, m, g),
+ }), _ = H(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(mp.label, {
+ ...V(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -21066,19 +21117,19 @@ var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, f),
+ }, /*#__PURE__*/ x.createElement(Uo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Ph(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rh(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Hh(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = dh(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Fo((0, x.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Ro((0, x.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -21090,12 +21141,12 @@ function Ph(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Hm({
+ }, d = Xm({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, x.useMemo)(() => Fh(l), [l]),
+ selectedKeys: (0, x.useMemo)(() => Uh(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -21105,7 +21156,7 @@ function Ph(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, x.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = So({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, x.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = To({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, x.useState)(!1), [_] = (0, x.useState)(l);
@@ -21132,16 +21183,16 @@ function Ph(e) {
setFocused: g
};
}
-function Fh(e) {
+function Uh(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function Ih(e) {
+function Wh(e) {
return e && e.__esModule ? e.default : e;
}
-var Lh = /*#__PURE__*/ (0, x.createContext)(null), Rh = /*#__PURE__*/ (0, x.createContext)(null), zh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, Lh);
+var Gh = /*#__PURE__*/ (0, x.createContext)(null), Kh = /*#__PURE__*/ (0, x.createContext)(null), qh = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Gh);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, x.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -21156,24 +21207,24 @@ var Lh = /*#__PURE__*/ (0, x.createContext)(null), Rh = /*#__PURE__*/ (0, x.crea
i,
a
]);
- return /*#__PURE__*/ x.createElement(Xr, { content: o }, (n) => /*#__PURE__*/ x.createElement(Vh, {
+ return /*#__PURE__*/ x.createElement(Qr, { content: o }, (n) => /*#__PURE__*/ x.createElement(Yh, {
props: e,
collection: n,
selectRef: t
}));
-}), Bh = [
- hp,
- vp,
- wp
+}), Jh = [
+ Cp,
+ Ep,
+ Mp
];
-function Vh({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = $(Dp) || {}, i = e.validationBehavior ?? r ?? "native", a = Ph({
+function Yh({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = cp(Fp) || {}, i = e.validationBehavior ?? r ?? "native", a = Hh({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = hc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = np(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = ou({
- ...rp(e),
+ }), { isFocusVisible: o, focusProps: s } = _c({ within: !0 }), c = (0, x.useRef)(null), [l, u] = up(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = cu({
+ ...dp(e),
label: u,
validationBehavior: i
}, a, c), y = (0, x.useMemo)(() => ({
@@ -21190,49 +21241,49 @@ function Vh({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = ep({
+ ]), b = sp({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), S = U(e, { global: !0 });
+ }), S = H(e, { global: !0 });
delete S.id;
let C = (0, x.useRef)(null);
- return /*#__PURE__*/ x.createElement($f, { values: [
- [Lh, e],
- [Rh, a],
- [Hh, p],
- [hp, {
+ return /*#__PURE__*/ x.createElement(op, { values: [
+ [Gh, e],
+ [Kh, a],
+ [Xh, p],
+ [Cp, {
...d,
ref: l,
elementType: "span"
}],
- [vp, {
+ [Ep, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [fh, a],
- [sh, {
+ [bh, a],
+ [hh, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Bh
+ clearContexts: Jh
}],
- [Km, {
+ [eh, {
...m,
ref: C
}],
- [qm, a],
- [wp, { slots: {
+ [th, a],
+ [Mp, { slots: {
description: h,
errorMessage: g
} }],
- [Ep, v]
- ] }, /*#__PURE__*/ x.createElement(op.div, {
- ...H(S, b, s),
+ [Pp, v]
+ ] }, /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(S, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -21241,14 +21292,14 @@ function Vh({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ x.createElement(cu, {
+ }, b.children, /*#__PURE__*/ x.createElement(uu, {
..._,
autoComplete: e.autoComplete
})));
}
-var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, Hh);
- let n = (0, x.useContext)(Rh), { placeholder: r } = $(Lh), i = n.selectedItems.map((e) => {
+var Xh = /*#__PURE__*/ (0, x.createContext)(null), Zh = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, Xh);
+ let n = (0, x.useContext)(Kh), { placeholder: r } = cp(Gh), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -21260,7 +21311,7 @@ var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = gc(), o = (0, x.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, x.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = vc(), o = (0, x.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, x.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -21275,7 +21326,7 @@ var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(functio
a,
o,
i
- ]), u = Ki(Ih(ym), "react-aria-components"), d = ep({
+ ]), u = Ji(Wh(Dm), "react-aria-components"), d = sp({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -21286,33 +21337,33 @@ var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(functio
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(op.span, {
+ }), f = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(mp.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ x.createElement(wp.Provider, { value: void 0 }, d.children));
-}), Wh = /*#__PURE__*/ (0, x.createContext)(null), Gh = /*#__PURE__*/ (0, x.createContext)(null), Kh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ x.createElement(Mp.Provider, { value: void 0 }, d.children));
+}), Qh = /*#__PURE__*/ (0, x.createContext)(null), $h = /*#__PURE__*/ (0, x.createContext)(null), eg = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = tp(r, t, Wh);
- let i = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Io(e), o = lu({
- ...rp(e),
+ [e, t] = lp(r, t, Qh);
+ let i = Fr((0, x.useMemo)(() => gr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = W(e), o = du({
+ ...dp(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ x.createElement($f, { values: [[Gh, a], [qh, {
+ return /*#__PURE__*/ x.createElement(op, { values: [[$h, a], [tg, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ x.createElement(Jh, {
+ }]] }, /*#__PURE__*/ x.createElement(ng, {
...e,
ref: t
}));
-}), qh = /*#__PURE__*/ (0, x.createContext)(null), Jh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, x.useContext)(qh), { isFocused: f, isFocusVisible: p, focusProps: m } = hc(), h = a || o, g = (0, x.useContext)(Gh), { hoverProps: _, isHovered: v } = Sc({
+}), tg = /*#__PURE__*/ (0, x.createContext)(null), ng = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, x.useContext)(tg), { isFocused: f, isFocusVisible: p, focusProps: m } = _c(), h = a || o, g = (0, x.useContext)($h), { hoverProps: _, isHovered: v } = wc({
...e,
isDisabled: h
- }), y = ep({
+ }), y = sp({
...e,
defaultClassName: u,
values: {
@@ -21327,9 +21378,9 @@ var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(functio
isRequired: d || !1,
state: g
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(op.label, {
- ...H(b, n, _, y),
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(mp.label, {
+ ...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -21341,15 +21392,15 @@ var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(functio
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, m),
+ }, /*#__PURE__*/ x.createElement(Uo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, m),
ref: l
})), y.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Yh(e) {
- let [t, n] = Fo(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, x.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Hm({
+function rg(e) {
+ let [t, n] = Ro(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, x.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Xm({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -21372,24 +21423,24 @@ function Yh(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Xh(e) {
- let t = Yh({
+function ig(e) {
+ let t = rg({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Zh(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? ag(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, x.useRef)(i);
return (0, x.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Zh(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = ag(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function Zh(e, t) {
+function ag(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -21399,24 +21450,24 @@ function Zh(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Qh = /*#__PURE__*/ (0, x.createContext)(null), $h = /*#__PURE__*/ (0, x.createContext)(null), eg = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = tp(e, t, Qh);
+var og = /*#__PURE__*/ (0, x.createContext)(null), sg = /*#__PURE__*/ (0, x.createContext)(null), cg = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = lp(e, t, og);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, x.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ x.createElement(Xr, { content: n }, (n) => /*#__PURE__*/ x.createElement(tg, {
+ }) : n, [n, r]), /*#__PURE__*/ x.createElement(Qr, { content: n }, (n) => /*#__PURE__*/ x.createElement(lg, {
props: e,
collection: n,
tabsRef: t
}));
});
-function tg({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Xh({
+function lg({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = ig({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = hc({ within: !0 }), c = (0, x.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = _c({ within: !0 }), c = (0, x.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -21424,33 +21475,33 @@ function tg({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = ep({
+ ]), l = sp({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(op.div, {
- ...H(u, l, a),
+ }), u = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [[Qh, e], [$h, i]] }, l.children));
+ }, /*#__PURE__*/ x.createElement(op, { values: [[og, e], [sg, i]] }, l.children));
}
-var ng = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- return (0, x.useContext)($h) ? /*#__PURE__*/ x.createElement(rg, {
+var ug = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ return (0, x.useContext)(sg) ? /*#__PURE__*/ x.createElement(dg, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ x.createElement(si, e);
+ }) : /*#__PURE__*/ x.createElement(li, e);
});
-function rg({ props: e, forwardedRef: t }) {
- let n = (0, x.useContext)($h), { CollectionRoot: r } = (0, x.useContext)(pp), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = $(Qh), o = Nr(t), { tabListProps: s } = mu({
+function dg({ props: e, forwardedRef: t }) {
+ let n = (0, x.useContext)(sg), { CollectionRoot: r } = (0, x.useContext)(xp), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = cp(og), o = Fr(t), { tabListProps: s } = gu({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = ep({
+ }, n, o), c = sp({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -21458,30 +21509,30 @@ function rg({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = U(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ x.createElement(op.div, {
- ...H(l, c, s),
+ }), l = H(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ x.createElement(mp.div, {
+ ...V(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ x.createElement(Dm, null, /*#__PURE__*/ x.createElement(r, {
+ }, /*#__PURE__*/ x.createElement(Fm, null, /*#__PURE__*/ x.createElement(r, {
collection: n.collection,
- persistedKeys: mp(n.selectionManager.focusedKey)
+ persistedKeys: Sp(n.selectionManager.focusedKey)
})));
}
-var ig = /*#__PURE__*/ ii(class extends ut {
+var fg = /*#__PURE__*/ oi(class extends ft {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, x.useContext)($h), i = Nr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = fu({
+ let r = (0, x.useContext)(sg), i = Fr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = mu({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = hc(), { hoverProps: f, isHovered: p } = Sc({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = _c(), { hoverProps: f, isHovered: p } = wc({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = ep({
+ }), m = sp({
...e,
id: void 0,
children: n.rendered,
@@ -21494,9 +21545,9 @@ var ig = /*#__PURE__*/ ii(class extends ut {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? op.a : op.div, g = U(e, { global: !0 });
+ }), h = n.props.href ? mp.a : mp.div, g = H(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ x.createElement(h, {
- ...H(g, m, a, l, f),
+ ...V(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -21504,58 +21555,58 @@ var ig = /*#__PURE__*/ ii(class extends ut {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ x.createElement(Om.Provider, { value: { isSelected: o } }, m.children));
-}), ag = /*#__PURE__*/ Br(function(e, t) {
- let n = (0, x.useContext)($h), r = Nr(t), i = n.selectedKey === e.id, [a, o] = (0, x.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ x.createElement(Im.Provider, { value: { isSelected: o } }, m.children));
+}), pg = /*#__PURE__*/ Hr(function(e, t) {
+ let n = (0, x.useContext)(sg), r = Fr(t), i = n.selectedKey === e.id, [a, o] = (0, x.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = ah(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ x.createElement(og, {
+ let s = ph(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ x.createElement(mg, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function og(e) {
- let t = (0, x.useContext)($h), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = hu(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = hc(), d = t.selectedKey === e.id, f = ih(r) && !i, p = ep({
+function mg(e) {
+ let t = (0, x.useContext)(sg), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = _u(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = _c(), d = t.selectedKey === e.id, f = fh(r) && !i, p = sp({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: Am(!d),
+ isInert: Rm(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = U(o, { global: !0 });
+ }), m = H(o, { global: !0 });
delete m.id;
- let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ x.createElement(op.div, {
+ let h = d ? V(m, s, c, p) : V(m, p);
+ return /*#__PURE__*/ x.createElement(mp.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: Am(!d || e.inert),
+ inert: Rm(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [[Qh, null], [$h, null]] }, /*#__PURE__*/ x.createElement(pp.Provider, { value: up }, p.children)));
+ }, /*#__PURE__*/ x.createElement(op, { values: [[og, null], [sg, null]] }, /*#__PURE__*/ x.createElement(xp.Provider, { value: vp }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var sg = /*#__PURE__*/ (0, x.createContext)({}), cg = /*#__PURE__*/ (0, x.createContext)(null), lg = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = tp(e, t, cg);
- let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
- [e, i] = tp(e, i, cp);
- let [a, o] = np(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Vo({
- ...rp(e),
+var hg = /*#__PURE__*/ (0, x.createContext)({}), gg = /*#__PURE__*/ (0, x.createContext)(null), _g = /*#__PURE__*/ Hr(function(e, t) {
+ [e, t] = lp(e, t, gg);
+ let { validationBehavior: n } = cp(Fp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
+ [e, i] = lp(e, i, gp);
+ let [a, o] = up(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Wo({
+ ...dp(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, x.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = ep({
+ }, [i]), h = sp({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -21564,8 +21615,8 @@ var sg = /*#__PURE__*/ (0, x.createContext)({}), cg = /*#__PURE__*/ (0, x.create
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = U(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ x.createElement(op.div, {
+ }), g = H(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ x.createElement(mp.div, {
...g,
...h,
ref: t,
@@ -21574,31 +21625,31 @@ var sg = /*#__PURE__*/ (0, x.createContext)({}), cg = /*#__PURE__*/ (0, x.create
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ x.createElement($f, { values: [
- [hp, {
+ }, /*#__PURE__*/ x.createElement(op, { values: [
+ [Cp, {
...l,
ref: a
}],
- [Ip, {
+ [Wp, {
...u,
ref: m
}],
- [sg, {
+ [hg, {
...u,
ref: m
}],
- [Pp, {
+ [Hp, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [wp, { slots: {
+ [Mp, { slots: {
description: d,
errorMessage: f
} }],
- [Ep, p]
+ [Pp, p]
] }, h.children));
-}), ug = _f({
+}), vg = wf({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -21653,23 +21704,23 @@ var sg = /*#__PURE__*/ (0, x.createContext)({}), cg = /*#__PURE__*/ (0, x.create
].join(" ")
}
});
-function dg({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+function $({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
return /* @__PURE__ */ (0, S.jsxs)("button", {
ref: c,
type: s,
- className: gf(ug.base, ug.size[t], ug.variant[e], n && ug.iconOnlySize[t], o),
+ className: Z(vg.base, vg.size[t], vg.variant[e], n && vg.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: ug.icon[t],
+ className: vg.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: ug.label[t],
+ className: vg.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, S.jsx)(i, {
- className: ug.icon[t],
+ className: vg.icon[t],
"aria-hidden": !0
}) : null
]
@@ -21677,7 +21728,7 @@ function dg({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var fg = _f({
+var yg = wf({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -21698,25 +21749,25 @@ var fg = _f({
small: "size-4 shrink-0"
}
});
-function pg({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function bg({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, S.jsx)("button", {
ref: i,
type: r,
- className: gf(fg.base, fg.size[t], n),
+ className: Z(yg.base, yg.size[t], n),
...a,
children: /* @__PURE__ */ (0, S.jsx)(e, {
- className: fg.icon[t],
+ className: yg.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function mg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsxs)(gp, {
+function xg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsxs)(wp, {
"data-label": "true",
...a,
- className: gf("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Z("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, S.jsx)("span", {
@@ -21724,7 +21775,7 @@ function mg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, S.jsx)(Mu, {
+ n && /* @__PURE__ */ (0, S.jsx)(Iu, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -21733,33 +21784,33 @@ function mg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function hg({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, S.jsx)(Tp, {
+function Sg({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, S.jsx)(Np, {
slot: e ? "errorMessage" : "description",
...n,
- className: gf("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Z("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var gg = (0, x.createContext)({});
-function _g({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(gg.Provider, {
+var Cg = (0, x.createContext)({});
+function wg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Cg.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, S.jsx)(lg, {
+ children: /* @__PURE__ */ (0, S.jsx)(_g, {
...a,
"data-input-size": e,
- className: gf("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Z("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-_g.displayName = "TextField";
-var vg = _f({
+wg.displayName = "TextField";
+var Tg = wf({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -21788,44 +21839,44 @@ var vg = _f({
].join(" "),
icon: "size-5 shrink-0"
});
-function yg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, x.useContext)(gg), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, S.jsx)(Fp, {
+function Eg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, x.useContext)(Cg), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, S.jsx)(Up, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gf(vg.field, d ? vg.fieldWithAddonSize[u] : vg.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Z(Tg.field, d ? Tg.fieldWithAddonSize[u] : Tg.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, S.jsxs)("div", {
- className: vg.content,
+ className: Tg.content,
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
- className: vg.leftSection,
+ className: Tg.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, S.jsx)(t, {
- className: vg.icon,
+ className: Tg.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, S.jsx)(Rp, {
+ }) : null, /* @__PURE__ */ (0, S.jsx)(Kp, {
ref: o,
...c,
- className: gf(vg.input, l.inputClassName, a)
+ className: Z(Tg.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: vg.icon,
+ className: Tg.icon,
"aria-hidden": !0
}) : null]
})
});
}
-yg.displayName = "InputBase";
-function bg({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, S.jsx)(_g, {
+Eg.displayName = "InputBase";
+function Dg({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, S.jsx)(wg, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- e && /* @__PURE__ */ (0, S.jsx)(mg, {
+ e && /* @__PURE__ */ (0, S.jsx)(xg, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, S.jsx)(yg, {
+ /* @__PURE__ */ (0, S.jsx)(Eg, {
ref: c,
groupRef: l,
placeholder: r,
@@ -21834,17 +21885,17 @@ function bg({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, S.jsx)(hg, {
+ t && /* @__PURE__ */ (0, S.jsx)(Sg, {
isInvalid: d,
children: t
})
] })
});
}
-bg.displayName = "Input";
+Dg.displayName = "Input";
//#endregion
//#region src/react/settings/use-action.ts
-function xg(e = "") {
+function Og(e = "") {
let t = (0, x.useRef)(null), [n, r] = (0, x.useState)(""), [i, a] = (0, x.useState)(e);
(0, x.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -21856,7 +21907,7 @@ function xg(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(Sf(e));
+ o ? o(e) : a(kf(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -21868,7 +21919,7 @@ function xg(e = "") {
setError: a
};
}
-function Sg(e) {
+function kg(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -21876,62 +21927,62 @@ function Sg(e) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Cg = "/api/avatar-choices", wg = "/api/avatar-pick", Tg = "/avatar-choice", Eg = (e, t) => [
+var Ag = "/api/avatar-choices", jg = "/api/avatar-pick", Mg = "/avatar-choice", Ng = (e, t) => [
"avatar-choices",
e,
t
-], Dg = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Og = (e, t, n) => `${Tg}${Dg(e, t)}&ref=${encodeURIComponent(n)}`, kg = (e, t, n) => Cf(Cg + Dg(e, t), n);
-async function Ag(e, t, n) {
+], Pg = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Fg = (e, t, n) => `${Mg}${Pg(e, t)}&ref=${encodeURIComponent(n)}`, Ig = (e, t, n) => Af(Ag + Pg(e, t), n);
+async function Lg(e, t, n) {
if (!("file" in n)) {
- await wf(wg, {
+ await jf(jg, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${wg}${Dg(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${jg}${Pg(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new bf(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Df(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function jg(e, t) {
+function Rg(e, t) {
if (!t) return "正在找可用的图…";
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var Mg = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), Ng = {
+var zg = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), Bg = {
gfriends: "图库",
history: "用过的"
-}, Pg = (e) => `${Ng[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
+}, Vg = (e) => `${Bg[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
//#endregion
//#region src/react/avatar-picker/avatar-picker-page.tsx
-function Fg({ kind: e, entityId: t, name: n, onPicked: r }) {
+function Hg({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, x.useState)(!1);
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)("span", {
className: "absolute right-1 bottom-1",
- children: /* @__PURE__ */ (0, S.jsx)(pg, {
- icon: bu,
+ children: /* @__PURE__ */ (0, S.jsx)(bg, {
+ icon: Su,
size: "small",
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
onClick: () => a(!0)
})
- }), /* @__PURE__ */ (0, S.jsx)(xh, {
+ }), /* @__PURE__ */ (0, S.jsx)(kh, {
isOpen: i,
onOpenChange: a,
isDismissable: !0,
className: "fixed inset-0 z-50 flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, S.jsx)(yh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Dh, {
className: "flex max-h-full w-full max-w-avatar-picker flex-col overflow-hidden rounded-2xl border border-separator-border bg-background-primary-default shadow-dropdown",
- children: /* @__PURE__ */ (0, S.jsx)(ph, {
+ children: /* @__PURE__ */ (0, S.jsx)(xh, {
"aria-label": "更换头像",
className: "flex min-h-0 flex-col outline-none",
- children: /* @__PURE__ */ (0, S.jsx)(Ig, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ug, {
kind: e,
entityId: t,
name: n,
@@ -21942,17 +21993,17 @@ function Fg({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, x.useRef)(null), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), u = Eg(e, t), d = (0, x.useRef)(!1), f = ct({
+function Ug({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, x.useRef)(null), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), u = Ng(e, t), d = (0, x.useRef)(!1), f = ut({
queryKey: u,
- queryFn: ({ signal: n }) => kg(e, t, n),
+ queryFn: ({ signal: n }) => Ig(e, t, n),
retryOnMount: !0
});
(0, x.useEffect)(() => () => {
- d.current && Af.removeQueries({ queryKey: Eg(e, t) });
+ d.current && Lf.removeQueries({ queryKey: Ng(e, t) });
}, [e, t]);
- let p = lt({
- mutationFn: (n) => Ag(e, t, n),
+ let p = dt({
+ mutationFn: (n) => Lg(e, t, n),
onSuccess: () => {
d.current = !0, i(), r();
}
@@ -21961,7 +22012,7 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", l(""), n && p.mutate({ file: n });
}
- let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? Sf(p.error) : "") || (f.error ? Sf(f.error) : "");
+ let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? kf(p.error) : "") || (f.error ? kf(f.error) : "");
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
@@ -21969,38 +22020,38 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
- children: /* @__PURE__ */ (0, S.jsx)(Fu, { className: "size-6" })
+ children: /* @__PURE__ */ (0, S.jsx)(Uu, { className: "size-6" })
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)(Cp, {
+ children: [/* @__PURE__ */ (0, S.jsx)(jp, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "更换头像"
- }), g.length ? /* @__PURE__ */ (0, S.jsxs)(yf, {
+ }), g.length ? /* @__PURE__ */ (0, S.jsxs)(Ef, {
color: "soft",
children: [g.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: jg(n, h)
+ children: Rg(n, h)
}),
- Mg(h) ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ zg(h) ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "neutral",
children: "图库索引还没取过,只能从用过的图里选。"
}) : null,
- _ ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ _ ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
children: _
}) : null
]
}),
- /* @__PURE__ */ (0, S.jsx)(pg, {
- icon: wu,
+ /* @__PURE__ */ (0, S.jsx)(bg, {
+ icon: Eu,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -22018,8 +22069,8 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Pg(n),
- ...Sg(p.isPending),
+ title: Vg(n),
+ ...kg(p.isPending),
onClick: () => {
p.isPending || p.mutate({ ref: n.ref });
},
@@ -22028,7 +22079,7 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsx)("img", {
loading: "lazy",
alt: "",
- src: Og(e, t, n.ref),
+ src: Fg(e, t, n.ref),
className: "block w-full aspect-avatar-choice object-cover"
}),
/* @__PURE__ */ (0, S.jsx)("span", {
@@ -22037,7 +22088,7 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, S.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, S.jsx)(yf, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ef, {
variant: "caption",
color: "blue",
children: "在用"
@@ -22050,10 +22101,10 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
children: [
- /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Sg(p.isPending),
+ ...kg(p.isPending),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, S.jsx)("input", {
@@ -22069,16 +22120,16 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(bg, {
+ children: /* @__PURE__ */ (0, S.jsx)(Dg, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: o,
onChange: s
})
- }), /* @__PURE__ */ (0, S.jsx)(dg, {
+ }), /* @__PURE__ */ (0, S.jsx)($, {
disabled: !o.trim(),
- ...Sg(p.isPending),
+ ...kg(p.isPending),
onClick: () => {
p.isPending || p.mutate({ url: o.trim() });
},
@@ -22091,35 +22142,35 @@ function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var Lg = "/api/library-processing", Rg = ["library-processing"], zg = (e) => Cf(Lg, e);
-async function Bg(e) {
- await Af.fetchQuery({
- queryKey: Rg,
- queryFn: () => zg(e)
+var Wg = "/api/library-processing", Gg = ["library-processing"], Kg = (e) => Af(Wg, e);
+async function qg(e) {
+ await Lf.fetchQuery({
+ queryKey: Gg,
+ queryFn: () => Kg(e)
});
}
-var Vg = 2e3, Hg = 1e4, Ug = "连接中断,正在重新读取处理进度";
-function Wg(e, t) {
- return e?.status === "running" ? Vg : t ? Hg : !1;
+var Jg = 2e3, Yg = 1e4, Xg = "连接中断,正在重新读取处理进度";
+function Zg(e, t) {
+ return e?.status === "running" ? Jg : t ? Yg : !1;
}
-var Gg = {
+var Qg = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, Kg = {
+}, $g = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function qg(e) {
- let t = Object.entries(e).filter(([e, t]) => Kg[e] && t > 0).map(([e, t]) => `${Kg[e]} ${t} 部`);
+function e_(e) {
+ let t = Object.entries(e).filter(([e, t]) => $g[e] && t > 0).map(([e, t]) => `${$g[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Jg(e) {
- let t = Gg[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function t_(e) {
+ let t = Qg[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Yg(e) {
+function n_(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -22133,21 +22184,21 @@ function Yg(e) {
footnote: e.issues_log ? `完整记录:${e.issues_log}` : ""
} : null;
}
-var Xg = "peach.library-processing.announced", Zg = 120;
-function Qg(e, t, n) {
+var r_ = "peach.library-processing.announced", i_ = 120;
+function a_(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Zg;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < i_;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(Xg) === e.job_id) return;
- e.job_id && localStorage.setItem(Xg, e.job_id);
+ if (e.job_id && localStorage.getItem(r_) === e.job_id) return;
+ e.job_id && localStorage.setItem(r_, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);
}
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var $g = _f({
+var o_ = wf({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -22171,15 +22222,15 @@ var $g = _f({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function e_({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = gf($g.base, $g.size[t], $g.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+function s_({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Z(o_.base, o_.size[t], o_.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: $g.icon[t],
+ className: o_.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, S.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: $g.icon[t],
+ className: o_.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -22206,7 +22257,7 @@ function e_({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var t_ = [
+var c_ = [
"max-w-[calc(100vw-32px)] overflow-y-auto",
"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
"transition duration-150 ease-out",
@@ -22214,24 +22265,24 @@ var t_ = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), n_ = "w-[266px]", r_ = "flex w-full flex-col gap-1 outline-none", i_ = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), a_ = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), l_ = "w-[266px]", u_ = "flex w-full flex-col gap-1 outline-none", d_ = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), f_ = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function o_({ className: e, children: t }) {
+function p_({ className: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
- className: gf("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: Z("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function s_({ className: e, children: t }) {
+function m_({ className: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
- className: gf("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: Z("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function c_({ label: e, description: t, children: n }) {
+function h_({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
- className: gf("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: Z("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, S.jsx)("p", {
@@ -22246,14 +22297,14 @@ function c_({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function l_({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function g_({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [n ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(s_, { children: e })
+ children: /* @__PURE__ */ (0, S.jsx)(m_, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, S.jsx)(s_, { children: e }), /* @__PURE__ */ (0, S.jsx)(o_, { children: i })] });
+ }) : /* @__PURE__ */ (0, S.jsx)(m_, { children: e }), /* @__PURE__ */ (0, S.jsx)(p_, { children: i })] });
return r ? /* @__PURE__ */ (0, S.jsx)("form", {
id: t,
"aria-label": e,
@@ -22268,13 +22319,13 @@ function l_({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function u_({ children: e }) {
+function __({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function d_({ divided: e = !1, children: t }) {
+function v_({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -22283,7 +22334,7 @@ function d_({ divided: e = !1, children: t }) {
children: t
});
}
-function f_({ status: e, children: t }) {
+function y_({ status: e, children: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",
children: [e ? /* @__PURE__ */ (0, S.jsx)("div", {
@@ -22292,43 +22343,43 @@ function f_({ status: e, children: t }) {
}) : null, t]
});
}
-function p_({ role: e, children: t }) {
+function b_({ role: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function m_({ children: e }) {
+function x_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function h_({ children: e }) {
+function S_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function g_({ href: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)(e_, {
+function C_({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)(s_, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: Du,
+ trailingIcon: ju,
children: t
});
}
-function __({ children: e }) {
+function w_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function v_({ term: e, children: t }) {
+function T_({ term: e, children: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, S.jsx)("dt", {
@@ -22340,33 +22391,35 @@ function v_({ term: e, children: t }) {
})]
});
}
-function y_({ summary: e, children: t }) {
- let n = (0, x.useId)(), r = (0, x.useRef)(null), i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1);
+function E_({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, x.useId)(), i = (0, x.useRef)(null), a = (0, x.useRef)(null), o = (0, x.useRef)(!1), [c, l] = (0, x.useState)(t);
return /* @__PURE__ */ (0, S.jsxs)("details", {
- ref: r,
+ ref: (e) => {
+ i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
+ },
children: [/* @__PURE__ */ (0, S.jsxs)("summary", {
- "aria-expanded": a,
- "aria-controls": n,
+ "aria-expanded": c,
+ "aria-controls": r,
onClick: (e) => {
- e.preventDefault(), !(!r.current || !i.current) && (s(r.current, i.current, !a), o(!a));
+ e.preventDefault(), !(!i.current || !a.current) && (s(i.current, a.current, !c), l(!c));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, S.jsx)(Cu, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Tu, {
"aria-hidden": !0,
- className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ className: c ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
}), /* @__PURE__ */ (0, S.jsx)("div", {
- ref: i,
- id: n,
- inert: !a,
+ ref: a,
+ id: r,
+ inert: !c,
children: /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
- children: t
+ children: n
})
})]
});
}
-function b_({ name: e }) {
+function D_({ name: e }) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -22375,29 +22428,29 @@ function b_({ name: e }) {
children: /* @__PURE__ */ (0, S.jsx)("use", { href: `#i-${e}` })
});
}
-function x_({ mark: e }) {
+function O_({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, S.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, S.jsx)(b_, { name: e });
+ }) : /* @__PURE__ */ (0, S.jsx)(D_, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function S_({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = ct({
- queryKey: Rg,
- queryFn: ({ signal: e }) => zg(e),
- refetchInterval: (e) => Wg(e.state.data, r)
+function k_({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = ut({
+ queryKey: Gg,
+ queryFn: ({ signal: e }) => Kg(e),
+ refetchInterval: (e) => Zg(e.state.data, r)
}), [a, o] = (0, x.useState)(null), s = (0, x.useRef)(void 0), c = i.data;
return (0, x.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && Qg(c, e, r);
+ r && o(c), (r || t === "notice") && a_(c, e, r);
}, [
c,
t,
@@ -22410,51 +22463,51 @@ function S_({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var C_ = [{
+var A_ = [{
label: "只扫描",
- icon: Au,
+ icon: Pu,
command: { stage: "scan" }
}, {
label: "只采集",
- icon: ku,
+ icon: Nu,
command: { stage: "collect" }
-}], w_ = gf(i_, a_, "text-body-2-medium"), T_ = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", E_ = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", D_ = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选。`;
-function O_({ busy: e, onRun: t }) {
+}], j_ = Z(d_, f_, "text-body-2-medium"), M_ = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", N_ = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", P_ = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选。`;
+function F_({ busy: e, onRun: t }) {
let n = (0, x.useRef)(null), [r, i] = (0, x.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)("span", {
className: "flex items-center gap-1",
- children: [/* @__PURE__ */ (0, S.jsx)(dg, {
- leadingIcon: Tu,
+ children: [/* @__PURE__ */ (0, S.jsx)($, {
+ leadingIcon: Ou,
onClick: () => a({}),
- ...Sg(e),
+ ...kg(e),
children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, S.jsx)(dg, {
+ }), /* @__PURE__ */ (0, S.jsx)($, {
ref: n,
iconOnly: !0,
- leadingIcon: xu,
+ leadingIcon: Cu,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
- ...Sg(e),
+ ...kg(e),
onClick: () => {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, S.jsx)(lh, {
+ }), /* @__PURE__ */ (0, S.jsx)(_h, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: t_,
- children: /* @__PURE__ */ (0, S.jsx)(ph, {
+ className: c_,
+ children: /* @__PURE__ */ (0, S.jsx)(xh, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: C_.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, S.jsxs)("button", {
+ children: A_.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, S.jsxs)("button", {
type: "button",
- className: w_,
+ className: j_,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, S.jsx)(t, {
"aria-hidden": !0,
@@ -22464,27 +22517,27 @@ function O_({ busy: e, onRun: t }) {
})
})] });
}
-function k_({ state: e, problem: t, settled: n, onRetry: r }) {
- let i = Yg(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = qg(e.notes || {});
+function I_({ state: e, problem: t, settled: n, onRetry: r }) {
+ let i = n_(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = e_(e.notes || {});
return /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "warning",
title: "处理较慢",
- children: E_
+ children: N_
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
extra: /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-start gap-3 pt-1",
- children: [a ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: [a ? /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
size: "small",
onClick: r,
children: "重试未完成项"
- }) : null, i ? /* @__PURE__ */ (0, S.jsxs)(y_, {
+ }) : null, i ? /* @__PURE__ */ (0, S.jsxs)(E_, {
summary: i.label,
children: [/* @__PURE__ */ (0, S.jsx)("ul", {
className: "flex max-h-96 flex-col gap-2 overflow-y-auto",
@@ -22517,41 +22570,41 @@ function k_({ state: e, problem: t, settled: n, onRetry: r }) {
}),
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "success",
title: "处理完成",
- children: D_(n)
+ children: P_(n)
}) : null,
- e.status !== "running" && o ? /* @__PURE__ */ (0, S.jsxs)(Df, {
+ e.status !== "running" && o ? /* @__PURE__ */ (0, S.jsxs)(Pf, {
tone: "neutral",
children: [o, e.issues_log ? ` 完整记录:${e.issues_log}` : ""]
}) : null
]
});
}
-function A_(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = S_(e), o = lt({
- mutationFn: (e) => wf(Lg, e),
+function L_(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = k_(e), o = dt({
+ mutationFn: (e) => jf(Wg, e),
onSuccess: (e) => {
- a(), Af.setQueryData(Rg, e), Af.invalidateQueries({ queryKey: Rg });
+ a(), Lf.setQueryData(Gg, e), Lf.invalidateQueries({ queryKey: Gg });
}
});
(0, x.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? Sf(o.error) : r.isError ? r.data ? Ug : Sf(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Jg(s), f = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? kf(o.error) : r.isError ? r.data ? Xg : kf(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = t_(s), f = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, S.jsxs)(l_, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(g_, {
title: "扫描与采集",
- children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [/* @__PURE__ */ (0, S.jsx)("p", {
+ children: [/* @__PURE__ */ (0, S.jsxs)(v_, { children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: T_
+ children: M_
}), s.status === "running" ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ children: s.total ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(If, {
label: d,
value: s.checked || 0,
max: s.total
@@ -22565,26 +22618,26 @@ function A_(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, S.jsx)(Ef, { label: d })
- }) : null] }), /* @__PURE__ */ (0, S.jsxs)(f_, { children: [
- /* @__PURE__ */ (0, S.jsx)(e_, {
+ })] }) : /* @__PURE__ */ (0, S.jsx)(Nf, { label: d })
+ }) : null] }), /* @__PURE__ */ (0, S.jsxs)(y_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/scraping",
size: "small",
- trailingIcon: Su,
+ trailingIcon: wu,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, S.jsx)(e_, {
+ s.candidates ? /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/review",
size: "small",
- trailingIcon: Su,
+ trailingIcon: wu,
children: "复核资料"
}) : null,
- u ? null : /* @__PURE__ */ (0, S.jsx)(O_, {
+ u ? null : /* @__PURE__ */ (0, S.jsx)(F_, {
busy: l,
onRun: f
})
] })]
- }), /* @__PURE__ */ (0, S.jsx)(k_, {
+ }), /* @__PURE__ */ (0, S.jsx)(I_, {
state: s,
problem: c,
settled: i,
@@ -22599,12 +22652,12 @@ function A_(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var j_ = {
+var R_ = {
gray: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border px-4 py-3 text-text-secondary",
warning: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-status-yellow-background px-4 py-3 text-status-yellow-text",
error: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-background-tertiary-error px-4 py-3 text-text-error-primary"
};
-function M_({ value: e, max: t }) {
+function z_({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
@@ -22632,16 +22685,16 @@ function M_({ value: e, max: t }) {
})]
});
}
-function N_(e) {
- let { job: t } = S_(e), n = t.data, r = t.isError ? n ? Ug : Sf(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function B_(e) {
+ let { job: t } = k_(e), n = t.data, r = t.isError ? n ? Xg : kf(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Jg(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Nu : Eu;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : t_(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Lu : Au;
return /* @__PURE__ */ (0, S.jsxs)("aside", {
role: a ? "alert" : "status",
- className: j_[s],
+ className: R_[s],
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, S.jsx)(M_, {
+ children: [o && l ? /* @__PURE__ */ (0, S.jsx)(z_, {
value: c,
max: l
}) : /* @__PURE__ */ (0, S.jsx)(d, {
@@ -22651,27 +22704,27 @@ function N_(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, S.jsx)(e_, {
+ }), /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: Su,
+ trailingIcon: wu,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var P_ = "/api/quality-goals?limit=200", F_ = ["quality-goals"], I_ = (e) => Cf(P_, e);
-async function L_(e) {
- await Af.fetchQuery({
- queryKey: F_,
- queryFn: () => I_(e)
+var V_ = "/api/quality-goals?limit=200", H_ = ["quality-goals"], U_ = (e) => Af(V_, e);
+async function W_(e) {
+ await Lf.fetchQuery({
+ queryKey: H_,
+ queryFn: () => U_(e)
});
}
-var R_ = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+var G_ = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function z_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function K_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(r.id);
return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-goal-id": r.id,
@@ -22687,7 +22740,7 @@ function z_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
className: "text-caption-1-regular text-text-tertiary",
children: "暂无预览"
}), /* @__PURE__ */ (0, S.jsx)("img", {
- src: R_(r),
+ src: G_(r),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -22726,7 +22779,7 @@ function z_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
}), /* @__PURE__ */ (0, S.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
size: "small",
onClick: c,
@@ -22735,18 +22788,18 @@ function z_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
});
}
-function B_(e) {
- let t = ct({
- queryKey: F_,
- queryFn: ({ signal: e }) => I_(e)
+function q_(e) {
+ let t = ut({
+ queryKey: H_,
+ queryFn: ({ signal: e }) => U_(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
title: "读取失败",
- children: t.error ? Sf(t.error) : "读取高清版目标失败"
+ children: t.error ? kf(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, S.jsxs)(Of, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ return r.length ? /* @__PURE__ */ (0, S.jsxs)(Ff, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, S.jsx)("strong", {
@@ -22759,19 +22812,19 @@ function B_(e) {
]
}), /* @__PURE__ */ (0, S.jsx)("ul", {
className: "card-grid gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(z_, {
+ children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(K_, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: Lu,
+ })] }) : /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Gu,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function V_(e) {
+function J_(e) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -22787,7 +22840,7 @@ function V_(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function H_(e, t, n) {
+function Y_(e, t, n) {
(0, x.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -22801,7 +22854,7 @@ function H_(e, t, n) {
n
]);
}
-function U_(e, t) {
+function X_(e, t) {
let n = (0, x.useRef)(!1);
return (0, x.useEffect)(() => {
if (!e) return;
@@ -22815,33 +22868,33 @@ function U_(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var W_ = (0, x.createContext)("md");
-function G_({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var Z_ = (0, x.createContext)("md");
+function Q_({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, x.useRef)(null), u = (0, x.useRef)(null), [d, f] = (0, x.useState)(!1);
- H_(d, () => f(!1), [l, u]);
- let p = U_(d, l);
- return /* @__PURE__ */ (0, S.jsx)(zh, {
+ Y_(d, () => f(!1), [l, u]);
+ let p = X_(d, l);
+ return /* @__PURE__ */ (0, S.jsx)(qh, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: gf("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(yp, {
+ className: Z("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(Dp, {
ref: l,
- className: gf("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, S.jsx)(Uh, {
- className: gf("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Z("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, S.jsx)(Zh, {
+ className: Z("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, S.jsx)(V_, { className: gf("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, S.jsx)(lh, {
+ }), /* @__PURE__ */ (0, S.jsx)(J_, { className: Z("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, S.jsx)(_h, {
ref: u,
isNonModal: !0,
offset: 4,
- className: gf(n_, t_, "p-2", n),
- children: /* @__PURE__ */ (0, S.jsx)(Jm, {
+ className: Z(l_, c_, "p-2", n),
+ children: /* @__PURE__ */ (0, S.jsx)(nh, {
items: a,
- className: gf(r_, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, S.jsx)(W_.Provider, {
+ className: Z(u_, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, S.jsx)(Z_.Provider, {
value: r,
children: i
})
@@ -22849,33 +22902,33 @@ function G_({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function K_({ className: e, children: t, ...n }) {
- let r = (0, x.useContext)(W_);
- return /* @__PURE__ */ (0, S.jsx)(Qm, {
+function $_({ className: e, children: t, ...n }) {
+ let r = (0, x.useContext)(Z_);
+ return /* @__PURE__ */ (0, S.jsx)(oh, {
...n,
- className: (t) => gf(i_, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => Z(d_, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/scraping/scraping.ts
-var q_ = "/api/scraping", J_ = "/api/scraping/settings", Y_ = "/api/scraping/check", X_ = "/api/scraping/cover", Z_ = ["scraping"], Q_ = ["scraping", "cover"], $_ = 2e3, ev = (e) => Cf(q_, e), tv = (e) => Cf(X_, e);
-async function nv(e) {
- await Promise.all([Af.fetchQuery({
- queryKey: Z_,
- queryFn: () => ev(e)
- }), Af.fetchQuery({
- queryKey: Q_,
- queryFn: () => tv(e)
+var ev = "/api/scraping", tv = "/api/scraping/settings", nv = "/api/scraping/check", rv = "/api/scraping/cover", iv = ["scraping"], av = ["scraping", "cover"], ov = 2e3, sv = (e) => Af(ev, e), cv = (e) => Af(rv, e);
+async function lv(e) {
+ await Promise.all([Lf.fetchQuery({
+ queryKey: iv,
+ queryFn: () => sv(e)
+ }), Lf.fetchQuery({
+ queryKey: av,
+ queryFn: () => cv(e)
})]);
}
-function rv(e, t) {
+function uv(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var iv = [["peach", "Peach 代理"], ["direct", "直接连接"]], av = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function ov({ source: e }) {
+var dv = [["peach", "Peach 代理"], ["direct", "直接连接"]], fv = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function pv({ source: e }) {
return /* @__PURE__ */ (0, S.jsx)("img", {
src: i({ source: e }),
alt: "",
@@ -22886,13 +22939,13 @@ function ov({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function sv({ source: e, toast: t }) {
- let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(av[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
+function mv({ source: e, toast: t }) {
+ let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(fv[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = lt({
- mutationFn: (t) => wf(J_, {
+ let g = dt({
+ mutationFn: (t) => jf(tv, {
source: e.source,
network: n,
cookie: i,
@@ -22900,12 +22953,12 @@ function sv({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- Af.setQueryData(Z_, (t) => t && {
+ Lf.setQueryData(iv, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = lt({ mutationFn: () => wf(Y_, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = dt({ mutationFn: () => jf(nv, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -22929,41 +22982,41 @@ function sv({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? Sf(g.error) : "") || (_.error ? Sf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ let T = f || (g.error ? kf(g.error) : "") || (_.error ? kf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, S.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, S.jsx)(ov, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(g_, {
+ children: [/* @__PURE__ */ (0, S.jsx)(pv, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(C_, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, S.jsx)(u_, { children: /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(__, { children: /* @__PURE__ */ (0, S.jsx)(h_, {
label: "连接方式",
- children: /* @__PURE__ */ (0, S.jsx)(G_, {
+ children: /* @__PURE__ */ (0, S.jsx)(Q_, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: iv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
+ children: dv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)($_, {
id: e,
children: t
}, e))
})
}) }),
- D ? /* @__PURE__ */ (0, S.jsxs)(d_, {
+ D ? /* @__PURE__ */ (0, S.jsxs)(v_, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, S.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, S.jsx)(e_, {
+ children: /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: Su,
+ trailingIcon: wu,
children: "配置 Peach 代理"
})
}) : null,
@@ -22972,20 +23025,20 @@ function sv({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, S.jsx)(Ah, {
+ /* @__PURE__ */ (0, S.jsx)(Rh, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
className: "flex flex-wrap gap-1",
- children: av.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(jh, {
+ children: fv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(zh, {
value: e,
className: "flex h-8 cursor-pointer items-center rounded-lg px-3 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary",
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, S.jsx)(bg, {
+ c === "paste" ? /* @__PURE__ */ (0, S.jsx)(Dg, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -22994,10 +23047,10 @@ function sv({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(h_, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, S.jsx)(S_, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, S.jsx)(dg, {
+ children: [/* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
@@ -23020,44 +23073,44 @@ function sv({ source: e, toast: t }) {
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, S.jsx)(m_, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, S.jsx)(Df, {
+ T ? /* @__PURE__ */ (0, S.jsx)(x_, { children: T }) : null,
+ E.map((t) => /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: t.ok ? "success" : "error",
- children: rv(t, e.label)
+ children: uv(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, S.jsxs)(f_, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsxs)(y_, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
onClick: b,
- ...Sg(v),
+ ...kg(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
onClick: C,
- ...Sg(v),
+ ...kg(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
- ...Sg(v),
+ ...kg(v),
children: "保存"
})
] })
]
});
}
-function cv({ toast: e }) {
- let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = ct({
- queryKey: Q_,
- queryFn: ({ signal: e }) => tv(e),
- refetchInterval: (e) => e.state.data?.status === "running" && $_
- }), c = lt({
- mutationFn: () => wf(X_, { code: t }),
+function hv({ toast: e }) {
+ let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = ut({
+ queryKey: av,
+ queryFn: ({ signal: e }) => cv(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && ov
+ }), c = dt({
+ mutationFn: () => jf(rv, { code: t }),
onSuccess: () => {
- i(!0), o(null), Af.invalidateQueries({ queryKey: Q_ });
+ i(!0), o(null), Lf.invalidateQueries({ queryKey: av });
}
}), l = (s.data?.status ?? "idle") === "running";
(0, x.useEffect)(() => {
@@ -23076,16 +23129,16 @@ function cv({ toast: e }) {
]);
let u = (e) => {
e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
- }, d = c.error ? Sf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, S.jsx)(l_, {
+ }, d = c.error ? kf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, S.jsx)(g_, {
title: "高清封面",
onSubmit: u,
- children: /* @__PURE__ */ (0, S.jsxs)(d_, { children: [
+ children: /* @__PURE__ */ (0, S.jsxs)(v_, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(bg, {
+ children: /* @__PURE__ */ (0, S.jsx)(Dg, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: l,
@@ -23093,58 +23146,58 @@ function cv({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, S.jsx)(dg, {
+ }), /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
disabled: !t.trim(),
- ...Sg(l || c.isPending),
+ ...kg(l || c.isPending),
children: "抓取封面"
})]
}),
- l ? /* @__PURE__ */ (0, S.jsx)(Ef, { label: "正在抓取封面" }) : null,
- d ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ l ? /* @__PURE__ */ (0, S.jsx)(Nf, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
children: d
}) : null,
- a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "success",
children: a.result || "封面采集完成"
}) : null
] })
});
}
-function lv({ toast: e }) {
- let t = ct({
- queryKey: Z_,
- queryFn: ({ signal: e }) => ev(e)
+function gv({ toast: e }) {
+ let t = ut({
+ queryKey: iv,
+ queryFn: ({ signal: e }) => sv(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
+ return n ? /* @__PURE__ */ (0, S.jsxs)(Ff, { children: [
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能需要代理才能下载,请先检查连接。"
}),
- /* @__PURE__ */ (0, S.jsx)(cv, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(sv, {
+ /* @__PURE__ */ (0, S.jsx)(hv, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(mv, {
source: t,
toast: e
}, t.source))
- ] }) : /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
+ ] }) : /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
title: "读取失败",
- children: t.error ? Sf(t.error) : "读取采集来源失败"
+ children: t.error ? kf(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/configuration-endpoints.ts
-var uv = "/api/configuration", dv = "/api/pick-folder", fv = ["configuration"], pv = (e) => Cf(uv, e);
-async function mv(e) {
- await Af.fetchQuery({
- queryKey: fv,
- queryFn: () => pv(e)
+var _v = "/api/configuration", vv = "/api/pick-folder", yv = ["configuration"], bv = (e) => Af(_v, e);
+async function xv(e) {
+ await Lf.fetchQuery({
+ queryKey: yv,
+ queryFn: () => bv(e)
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var hv = _f({
+var Sv = wf({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -23206,23 +23259,23 @@ var hv = _f({
}
}
});
-function gv({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = hv[t];
+function Cv({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Sv[t];
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: gf("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gf("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Z("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Z("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, S.jsx)("span", {
- className: gf("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, S.jsx)("span", { className: gf("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: Z("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, S.jsx)("span", { className: Z("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function _v({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(Kh, {
+function wv({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(eg, {
ref: i,
...a,
- className: (t) => gf("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(gv, {
+ className: (t) => Z("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Cv, {
state: e,
size: n,
shape: r
@@ -23234,48 +23287,48 @@ function _v({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function vv({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, S.jsx)(yv, {
+function Tv({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, S.jsx)(Ev, {
startup: e.startup,
receipt: t
}) : null;
}
-function yv({ startup: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = xg(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+function Ev({ startup: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = Og(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => wf("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => jf("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, S.jsxs)(u_, { children: [
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsxs)(__, { children: [
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, S.jsx)(_v, {
+ children: /* @__PURE__ */ (0, S.jsx)(wv, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, S.jsx)(_v, {
+ children: /* @__PURE__ */ (0, S.jsx)(wv, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, S.jsx)(_v, {
+ children: /* @__PURE__ */ (0, S.jsx)(wv, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -23283,14 +23336,14 @@ function yv({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(d_, {
+ e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(v_, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, S.jsx)(p_, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, S.jsx)(b_, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(x_, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)(y_, { children: /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
disabled: !e.available,
- ...Sg(c.busy === "save"),
+ ...kg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -23298,7 +23351,7 @@ function yv({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var bv = {
+var Dv = {
md: {
box: "size-4",
glyph: "size-4",
@@ -23312,11 +23365,11 @@ var bv = {
gap: "gap-1.5"
}
};
-function xv({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = bv[t], c = n || r, l = o && !a;
+function Ov({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Dv[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: gf("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gf("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gf("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Z("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Z("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Z("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -23340,24 +23393,24 @@ function xv({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Sv({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = bv[n];
- return /* @__PURE__ */ (0, S.jsx)(Mp, {
+function kv({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Dv[n];
+ return /* @__PURE__ */ (0, S.jsx)(Bp, {
ref: r,
...i,
- className: (t) => gf("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(xv, {
+ className: (t) => Z("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Ov, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: gf(a.label, "text-text-primary"),
+ className: Z(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/settings/media-repair.tsx
-var Cv = {
+var Av = {
status: "idle",
stage: "",
checked: 0,
@@ -23367,20 +23420,20 @@ var Cv = {
failed: 0,
skipped: 0,
message: ""
-}, wv = (e) => Number(e).toLocaleString();
-function Tv(e) {
+}, jv = (e) => Number(e).toLocaleString();
+function Mv(e) {
if (e.status === "running") {
- let t = e.total ? `${wv(e.checked)} / ${wv(e.total)}` : "准备中";
+ let t = e.total ? `${jv(e.checked)} / ${jv(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${wv(e.repaired)} 部,${wv(e.failed)} 部修不了` : `修好 ${wv(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${jv(e.repaired)} 部,${jv(e.failed)} 部修不了` : `修好 ${jv(e.repaired)} 部` : "";
}
-function Ev({ initial: e }) {
- let [t, n] = (0, x.useState)(e || Cv), [r, i] = (0, x.useState)(!1), a = xg(), o = t.status === "running";
+function Nv({ initial: e }) {
+ let [t, n] = (0, x.useState)(e || Av), [r, i] = (0, x.useState)(!1), a = Og(), o = t.status === "running";
(0, x.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await Cf("/api/media-repair", e.signal);
+ let i = await Af("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -23389,42 +23442,42 @@ function Ev({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => wf("/api/media-repair", {
+ let s = () => void a.run("start", (e) => jf("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => wf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ }, "POST", e), n), c = () => void a.run("stop", (e) => jf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "播放兼容修复",
- children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
- /* @__PURE__ */ (0, S.jsx)(p_, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
- /* @__PURE__ */ (0, S.jsx)(Sv, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(v_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(b_, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
+ /* @__PURE__ */ (0, S.jsx)(kv, {
isSelected: r,
isDisabled: o,
onChange: i,
children: "连 PikPak 上的一起修(要把片子完整拉一遍,走流量)"
}),
- o ? /* @__PURE__ */ (0, S.jsx)(kf, {
+ o ? /* @__PURE__ */ (0, S.jsx)(If, {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
}) : null,
- a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: a.error || t.error }) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
- status: Tv(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
+ a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(x_, { children: a.error || t.error }) : null
+ ] }), /* @__PURE__ */ (0, S.jsx)(y_, {
+ status: Mv(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
role: "status",
- children: Tv(t)
+ children: Mv(t)
}) : null,
- children: o ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: o ? /* @__PURE__ */ (0, S.jsx)($, {
onClick: c,
- ...Sg(a.busy === "stop"),
+ ...kg(a.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, S.jsx)(dg, {
+ }) : /* @__PURE__ */ (0, S.jsx)($, {
onClick: s,
- ...Sg(a.busy === "start"),
+ ...kg(a.busy === "start"),
children: "开始修复"
})
})]
@@ -23432,28 +23485,28 @@ function Ev({ initial: e }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var Dv = /* @__PURE__ */ new Set([
+var Pv = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), Ov = [
+]), Fv = [
65,
67,
90
-], kv = 120;
-function Av({ initial: e, initialJob: t }) {
+], Iv = 120;
+function Lv({ initial: e, initialJob: t }) {
let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, x.useState)(""), l = xg(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = Dv.has(i.state);
+ }), [s, c] = (0, x.useState)(""), l = Og(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = Pv.has(i.state);
(0, x.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await wf("/api/configuration/update-restart", {});
+ let e = await jf("/api/configuration/update-restart", {});
d.current && a(e);
}, m = () => void o({
title: "更新已准备好",
@@ -23465,9 +23518,9 @@ function Av({ initial: e, initialJob: t }) {
(0, x.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
}, [i.state]), (0, x.useEffect)(() => {
- let e = new AbortController(), t = Dv.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
+ let e = new AbortController(), t = Pv.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
try {
- let t = await Cf("/api/configuration/update-status", e.signal);
+ let t = await Af("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -23475,93 +23528,93 @@ function Av({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Cf("/api/configuration/automatic-updates", e.signal);
+ let n = await Af("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= kv && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= Iv && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < kv && (n = setTimeout(s, t));
+ !e.signal.aborted && o < Iv && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => wf("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => Cf("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => jf("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => Af("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(Sf(t));
+ }), l.setError(kf(t));
}), _ = l.error || s, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, S.jsxs)(__, { children: [
- /* @__PURE__ */ (0, S.jsx)(v_, {
+ /* @__PURE__ */ (0, S.jsxs)(w_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(T_, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, S.jsx)(v_, {
+ /* @__PURE__ */ (0, S.jsx)(T_, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, S.jsx)(v_, {
+ /* @__PURE__ */ (0, S.jsx)(T_, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, S.jsx)(v_, {
+ /* @__PURE__ */ (0, S.jsx)(T_, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, S.jsxs)(d_, {
+ /* @__PURE__ */ (0, S.jsxs)(v_, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(p_, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(b_, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(m_, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(p_, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(x_, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(b_, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(m_, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(x_, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(kf, {
+ /* @__PURE__ */ (0, S.jsx)(If, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: i.progress,
- stops: Ov
+ stops: Fv
}),
- /* @__PURE__ */ (0, S.jsxs)(p_, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, S.jsx)(p_, { children: v })
+ /* @__PURE__ */ (0, S.jsxs)(b_, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, S.jsx)(b_, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, S.jsxs)(f_, {
- status: /* @__PURE__ */ (0, S.jsx)(g_, {
+ /* @__PURE__ */ (0, S.jsxs)(y_, {
+ status: /* @__PURE__ */ (0, S.jsx)(C_, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)($, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)($, {
onClick: h,
- ...Sg(f || l.busy === "download"),
+ ...kg(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)($, {
disabled: f,
onClick: g,
- ...Sg(l.busy === "check"),
+ ...kg(l.busy === "check"),
children: "检查更新"
})
]
@@ -23571,139 +23624,139 @@ function Av({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var jv = [
+var Rv = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Mv({ data: e, receipt: t }) {
+function zv({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(Nv, {
+ e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(Bv, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, S.jsx)(Av, {
+ e.updates ? /* @__PURE__ */ (0, S.jsx)(Lv, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Ev, {}),
- /* @__PURE__ */ (0, S.jsx)(Pv, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, S.jsx)(Fv, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, S.jsx)(Nv, {}),
+ /* @__PURE__ */ (0, S.jsx)(Vv, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, S.jsx)(Hv, { uninstall: e.uninstall }) : null
]
});
}
-function Nv({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = xg(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => wf("/api/configuration/automatic-updates", {
+function Bv({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = Og(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => jf("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, S.jsxs)(u_, { children: [
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsxs)(__, { children: [
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, S.jsx)(_v, {
+ children: /* @__PURE__ */ (0, S.jsx)(wv, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, S.jsx)(_v, {
+ children: /* @__PURE__ */ (0, S.jsx)(wv, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(h_, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, S.jsx)(G_, {
+ children: /* @__PURE__ */ (0, S.jsx)(Q_, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: jv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
+ children: Rv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)($_, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, S.jsx)(d_, {
+ o.error ? /* @__PURE__ */ (0, S.jsx)(v_, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(m_, { children: o.error })
+ children: /* @__PURE__ */ (0, S.jsx)(x_, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)(y_, { children: /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
disabled: !e.available,
- ...Sg(o.busy === "save"),
+ ...kg(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function Pv({ facts: e }) {
- return /* @__PURE__ */ (0, S.jsx)(l_, {
+function Vv({ facts: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(g_, {
title: "运行信息",
- children: /* @__PURE__ */ (0, S.jsx)(__, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(v_, {
+ children: /* @__PURE__ */ (0, S.jsx)(w_, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(T_, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(g_, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(C_, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Fv({ uninstall: e }) {
+function Hv({ uninstall: e }) {
let [t, n] = (0, x.useState)(!1), [r, i] = (0, x.useState)(""), a = () => void o({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await wf("/api/configuration/uninstall", {
+ let e = await jf("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
i(e.message);
}
}), s = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
- e.available ? /* @__PURE__ */ (0, S.jsx)(p_, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, S.jsx)(Sv, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(v_, { children: [
+ e.available ? /* @__PURE__ */ (0, S.jsx)(b_, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, S.jsx)(kv, {
isSelected: t,
isDisabled: !e.full_available || !!r,
onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, S.jsx)(y_, {
+ /* @__PURE__ */ (0, S.jsx)(E_, {
summary: "数据目录",
children: c.map((e) => /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(y_, {
status: s ? /* @__PURE__ */ (0, S.jsx)("p", {
role: r ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: /* @__PURE__ */ (0, S.jsx)($, {
variant: "danger",
disabled: !e.available || !!r,
onClick: a,
@@ -23714,7 +23767,7 @@ function Fv({ uninstall: e }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var Iv = [
+var Uv = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -23733,32 +23786,32 @@ var Iv = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Lv = [
+], Wv = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Rv() {
+function Gv() {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, S.jsxs)(p_, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(g_, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(b_, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(C_, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, S.jsxs)(y_, {
+ })] }), /* @__PURE__ */ (0, S.jsxs)(E_, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, S.jsx)(p_, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, S.jsx)(b_, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
/* @__PURE__ */ (0, S.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Iv.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
+ children: Uv.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, S.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Lv.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
+ children: Wv.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, S.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -23779,9 +23832,9 @@ function Rv() {
/* @__PURE__ */ (0, S.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, S.jsxs)(p_, { children: [
+ /* @__PURE__ */ (0, S.jsxs)(b_, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, S.jsx)(g_, {
+ /* @__PURE__ */ (0, S.jsx)(C_, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -23793,7 +23846,7 @@ function Rv() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var zv = [
+var Kv = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -23837,14 +23890,14 @@ var zv = [
["star", "收藏"],
["tags", "主题"]
];
-function Bv(e) {
+function qv(e) {
let t = e === "local" ? "" : a[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var Vv = "auto";
-function Hv({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = Bv(n);
- return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(dg, {
+var Jv = "auto";
+function Yv({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = qv(n);
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)($, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -23857,43 +23910,43 @@ function Hv({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, S.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: e || l }), ((e) => e && zv.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, S.jsx)(O_, { mark: e || l }), ((e) => e && Kv.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, S.jsx)(lh, {
+ }), /* @__PURE__ */ (0, S.jsx)(_h, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: t_,
- children: /* @__PURE__ */ (0, S.jsxs)(ph, {
+ className: c_,
+ children: /* @__PURE__ */ (0, S.jsxs)(xh, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, S.jsx)(Cp, {
+ /* @__PURE__ */ (0, S.jsx)(jp, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, S.jsx)(Ah, {
+ /* @__PURE__ */ (0, S.jsx)(Rh, {
"aria-label": "候选图标",
- value: s || Vv,
- onChange: (e) => c(e === Vv ? "" : e),
+ value: s || Jv,
+ onChange: (e) => c(e === Jv ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: zv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(jh, {
- value: e || Vv,
+ children: Kv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(zh, {
+ value: e || Jv,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, S.jsx)(x_, { mark: e || l })
- }, e || Vv))
+ children: /* @__PURE__ */ (0, S.jsx)(O_, { mark: e || l })
+ }, e || Jv))
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, S.jsx)(dg, {
+ children: [/* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, S.jsx)(dg, {
+ }), /* @__PURE__ */ (0, S.jsx)($, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -23907,8 +23960,8 @@ function Hv({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Uv = 8e3;
-function Wv({ className: e }) {
+var Xv = 8e3;
+function Zv({ className: e }) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -23921,48 +23974,48 @@ function Wv({ className: e }) {
children: /* @__PURE__ */ (0, S.jsx)("use", { href: "#i-folder-search" })
});
}
-var Gv = [
+var Qv = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Kv = (e) => Gv.find(([t]) => t === e)?.[1] ?? e, qv = (e) => a[e] || "database", Jv = (e = "") => ({
+], $v = (e) => Qv.find(([t]) => t === e)?.[1] ?? e, ey = (e) => a[e] || "database", ty = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Yv(e) {
- let t = e.media_sources?.filter((e) => Gv.some(([t]) => t === e.location));
+function ny(e) {
+ let t = e.media_sources?.filter((e) => Qv.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Jv(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => ty(e));
}
-var Xv = (e) => !(e instanceof bf) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Zv({ data: e, receipt: t }) {
+var ry = (e) => !(e instanceof Df) || e.status !== 400 ? null : e.body?.errors ?? null;
+function iy({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(Qv, {
+ children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(ay, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, S.jsx)(Df, {
+ }) : /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, S.jsx)(ey, { data: e })]
+ }), /* @__PURE__ */ (0, S.jsx)(sy, { data: e })]
});
}
-function Qv({ data: e, receipt: t }) {
- let [n, r] = (0, x.useState)(() => Yv(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = xg();
+function ay({ data: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(() => ny(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = Og();
(0, x.useLayoutEffect)(() => {
g !== null && (w.current[g]?.focus(), _(null));
}, [g]), (0, x.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Uv);
+ let e = setTimeout(() => location.assign(m.url), Xv);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -23973,23 +24026,23 @@ function Qv({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, Jv()]);
+ _(n.length), r((e) => [...e, ty()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await wf(dv, { initial: n[e]?.path ?? "" });
+ let { path: t } = await jf(vv, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, Sf(t));
+ D(e, kf(t));
} finally {
b.current = !1, y(null);
}
}
}, ee = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => wf(uv, {
+ r.preventDefault(), p(""), T.run("save", (t) => jf(_v, {
revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -23998,18 +24051,18 @@ function Qv({ data: e, receipt: t }) {
}, "POST", t), (e) => {
C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Xv(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(Sf(e));
+ let t = ry(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(kf(e));
});
};
- if (m) return /* @__PURE__ */ (0, S.jsx)(l_, {
+ if (m) return /* @__PURE__ */ (0, S.jsx)(g_, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, S.jsx)(d_, { children: /* @__PURE__ */ (0, S.jsxs)(Df, {
+ children: /* @__PURE__ */ (0, S.jsx)(v_, { children: /* @__PURE__ */ (0, S.jsxs)(Pf, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, S.jsx)(e_, {
+ /* @__PURE__ */ (0, S.jsx)(s_, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -24019,14 +24072,14 @@ function Qv({ data: e, receipt: t }) {
}) })
});
let j = n.some((e) => e.location === "115" || e.location === "pikpak"), te = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "这台电脑",
onSubmit: ee,
- children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
+ children: [/* @__PURE__ */ (0, S.jsxs)(v_, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, S.jsx)(S_, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, S.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -24037,7 +24090,7 @@ function Qv({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(bg, {
+ /* @__PURE__ */ (0, S.jsx)(Dg, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -24050,14 +24103,14 @@ function Qv({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, S.jsx)(pg, {
- icon: Wv,
+ /* @__PURE__ */ (0, S.jsx)(bg, {
+ icon: Zv,
"aria-label": "选择文件夹",
onClick: () => void A(r),
- ...Sg(v === r)
+ ...kg(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, S.jsx)(pg, {
- icon: wu,
+ n.length > 1 ? /* @__PURE__ */ (0, S.jsx)(bg, {
+ icon: Eu,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
@@ -24065,7 +24118,7 @@ function Qv({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(bg, {
+ /* @__PURE__ */ (0, S.jsx)(Dg, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -24074,7 +24127,7 @@ function Qv({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(Hv, {
+ children: [/* @__PURE__ */ (0, S.jsx)(S_, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(Yv, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -24083,20 +24136,20 @@ function Qv({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(G_, {
+ children: [/* @__PURE__ */ (0, S.jsx)(S_, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(Q_, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: Gv.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(K_, {
+ children: Qv.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)($_, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: qv(e) }), t]
+ children: [/* @__PURE__ */ (0, S.jsx)(O_, { mark: ey(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(bg, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Dg, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -24106,25 +24159,25 @@ function Qv({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)($, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- j ? /* @__PURE__ */ (0, S.jsx)(Rv, {}) : null,
- te.map((e) => /* @__PURE__ */ (0, S.jsxs)(p_, { children: [
+ j ? /* @__PURE__ */ (0, S.jsx)(Gv, {}) : null,
+ te.map((e) => /* @__PURE__ */ (0, S.jsxs)(b_, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, S.jsxs)(g_, {
+ /* @__PURE__ */ (0, S.jsxs)(C_, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(p_, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(bg, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(b_, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(Dg, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -24134,27 +24187,27 @@ function Qv({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, S.jsx)(Sv, {
+ /* @__PURE__ */ (0, S.jsx)(kv, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ f ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(y_, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
- ...Sg(T.busy === "save"),
+ ...kg(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function $v({ online: e }) {
+function oy({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -24178,22 +24231,22 @@ function $v({ online: e }) {
}), "未检测"]
});
}
-function ey({ data: e }) {
- let t = e.media_sources, n = xg();
- return t ? /* @__PURE__ */ (0, S.jsxs)(l_, {
+function sy({ data: e }) {
+ let t = e.media_sources, n = Og();
+ return t ? /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, S.jsx)(__, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(v_, {
- term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: qv(e.location) }), Kv(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)($v, { online: e.online })]
+ /* @__PURE__ */ (0, S.jsx)(w_, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(T_, {
+ term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(O_, { mark: ey(e.location) }), $v(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)(oy, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, S.jsx)(d_, {
+ n.error ? /* @__PURE__ */ (0, S.jsx)(v_, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(m_, { children: n.error })
+ children: /* @__PURE__ */ (0, S.jsx)(x_, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
- onClick: () => void n.run("refresh", (e) => pv(e), (e) => Af.setQueryData(fv, e)),
- ...Sg(n.busy === "refresh"),
+ /* @__PURE__ */ (0, S.jsx)(y_, { children: /* @__PURE__ */ (0, S.jsx)($, {
+ onClick: () => void n.run("refresh", (e) => bv(e), (e) => Lf.setQueryData(yv, e)),
+ ...kg(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -24201,20 +24254,20 @@ function ey({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var ty = {
+var cy = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function ny({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = xg(), g = (e) => {
+function ly({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = Og(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => wf("/api/configuration/access", {
+ h.run("save", (e) => jf("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -24224,28 +24277,28 @@ function ny({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof bf ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(Sf(e));
+ let t = e instanceof Df ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(kf(e));
});
- }, _ = ty[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+ }, _ = cy[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, S.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, S.jsxs)(d_, { children: [
- _ ? /* @__PURE__ */ (0, S.jsx)(p_, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ children: /* @__PURE__ */ (0, S.jsxs)(v_, { children: [
+ _ ? /* @__PURE__ */ (0, S.jsx)(b_, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(Sv, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(kv, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(bg, {
+ n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(Dg, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -24258,7 +24311,7 @@ function ny({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(bg, {
+ v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Dg, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -24271,7 +24324,7 @@ function ny({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, S.jsx)(bg, {
+ }), /* @__PURE__ */ (0, S.jsx)(Dg, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -24285,18 +24338,18 @@ function ny({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ u ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, S.jsx)(x_, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, S.jsx)(f_, {
+ }), v ? /* @__PURE__ */ (0, S.jsx)(y_, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
- ...Sg(h.busy === "save"),
+ ...kg(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -24304,30 +24357,30 @@ function ny({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var ry = [
+var uy = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function iy({ data: e, receipt: t }) {
+function dy({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(ay, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(fy, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(ny, {
+ }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(ly, {
initial: e.access,
receipt: t
}) : null]
});
}
-function ay({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = xg();
- return /* @__PURE__ */ (0, S.jsxs)(l_, {
+function fy({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = Og();
+ return /* @__PURE__ */ (0, S.jsxs)(g_, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => wf("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => jf("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -24335,25 +24388,25 @@ function ay({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, S.jsx)(u_, { children: /* @__PURE__ */ (0, S.jsx)(c_, {
+ /* @__PURE__ */ (0, S.jsx)(__, { children: /* @__PURE__ */ (0, S.jsx)(h_, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, S.jsx)(G_, {
+ children: /* @__PURE__ */ (0, S.jsx)(Q_, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: ry.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
+ children: uy.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)($_, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(d_, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(v_, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(bg, {
+ i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(Dg, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -24362,17 +24415,17 @@ function ay({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(Df, {
+ n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, S.jsx)(x_, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ /* @__PURE__ */ (0, S.jsx)(y_, { children: /* @__PURE__ */ (0, S.jsx)($, {
type: "submit",
- ...Sg(c.busy === "save"),
+ ...kg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -24380,17 +24433,17 @@ function ay({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function oy({ receipt: e }) {
- let t = ct({
- queryKey: fv,
- queryFn: ({ signal: e }) => pv(e)
+function py({ receipt: e }) {
+ let t = ut({
+ queryKey: yv,
+ queryFn: ({ signal: e }) => bv(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, S.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, S.jsx)(Df, {
+ children: /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
title: "打不开配置",
- children: t.error ? Sf(t.error) : "没有读到配置"
+ children: t.error ? kf(t.error) : "没有读到配置"
})
});
let r = {
@@ -24404,36 +24457,36 @@ function oy({ receipt: e }) {
className: "configgroup",
children: "通用"
}) : null,
- n.startup ? /* @__PURE__ */ (0, S.jsx)(vv, { ...r }) : null,
+ n.startup ? /* @__PURE__ */ (0, S.jsx)(Tv, { ...r }) : null,
/* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, S.jsx)(Zv, { ...r }),
+ /* @__PURE__ */ (0, S.jsx)(iy, { ...r }),
i ? /* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- i ? /* @__PURE__ */ (0, S.jsx)(iy, { ...r }) : null,
+ i ? /* @__PURE__ */ (0, S.jsx)(dy, { ...r }) : null,
/* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, S.jsx)(Mv, { ...r })
+ /* @__PURE__ */ (0, S.jsx)(zv, { ...r })
]
});
}
//#endregion
//#region src/react/stats/stats.ts
-var sy = "/api/stats", cy = ["stats"], ly = (e) => Cf(sy, e);
-async function uy(e) {
- await Af.fetchQuery({
- queryKey: cy,
- queryFn: () => ly(e)
+var my = "/api/stats", hy = ["stats"], gy = (e) => Af(my, e);
+async function _y(e) {
+ await Lf.fetchQuery({
+ queryKey: hy,
+ queryFn: () => gy(e)
});
}
-var dy = (e, t) => t ? Math.round(e / t * 100) : 0, fy = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, py = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, my = (e) => (e.max_reached || 0) * 100, hy = (e) => e.kind === "online" ? "在线直接观看" : py(e) < my(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", gy = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
-function _y(e) {
+var vy = (e, t) => t ? Math.round(e / t * 100) : 0, yy = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, by = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, xy = (e) => (e.max_reached || 0) * 100, Sy = (e) => e.kind === "online" ? "在线直接观看" : by(e) < xy(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Cy = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function wy(e) {
let t = Math.max(1, ...e) * 1.1, n = Math.min(22, 110 / Math.max(1, e.length)), r = Math.min(15, n * .68);
return e.map((e, i) => ({
radius: 32 + i * n,
@@ -24443,14 +24496,14 @@ function _y(e) {
}
//#endregion
//#region src/react/stats/radial-card.tsx
-var vy = [
+var Ty = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], yy = [
+], Ey = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
@@ -24458,10 +24511,10 @@ var vy = [
"bg-chart-5",
"bg-chart-6"
];
-function by({ title: e, rows: t, unit: n = "个视频" }) {
+function Dy({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, x.useState)(-1), [a, o] = (0, x.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
- let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = _y(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = wy(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
return /* @__PURE__ */ (0, S.jsxs)("section", {
className: "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5",
children: [
@@ -24510,7 +24563,7 @@ function by({ title: e, rows: t, unit: n = "个视频" }) {
pathLength: 100,
transform: "rotate(-90 160 160)",
strokeDasharray: `${u[t].length} ${100 - u[t].length}`,
- className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${vy[t % 6]}` : `cursor-pointer transition-opacity ${vy[t % 6]}`
+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${Ty[t % 6]}` : `cursor-pointer transition-opacity ${Ty[t % 6]}`
})
]
}, e.name))
@@ -24531,7 +24584,7 @@ function by({ title: e, rows: t, unit: n = "个视频" }) {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, S.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${yy[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${Ey[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, S.jsx)("b", {
@@ -24550,8 +24603,8 @@ function by({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var xy = 10, Sy = "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5", Cy = "relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary", wy = "添加媒体文件夹或关注来源,开始建立你的馆藏。", Ty = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Ey = "开始播放后,这里会显示最近的真实观看证据。", Dy = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Oy = "添加媒体文件夹后,这里会显示存储空间。";
-function ky({ term: e, value: t }) {
+var Oy = 10, ky = "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5", Ay = "relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary", jy = "添加媒体文件夹或关注来源,开始建立你的馆藏。", My = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Ny = "开始播放后,这里会显示最近的真实观看证据。", Py = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Fy = "添加媒体文件夹后,这里会显示存储空间。";
+function Iy({ term: e, value: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1.5 rounded-xl bg-background-tertiary-default p-3",
children: [/* @__PURE__ */ (0, S.jsx)("span", {
@@ -24563,7 +24616,7 @@ function ky({ term: e, value: t }) {
})]
});
}
-function Ay({ term: e, value: t, total: n }) {
+function Ly({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, S.jsxs)("p", {
@@ -24572,17 +24625,17 @@ function Ay({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, S.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [dy(t, n), "%"]
+ children: [vy(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, S.jsx)(kf, {
+ }), /* @__PURE__ */ (0, S.jsx)(If, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function jy({ term: e, figure: t, unit: n }) {
+function Ry({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 border-b border-separator-border pb-5 md:w-64 md:border-b-0 md:border-r md:pr-6 md:pb-0",
children: [
@@ -24601,26 +24654,26 @@ function jy({ term: e, figure: t, unit: n }) {
]
});
}
-function My({ headline: e, children: t }) {
+function zy({ headline: e, children: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
- className: `${Sy} md:flex-row md:gap-6`,
+ className: `${ky} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function Ny({ data: t, configurable: r, openMediaSettings: i }) {
+function By({ data: t, configurable: r, openMediaSettings: i }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, S.jsx)(by, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Dy, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: n(t.bytes)
}))
- }), /* @__PURE__ */ (0, S.jsx)(by, {
+ }), /* @__PURE__ */ (0, S.jsx)(Dy, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -24628,47 +24681,47 @@ function Ny({ data: t, configurable: r, openMediaSettings: i }) {
detail: n(e.bytes)
}))
})]
- }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: Iu,
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Wu,
title: "还没有视频",
- actions: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [r ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ actions: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [r ? /* @__PURE__ */ (0, S.jsx)($, {
size: "small",
onClick: i,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, S.jsx)(e_, {
+ }) : null, /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: wy
+ children: jy
});
}
-function Py({ attribution: e }) {
+function Vy({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, S.jsx)(Ay, {
+ /* @__PURE__ */ (0, S.jsx)(Ly, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, S.jsx)(Ay, {
+ /* @__PURE__ */ (0, S.jsx)(Ly, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, S.jsx)(Ay, {
+ /* @__PURE__ */ (0, S.jsx)(Ly, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, S.jsx)(Ay, {
+ /* @__PURE__ */ (0, S.jsx)(Ly, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, S.jsx)(Ay, {
+ /* @__PURE__ */ (0, S.jsx)(Ly, {
term: "已探测时长",
value: e.duration,
total: t
@@ -24676,7 +24729,7 @@ function Py({ attribution: e }) {
]
});
}
-function Fy({ volume: e }) {
+function Hy({ volume: e }) {
let t = e.total, r = e.used ?? 0;
return /* @__PURE__ */ (0, S.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
@@ -24688,14 +24741,14 @@ function Fy({ volume: e }) {
children: e.label
}), /* @__PURE__ */ (0, S.jsx)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: t == null ? e.online ? "容量未取得" : "离线" : `${dy(r, t)}%`
+ children: t == null ? e.online ? "容量未取得" : "离线" : `${vy(r, t)}%`
})]
}),
/* @__PURE__ */ (0, S.jsx)("small", {
className: "text-caption-1-regular break-words text-text-secondary",
children: e.root ?? "未映射"
}),
- t == null ? null : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ t == null ? null : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(If, {
label: `${e.label}空间使用率`,
value: r,
max: Math.max(t, 1)
@@ -24712,34 +24765,34 @@ function Fy({ volume: e }) {
]
});
}
-function Iy({ volumes: e, configurable: t, openMediaSettings: n }) {
+function Uy({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-5",
- children: e.map((e) => /* @__PURE__ */ (0, S.jsx)(Fy, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: Au,
+ children: e.map((e) => /* @__PURE__ */ (0, S.jsx)(Hy, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Pu,
title: "还没有存储来源",
- actions: t ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ actions: t ? /* @__PURE__ */ (0, S.jsx)($, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: Oy
+ children: Fy
});
}
-function Ly({ tags: e, tagLabel: t, onTag: n }) {
+function Wy({ tags: e, tagLabel: t, onTag: n }) {
let [r, i] = (0, x.useState)(!1);
- if (!e.length) return /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: Pu,
+ if (!e.length) return /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Ru,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ actions: /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: Ty
+ children: My
});
- let a = r ? e : e.slice(0, xy);
+ let a = r ? e : e.slice(0, Oy);
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-3",
children: [/* @__PURE__ */ (0, S.jsx)("ol", {
@@ -24766,9 +24819,9 @@ function Ly({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }), e.length > xy ? /* @__PURE__ */ (0, S.jsx)("div", {
+ }), e.length > Oy ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ children: /* @__PURE__ */ (0, S.jsx)($, {
variant: "secondary",
size: "small",
onClick: () => i(!r),
@@ -24777,11 +24830,11 @@ function Ly({ tags: e, tagLabel: t, onTag: n }) {
}) : null]
});
}
-function Ry({ rows: e }) {
+function Gy({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = py(e);
+ let t = by(e);
return /* @__PURE__ */ (0, S.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
@@ -24789,39 +24842,39 @@ function Ry({ rows: e }) {
children: [/* @__PURE__ */ (0, S.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, S.jsx)("a", {
- href: gy(e),
+ href: Cy(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, S.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, S.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, S.jsx)("span", { children: hy(e) })]
+ children: [/* @__PURE__ */ (0, S.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, S.jsx)("span", { children: Sy(e) })]
})]
}), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(If, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, S.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${my(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${xy(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: ju,
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Fu,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ actions: /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: Ey
+ children: Ny
});
}
-function zy({ sources: e, videos: t }) {
+function Ky({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)("article", {
@@ -24840,7 +24893,7 @@ function zy({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, S.jsx)(kf, {
+ /* @__PURE__ */ (0, S.jsx)(If, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -24851,19 +24904,19 @@ function zy({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
- icon: Pu,
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Ru,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ actions: /* @__PURE__ */ (0, S.jsx)(s_, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: Dy
+ children: Py
});
}
-function By({ id: e, label: t, figure: n, detail: r, icon: i }) {
- return /* @__PURE__ */ (0, S.jsxs)(ig, {
+function qy({ id: e, label: t, figure: n, detail: r, icon: i }) {
+ return /* @__PURE__ */ (0, S.jsxs)(fg, {
id: e,
className: "flex min-w-0 cursor-pointer flex-col gap-3 rounded-2xl border border-separator-border p-4 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-focus-ring",
children: [
@@ -24885,70 +24938,70 @@ function By({ id: e, label: t, figure: n, detail: r, icon: i }) {
]
});
}
-function Vy(e) {
- let t = ct({
- queryKey: cy,
- queryFn: ({ signal: e }) => ly(e)
+function Jy(e) {
+ let t = ut({
+ queryKey: hy,
+ queryFn: ({ signal: e }) => gy(e)
}), r = t.data;
- if (!r) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
+ if (!r) return /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
tone: "error",
title: "读取失败",
- children: t.error ? Sf(t.error) : "读取统计失败"
+ children: t.error ? kf(t.error) : "读取统计失败"
}) });
- let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = dy(r.tag_cov, r.attribution.videos);
- return /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
+ let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = vy(r.tag_cov, r.attribution.videos);
+ return /* @__PURE__ */ (0, S.jsxs)(Ff, { children: [
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${n(s)}`
}),
- /* @__PURE__ */ (0, S.jsxs)(eg, {
+ /* @__PURE__ */ (0, S.jsxs)(cg, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, S.jsxs)(ng, {
+ /* @__PURE__ */ (0, S.jsxs)(ug, {
"aria-label": "统计视图",
className: "inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4",
children: [
- /* @__PURE__ */ (0, S.jsx)(By, {
+ /* @__PURE__ */ (0, S.jsx)(qy, {
id: "inventory",
label: "馆藏视频",
- icon: Tu,
+ icon: Ou,
figure: o.toLocaleString(),
detail: n(s)
}),
- /* @__PURE__ */ (0, S.jsx)(By, {
+ /* @__PURE__ */ (0, S.jsx)(qy, {
id: "viewing",
label: "看过",
- icon: Ou,
+ icon: Mu,
figure: i.played.toLocaleString(),
- detail: fy(i.play_seconds)
+ detail: yy(i.play_seconds)
}),
- /* @__PURE__ */ (0, S.jsx)(By, {
+ /* @__PURE__ */ (0, S.jsx)(qy, {
id: "coverage",
label: "内容标签",
- icon: Pu,
+ icon: Ru,
figure: `${c}%`,
detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, S.jsx)(By, {
+ /* @__PURE__ */ (0, S.jsx)(qy, {
id: "storage",
label: "使用空间",
- icon: Au,
+ icon: Pu,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${n(a.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "inventory",
- children: /* @__PURE__ */ (0, S.jsx)(Ny, {
+ children: /* @__PURE__ */ (0, S.jsx)(By, {
data: r,
...e
})
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "viewing",
- children: /* @__PURE__ */ (0, S.jsx)(My, {
- headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ children: /* @__PURE__ */ (0, S.jsx)(zy, {
+ headline: /* @__PURE__ */ (0, S.jsx)(Ry, {
term: "观看",
figure: i.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -24956,31 +25009,31 @@ function Vy(e) {
children: /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "馆藏观看",
value: i.library_played
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "在线直接观看",
value: i.online_played
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "高潮计数",
value: i.o_total
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "快进扫过",
value: i.skimmed
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "明确不喜欢",
value: i.dislike
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "看过了",
value: i.seen
}),
- /* @__PURE__ */ (0, S.jsx)(ky, {
+ /* @__PURE__ */ (0, S.jsx)(Iy, {
term: "回收站",
value: i.trash
})
@@ -24988,26 +25041,26 @@ function Vy(e) {
})
})
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "coverage",
- children: /* @__PURE__ */ (0, S.jsx)(My, {
- headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ children: /* @__PURE__ */ (0, S.jsx)(zy, {
+ headline: /* @__PURE__ */ (0, S.jsx)(Ry, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, S.jsx)(Py, { attribution: r.attribution })
+ children: /* @__PURE__ */ (0, S.jsx)(Vy, { attribution: r.attribution })
})
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "storage",
- children: /* @__PURE__ */ (0, S.jsx)(My, {
- headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ children: /* @__PURE__ */ (0, S.jsx)(zy, {
+ headline: /* @__PURE__ */ (0, S.jsx)(Ry, {
term: "使用空间",
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, S.jsx)(Iy, {
+ children: /* @__PURE__ */ (0, S.jsx)(Uy, {
volumes: r.storage_volumes,
...e
})
@@ -25015,47 +25068,47 @@ function Vy(e) {
})
]
}),
- /* @__PURE__ */ (0, S.jsxs)(eg, {
+ /* @__PURE__ */ (0, S.jsxs)(cg, {
className: "flex flex-col rounded-2xl border border-separator-border",
children: [
- /* @__PURE__ */ (0, S.jsxs)(ng, {
+ /* @__PURE__ */ (0, S.jsxs)(ug, {
"aria-label": "统计维度",
className: "flex gap-6 overflow-x-auto border-b border-separator-border px-4",
children: [
- /* @__PURE__ */ (0, S.jsx)(ig, {
+ /* @__PURE__ */ (0, S.jsx)(fg, {
id: "tags",
- className: Cy,
+ className: Ay,
children: "内容标签"
}),
- /* @__PURE__ */ (0, S.jsx)(ig, {
+ /* @__PURE__ */ (0, S.jsx)(fg, {
id: "recent",
- className: Cy,
+ className: Ay,
children: "最近看过"
}),
- /* @__PURE__ */ (0, S.jsx)(ig, {
+ /* @__PURE__ */ (0, S.jsx)(fg, {
id: "sources",
- className: Cy,
+ className: Ay,
children: "标签来源"
})
]
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "tags",
className: "p-4",
- children: /* @__PURE__ */ (0, S.jsx)(Ly, {
+ children: /* @__PURE__ */ (0, S.jsx)(Wy, {
tags: r.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "recent",
className: "p-4",
- children: /* @__PURE__ */ (0, S.jsx)(Ry, { rows: r.recent })
+ children: /* @__PURE__ */ (0, S.jsx)(Gy, { rows: r.recent })
}),
- /* @__PURE__ */ (0, S.jsx)(ag, {
+ /* @__PURE__ */ (0, S.jsx)(pg, {
id: "sources",
className: "p-4",
- children: /* @__PURE__ */ (0, S.jsx)(zy, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ky, {
sources: r.tag_source,
videos: r.attribution.videos
})
@@ -25065,55 +25118,1700 @@ function Vy(e) {
] });
}
//#endregion
-//#region src/react/entry.tsx
-var Hy = null;
-function Uy() {
- return Hy?.isConnected || (Hy = document.createElement("div"), Hy.className = "peach-react", Hy.dataset.reactOverlays = "", document.body.append(Hy)), Hy;
+//#region node_modules/d3-array/src/max.js
+function Yy(e, t) {
+ let n;
+ if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
+ else {
+ let r = -1;
+ for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
+ }
+ return n;
}
-function Wy(e) {
- return (t, n) => {
- let r = (0, yu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
- client: Af,
- children: /* @__PURE__ */ (0, S.jsx)(lc, {
- getContainer: Uy,
- children: /* @__PURE__ */ (0, S.jsx)(e, { ...t })
- })
- }));
- return (0, Kr.flushSync)(() => i(n)), {
- update: i,
- unmount: () => r.unmount()
- };
+//#endregion
+//#region node_modules/d3-array/src/min.js
+function Xy(e, t) {
+ let n;
+ if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
+ else {
+ let r = -1;
+ for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
+ }
+ return n;
+}
+//#endregion
+//#region node_modules/d3-array/src/sum.js
+function Zy(e, t) {
+ let n = 0;
+ if (t === void 0) for (let t of e) (t = +t) && (n += t);
+ else {
+ let r = -1;
+ for (let i of e) (i = +t(i, ++r, e)) && (n += i);
+ }
+ return n;
+}
+//#endregion
+//#region node_modules/d3-sankey/src/align.js
+function Qy(e, t) {
+ return e.sourceLinks.length ? e.depth : t - 1;
+}
+//#endregion
+//#region node_modules/d3-sankey/src/constant.js
+function $y(e) {
+ return function() {
+ return e;
};
}
-var Gy = {
- activity: {
- prefetch: (e, t) => Lf(t),
- mount: Wy(Zf)
- },
- "avatar-picker": {
- prefetch: async () => {},
- mount: Wy(Fg)
- },
- configuration: {
- prefetch: (e, t) => mv(t),
- mount: Wy(oy)
- },
- "library-processing": {
- prefetch: (e, t) => Bg(t),
- mount: Wy((e) => e.mode === "notice" ? /* @__PURE__ */ (0, S.jsx)(N_, { ...e }) : /* @__PURE__ */ (0, S.jsx)(A_, { ...e }))
- },
- "quality-goals": {
- prefetch: (e, t) => L_(t),
- mount: Wy(B_)
- },
- scraping: {
- prefetch: (e, t) => nv(t),
- mount: Wy(lv)
- },
- stats: {
- prefetch: (e, t) => uy(t),
- mount: Wy(Vy)
+//#endregion
+//#region node_modules/d3-sankey/src/sankey.js
+function eb(e, t) {
+ return nb(e.source, t.source) || e.index - t.index;
+}
+function tb(e, t) {
+ return nb(e.target, t.target) || e.index - t.index;
+}
+function nb(e, t) {
+ return e.y0 - t.y0;
+}
+function rb(e) {
+ return e.value;
+}
+function ib(e) {
+ return e.index;
+}
+function ab(e) {
+ return e.nodes;
+}
+function ob(e) {
+ return e.links;
+}
+function sb(e, t) {
+ let n = e.get(t);
+ if (!n) throw Error("missing: " + t);
+ return n;
+}
+function cb({ nodes: e }) {
+ for (let t of e) {
+ let e = t.y0, n = e;
+ for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
+ for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
+ }
+}
+function lb() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ib, c = Qy, l, u, d = ab, f = ob, p = 6;
+ function m() {
+ let e = {
+ nodes: d.apply(null, arguments),
+ links: f.apply(null, arguments)
+ };
+ return h(e), g(e), _(e), v(e), x(e), cb(e), e;
+ }
+ m.update = function(e) {
+ return cb(e), e;
+ }, m.nodeId = function(e) {
+ return arguments.length ? (s = typeof e == "function" ? e : $y(e), m) : s;
+ }, m.nodeAlign = function(e) {
+ return arguments.length ? (c = typeof e == "function" ? e : $y(e), m) : c;
+ }, m.nodeSort = function(e) {
+ return arguments.length ? (l = e, m) : l;
+ }, m.nodeWidth = function(e) {
+ return arguments.length ? (i = +e, m) : i;
+ }, m.nodePadding = function(e) {
+ return arguments.length ? (a = o = +e, m) : a;
+ }, m.nodes = function(e) {
+ return arguments.length ? (d = typeof e == "function" ? e : $y(e), m) : d;
+ }, m.links = function(e) {
+ return arguments.length ? (f = typeof e == "function" ? e : $y(e), m) : f;
+ }, m.linkSort = function(e) {
+ return arguments.length ? (u = e, m) : u;
+ }, m.size = function(i) {
+ return arguments.length ? (e = t = 0, n = +i[0], r = +i[1], m) : [n - e, r - t];
+ }, m.extent = function(i) {
+ return arguments.length ? (e = +i[0][0], n = +i[1][0], t = +i[0][1], r = +i[1][1], m) : [[e, t], [n, r]];
+ }, m.iterations = function(e) {
+ return arguments.length ? (p = +e, m) : p;
+ };
+ function h({ nodes: e, links: t }) {
+ for (let [t, n] of e.entries()) n.index = t, n.sourceLinks = [], n.targetLinks = [];
+ let n = new Map(e.map((t, n) => [s(t, n, e), t]));
+ for (let [e, r] of t.entries()) {
+ r.index = e;
+ let { source: t, target: i } = r;
+ typeof t != "object" && (t = r.source = sb(n, t)), typeof i != "object" && (i = r.target = sb(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ }
+ if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
+ }
+ function g({ nodes: e }) {
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Zy(t.sourceLinks, rb), Zy(t.targetLinks, rb)) : t.fixedValue;
+ }
+ function _({ nodes: e }) {
+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
+ for (; n.size;) {
+ for (let e of n) {
+ e.depth = i;
+ for (let { target: t } of e.sourceLinks) r.add(t);
+ }
+ if (++i > t) throw Error("circular link");
+ n = r, r = /* @__PURE__ */ new Set();
+ }
+ }
+ function v({ nodes: e }) {
+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
+ for (; n.size;) {
+ for (let e of n) {
+ e.height = i;
+ for (let { source: t } of e.targetLinks) r.add(t);
+ }
+ if (++i > t) throw Error("circular link");
+ n = r, r = /* @__PURE__ */ new Set();
+ }
+ }
+ function y({ nodes: t }) {
+ let r = Yy(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ for (let n of t) {
+ let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
+ n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
+ }
+ if (l) for (let e of o) e.sort(l);
+ return o;
+ }
+ function b(e) {
+ let n = Xy(e, (e) => (r - t - (e.length - 1) * o) / Zy(e, rb));
+ for (let i of e) {
+ let e = t;
+ for (let t of i) {
+ t.y0 = e, t.y1 = e + t.value * n, e = t.y1 + o;
+ for (let e of t.sourceLinks) e.width = e.value * n;
+ }
+ e = (r - e + o) / (i.length + 1);
+ for (let t = 0; t < i.length; ++t) {
+ let n = i[t];
+ n.y0 += e * (t + 1), n.y1 += e * (t + 1);
+ }
+ O(i);
+ }
+ }
+ function x(e) {
+ let n = y(e);
+ o = Math.min(a, (r - t) / (Yy(n, (e) => e.length) - 1)), b(n);
+ for (let e = 0; e < p; ++e) {
+ let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
+ C(n, t, r), S(n, t, r);
+ }
+ }
+ function S(e, t, n) {
+ for (let r = 1, i = e.length; r < i; ++r) {
+ let i = e[r];
+ for (let e of i) {
+ let n = 0, r = 0;
+ for (let { source: t, value: i } of e.targetLinks) {
+ let a = i * (e.layer - t.layer);
+ n += k(t, e) * a, r += a;
+ }
+ if (!(r > 0)) continue;
+ let i = (n / r - e.y0) * t;
+ e.y0 += i, e.y1 += i, D(e);
+ }
+ l === void 0 && i.sort(nb), w(i, n);
+ }
+ }
+ function C(e, t, n) {
+ for (let r = e.length - 2; r >= 0; --r) {
+ let i = e[r];
+ for (let e of i) {
+ let n = 0, r = 0;
+ for (let { target: t, value: i } of e.sourceLinks) {
+ let a = i * (t.layer - e.layer);
+ n += A(e, t) * a, r += a;
+ }
+ if (!(r > 0)) continue;
+ let i = (n / r - e.y0) * t;
+ e.y0 += i, e.y1 += i, D(e);
+ }
+ l === void 0 && i.sort(nb), w(i, n);
+ }
+ }
+ function w(e, n) {
+ let i = e.length >> 1, a = e[i];
+ E(e, a.y0 - o, i - 1, n), T(e, a.y1 + o, i + 1, n), E(e, r, e.length - 1, n), T(e, t, 0, n);
+ }
+ function T(e, t, n, r) {
+ for (; n < e.length; ++n) {
+ let i = e[n], a = (t - i.y0) * r;
+ a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;
+ }
+ }
+ function E(e, t, n, r) {
+ for (; n >= 0; --n) {
+ let i = e[n], a = (i.y1 - t) * r;
+ a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;
+ }
+ }
+ function D({ sourceLinks: e, targetLinks: t }) {
+ if (u === void 0) {
+ for (let { source: { sourceLinks: e } } of t) e.sort(tb);
+ for (let { target: { targetLinks: t } } of e) t.sort(eb);
+ }
+ }
+ function O(e) {
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(tb), n.sort(eb);
+ }
+ function k(e, t) {
+ let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
+ for (let { target: r, width: i } of e.sourceLinks) {
+ if (r === t) break;
+ n += i + o;
+ }
+ for (let { source: r, width: i } of t.targetLinks) {
+ if (r === e) break;
+ n -= i;
+ }
+ return n;
+ }
+ function A(e, t) {
+ let n = t.y0 - (t.targetLinks.length - 1) * o / 2;
+ for (let { source: r, width: i } of t.targetLinks) {
+ if (r === e) break;
+ n += i + o;
+ }
+ for (let { target: r, width: i } of e.sourceLinks) {
+ if (r === t) break;
+ n -= i;
+ }
+ return n;
+ }
+ return m;
+}
+//#endregion
+//#region node_modules/d3-path/src/path.js
+var ub = Math.PI, db = 2 * ub, fb = 1e-6, pb = db - fb;
+function mb() {
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
+}
+function hb() {
+ return new mb();
+}
+mb.prototype = hb.prototype = {
+ constructor: mb,
+ moveTo: function(e, t) {
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
+ },
+ closePath: function() {
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
+ },
+ lineTo: function(e, t) {
+ this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);
+ },
+ quadraticCurveTo: function(e, t, n, r) {
+ this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);
+ },
+ bezierCurveTo: function(e, t, n, r, i, a) {
+ this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);
+ },
+ arcTo: function(e, t, n, r, i) {
+ e = +e, t = +t, n = +n, r = +r, i = +i;
+ var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
+ if (i < 0) throw Error("negative radius: " + i);
+ if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > fb) {
+ if (!(Math.abs(u * s - c * l) > fb) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else {
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((ub - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > fb && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ }
+ }
+ },
+ arc: function(e, t, n, r, i, a) {
+ e = +e, t = +t, n = +n, a = !!a;
+ var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
+ if (n < 0) throw Error("negative radius: " + n);
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > fb || Math.abs(this._y1 - l) > fb) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % db + db), d > pb ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > fb && (this._ += "A" + n + "," + n + ",0," + +(d >= ub) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ },
+ rect: function(e, t, n, r) {
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
+ },
+ toString: function() {
+ return this._;
+ }
+};
+//#endregion
+//#region node_modules/d3-shape/src/constant.js
+function gb(e) {
+ return function() {
+ return e;
+ };
+}
+//#endregion
+//#region node_modules/d3-shape/src/point.js
+function _b(e) {
+ return e[0];
+}
+function vb(e) {
+ return e[1];
+}
+//#endregion
+//#region node_modules/d3-shape/src/array.js
+var yb = Array.prototype.slice;
+//#endregion
+//#region node_modules/d3-shape/src/link/index.js
+function bb(e) {
+ return e.source;
+}
+function xb(e) {
+ return e.target;
+}
+function Sb(e) {
+ var t = bb, n = xb, r = _b, i = vb, a = null;
+ function o() {
+ var o, s = yb.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = hb(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ }
+ return o.source = function(e) {
+ return arguments.length ? (t = e, o) : t;
+ }, o.target = function(e) {
+ return arguments.length ? (n = e, o) : n;
+ }, o.x = function(e) {
+ return arguments.length ? (r = typeof e == "function" ? e : gb(+e), o) : r;
+ }, o.y = function(e) {
+ return arguments.length ? (i = typeof e == "function" ? e : gb(+e), o) : i;
+ }, o.context = function(e) {
+ return arguments.length ? (a = e ?? null, o) : a;
+ }, o;
+}
+function Cb(e, t, n, r, i) {
+ e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
+}
+function wb() {
+ return Sb(Cb);
+}
+//#endregion
+//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
+function Tb(e) {
+ return [e.source.x1, e.y0];
+}
+function Eb(e) {
+ return [e.target.x0, e.y1];
+}
+function Db() {
+ return wb().source(Tb).target(Eb);
+}
+//#endregion
+//#region src/react/taste/taste.ts
+var Ob = "/api/taste", kb = "/api/taste/refresh", Ab = "/api/taste/import", jb = "/api/taste/source", Mb = (e) => ["taste", e], Nb = ["taste", "refresh"], Pb = [
+ ["7d", "最近 7 天"],
+ ["30d", "最近 30 天"],
+ ["90d", "最近 90 天"],
+ ["365d", "最近一年"],
+ ["all", "全部时间"]
+], Fb = (e, t) => Af(`${Ob}?window=${e}`, t), Ib = (e) => Af(kb, e);
+async function Lb(e, t) {
+ await Lf.fetchQuery({
+ queryKey: Mb(e),
+ queryFn: () => Fb(e, t)
+ });
+}
+var Rb = (e) => jf(kb, {
+ window: e,
+ background: !0
+}), zb = (e, t) => jf(jb, {
+ operation: "remove",
+ source_key: e,
+ window: t
+});
+async function Bb(e) {
+ let t = await fetch(Ab, {
+ method: "POST",
+ credentials: "same-origin",
+ headers: {
+ "Content-Type": "application/octet-stream",
+ "X-Peach-Filename": encodeURIComponent(e.name)
+ },
+ body: e
+ }), n = null;
+ try {
+ n = await t.json();
+ } catch {}
+ if (!t.ok) {
+ let e = n?.error;
+ throw new Df(e || `导入失败(${t.status})`, t.status, n);
+ }
+ return n;
+}
+var Vb = 2e3, Hb = 1e4, Ub = (e) => e?.status === "running" ? Vb : Hb, Wb = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Gb = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Kb = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function qb(e) {
+ if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
+ let t = [];
+ return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
+}
+function Jb(e) {
+ let t = e.map(Kb), n = Math.max(1, ...t);
+ return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
+}
+var Yb = {
+ x: 160,
+ y: 140
+}, Xb = [
+ 25,
+ 50,
+ 75,
+ 100
+], Zb = (e, t, n) => {
+ let r = e / t * Math.PI * 2 - Math.PI / 2;
+ return [Yb.x + Math.cos(r) * n, Yb.y + Math.sin(r) * n];
+};
+function Qb(e) {
+ let t = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 6);
+ if (t.length < 3) return [];
+ let n = Math.max(...t.map((e) => Number(e.score)));
+ return t.map((e, r) => {
+ let [i, a] = Zb(r, t.length, Number(e.score) / n * 100), [o, s] = Zb(r, t.length, 116);
+ return {
+ name: e.name,
+ x: i,
+ y: a,
+ labelX: o,
+ labelY: s
+ };
+ });
+}
+var $b = (e, t) => Array.from({ length: t }, (n, r) => Zb(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), ex = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), tx = [
+ "周一",
+ "周二",
+ "周三",
+ "周四",
+ "周五",
+ "周六",
+ "周日"
+], nx = (e, t) => e ? Math.max(.12, e / t) : 0;
+function rx(e) {
+ let t = Array.from({ length: 7 }, () => Array(24).fill(0));
+ for (let n of e?.hours || []) {
+ let { weekday: e, hour: r, count: i } = n;
+ !Number.isInteger(e) || e < 0 || e > 6 || !Number.isInteger(r) || r < 0 || r > 23 || !Number.isFinite(i) || i < 0 || (t[e][r] = (t[e][r] || 0) + i);
+ }
+ let n = t.flat(), r = Math.max(1, ...n);
+ return {
+ cells: t.flatMap((e, t) => e.map((e, n) => ({
+ key: `${t}-${n}`,
+ label: `${tx[t]} ${n}:00`,
+ count: e,
+ share: nx(e, r)
+ }))),
+ total: n.reduce((e, t) => e + t, 0)
+ };
+}
+function ix(e) {
+ let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
+ cells: [],
+ total: 0,
+ start: "",
+ end: ""
+ };
+ if (!t.length) return n;
+ let r = /* @__PURE__ */ new Date(`${t.at(-1).date}T00:00:00Z`), i = new Date(r);
+ i.setUTCDate(i.getUTCDate() - 90);
+ let a = new Map(t.map((e) => [e.date, e.count])), o = Math.max(1, ...t.map((e) => e.count)), s = Array.from({ length: 91 }, (e, t) => {
+ let n = new Date(i);
+ n.setUTCDate(i.getUTCDate() + t);
+ let r = n.toISOString().slice(0, 10), s = a.get(r) || 0;
+ return {
+ key: r,
+ label: r,
+ count: s,
+ share: nx(s, o)
+ };
+ });
+ return {
+ cells: s,
+ total: s.reduce((e, t) => e + t.count, 0),
+ start: i.toISOString().slice(0, 10),
+ end: t.at(-1).date
+ };
+}
+var ax = {
+ width: 720,
+ height: 435
+}, ox = {
+ source: 145,
+ target: 545
+};
+function sx(e = []) {
+ let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
+ if (!t.length) return null;
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = lb().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ nodes: [...n.map((e) => ({
+ id: `source:${e}`,
+ name: e,
+ side: "source"
+ })), ...r.map((e) => ({
+ id: `target:${e}`,
+ name: e,
+ side: "target"
+ }))],
+ links: t.map((e) => ({
+ source: `source:${e.source}`,
+ target: `target:${e.target}`,
+ value: e.value
+ }))
+ }), a = t.reduce((e, t) => e + t.value, 0), o = Db();
+ return {
+ nodes: i.nodes.map((e) => ({
+ id: e.id,
+ name: e.name,
+ side: e.side,
+ index: e.index ?? 0,
+ x: e.x0 ?? 0,
+ y: e.y0 ?? 0,
+ height: Math.max(1, (e.y1 ?? 0) - (e.y0 ?? 0)),
+ value: e.value ?? 0,
+ share: (e.value ?? 0) / a * 100,
+ color: n.indexOf(e.name) % 6
+ })),
+ links: i.links.map((e, t) => {
+ let r = e.source, i = e.target;
+ return {
+ key: `${r.id}->${i.id}:${t}`,
+ d: o(e) || "",
+ width: Math.max(.5, e.width || 0),
+ color: n.indexOf(r.name) % 6,
+ source: r.index ?? 0,
+ target: i.index ?? 0,
+ value: e.value,
+ label: `${r.name} → ${i.name}`
+ };
+ }),
+ total: a
+ };
+}
+var cx = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, lx = [
+ "stroke-chart-1",
+ "stroke-chart-2",
+ "stroke-chart-3",
+ "stroke-chart-4",
+ "stroke-chart-5",
+ "stroke-chart-6"
+], ux = [
+ "fill-chart-1",
+ "fill-chart-2",
+ "fill-chart-3",
+ "fill-chart-4",
+ "fill-chart-5",
+ "fill-chart-6"
+], dx = "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5";
+function fx({ title: e, figure: t, note: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("header", {
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex flex-wrap items-baseline gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-title-1-medium tabular-nums text-text-primary",
+ children: t
+ }), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
+ children: n
+ })]
+ })]
+ });
+}
+function px({ rows: e, label: t }) {
+ let n = Qb(e);
+ if (!n.length) return null;
+ let r = n.length;
+ return /* @__PURE__ */ (0, S.jsxs)("svg", {
+ viewBox: "0 0 320 280",
+ role: "img",
+ "aria-label": t,
+ className: "block w-full overflow-visible",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("title", { children: n.map((e) => e.name).join(",") }),
+ Xb.map((e) => /* @__PURE__ */ (0, S.jsx)("polygon", {
+ points: $b(e, r),
+ fill: "none",
+ className: "stroke-separator-border",
+ strokeWidth: 1
+ }, e)),
+ /* @__PURE__ */ (0, S.jsx)("polygon", {
+ points: ex(n),
+ strokeWidth: 2,
+ strokeLinejoin: "round",
+ fillOpacity: .18,
+ className: "fill-chart-4 stroke-chart-4"
+ }),
+ n.map((e) => /* @__PURE__ */ (0, S.jsx)("text", {
+ x: e.labelX,
+ y: e.labelY,
+ dominantBaseline: "middle",
+ textAnchor: e.labelX < 145 ? "end" : e.labelX > 175 ? "start" : "middle",
+ className: "fill-text-secondary text-caption-1-regular",
+ children: e.name
+ }, e.name))
+ ]
+ });
+}
+function mx({ rows: e, label: t }) {
+ let n = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 8);
+ if (!n.length) return null;
+ let r = Jb(n);
+ return /* @__PURE__ */ (0, S.jsx)("ol", {
+ "aria-label": t,
+ className: "flex flex-col gap-2",
+ children: n.map((e, t) => /* @__PURE__ */ (0, S.jsxs)("li", {
+ className: "flex min-w-0 flex-col gap-1.5",
+ children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "min-w-0 break-words",
+ children: e.name
+ }), /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "tabular-nums",
+ children: Number(e.score).toLocaleString()
+ })]
+ }), /* @__PURE__ */ (0, S.jsxs)("svg", {
+ viewBox: "0 0 100 1",
+ preserveAspectRatio: "none",
+ "aria-hidden": !0,
+ className: "h-1.5 w-full overflow-hidden rounded-full",
+ children: [/* @__PURE__ */ (0, S.jsx)("rect", {
+ width: 100,
+ height: 1,
+ className: "fill-chart-track"
+ }), /* @__PURE__ */ (0, S.jsx)("rect", {
+ width: r[t],
+ height: 1,
+ className: "fill-chart-4"
+ })]
+ })]
+ }, e.name))
+ });
+}
+function hx({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
+ let [c, l] = (0, x.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: dx,
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(fx, {
+ title: e,
+ figure: (c ? c.count : r).toLocaleString(),
+ note: c ? c.label : t
+ }),
+ /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 overflow-x-auto",
+ children: /* @__PURE__ */ (0, S.jsxs)("svg", {
+ role: "img",
+ "aria-label": e,
+ onPointerLeave: () => l(null),
+ viewBox: `0 0 ${u + i * 17} ${d + a * 17}`,
+ className: "block h-auto min-w-80 w-full",
+ children: [o, n.map((e, t) => {
+ let n = t % i, r = Math.floor(t / i);
+ return /* @__PURE__ */ (0, S.jsx)("rect", {
+ tabIndex: 0,
+ role: "img",
+ "aria-label": `${e.label},${e.count} 次访问`,
+ x: u + n * 17,
+ y: d + r * 17,
+ width: 14,
+ height: 14,
+ rx: 3,
+ fillOpacity: e.share || 1,
+ className: e.share ? "fill-chart-4 outline-none focus-visible:stroke-border-focus-ring" : "fill-chart-track outline-none focus-visible:stroke-border-focus-ring",
+ onPointerEnter: () => l(e),
+ onFocus: () => l(e),
+ onBlur: () => l(null)
+ }, e.key);
+ })]
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsx)("footer", {
+ className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",
+ children: s
+ })
+ ]
+ });
+}
+var gx = "口味网站访问";
+function _x({ activity: e }) {
+ let t = rx(e), n = ix(e);
+ if (!n.cells.length) return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: dx,
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "text-headline-medium text-text-primary",
+ children: "浏览活跃时间"
+ }), /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "还没有可用于分析的口味网站访问记录。"
+ })]
+ });
+ let r = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [tx.map((e, t) => /* @__PURE__ */ (0, S.jsx)("text", {
+ x: 0,
+ y: 18 + t * 17 + 7,
+ dominantBaseline: "middle",
+ className: "fill-text-secondary text-caption-1-regular",
+ children: e
+ }, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, S.jsx)("text", {
+ x: 30 + t * 17,
+ y: 8,
+ dominantBaseline: "middle",
+ className: "fill-text-secondary text-caption-1-regular",
+ children: t
+ }, t))] });
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "inline-grid w-full gap-5 lg:grid-cols-2",
+ children: [/* @__PURE__ */ (0, S.jsx)(hx, {
+ title: "浏览活跃时间",
+ unit: gx,
+ cells: t.cells,
+ total: t.total,
+ columns: 24,
+ rows: 7,
+ axis: r,
+ footer: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, S.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
+ }), /* @__PURE__ */ (0, S.jsx)(hx, {
+ title: "每日活跃",
+ unit: gx,
+ cells: n.cells,
+ total: n.total,
+ columns: 13,
+ rows: 7,
+ footer: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)("span", { children: n.start }), /* @__PURE__ */ (0, S.jsx)("span", { children: n.end })] })
+ })]
+ });
+}
+function vx({ flows: e }) {
+ let [t, n] = (0, x.useState)(null), r = sx(e);
+ if (!r) return null;
+ let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: dx,
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(fx, {
+ title: "创作者线索来源",
+ figure: (t ? t.value : r.total).toLocaleString(),
+ note: t ? t.label : "条线索"
+ }),
+ /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 overflow-x-auto",
+ children: /* @__PURE__ */ (0, S.jsxs)("svg", {
+ viewBox: `0 0 ${ax.width} ${ax.height}`,
+ fill: "none",
+ role: "img",
+ "aria-label": "来源网站与创作者线索",
+ className: "block h-auto min-w-160 w-full",
+ onPointerLeave: () => n(null),
+ children: [/* @__PURE__ */ (0, S.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, S.jsx)("path", {
+ d: e.d,
+ strokeWidth: e.width,
+ tabIndex: 0,
+ role: "img",
+ "aria-label": `${e.label}:${e.value} 条线索`,
+ fillOpacity: 0,
+ strokeOpacity: a(e, e.label) ? .7 : .08,
+ className: `outline-none transition-opacity ${lx[e.color]}`,
+ onPointerEnter: () => n({
+ value: e.value,
+ label: e.label,
+ node: null
+ }),
+ onFocus: () => n({
+ value: e.value,
+ label: e.label,
+ node: null
+ }),
+ onBlur: () => n(null)
+ }, e.key)) }), /* @__PURE__ */ (0, S.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, S.jsxs)("g", {
+ tabIndex: 0,
+ role: "img",
+ "aria-label": `${e.name}:${e.value} 条线索`,
+ className: "outline-none focus-visible:opacity-100",
+ onPointerEnter: () => n({
+ value: e.value,
+ label: e.name,
+ node: e.index
+ }),
+ onFocus: () => n({
+ value: e.value,
+ label: e.name,
+ node: e.index
+ }),
+ onBlur: () => n(null),
+ children: [/* @__PURE__ */ (0, S.jsx)("rect", {
+ x: e.x,
+ y: e.y,
+ width: 10,
+ height: e.height,
+ rx: 5,
+ className: e.side === "source" ? ux[e.color] : "fill-text-secondary"
+ }), /* @__PURE__ */ (0, S.jsxs)("text", {
+ x: ox[e.side],
+ y: e.y + e.height / 2,
+ textAnchor: e.side === "source" ? "end" : "start",
+ dominantBaseline: "middle",
+ className: "fill-text-secondary text-caption-1-regular",
+ children: [cx(e.name), /* @__PURE__ */ (0, S.jsx)("tspan", {
+ x: ox[e.side],
+ dy: 15,
+ children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
+ })]
+ })]
+ }, e.id)) })]
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("footer", {
+ className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, S.jsx)("span", { children: "创作者 · 线索占比" })]
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/taste/taste-page.tsx
+var yx = 10, bx = Z(d_, f_, "text-body-2-medium"), xx = "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5", Sx = "relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary", Cx = "flex cursor-pointer items-center rounded-lg px-3 py-1.5 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary", wx = "读取运行 Peach 的这台电脑上的浏览记录", Tx = "导入或读取浏览记录后,这里会列出已采集设备。", Ex = "馆藏里暂时没有对得上浏览信号的标签。", Dx = "采集浏览记录后,这里会显示聚合后的口味证据。", Ox = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", kx = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Ax = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", jx = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Mx = "这个数据源将不再用于口味分析。原始导出文件保留。", Nx = "peach-taste-guide-dismissed";
+function Px({ icon: e, term: t, figure: n, detail: r }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-2 rounded-2xl border border-separator-border p-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 items-center gap-2 text-body-2-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)(e, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), t]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-title-1-medium tabular-nums text-text-primary",
+ children: n
+ }),
+ /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "min-w-0 overflow-hidden text-caption-1-regular text-ellipsis whitespace-nowrap text-text-secondary",
+ children: r ?? ""
+ })
+ ]
+ });
+}
+function Fx({ name: e, domain: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
+ children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, S.jsx)("img", {
+ src: i({ domain: t }),
+ alt: "",
+ loading: "lazy",
+ width: 20,
+ height: 20,
+ onError: (e) => e.currentTarget.remove(),
+ className: "absolute size-5 object-contain"
+ })]
+ });
+}
+function Ix({ html: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",
+ dangerouslySetInnerHTML: { __html: e }
+ });
+}
+function Lx({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ let [o, s] = (0, x.useState)(!1);
+ if (!e.length) return /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: zu,
+ title: "暂无足够证据",
+ children: r
+ });
+ let c = Jb(e), l = o ? e : e.slice(0, yx);
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("ol", {
+ className: "inline-grid w-full gap-1 sm:grid-cols-2",
+ children: l.map((e, r) => {
+ let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
+ children: r + 1
+ }),
+ n === "domain" ? /* @__PURE__ */ (0, S.jsx)(Fx, {
+ name: e.name,
+ domain: e.name
+ }) : null,
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, S.jsx)(Fx, {
+ name: e.name,
+ domain: s
+ }) : null,
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, S.jsx)(Ix, { html: a(e.name, e.entity_id ? {
+ id: e.entity_id,
+ has_image: !!e.has_image,
+ avatar_focus: e.avatar_focus
+ } : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,
+ /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 grow flex-col gap-1",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "min-w-0 text-body-2-regular break-words text-text-primary",
+ children: e.name
+ }),
+ /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: qb(e)
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("svg", {
+ viewBox: "0 0 100 1",
+ preserveAspectRatio: "none",
+ "aria-hidden": !0,
+ className: "h-1 w-full overflow-hidden rounded-full",
+ children: [/* @__PURE__ */ (0, S.jsx)("rect", {
+ width: 100,
+ height: 1,
+ className: "fill-chart-track"
+ }), /* @__PURE__ */ (0, S.jsx)("rect", {
+ width: c[r],
+ height: 1,
+ className: "fill-chart-4"
+ })]
+ })
+ ]
+ }),
+ o ? /* @__PURE__ */ (0, S.jsx)(Tu, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0 text-text-tertiary"
+ }) : null
+ ] }), u = "flex w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";
+ return /* @__PURE__ */ (0, S.jsx)("li", {
+ className: "min-w-0",
+ children: o ? /* @__PURE__ */ (0, S.jsx)("button", {
+ type: "button",
+ onClick: () => i(t, e.name),
+ className: `${u} cursor-pointer outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ children: l
+ }) : /* @__PURE__ */ (0, S.jsx)("div", {
+ className: u,
+ children: l
+ })
+ }, e.name);
+ })
+ }), e.length > yx ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex justify-center",
+ children: /* @__PURE__ */ (0, S.jsx)($, {
+ variant: "secondary",
+ size: "small",
+ onClick: () => s(!o),
+ children: o ? "收起排名" : "展开更多排名"
+ })
+ }) : null]
+ });
+}
+function Rx({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, S.jsxs)(cg, {
+ className: "flex flex-col rounded-2xl border border-separator-border",
+ children: [/* @__PURE__ */ (0, S.jsx)(ug, {
+ "aria-label": e,
+ className: "flex gap-6 overflow-x-auto border-b border-separator-border px-4",
+ children: t.map((e) => /* @__PURE__ */ (0, S.jsx)(fg, {
+ id: e.id,
+ className: Sx,
+ children: e.name
+ }, e.id))
+ }), t.map((e) => /* @__PURE__ */ (0, S.jsx)(pg, {
+ id: e.id,
+ className: "p-4",
+ children: /* @__PURE__ */ (0, S.jsx)(Lx, {
+ ...e.props,
+ onSignal: n,
+ avatarInner: r
+ })
+ }, e.id))]
+ });
+}
+function zx({ data: e, onSignal: t, navigate: n }) {
+ let r = e.analysis;
+ if (!r?.headline) return null;
+ let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
+ key: `tag:${e.tag}`,
+ title: e.title,
+ detail: e.detail,
+ act: () => t("tag", e.tag)
+ })), ...(r.next_steps || []).map((e) => ({
+ key: `route:${e.route}`,
+ title: e.title,
+ detail: e.detail,
+ act: () => n(e.route)
+ }))];
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: xx,
+ "aria-label": "口味总结",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("header", {
+ className: "flex flex-col gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "text-headline-medium text-text-primary",
+ children: "口味总结"
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex flex-wrap items-baseline gap-2.5 text-body-2-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: i.level === "high" ? "shrink-0 rounded-md bg-status-lime-background px-2 py-0.5 text-caption-1-medium text-status-lime-text" : i.level === "medium" ? "shrink-0 rounded-md bg-status-yellow-background px-2 py-0.5 text-caption-1-medium text-status-yellow-text" : "shrink-0 rounded-md bg-background-tertiary-default px-2 py-0.5 text-caption-1-medium text-text-secondary",
+ children: i.label || "仍在学习"
+ }), /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "min-w-0",
+ children: r.headline
+ })]
+ })]
+ }),
+ r.points?.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "inline-grid w-full gap-3 sm:grid-cols-2",
+ children: r.points.map((e) => /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e.label
+ }), /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-body-2-medium break-words text-text-primary",
+ children: e.text
+ })]
+ }, e.label))
+ }) : null,
+ a.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-2",
+ children: a.map((e) => /* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ onClick: e.act,
+ className: "flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-xl bg-background-tertiary-default p-3 text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring",
+ children: [/* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 grow flex-col gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-body-2-medium text-text-primary",
+ children: e.title
+ }), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e.detail
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(Tu, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0 text-text-tertiary"
+ })]
+ }, e.key))
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: zu,
+ title: "还没有可探索的入口",
+ children: Ex
+ })
+ ]
+ });
+}
+function Bx({ onboarding: e, done: t }) {
+ let [n, r] = (0, x.useState)(() => {
+ try {
+ return localStorage.getItem(Nx) === "1";
+ } catch {
+ return !1;
+ }
+ });
+ return t || n ? null : /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "rounded-2xl border border-separator-border p-4",
+ children: /* @__PURE__ */ (0, S.jsxs)(E_, {
+ summary: "浏览器历史记录导入指南",
+ defaultOpen: e,
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: kx
+ }),
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: Ax
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("ul", {
+ className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsxs)("li", { children: [
+ "Chrome:在 ",
+ /* @__PURE__ */ (0, S.jsx)("a", {
+ href: "https://takeout.google.com/",
+ target: "_blank",
+ rel: "noopener noreferrer",
+ className: "text-text-primary underline-offset-4 hover:underline",
+ children: "Google Takeout"
+ }),
+ " ",
+ "选择 Chrome 历史记录,下载 ZIP 后直接导入。"
+ ] }), /* @__PURE__ */ (0, S.jsxs)("li", { children: [
+ "其他浏览器:用 ",
+ /* @__PURE__ */ (0, S.jsx)("a", {
+ href: "https://github.com/purarue/browserexport",
+ target: "_blank",
+ rel: "noopener noreferrer",
+ className: "text-text-primary underline-offset-4 hover:underline",
+ children: "browserexport"
+ }),
+ " ",
+ "导出历史记录,再导入导出文件。"
+ ] })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: jx
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "self-start",
+ children: /* @__PURE__ */ (0, S.jsx)($, {
+ variant: "secondary",
+ size: "small",
+ onClick: () => {
+ try {
+ localStorage.setItem(Nx, "1");
+ } catch {}
+ r(!0);
+ },
+ children: "跳过"
+ })
+ })
+ ]
+ })
+ });
+}
+function Vx({ busy: e, onRefresh: t, onImport: n }) {
+ let r = (0, x.useRef)(null), [i, a] = (0, x.useState)(!1), o = (e) => {
+ a(!1), e();
+ };
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex items-center gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)($, {
+ leadingIcon: Du,
+ title: wx,
+ onClick: t,
+ ...kg(e),
+ children: "读取浏览器历史"
+ }), /* @__PURE__ */ (0, S.jsx)($, {
+ ref: r,
+ iconOnly: !0,
+ leadingIcon: Cu,
+ "aria-label": "更多取得浏览记录的方式",
+ "aria-haspopup": "dialog",
+ "aria-expanded": i,
+ onClick: () => a(!0)
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(_h, {
+ triggerRef: r,
+ isOpen: i,
+ onOpenChange: a,
+ placement: "bottom end",
+ offset: 4,
+ className: c_,
+ children: /* @__PURE__ */ (0, S.jsxs)(xh, {
+ "aria-label": "更多取得浏览记录的方式",
+ className: "flex w-52 flex-col gap-1 outline-none",
+ children: [/* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ className: bx,
+ onClick: () => o(t),
+ children: [/* @__PURE__ */ (0, S.jsx)(Du, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), "读取浏览器历史"]
+ }), /* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ className: bx,
+ onClick: () => o(n),
+ children: [/* @__PURE__ */ (0, S.jsx)(Hu, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), "导入历史文件"]
+ })]
+ })
+ })] });
+}
+function Hx({ sources: e, window: t, toast: n }) {
+ let r = dt({
+ mutationFn: (e) => zb(e, t),
+ onSuccess: (e) => {
+ Lf.setQueryData(Mb(t), e.dashboard), n("已移除口味数据源");
+ }
+ });
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: xx,
+ "aria-label": "数据源",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "text-headline-medium text-text-primary",
+ children: "数据源"
+ }),
+ r.error ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ tone: "error",
+ children: kf(r.error)
+ }) : null,
+ e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "inline-grid w-full gap-2 sm:grid-cols-2",
+ children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 items-center gap-3 rounded-xl bg-background-tertiary-default p-3",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, S.jsx)(Hu, {
+ "aria-hidden": !0,
+ className: "size-4"
+ }) : /* @__PURE__ */ (0, S.jsx)(Ou, {
+ "aria-hidden": !0,
+ className: "size-4"
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 grow flex-col gap-0.5",
+ children: [/* @__PURE__ */ (0, S.jsx)("b", {
+ className: "min-w-0 text-body-2-medium break-words text-text-primary",
+ children: e.profile
+ }), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
+ children: `${e.browser} · ${e.host} · ${Number(e.visits || 0).toLocaleString()} 条`
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)($, {
+ variant: "secondary",
+ size: "small",
+ "aria-label": `移除 ${e.profile}`,
+ iconOnly: !0,
+ leadingIcon: ku,
+ ...kg(r.isPending),
+ onClick: () => {
+ r.isPending || o({
+ title: "移除口味数据源",
+ body: Mx,
+ confirmLabel: "移除口味数据源",
+ onConfirm: () => r.mutateAsync(e.source_key)
+ });
+ }
+ })
+ ]
+ }, e.source_key))
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: Ou,
+ title: "还没有数据源",
+ children: Tx
+ })
+ ]
+ });
+}
+function Ux(e) {
+ let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, x.useState)("all"), [l, u] = (0, x.useState)("browser"), [d, f] = (0, x.useState)(!1), [p, m] = (0, x.useState)(null), h = (0, x.useRef)(null), g = ut({
+ queryKey: Mb(s),
+ queryFn: ({ signal: e }) => Fb(s, e),
+ placeholderData: me
+ }), _ = ut({
+ queryKey: Nb,
+ queryFn: ({ signal: e }) => Ib(e),
+ refetchInterval: (e) => Ub(e.state.data)
+ }), v = dt({
+ mutationFn: () => Rb(s),
+ onSuccess: () => {
+ f(!0), m(null), Lf.invalidateQueries({ queryKey: Nb });
+ }
+ }), y = dt({
+ mutationFn: (e) => Bb(e),
+ onSuccess: (e) => {
+ c("all"), Lf.setQueryData(Mb("all"), e.dashboard), i("已导入口味数据");
+ }
+ }), b = _.data?.status === "running";
+ (0, x.useEffect)(() => {
+ let e = _.data;
+ if (e) {
+ if (e.status === "running") {
+ d || f(!0);
+ return;
+ }
+ d && (f(!1), m(e), e.status !== "failed" && (Lf.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析")));
+ }
+ }, [
+ _.data,
+ d,
+ i
+ ]);
+ let C = (e) => {
+ let t = e.currentTarget.files?.[0];
+ e.currentTarget.value = "", !(!t || y.isPending) && (y.reset(), y.mutate(t));
+ }, w = () => {
+ b || v.isPending || (v.reset(), v.mutate());
+ }, T = g.data;
+ if (!T) return /* @__PURE__ */ (0, S.jsx)(Ff, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ tone: "error",
+ title: "读取失败",
+ children: g.error ? kf(g.error) : "读取口味分析失败"
+ }) });
+ let E = T.summary || {}, D = T.coverage || {}, O = T.rankings || {}, k = T.storage || {}, A = O.browser_categories || [], ee = T.gaps || [], j = D.tagged || 0, te = D.identified || 0, M = v.error ? kf(v.error) : y.error ? kf(y.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
+ return /* @__PURE__ */ (0, S.jsxs)(Ff, { children: [
+ /* @__PURE__ */ (0, S.jsxs)(cg, {
+ selectedKey: l,
+ onSelectionChange: (e) => u(String(e)),
+ className: "flex flex-col gap-5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-between gap-3",
+ children: [/* @__PURE__ */ (0, S.jsxs)(ug, {
+ "aria-label": "口味证据来源",
+ className: "flex flex-wrap gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)(fg, {
+ id: "browser",
+ className: Cx,
+ children: "浏览器记录"
+ }), /* @__PURE__ */ (0, S.jsx)(fg, {
+ id: "peach",
+ className: Cx,
+ children: "Peach 内部"
+ })]
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-2",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(Q_, {
+ "aria-label": "分析范围",
+ selectedKey: s,
+ onSelectionChange: (e) => {
+ e !== null && c(String(e));
+ },
+ children: Pb.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)($_, {
+ id: e,
+ children: t
+ }, e))
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Vx, {
+ busy: b || v.isPending || y.isPending,
+ onRefresh: w,
+ onImport: () => h.current?.click()
+ }),
+ /* @__PURE__ */ (0, S.jsx)("input", {
+ ref: h,
+ type: "file",
+ tabIndex: -1,
+ "aria-hidden": !0,
+ className: "hidden",
+ onChange: C
+ })
+ ]
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Bx, {
+ onboarding: o,
+ done: !!(E.history_sources || T.updated_at)
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ "aria-live": "polite",
+ className: "flex flex-col gap-3 empty:hidden",
+ children: [
+ b ? _.data?.total ? /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-1.5",
+ children: [/* @__PURE__ */ (0, S.jsx)(If, {
+ label: _.data.message || "正在读取浏览记录",
+ value: _.data.checked || 0,
+ max: _.data.total
+ }), /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: `${_.data.message || "正在读取浏览记录"} · ${_.data.checked || 0} / ${_.data.total}`
+ })]
+ }) : /* @__PURE__ */ (0, S.jsx)(Nf, { label: _.data?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ y.isPending ? /* @__PURE__ */ (0, S.jsx)(Nf, { label: "正在导入历史文件" }) : null,
+ M ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ tone: "error",
+ children: M
+ }) : null
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsxs)(pg, {
+ id: "browser",
+ className: "flex flex-col gap-5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Fu,
+ term: "浏览记录",
+ figure: Number(E.history_visits || 0).toLocaleString(),
+ detail: `${E.history_sources || 0} 个数据源 · ${Wb(E.range_start)}—${Wb(E.range_end)}`
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Ru,
+ term: "口味维度",
+ figure: A.length.toLocaleString(),
+ detail: A[0]?.name || "尚无主维度"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: zu,
+ term: "浏览候选",
+ figure: ee.length.toLocaleString()
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Ou,
+ term: "私有导出",
+ figure: Number(k.exports || 0).toLocaleString(),
+ detail: n(k.bytes || 0)
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: `${xx} md:flex-row md:gap-6`,
+ "aria-label": "浏览器画像",
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex shrink-0 flex-col gap-2 border-b border-separator-border pb-5 md:w-72 md:border-b-0 md:border-r md:pr-6 md:pb-0",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: "浏览器画像"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(px, {
+ rows: A,
+ label: "主要口味维度"
+ }),
+ /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: T.updated_at ? `更新于 ${Wb(T.updated_at)}` : "尚未采集浏览记录"
+ })
+ ]
+ }), /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 grow",
+ children: A.length ? /* @__PURE__ */ (0, S.jsx)(mx, {
+ rows: A,
+ label: "口味维度排名"
+ }) : /* @__PURE__ */ (0, S.jsx)(Mf, {
+ icon: zu,
+ title: "暂无口味维度",
+ children: Dx
+ })
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(_x, { activity: T.activity }),
+ /* @__PURE__ */ (0, S.jsx)(vx, { flows: T.creator_flows }),
+ /* @__PURE__ */ (0, S.jsx)(Rx, {
+ label: "浏览器口味维度",
+ onSignal: t,
+ avatarInner: a,
+ panels: [
+ {
+ id: "tags",
+ name: "标签",
+ props: {
+ rows: O.browser_tags || [],
+ kind: "tag",
+ visual: "none",
+ empty: "暂无足够证据"
+ }
+ },
+ {
+ id: "creators",
+ name: "创作者",
+ props: {
+ rows: O.browser_creators || [],
+ kind: "creator",
+ visual: "creator",
+ empty: "暂无创作者证据"
+ }
+ },
+ {
+ id: "domains",
+ name: "常访问网站",
+ props: {
+ rows: O.domains || [],
+ kind: "",
+ visual: "domain",
+ empty: "暂无网站证据"
+ }
+ },
+ {
+ id: "gaps",
+ name: "浏览候选",
+ props: {
+ rows: ee,
+ kind: "",
+ visual: "none",
+ empty: Ox
+ }
+ }
+ ]
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsxs)(pg, {
+ id: "peach",
+ className: "flex flex-col gap-5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Mu,
+ term: "Peach 看过",
+ figure: Number(E.peach_items || 0).toLocaleString(),
+ detail: Gb(E.peach_seconds || 0)
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Vu,
+ term: "喜欢",
+ figure: Number(E.liked || 0).toLocaleString()
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Bu,
+ term: "不合口味",
+ figure: Number(E.disliked || 0).toLocaleString()
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Px, {
+ icon: Ru,
+ term: "有标签",
+ figure: j.toLocaleString()
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: `${xx} md:flex-row md:gap-6`,
+ "aria-label": "Peach 观看",
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex shrink-0 flex-col gap-0.5 border-b border-separator-border pb-5 md:w-72 md:border-b-0 md:border-r md:pr-6 md:pb-0",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: "Peach 观看"
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-display-4-medium tabular-nums text-text-primary",
+ children: Number(E.peach_items || 0).toLocaleString()
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "个作品有内部行为证据"
+ })
+ ]
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 grow flex-col",
+ children: [/* @__PURE__ */ (0, S.jsx)(Wx, {
+ term: "有标签",
+ value: j,
+ rest: D.untagged || 0
+ }), /* @__PURE__ */ (0, S.jsx)(Wx, {
+ term: "有身份",
+ value: te,
+ rest: D.unidentified || 0
+ })]
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Rx, {
+ label: "Peach 口味维度",
+ onSignal: t,
+ avatarInner: a,
+ panels: [
+ {
+ id: "tags",
+ name: "标签",
+ props: {
+ rows: O.peach_tags || [],
+ kind: "tag",
+ visual: "none",
+ empty: "暂无足够证据"
+ }
+ },
+ {
+ id: "creators",
+ name: "创作者",
+ props: {
+ rows: O.peach_creators || [],
+ kind: "creator",
+ visual: "creator",
+ empty: "暂无创作者证据"
+ }
+ },
+ {
+ id: "performers",
+ name: "女优",
+ props: {
+ rows: O.peach_performers || [],
+ kind: "performer",
+ visual: "entity",
+ empty: "暂无女优证据"
+ }
+ }
+ ]
+ })
+ ]
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(zx, {
+ data: T,
+ onSignal: t,
+ navigate: r
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Hx, {
+ sources: T.sources || [],
+ window: s,
+ toast: i
+ })
+ ] });
+}
+function Wx({ term: e, value: t, rest: n }) {
+ let r = Math.max(t + n, 1);
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
+ children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", { children: e }), /* @__PURE__ */ (0, S.jsxs)("b", {
+ className: "tabular-nums",
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "ml-1.5 text-caption-1-regular text-text-secondary",
+ children: `${n} 项待补`
+ })]
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(If, {
+ label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
+ value: t,
+ max: r
+ })]
+ });
+}
+//#endregion
+//#region src/react/entry.tsx
+var Gx = null;
+function Kx() {
+ return Gx?.isConnected || (Gx = document.createElement("div"), Gx.className = "peach-react", Gx.dataset.reactOverlays = "", document.body.append(Gx)), Gx;
+}
+function qx(e) {
+ return (t, n) => {
+ let r = (0, xu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
+ client: Lf,
+ children: /* @__PURE__ */ (0, S.jsx)(dc, {
+ getContainer: Kx,
+ children: /* @__PURE__ */ (0, S.jsx)(e, { ...t })
+ })
+ }));
+ return (0, Jr.flushSync)(() => i(n)), {
+ update: i,
+ unmount: () => r.unmount()
+ };
+ };
+}
+var Jx = {
+ activity: {
+ prefetch: (e, t) => Uf(t),
+ mount: qx(ip)
+ },
+ "avatar-picker": {
+ prefetch: async () => {},
+ mount: qx(Hg)
+ },
+ configuration: {
+ prefetch: (e, t) => xv(t),
+ mount: qx(py)
+ },
+ "library-processing": {
+ prefetch: (e, t) => qg(t),
+ mount: qx((e) => e.mode === "notice" ? /* @__PURE__ */ (0, S.jsx)(B_, { ...e }) : /* @__PURE__ */ (0, S.jsx)(L_, { ...e }))
+ },
+ "quality-goals": {
+ prefetch: (e, t) => W_(t),
+ mount: qx(q_)
+ },
+ scraping: {
+ prefetch: (e, t) => lv(t),
+ mount: qx(gv)
+ },
+ stats: {
+ prefetch: (e, t) => _y(t),
+ mount: qx(Jy)
+ },
+ taste: {
+ prefetch: (e, t) => Lb("all", t),
+ mount: qx(Ux)
}
};
//#endregion
-export { Gy as pages };
+export { Jx as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 48434b0f6..3b32a7b14 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -98,57 +98,8 @@ function v(e, t, n, r, i) {
return !0;
}
//#endregion
-//#region src/board-metrics.ts
-var y = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
- "&": "&amp;",
- "<": "&lt;",
- ">": "&gt;",
- "\"": "&quot;",
- "'": "&#39;"
-})[e]);
-function b(e, t, n, r = "chart-no-axes-combined") {
- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${y(e)}</span><b class="board-stat-value">${y(t)}</b><small class="board-stat-footer">${y(n || "当前记录")}</small>`;
-}
-function x(e, t, n) {
- if (!Number.isFinite(n) || n <= 0) return "";
- let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
- return `<div class="board-job-progress" role="progressbar" aria-label="${y(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${y(e)}<small>${Math.round(i)}%</small></span></div>`;
-}
-function S(e, t) {
- let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0), r = n.reduce((e, t) => e + t.score, 0);
- if (!r) return "";
- let i = 0, a = n.map((e, t) => {
- let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${y(e.name)}:${e.score.toLocaleString()}</title></circle>`;
- return i += n, a;
- }).join("");
- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${y(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${y(t)}</text></svg>`;
-}
-function C(e, t) {
- let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 8);
- if (!n.length) return "";
- let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${y(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
- return `<ol class="board-ranked-chart" aria-label="${y(t)}">${i}</ol>`;
-}
-function w(e, t) {
- let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 6);
- if (n.length < 3) return "";
- let r = Math.max(...n.map((e) => e.score)), i = n.length, a = (e, t) => {
- let n = e / i * Math.PI * 2 - Math.PI / 2;
- return [160 + Math.cos(n) * t, 140 + Math.sin(n) * t];
- }, o = (e) => n.map((t, n) => a(n, e(n)).map((e) => e.toFixed(2)).join(",")).join(" "), s = [
- 25,
- 50,
- 75,
- 100
- ].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {
- let [n, r] = a(t, 116);
- return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${y(e.name)}</text>`;
- }).join("");
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${y(t)}"><title>${y(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
-}
-//#endregion
//#region src/board-controls.ts
-function T(e) {
+function y(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
let a = e.closest(".dual-range");
@@ -158,17 +109,17 @@ function T(e) {
let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;
u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));
}
-function E() {
+function b() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(T), A(e), O(e), j(e);
+ e.querySelectorAll("input[type=range]").forEach(y), w(e), S(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && T(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && y(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && T(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && y(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);
@@ -189,8 +140,8 @@ function E() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", o, !0), window.addEventListener("resize", o);
}
-var D = /* @__PURE__ */ new Map();
-function O(e) {
+var x = /* @__PURE__ */ new Map();
+function S(e) {
let t = ".managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -204,8 +155,8 @@ function O(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), D.set(t, i);
- }, i = D.get(t);
+ n(i), x.set(t, i);
+ }, i = x.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -225,15 +176,15 @@ function O(e) {
o.observe(e);
});
}
-var k = /* @__PURE__ */ new Map();
-function A(e) {
- let t = ".iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
+var C = /* @__PURE__ */ new Map();
+function w(e) {
+ let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = k.get(n) ?? null, a = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = C.get(n) ?? null, a = () => {
let a = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!a || !a.offsetWidth) return;
let o = {
@@ -242,7 +193,7 @@ function A(e) {
w: a.offsetWidth,
h: a.offsetHeight
};
- i(t, r, o, "x"), r = o, k.set(n, o);
+ i(t, r, o, "x"), r = o, C.set(n, o);
};
e.addEventListener("change", a);
let o = new MutationObserver(a);
@@ -261,527 +212,21 @@ function A(e) {
s.observe(e), a(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));
});
}
-function j(e) {
- let t = ".board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card", n = [...e.querySelectorAll(t)];
- e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
- if (e.hasAttribute("data-board-chart")) return;
- e.dataset.boardChart = "true", e.addEventListener("animationend", () => {
- e.getAnimations?.({ subtree: !0 }).some((e) => e.playState === "running") || e.classList.add("board-chart-settled");
- });
- let t = () => e.classList.add("board-chart-visible");
- if (typeof IntersectionObserver > "u" || matchMedia("(prefers-reduced-motion: reduce)").matches) {
- t();
- return;
- }
- let n = new IntersectionObserver((e) => {
- e.some((e) => e.isIntersecting) && (n.disconnect(), t());
- }, { threshold: .15 });
- n.observe(e);
- });
-}
-function M(e) {
- e.querySelectorAll(".tasteranks").forEach((e, t) => {
- if (e.children.length <= 5 || e.parentElement?.hasAttribute("data-expandable-ranks")) return;
- let n = document.createElement("div");
- n.className = "board-expand-ranks", n.dataset.expandableRanks = "", e.before(n), n.append(e), e.id = e.id || `board-rank-list-${t}`, e.classList.add("board-rank-list");
- let r = document.createElement("button");
- r.type = "button", r.className = "board-rank-expand", r.setAttribute("aria-controls", e.id), r.setAttribute("aria-expanded", "false"), r.setAttribute("aria-label", "展开更多排名"), r.innerHTML = "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-chevron-down\"/></svg>", n.append(r);
- let i = () => {
- let t = e.children[4];
- e.offsetWidth && (n.style.setProperty("--rank-collapsed-height", `${t.offsetTop - e.offsetTop + t.offsetHeight}px`), n.style.setProperty("--rank-expanded-height", `${e.scrollHeight}px`));
- }, a = () => {
- let t = r.getAttribute("aria-expanded") === "true";
- n.classList.toggle("expanded", t), [...e.children].forEach((e, n) => e.inert = !t && n >= 5), i();
- }, o = (t) => {
- t.target === e && n.classList.remove("toggling");
- };
- e.addEventListener("transitionend", o), e.addEventListener("transitioncancel", o);
- let s = () => {
- let e = r.getBoundingClientRect().top, t = performance.now() + 300, n = () => {
- let i = r.getBoundingClientRect().top - e;
- i && window.scrollBy(0, i), performance.now() < t && requestAnimationFrame(n);
- };
- n();
- };
- r.onclick = () => {
- let e = r.getAttribute("aria-expanded") !== "true";
- r.setAttribute("aria-expanded", String(e)), r.setAttribute("aria-label", e ? "收起排名" : "展开更多排名"), n.classList.add("toggling"), a(), e || s();
- }, new ResizeObserver(i).observe(e), a();
- });
-}
-//#endregion
-//#region node_modules/d3-array/src/max.js
-function N(e, t) {
- let n;
- if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
- else {
- let r = -1;
- for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
- }
- return n;
-}
-//#endregion
-//#region node_modules/d3-array/src/min.js
-function P(e, t) {
- let n;
- if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
- else {
- let r = -1;
- for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
- }
- return n;
-}
-//#endregion
-//#region node_modules/d3-array/src/sum.js
-function F(e, t) {
- let n = 0;
- if (t === void 0) for (let t of e) (t = +t) && (n += t);
- else {
- let r = -1;
- for (let i of e) (i = +t(i, ++r, e)) && (n += i);
- }
- return n;
-}
-//#endregion
-//#region node_modules/d3-sankey/src/align.js
-function I(e, t) {
- return e.sourceLinks.length ? e.depth : t - 1;
-}
-//#endregion
-//#region node_modules/d3-sankey/src/constant.js
-function L(e) {
- return function() {
- return e;
- };
-}
-//#endregion
-//#region node_modules/d3-sankey/src/sankey.js
-function R(e, t) {
- return z(e.source, t.source) || e.index - t.index;
-}
-function ee(e, t) {
- return z(e.target, t.target) || e.index - t.index;
-}
-function z(e, t) {
- return e.y0 - t.y0;
-}
-function B(e) {
- return e.value;
-}
-function te(e) {
- return e.index;
-}
-function ne(e) {
- return e.nodes;
-}
-function re(e) {
- return e.links;
-}
-function ie(e, t) {
- let n = e.get(t);
- if (!n) throw Error("missing: " + t);
- return n;
-}
-function ae({ nodes: e }) {
- for (let t of e) {
- let e = t.y0, n = e;
- for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
- for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
- }
-}
-function oe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = te, c = I, l, u, d = ne, f = re, p = 6;
- function m() {
- let e = {
- nodes: d.apply(null, arguments),
- links: f.apply(null, arguments)
- };
- return h(e), g(e), _(e), v(e), x(e), ae(e), e;
- }
- m.update = function(e) {
- return ae(e), e;
- }, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : L(e), m) : s;
- }, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : L(e), m) : c;
- }, m.nodeSort = function(e) {
- return arguments.length ? (l = e, m) : l;
- }, m.nodeWidth = function(e) {
- return arguments.length ? (i = +e, m) : i;
- }, m.nodePadding = function(e) {
- return arguments.length ? (a = o = +e, m) : a;
- }, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : L(e), m) : d;
- }, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : L(e), m) : f;
- }, m.linkSort = function(e) {
- return arguments.length ? (u = e, m) : u;
- }, m.size = function(i) {
- return arguments.length ? (e = t = 0, n = +i[0], r = +i[1], m) : [n - e, r - t];
- }, m.extent = function(i) {
- return arguments.length ? (e = +i[0][0], n = +i[1][0], t = +i[0][1], r = +i[1][1], m) : [[e, t], [n, r]];
- }, m.iterations = function(e) {
- return arguments.length ? (p = +e, m) : p;
- };
- function h({ nodes: e, links: t }) {
- for (let [t, n] of e.entries()) n.index = t, n.sourceLinks = [], n.targetLinks = [];
- let n = new Map(e.map((t, n) => [s(t, n, e), t]));
- for (let [e, r] of t.entries()) {
- r.index = e;
- let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = ie(n, t)), typeof i != "object" && (i = r.target = ie(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
- }
- if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
- }
- function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(F(t.sourceLinks, B), F(t.targetLinks, B)) : t.fixedValue;
- }
- function _({ nodes: e }) {
- let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
- for (; n.size;) {
- for (let e of n) {
- e.depth = i;
- for (let { target: t } of e.sourceLinks) r.add(t);
- }
- if (++i > t) throw Error("circular link");
- n = r, r = /* @__PURE__ */ new Set();
- }
- }
- function v({ nodes: e }) {
- let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
- for (; n.size;) {
- for (let e of n) {
- e.height = i;
- for (let { source: t } of e.targetLinks) r.add(t);
- }
- if (++i > t) throw Error("circular link");
- n = r, r = /* @__PURE__ */ new Set();
- }
- }
- function y({ nodes: t }) {
- let r = N(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
- for (let n of t) {
- let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
- n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
- }
- if (l) for (let e of o) e.sort(l);
- return o;
- }
- function b(e) {
- let n = P(e, (e) => (r - t - (e.length - 1) * o) / F(e, B));
- for (let i of e) {
- let e = t;
- for (let t of i) {
- t.y0 = e, t.y1 = e + t.value * n, e = t.y1 + o;
- for (let e of t.sourceLinks) e.width = e.value * n;
- }
- e = (r - e + o) / (i.length + 1);
- for (let t = 0; t < i.length; ++t) {
- let n = i[t];
- n.y0 += e * (t + 1), n.y1 += e * (t + 1);
- }
- O(i);
- }
- }
- function x(e) {
- let n = y(e);
- o = Math.min(a, (r - t) / (N(n, (e) => e.length) - 1)), b(n);
- for (let e = 0; e < p; ++e) {
- let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
- C(n, t, r), S(n, t, r);
- }
- }
- function S(e, t, n) {
- for (let r = 1, i = e.length; r < i; ++r) {
- let i = e[r];
- for (let e of i) {
- let n = 0, r = 0;
- for (let { source: t, value: i } of e.targetLinks) {
- let a = i * (e.layer - t.layer);
- n += k(t, e) * a, r += a;
- }
- if (!(r > 0)) continue;
- let i = (n / r - e.y0) * t;
- e.y0 += i, e.y1 += i, D(e);
- }
- l === void 0 && i.sort(z), w(i, n);
- }
- }
- function C(e, t, n) {
- for (let r = e.length - 2; r >= 0; --r) {
- let i = e[r];
- for (let e of i) {
- let n = 0, r = 0;
- for (let { target: t, value: i } of e.sourceLinks) {
- let a = i * (t.layer - e.layer);
- n += A(e, t) * a, r += a;
- }
- if (!(r > 0)) continue;
- let i = (n / r - e.y0) * t;
- e.y0 += i, e.y1 += i, D(e);
- }
- l === void 0 && i.sort(z), w(i, n);
- }
- }
- function w(e, n) {
- let i = e.length >> 1, a = e[i];
- E(e, a.y0 - o, i - 1, n), T(e, a.y1 + o, i + 1, n), E(e, r, e.length - 1, n), T(e, t, 0, n);
- }
- function T(e, t, n, r) {
- for (; n < e.length; ++n) {
- let i = e[n], a = (t - i.y0) * r;
- a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;
- }
- }
- function E(e, t, n, r) {
- for (; n >= 0; --n) {
- let i = e[n], a = (i.y1 - t) * r;
- a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;
- }
- }
- function D({ sourceLinks: e, targetLinks: t }) {
- if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(ee);
- for (let { target: { targetLinks: t } } of e) t.sort(R);
- }
- }
- function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(ee), n.sort(R);
- }
- function k(e, t) {
- let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
- for (let { target: r, width: i } of e.sourceLinks) {
- if (r === t) break;
- n += i + o;
- }
- for (let { source: r, width: i } of t.targetLinks) {
- if (r === e) break;
- n -= i;
- }
- return n;
- }
- function A(e, t) {
- let n = t.y0 - (t.targetLinks.length - 1) * o / 2;
- for (let { source: r, width: i } of t.targetLinks) {
- if (r === e) break;
- n += i + o;
- }
- for (let { target: r, width: i } of e.sourceLinks) {
- if (r === t) break;
- n -= i;
- }
- return n;
- }
- return m;
-}
-//#endregion
-//#region node_modules/d3-path/src/path.js
-var V = Math.PI, H = 2 * V, U = 1e-6, se = H - U;
-function W() {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
-}
-function ce() {
- return new W();
-}
-W.prototype = ce.prototype = {
- constructor: W,
- moveTo: function(e, t) {
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
- },
- closePath: function() {
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
- },
- lineTo: function(e, t) {
- this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);
- },
- quadraticCurveTo: function(e, t, n, r) {
- this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);
- },
- bezierCurveTo: function(e, t, n, r, i, a) {
- this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);
- },
- arcTo: function(e, t, n, r, i) {
- e = +e, t = +t, n = +n, r = +r, i = +i;
- var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
- if (i < 0) throw Error("negative radius: " + i);
- if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > U) {
- if (!(Math.abs(u * s - c * l) > U) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
- else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((V - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > U && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
- }
- }
- },
- arc: function(e, t, n, r, i, a) {
- e = +e, t = +t, n = +n, a = !!a;
- var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > U || Math.abs(this._y1 - l) > U) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % H + H), d > se ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > U && (this._ += "A" + n + "," + n + ",0," + +(d >= V) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
- },
- rect: function(e, t, n, r) {
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
- },
- toString: function() {
- return this._;
- }
-};
-//#endregion
-//#region node_modules/d3-shape/src/constant.js
-function le(e) {
- return function() {
- return e;
- };
-}
-//#endregion
-//#region node_modules/d3-shape/src/point.js
-function ue(e) {
- return e[0];
-}
-function de(e) {
- return e[1];
-}
-//#endregion
-//#region node_modules/d3-shape/src/array.js
-var fe = Array.prototype.slice;
-//#endregion
-//#region node_modules/d3-shape/src/link/index.js
-function pe(e) {
- return e.source;
-}
-function me(e) {
- return e.target;
-}
-function he(e) {
- var t = pe, n = me, r = ue, i = de, a = null;
- function o() {
- var o, s = fe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = ce(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
- }
- return o.source = function(e) {
- return arguments.length ? (t = e, o) : t;
- }, o.target = function(e) {
- return arguments.length ? (n = e, o) : n;
- }, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : le(+e), o) : r;
- }, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : le(+e), o) : i;
- }, o.context = function(e) {
- return arguments.length ? (a = e ?? null, o) : a;
- }, o;
-}
-function ge(e, t, n, r, i) {
- e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
-}
-function _e() {
- return he(ge);
-}
-//#endregion
-//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function ve(e) {
- return [e.source.x1, e.y0];
-}
-function ye(e) {
- return [e.target.x0, e.y1];
-}
-function be() {
- return _e().source(ve).target(ye);
-}
-//#endregion
-//#region src/board-sankey.ts
-function xe(e = []) {
- let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
- if (!t.length) return "";
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = oe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
- nodes: [...n.map((e) => ({
- id: `source:${e}`,
- name: e,
- side: "source"
- })), ...r.map((e) => ({
- id: `target:${e}`,
- name: e,
- side: "target"
- }))],
- links: t.map((e) => ({
- source: `source:${e.source}`,
- target: `target:${e.target}`,
- value: e.value
- }))
- }), a = t.reduce((e, t) => e + t.value, 0), o = be(), s = i.links.map((e) => {
- let t = e.source, r = e.target;
- return `<path d="${o(e)}" stroke-width="${Math.max(.5, e.width || 0)}" style="--flow-color:var(--board-chart-${n.indexOf(t.name) % 6})" data-flow-source="${t.index}" data-flow-target="${r.index}" data-flow-value="${e.value}" data-flow-label="${d(t.name)} → ${d(r.name)}" tabindex="0" role="img" aria-label="${d(t.name)} → ${d(r.name)}:${e.value} 条线索"/>`;
- }).join(""), c = i.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${d(e.name)}" tabindex="0" role="img" aria-label="${d(e.name)}:${e.value} 条线索"><rect x="${e.x0}" y="${e.y0}" width="10" height="${Math.max(1, (e.y1 || 0) - (e.y0 || 0))}" rx="5" fill="${e.side === "source" ? `var(--board-chart-${n.indexOf(e.name) % 6})` : "var(--color-text-secondary)"}"/><text x="${e.side === "source" ? 145 : 545}" y="${((e.y0 || 0) + (e.y1 || 0)) / 2}" text-anchor="${e.side === "source" ? "end" : "start"}" dominant-baseline="middle">${d(e.name.length > 18 ? e.name.slice(0, 16) + "…" : e.name)}<tspan x="${e.side === "source" ? 145 : 545}" dy="15">${e.side === "source" ? e.value?.toLocaleString() : ((e.value || 0) / a * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
- return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${a.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${s}</g><g class="board-sankey-nodes">${c}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
-}
-function Se(e) {
- e.querySelectorAll("[data-sankey-card]").forEach((e) => {
- let t = [...e.querySelectorAll("[data-flow-source]")], n = [...e.querySelectorAll("[data-flow-node]")], r = e.querySelector("[data-sankey-number]"), i = e.querySelector("[data-sankey-label]"), a = r.textContent, o = () => {
- t.forEach((e) => e.style.opacity = ""), n.forEach((e) => e.style.opacity = ""), r.textContent = a, i.textContent = "条线索";
- };
- [...t, ...n].forEach((e) => {
- let a = () => {
- let a = e.dataset.flowNode;
- t.forEach((t) => t.style.opacity = String((a === void 0 ? t === e : t.dataset.flowSource === a || t.dataset.flowTarget === a) ? .7 : .08)), n.forEach((n) => n.style.opacity = String(a === void 0 ? n.dataset.flowNode === e.dataset.flowSource || n.dataset.flowNode === e.dataset.flowTarget ? 1 : .3 : n === e || t.some((e) => e.dataset.flowSource === a && e.dataset.flowTarget === n.dataset.flowNode || e.dataset.flowTarget === a && e.dataset.flowSource === n.dataset.flowNode) ? 1 : .3)), r.textContent = Number(e.dataset.flowValue).toLocaleString(), i.textContent = e.dataset.flowLabel;
- };
- e.addEventListener("pointerenter", a), e.addEventListener("pointerleave", o), e.addEventListener("focus", a), e.addEventListener("blur", o);
- });
- });
-}
-//#endregion
-//#region src/board-analytics.ts
-var Ce = (e) => Number.isFinite(e) && e >= 0, G = [
- "周一",
- "周二",
- "周三",
- "周四",
- "周五",
- "周六",
- "周日"
-];
-function we(e) {
- if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
- let t = Array.from({ length: 7 }, () => Array(24).fill(0));
- for (let n of e.hours || []) Number.isInteger(n.weekday) && n.weekday >= 0 && n.weekday < 7 && Number.isInteger(n.hour) && n.hour >= 0 && n.hour < 24 && Ce(n.count) && (t[n.weekday][n.hour] = (t[n.weekday][n.hour] || 0) + n.count);
- let n = Math.max(1, ...t.flat()), r = t.flat().reduce((e, t) => e + t, 0), i = t.map((e, t) => `<span class="board-heat-axis">${G[t]}</span>${e.map((e, r) => `<button type="button" data-heat-value="${e}" data-heat-label="${G[t]} ${r}:00" aria-label="${G[t]} ${r}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / n * 100) : 0}%"></button>`).join("")}`).join(""), a = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Ce(e.count)).sort((e, t) => e.date.localeCompare(t.date));
- if (!a.length) return "";
- let o = /* @__PURE__ */ new Date(`${a.at(-1).date}T00:00:00Z`), s = new Date(o);
- s.setUTCDate(s.getUTCDate() - 90);
- let c = new Map(a.map((e) => [e.date, e.count])), l = Math.max(1, ...a.map((e) => e.count)), u = Array.from({ length: 91 }, (e, t) => {
- let n = new Date(s);
- n.setUTCDate(s.getUTCDate() + t);
- let r = n.toISOString().slice(0, 10), i = c.get(r) || 0;
- return `<button type="button" data-heat-value="${i}" data-heat-label="${r}" aria-label="${r},${i} 次访问" style="--heat:${i ? Math.max(12, i / l * 100) : 0}%"></button>`;
- }).join("");
- return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${r.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({ length: 24 }, (e, t) => `<span class="board-heat-axis">${t % 2 ? "" : t}</span>`).join("")}${i}</div></div><footer>星期 × 小时<span>${d(e.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${a.filter((e) => e.date >= s.toISOString().slice(0, 10)).reduce((e, t) => e + t.count, 0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${u}</div><footer>${s.toISOString().slice(0, 10)}<span>${a.at(-1).date}</span></footer></section></div>`;
-}
-function Te(e) {
- e.querySelectorAll("[data-heat-card]").forEach((e) => {
- let t = e.querySelector("[data-heat-number]"), n = e.querySelector("[data-heat-title]"), r = t.textContent;
- e.querySelectorAll("[data-heat-value]").forEach((e) => {
- let i = () => {
- t.textContent = Number(e.dataset.heatValue).toLocaleString(), n.textContent = e.dataset.heatLabel;
- }, a = () => {
- t.textContent = r, n.textContent = n.dataset.heatDefault;
- };
- e.addEventListener("pointerenter", i), e.addEventListener("pointerleave", a), e.addEventListener("focus", i), e.addEventListener("blur", a);
- });
- });
-}
//#endregion
//#region src/sidebar-groups.ts
-var K = (e) => e.replace(/[&<>"']/g, (e) => ({
+var T = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Ee(e, t, n = "", r = "") {
+function E(e, t, n = "", r = "") {
if (!t) return "";
let i = `sidebar-group-${encodeURIComponent(e)}`;
- return `<details class="sec${r ? " cat-" + K(r) : ""}" data-sidebar-group="${K(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${K(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
+ return `<details class="sec${r ? " cat-" + T(r) : ""}" data-sidebar-group="${T(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${T(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
}
-function De(e) {
+function D(e) {
e.querySelectorAll("[data-sidebar-group]").forEach((e) => {
if (e.dataset.sidebarWired) return;
e.dataset.sidebarWired = "true";
@@ -800,15 +245,15 @@ function De(e) {
}));
});
}
-var Oe = !1;
-async function ke(e, t) {
- if (Oe) return;
+var O = !1;
+async function k(e, t) {
+ if (O) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Oe = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, O = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -819,15 +264,20 @@ async function ke(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), Oe = !1;
+ delete s.dataset.themeSnapshot, o.remove(), O = !1;
}
}
//#endregion
//#region src/jobs.ts
-function Ae(e, t = 0, n = 0) {
- return n > 0 ? x(e, t, n) : r(e);
+function A(e, t, n) {
+ if (!Number.isFinite(n) || n <= 0) return "";
+ let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${d(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${d(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-async function je(e) {
+function j(e, t = 0, n = 0) {
+ return n > 0 ? A(e, t, n) : r(e);
+}
+async function M(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -842,14 +292,14 @@ async function je(e) {
await t(2e3);
}
}
-function Me(e) {
+function N(e) {
let t = e.note || ((e) => a(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || r, i = e.progress || ((e, t, n) => Ae(n || `已处理 ${e} / ${t}`, e, t)), o = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
+ })), n = e.loading || r, i = e.progress || ((e, t, n) => j(n || `已处理 ${e} / ${t}`, e, t)), o = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
e.host.hidden = !0, s.dataset.followJob = "", s.setAttribute("aria-live", "polite"), e.host.prepend(s);
let c = e.storageKey || "peach-follow-job", l = sessionStorage.getItem(c) || void 0, u = !1;
- je({
+ M({
read: e.read,
active: () => !u && e.active() && s.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -875,24 +325,24 @@ function Me(e) {
}
//#endregion
//#region src/review-evidence.ts
-var Ne = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function Pe(e = "") {
- let t = Ne(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var P = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function F(e = "") {
+ let t = P(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${t ? " hidden" : ""}>未取得来源图片</span>${t ? `<img src="${d(t)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
}
-function Fe(e) {
- let t = Ne(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));
+function I(e) {
+ let t = P(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));
return `<section class="reviewidentityevidence"><h5>候选身份:${d(e.babepedia_name || "未标注")}</h5>
<div class="reviewevidenceactions">${t ? `<a class="geist-button externallink" href="${d(t)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}
<button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${d(e.creator || "")}">查看全部 ${r.toLocaleString()} 部作品</button></div>
- ${Pe(e.preview_url)}
+ ${F(e.preview_url)}
<p>通过后记录身份判断。</p>
${n.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${n.map((e) => `<div class="reviewevidencesample">
<button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${d(e.name)}">${d(e.name)}</span></button>
<button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${d(e.name)} 的文件位置">文件位置</button>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function Ie(e) {
+function L(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -904,14 +354,14 @@ function Ie(e) {
}
//#endregion
//#region src/api.ts
-var Le = (e) => p(e);
+var R = (e) => p(e);
//#endregion
//#region src/selection.ts
-function Re(e, t, n, r, i, a = i || !e.has(r)) {
+function z(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
-function ze(e, t) {
+function ee(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -919,16 +369,16 @@ function ze(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Be(e, t, n) {
+function te(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function Ve({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function ne({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
//#endregion
//#region src/review-bulk.ts
-var He = () => ({
+var re = () => ({
busy: !1,
category: "",
filter: "",
@@ -939,7 +389,7 @@ var He = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function Ue(e) {
+function B(e) {
let t = e?.querySelector(".reviewbulktoolbar");
if (!e || e.classList.contains("review-skeleton") || !t || t.offsetParent === null) return;
e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);
@@ -955,7 +405,7 @@ function Ue(e) {
let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();
e.style.setProperty("--review-pane-top", `${o.top}px`), e.style.setProperty("--review-pane-left", `${o.left}px`), e.style.setProperty("--review-pane-width", `${o.width}px`), e.style.setProperty("--review-pane-height", `${s.bottom - o.top}px`);
}
-function We(e, t) {
+function ie(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -971,7 +421,7 @@ function We(e, t) {
"list-filter"
]), n;
}
-function Ge(e, t) {
+function V(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -988,10 +438,10 @@ function Ge(e, t) {
}
return [...n.values()];
}
-function Ke(e, t, n, r, i) {
- e.anchor = Re(e.selected, t, e.anchor, n, r, i);
+function H(e, t, n, r, i) {
+ e.anchor = z(e.selected, t, e.anchor, n, r, i);
}
-async function qe(e, t, n, r) {
+async function ae(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -1002,7 +452,7 @@ async function qe(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: Le(e)
+ message: R(e)
});
}
}
@@ -1011,17 +461,17 @@ async function qe(e, t, n, r) {
failures: i
};
}
-function Je(e) {
+function U(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function Ye(e, n) {
+function oe(e, n) {
let r = e.querySelector(".reviewlist");
if (!r || !n.rows.length || n.locked) return;
let i = n.state, a = [...r.querySelectorAll("[data-review-key]")];
n.category !== void 0 && i.category !== n.category && (i.category = n.category, i.filter = "", i.groupBy = "candidates", i.anchor = null);
- let s = n.catalog || n.rows, l = We(s, n.metadata);
+ let s = n.catalog || n.rows, l = ie(s, n.metadata);
l.some((e) => e[0] === i.groupBy) || (i.groupBy = "candidates", i.filter = "");
- let d = Ge(s, i.groupBy);
+ let d = V(s, i.groupBy);
d.some((e) => e.key === i.filter) || (i.filter = "");
let p = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), m = () => p().filter((e) => i.selected.has(e.dataset.reviewKey)), h = () => n.rows.filter((e) => m().some((t) => t.dataset.reviewKey === e.item_key)), g = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, _ = (e, t = "") => {
let n = document.createElement("button");
@@ -1099,7 +549,7 @@ function Ye(e, n) {
u.className = "reviewlist", s.append(c, l), o.append(s, u), r.append(o), l.onclick = () => {
if (i.busy) return;
let e = n.map((e) => e.dataset.reviewKey);
- Be(i.selected, e, !e.every((e) => i.selected.has(e))), L();
+ te(i.selected, e, !e.every((e) => i.selected.has(e))), L();
}, F.push(() => {
let e = n.every((e) => i.selected.has(e.dataset.reviewKey));
l.innerHTML = f(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), l.setAttribute("aria-pressed", String(e));
@@ -1116,7 +566,7 @@ function Ye(e, n) {
e.className = "reviewpickname", e.append(...r.childNodes), r.classList.add("reviewpickheading"), r.append(a, e);
} else e.prepend(a);
let s = (e, t) => {
- Ke(i, p().map((e) => e.dataset.reviewKey), n, e, t), L();
+ H(i, p().map((e) => e.dataset.reviewKey), n, e, t), L();
};
if (a.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
@@ -1130,7 +580,7 @@ function Ye(e, n) {
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
t.preventDefault();
let r = p(), a = r[r.indexOf(e) + (t.key === "ArrowDown" ? 1 : -1)];
- a && (i.anchor === null && (i.anchor = n), Ke(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), L(), a.querySelector(".reviewpickitem input")?.focus());
+ a && (i.anchor === null && (i.anchor = n), H(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), L(), a.querySelector(".reviewpickitem input")?.focus());
}
}
}), F.push(() => {
@@ -1158,20 +608,20 @@ function Ye(e, n) {
let I = "";
function L() {
let e = m(), t = e.length > 0 && e.length === p().length;
- w.innerHTML = f(t ? "check-check-outline" : "check-check") + (t ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(t)), j.hidden = !e.length, Ve({
+ w.innerHTML = f(t ? "check-check-outline" : "check-check") + (t ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(t)), j.hidden = !e.length, ne({
count: D,
label: `已选 ${e.length} 项`,
- summary: ze(i.selected, p().map((e) => e.dataset.reviewKey)),
+ summary: ee(i.selected, p().map((e) => e.dataset.reviewKey)),
actions: [T, E]
}), T.disabled ||= e.some((e) => !g(e));
- let r = Je(h());
+ let r = U(h());
O.hidden = !n.metadata || !h().some((e) => (e.candidates?.length || 0) > 1);
let a = e.length && !r.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([a, r]);
if (s !== I) {
I = s, O.innerHTML = o([["", a], ...r.map((e) => [e, e])], "", { label: "统一选择来源" });
let e = u(O.firstElementChild);
e.disabled = !r.length, e.addEventListener("change", () => {
- if (!(i.busy || !Je(h()).includes(e.value))) {
+ if (!(i.busy || !U(h()).includes(e.value))) {
for (let t of m()) {
let r = n.rows.find((e) => e.item_key === t.dataset.reviewKey).candidates.find((t) => t.source === e.value);
t.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
@@ -1204,7 +654,7 @@ function Ye(e, n) {
e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());
};
e.addEventListener("click", l, !0), e.addEventListener("keydown", l, !0);
- let u = 0, d = await qe(a, async (e) => {
+ let u = 0, d = await ae(a, async (e) => {
try {
return await n.submit(e);
} finally {
@@ -1221,9 +671,9 @@ function Ye(e, n) {
let f = e.parentElement;
n.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- L(), Ue(e);
+ L(), B(e);
}
-function Xe(e, t, n = 1) {
+function se(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -1243,15 +693,15 @@ function Xe(e, t, n = 1) {
t
];
}
-function Ze(e, t) {
+function ce(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Qe(e, t) {
+function le(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function $e(e, t, n) {
+function ue(e, t, n) {
if (t <= 1) return "";
- let r = Xe(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = se(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -1260,10 +710,10 @@ function $e(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function et(e, t, n, r) {
+function de(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function tt(e, t, n, r, i = 1) {
+function fe(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -1280,7 +730,7 @@ function tt(e, t, n, r, i = 1) {
}
//#endregion
//#region src/entity-skeleton.ts
-function nt(e, t, n) {
+function pe(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -1294,27 +744,27 @@ function nt(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, J = () => `${q("80%")}${q("48%")}`, Y = (e, t) => e.repeat(t), rt = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${q("45%")}</b><small class="board-stat-footer">${q("60%")}</small></div>`).join("")}</div>`, it = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, at = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, X = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(J(), 3)}</div></section>`, ot = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, st = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${q("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${f("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${f("layout-grid")}</label><label>${f("table")}</label></div><span class="fmanagesort" data-collapse-field>${f("sort")}${o([["checked", "检查时间"]], "checked", {
+var W = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, G = () => `${W("80%")}${W("48%")}`, K = (e, t) => e.repeat(t), q = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${W("45%")}</b><small class="board-stat-footer">${W("60%")}</small></div>`).join("")}</div>`, me = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, J = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, Y = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${K(G(), 3)}</div></section>`, he = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, ge = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${W("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${f("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${f("layout-grid")}</label><label>${f("table")}</label></div><span class="fmanagesort" data-collapse-field>${f("sort")}${o([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${f("arrow-down")}</button>${e ? "" : ot(f("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, ct = () => `<div class="fsource frow"><span class="fchannelcheck">${q("18px")}</span><b>${q("85%")}</b><span class="fprovider">${q("54px")}</span><span class="fmeta fchecked">${q("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, lt = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${q("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${q("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${f("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Y(ct(), 3)}</div></details>`;
-function ut() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${q("85%")}${q("65%")}${Y(J(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${f("arrow-down")}</button>${e ? "" : he(f("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, _e = () => `<div class="fsource frow"><span class="fchannelcheck">${W("18px")}</span><b>${W("85%")}</b><span class="fprovider">${W("54px")}</span><span class="fmeta fchecked">${W("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, ve = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${W("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${W("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${f("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${K(_e(), 3)}</div></details>`;
+function ye() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${W("85%")}${W("65%")}${K(G(), 4)}</div></aside></div></div>`;
}
-function dt(e, n = {}) {
+function be(e, n = {}) {
let r = "";
- if (e === "/stats") r = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${q("38%")}</header>${rt([
+ if (e === "/stats") r = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${W("38%")}</header>${q([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}${X("馆藏视频")}${X("内容标签")}</div>`;
- else if (e === "/taste") r = `<div class="tastepage"><header class="tastehead">${at(["浏览器记录", "Peach 内部"], "insightswitch")}${q("24%")}</header><div class="tastestate"></div>${rt([
+ ])}${Y("馆藏视频")}${Y("内容标签")}</div>`;
+ else if (e === "/taste") r = `<div class="tastepage"><header class="tastehead">${J(["浏览器记录", "Peach 内部"], "insightswitch")}${W("24%")}</header><div class="tastestate"></div>${q([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(J(), 4)}</div></section>${X("口味分析")}<div class="board-activity-charts">${X("浏览活动")}${X("时间分布")}</div>${X("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${K(G(), 4)}</div></section>${Y("口味分析")}<div class="board-activity-charts">${Y("浏览活动")}${Y("时间分布")}</div>${Y("标签")}</div>`;
else if (e === "/follow-manage") {
let e = n.followLayout === "table", i = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
@@ -1324,7 +774,7 @@ function dt(e, n = {}) {
"状态",
"上次检查",
"操作"
- ].map((e) => `<th>${e === "选择" ? "<label>" + t("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Y(`<tr>${[
+ ].map((e) => `<th>${e === "选择" ? "<label>" + t("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${K(`<tr>${[
"20px",
"90px",
"120px",
@@ -1332,37 +782,37 @@ function dt(e, n = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${q(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Y(lt(), 4)}</div>`;
+ ].map((e) => `<td>${W(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${K(ve(), 4)}</div>`;
r = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${q()}</b></div>`).join("")}</div>${at([
+ ].map((e) => `<div><span>${e}</span><b>${W()}</b></div>`).join("")}</div>${J([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${st(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${t("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${i}<div class="followpagefooter"><div class="followpageinfo">${q("120px")}${q("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") r = `<div class="configpage">${it([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${ge(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${t("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${i}<div class="followpagefooter"><div class="followpageinfo">${W("120px")}${W("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") r = `<div class="configpage">${me([
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Y(`<div class="skeleton-setting">${q("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${q("100px")}</footer></section></div>`;
+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${K(`<div class="skeleton-setting">${W("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${W("100px")}</footer></section></div>`;
else if (e === "/activity") r = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${q("35%")}${J()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") r = `<div class="review"><div class="collection-summary">${q("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${q("40%")}</div>${Y(`<section class="dupgroup"><div class="duphead">${q("45%")}</div><div class="duplist">${Y(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${q()}</span><span class="dupname">${q("90%")}</span>${q()}${q()}${q()}<span class="duppath">${q("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") r = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${q("20%")}</div><div class="qualitylist">${Y(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${J()}</div><footer class="qualityactions">${q("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") r = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${q("200px")}</div></header><div class="playlistcards">${Y(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${J()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${W("35%")}${G()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") r = `<div class="review"><div class="collection-summary">${W("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${W("40%")}</div>${K(`<section class="dupgroup"><div class="duphead">${W("45%")}</div><div class="duplist">${K(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${W()}</span><span class="dupname">${W("90%")}</span>${W()}${W()}${W()}<span class="duppath">${W("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") r = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${W("20%")}</div><div class="qualitylist">${K(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${G()}</div><footer class="qualityactions">${W("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") r = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${W("200px")}</div></header><div class="playlistcards">${K(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${G()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${r}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var ft = [
+var xe = [
"loc",
"creator",
"performer",
@@ -1380,16 +830,16 @@ var ft = [
"jav",
"thumb"
];
-function pt() {
+function Se() {
let e = (e) => Array(64).fill(e).join("");
return {
tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
};
}
-async function mt(e, t) {
+async function Ce(e, t) {
let n = new URLSearchParams();
- for (let t of ft) e[t] && n.set(t, e[t]);
+ for (let t of xe) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -1400,7 +850,7 @@ async function mt(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function ht({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
+function we({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
let o = i ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!i || a ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || r) return n("search", r ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", r ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -1421,7 +871,7 @@ function ht({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable:
}
//#endregion
//#region src/sidebar.ts
-function gt(e) {
+function Te(e) {
return [
"/",
"/unseen",
@@ -1431,23 +881,23 @@ function gt(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function _t(e, t) {
+function Ee(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function vt(e) {
+function De(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/management.ts
-function yt(e) {
+function Oe(e) {
return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);
}
-function bt(e, t) {
+function ke(e, t) {
return t.filter((t) => e.some((e) => e.location === t));
}
-function xt() {
+function Ae() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -1492,71 +942,49 @@ function xt() {
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
-function St(e, t = !1, n = !1) {
- if (t || n) return "";
- let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";
- return `<details class="taste-history-guide"${e ? " open" : ""}>
- <summary><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"></use></svg>浏览器历史记录导入指南</summary>
- <div class="taste-history-guide-content">
- <p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p>
- <p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>
- <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${r}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>
- <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${r}</a> 导出历史记录,再导入导出文件。</li></ul>
- <p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p>
- <button type="button" class="geist-button taste-guide-skip">跳过</button>
- </div></details>`;
-}
-var Ct = "peach-taste-guide-dismissed";
-function wt(e, t) {
- l(e, ".taste-history-guide", "taste-guide-collapse");
- let n = e.querySelector(".taste-history-guide");
- n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
- t.setItem(Ct, "1"), n.remove();
- });
-}
//#endregion
//#region src/resource-sync.ts
-var Z = (e = 0) => Number(e).toLocaleString(), Tt = {
+var X = (e = 0) => Number(e).toLocaleString(), je = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Et = (t) => s(e[t] ?? "database"), Dt = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, Me = (t) => s(e[t] ?? "database"), Z = (e, t, n) => `<article class="board-plain-stat resourcestat">
<span class="board-plain-stat-head">${e}</span>
<strong>${t}</strong>
<span class="cleanupmeta">${n}</span></article>`;
-function Ot(e, t) {
+function Ne(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Dt(`<span class="board-stat-tile resourcestat-tile">${Et(e.location)}</span>${Tt[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${Z(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${Z(e.checked)} 项` : `馆藏中有 ${Z(e.total)} 项`, e.unreadable ? `${Z(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${Dt("待移入回收站", `${Z(e.missing)} 项`, "")}
- ${Dt("可清理的缓存", `${Z(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
- ${r ? a(`将把找不到文件的 ${Z(e.missing)} 项馆藏记录移入回收站,并清理 ${Z(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Z(`<span class="board-stat-tile resourcestat-tile">${Me(e.location)}</span>${je[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${X(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${X(e.checked)} 项` : `馆藏中有 ${X(e.total)} 项`, e.unreadable ? `${X(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${Z("待移入回收站", `${X(e.missing)} 项`, "")}
+ ${Z("可清理的缓存", `${X(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ ${r ? a(`将把找不到文件的 ${X(e.missing)} 项馆藏记录移入回收站,并清理 ${X(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
<div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function kt(e) {
+function Pe(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function At(e) {
+function Fe(e) {
return {
- javLayout: kt(e.javLayout),
+ javLayout: Pe(e.javLayout),
javImage: Q(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
function Q(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function jt(e, t) {
+function Ie(e, t) {
return e.is_jav && e.code && e.has_cover && (Q(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Mt(e, t) {
+function Le(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;
@@ -1567,7 +995,7 @@ function Mt(e, t) {
left: l(c)
};
}
-function Nt(e, t) {
+function Re(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Q(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
@@ -1575,19 +1003,20 @@ function Nt(e, t) {
}
//#endregion
//#region src/islands.ts
-var Pt = {
+var ze = {
"avatar-picker": { react: "avatar-picker" },
"library-processing": { react: "library-processing" },
scraping: { react: "scraping" },
"quality-goals": { react: "quality-goals" },
configuration: { react: "configuration" },
activity: { react: "activity" },
- stats: { react: "stats" }
-}, Ft = () => Object.keys(Pt), $ = /* @__PURE__ */ new Map();
-async function It(e, t, n, r = {}) {
- let i = Pt[e];
+ stats: { react: "stats" },
+ taste: { react: "taste" }
+}, Be = () => Object.keys(ze), $ = /* @__PURE__ */ new Map();
+async function Ve(e, t, n, r = {}) {
+ let i = ze[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- zt(t);
+ We(t);
let a = { controller: new AbortController() };
$.set(t, a);
let o = (await import("/dist/peach-react.js")).pages[i.react];
@@ -1596,7 +1025,7 @@ async function It(e, t, n, r = {}) {
} catch {
if (a.controller.signal.aborted) return;
}
- if (!Lt(t, a, r)) return;
+ if (!He(t, a, r)) return;
let s = t.ownerDocument.createElement("div");
s.className = "peach-react", t.append(s);
let c = o.mount(s, n);
@@ -1604,16 +1033,16 @@ async function It(e, t, n, r = {}) {
c.unmount(), s.remove();
};
}
-function Lt(e, t, n) {
+function He(e, t, n) {
return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : (e.textContent = "", !0) : !1;
}
-var Rt = (e) => !!e && $.has(e);
-function zt(e) {
- for (let t of [...$.keys()]) (t === e || e.contains(t)) && Bt(t);
+var Ue = (e) => !!e && $.has(e);
+function We(e) {
+ for (let t of [...$.keys()]) (t === e || e.contains(t)) && Ge(t);
}
-function Bt(e) {
+function Ge(e) {
let t = $.get(e);
t && (t.controller.abort(), $.delete(e), t.dispose?.());
}
//#endregion
-export { Ct as TASTE_GUIDE_KEY, we as activityChartsHtml, dt as boardPageSkeleton, g as boundedPreference, ht as catalogEmptyHtml, mt as catalogSuggestions, Qe as clampPage, xt as cleanupSkeletonHtml, yt as cloudLocations, bt as cloudPreferenceLocations, He as createReviewSelection, xe as creatorSankeyHtml, ut as detailSkeletonHtml, S as distributionChart, pt as emptyCatalogLayout, nt as entitySkeletonHtml, Me as followJobProgress, Ge as groupReviewRows, Fe as identityEvidenceHtml, E as initBoardControls, Rt as islandMounted, Ft as islandNames, jt as javImageKind, Ae as jobActivityHtml, x as jobProgressHtml, et as matchesFaceSource, It as mountIsland, v as mountNumberSetting, tt as nativeImageFit, Q as normalizeJavImage, kt as normalizeJavLayout, At as normalizeJavPreferences, Ze as pageCount, $e as paginationHtml, Mt as panelFrame, m as preferredDirection, w as radarChart, C as rankedChart, Ot as resourceScanHtml, Pe as reviewImageHtml, Be as selectGroup, Re as selectRange, ze as selectionSummary, gt as sidebarHasCatalogContent, Ee as sidebarSectionHtml, vt as sidebarTagCounts, b as statCardBody, T as syncBoardRange, Nt as syncJavImages, _ as syncNumberSetting, Ve as syncSelectionToolbar, _t as syncSidebarSurface, St as tasteHistoryGuideHtml, ke as transitionTheme, zt as unmountIsland, Ue as updateReviewSticky, je as watchJob, Te as wireActivityCharts, Se as wireCreatorSankey, M as wireExpandableRanks, j as wireGrowingCharts, Ie as wireReviewPictures, Ye as wireReviewSelection, De as wireSidebarGroups, wt as wireTasteHistoryGuide };
+export { be as boardPageSkeleton, g as boundedPreference, we as catalogEmptyHtml, Ce as catalogSuggestions, le as clampPage, Ae as cleanupSkeletonHtml, Oe as cloudLocations, ke as cloudPreferenceLocations, re as createReviewSelection, ye as detailSkeletonHtml, Se as emptyCatalogLayout, pe as entitySkeletonHtml, N as followJobProgress, V as groupReviewRows, I as identityEvidenceHtml, b as initBoardControls, Ue as islandMounted, Be as islandNames, Ie as javImageKind, j as jobActivityHtml, de as matchesFaceSource, Ve as mountIsland, v as mountNumberSetting, fe as nativeImageFit, Q as normalizeJavImage, Pe as normalizeJavLayout, Fe as normalizeJavPreferences, ce as pageCount, ue as paginationHtml, Le as panelFrame, m as preferredDirection, Ne as resourceScanHtml, F as reviewImageHtml, te as selectGroup, z as selectRange, ee as selectionSummary, Te as sidebarHasCatalogContent, E as sidebarSectionHtml, De as sidebarTagCounts, y as syncBoardRange, Re as syncJavImages, _ as syncNumberSetting, ne as syncSelectionToolbar, Ee as syncSidebarSurface, k as transitionTheme, We as unmountIsland, B as updateReviewSticky, M as watchJob, L as wireReviewPictures, oe as wireReviewSelection, D as wireSidebarGroups };
diff --git a/web/js/ui-components.js b/web/js/ui-components.js
index 6cd35c162..8132a55dd 100644
--- a/web/js/ui-components.js
+++ b/web/js/ui-components.js
@@ -510,18 +510,18 @@ function deferReviewScroller(container){
const OVERLAY_SCROLLERS=[
'.settingsscroll','.sidecontent','.tagpickbody','.mixlist','.playlistpicklist','.playerstats',
'.vjs-peach-settings-menu','.geist-scroller-container','.metricstrip','.tastesummaries',
- '.insighttabs','.skeletondashstrip','.followpagination','.linktablewrap',
+ '.skeletondashstrip','.followpagination','.linktablewrap',
'.reviewtabs','.junkfilters','.ftablewrap','.board-local-nav','.managebar-menu',
- '.follow-workspace-switch','.fmanagenav','.board-heat-scroll','.board-sankey-scroll',
+ '.follow-workspace-switch','.fmanagenav',
].join(',');
/* Board 层里会超宽的横向滚动层:两端按滚动位置渐隐说明「那边还有」,鼠标停在上面时竖向
滚轮转成横向。边线留给外层框,渐隐只落在这一层。
这里登记的都是 `frontend/` 或 board.css 画出来的层,它们不经过 `wireAllDrag` 那份按 id
点名的清单,漏登记就是「看得见、够不着」:设置弹层那排分区在 390px 下溢出 244px,
- /taste 的两张图溢出 44px 与 322px,实测都是既没有渐隐也不接滚轮。组件自己量溢出,
- 不溢出的宽度上登记等于空转,所以按可能溢出的层登记,不按某一个断点登记。 */
+ 实测既没有渐隐也不接滚轮。组件自己量溢出,不溢出的宽度上登记等于空转,所以按可能
+ 溢出的层登记,不按某一个断点登记。React 档的页面自己用 `overflow-x-auto`,不进这份清单。 */
const BOARD_EDGE_SCROLLERS='.reviewtabs,.ftablewrap,.board-local-nav,.managebar-menu,'
- +'.follow-workspace-switch,.fmanagenav,.board-heat-scroll,.board-sankey-scroll';
+ +'.follow-workspace-switch,.fmanagenav';
/**
* 覆盖式滚动条:滑块浮在内容上,一列宽度都不占。