Skip to content

armgit / peach

Public Imported from GitHub
0

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

build(frontend): 引入 Recharts 与 EvilCharts 图表源码

longmeidao95af03833575
diff --git a/docs/adr/0076-evilcharts-recharts-charts.md b/docs/adr/0076-evilcharts-recharts-charts.md
new file mode 100644
index 000000000..8887e9bea
--- /dev/null
+++ b/docs/adr/0076-evilcharts-recharts-charts.md
@@ -0,0 +1,43 @@
+# ADR-0076:统计页与口味页的图表改用 Recharts + EvilCharts,热力图与流向图保留自绘
+
+- 状态:Accepted
+- 日期:2026-09-26
+- 关系:ADR-0031 的 React + BoardUI 前端;`frontend/src/react/evilcharts/ORIGIN.md` 记来源与差异
+
+## 背景
+
+统计页和口味页的径向图、雷达、排行条、热力图、流向图都是手写 SVG,各自一套几何函数,悬停时只换卡片
+页头的读数,没有浮层提示,也没有进场动画。用户 2026-09-26 要求参照 EvilCharts(`https://evilcharts.com/docs`)
+重写这两页的图表,并用同一套样式补上还没展示的数据,先改生产页面。
+
+EvilCharts 是 shadcn 注册表形态的图表组件,MIT 许可,同时有 Recharts 与 ECharts 两个分支,组件以源码形式
+复制进项目,和 BoardUI 的接法一样(ADR-0031)。
+
+## 决策
+
+**一、用 Recharts 分支,源码逐字复制进 `frontend/src/react/evilcharts/`。** 依赖钉 `[email protected]`、
+`[email protected]`、`[email protected]`。这一支画 SVG,系列颜色是 CSS 变量:`ChartConfig` 里写
+`var(--color-chart-N)`,深浅两档跟着 BoardUI token 走,不用在 JS 里读色值;提示浮层、轴刻度写的是 Tailwind
+类,桥到 BoardUI 已有 token 就能用。上游文件不改,差异(路径别名、`cn`、语义色名、reduced motion、lint 排除)
+全在 Peach 自己的文件里,由 `UPSTREAM.sha256` 与 `tests/test_frontend_build.py` 守住。
+
+**二、不用 ECharts 分支。** ECharts 默认画在 canvas 上,颜色是 option 里的字面值:换深浅色要在 JS 里重读
+token 再重设 option,Tailwind 类与 `@theme` 管不到图里任何一处,BoardUI 的 token 体系在图上断开。
+它还是整套图表引擎,React 岛是单包产物(`codeSplitting: false`),多出来的体积每个页面都要付。
+Recharts 是 React 组件树,和现有的 React Aria、Query 在同一棵根里,状态直接用 React 的。
+
+**三、热力图保留自绘,视觉对齐 EvilCharts。** Recharts 没有热力图类型,EvilCharts 的 Recharts 分支也没有;
+一格一个 `rect` 本身就是最小实现,换库没有东西可以复用。热力卡搬到 `frontend/src/react/charts/`,统计页的
+播放时间与口味页的浏览时间共用:格子颜色取 `chart-*`,悬停时其余格子淡下去,浮层提示取 EvilCharts
+`ChartTooltipContent` 同一套外观,页头读数照旧跟着指到的那一格走。
+
+**四、流向图保留 `d3-sankey`。** EvilCharts 的桑基图按节点名生成 CSS 变量和渐变 id,创作者名不能直接当
+标识符;节点标签只能附节点总量,Peach 右侧要显示的是线索占比;节点和流都不能用键盘聚焦。换过去这三样
+都要回头补,改动不可控,所以只共用卡片外壳与页头。
+
+## 后果
+
+- 径向图、雷达、柱状图由 EvilCharts 组件画,带悬停浮层与进场动画;系统开了减弱动态效果时,Recharts 的
+ 动画(`isAnimationActive="auto"`)与 Motion 驱动的柱子生长都直接画终态。
+- 统计页补上时长分档、画质分档、文件类型、最近播放时间与播放次数分布;口味页的图表外观与统计页一致。
+- 升级 EvilCharts 时重新复制文件、重算哈希;上游改了组件接口,`../charts/` 里的组合跟着改。
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
index 9f8aff547..8985d26c8 100644
--- a/frontend/.oxlintrc.json
+++ b/frontend/.oxlintrc.json
@@ -4,7 +4,7 @@
"correctness": "off"
},
"jsPlugins": ["@shadcn/lint"],
- "ignorePatterns": ["src/react/boardui/**"],
+ "ignorePatterns": ["src/react/boardui/**", "src/react/evilcharts/**"],
"settings": {
"shadcn": {
"ui": "@/components",
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 7e33f3112..fde2f3637 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -9,11 +9,14 @@
"@remixicon/react": "4.9.0",
"@tanstack/react-query": "5.103.1",
"@tanstack/react-table": "8.21.3",
+ "clsx": "2.1.1",
"d3-sankey": "0.12.3",
+ "motion": "12.43.0",
"react": "19.3.0",
"react-aria": "3.52.1",
"react-aria-components": "1.21.1",
"react-dom": "19.3.0",
+ "recharts": "3.8.0",
"tailwind-merge": "3.7.0"
},
"devDependencies": {
@@ -1089,6 +1092,42 @@
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
}
},
+ "node_modules/@reduxjs/toolkit": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.12.0.tgz",
+ "integrity": "sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==",
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/spec": "^1.0.0",
+ "@standard-schema/utils": "^0.3.0",
+ "immer": "^11.0.0",
+ "redux": "^5.0.1",
+ "redux-thunk": "^3.1.0",
+ "reselect": "^5.1.0"
+ },
+ "peerDependencies": {
+ "react": "^16.9.0 || ^17.0.0 || ^18 || ^19",
+ "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ },
+ "react-redux": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reduxjs/toolkit/node_modules/immer": {
+ "version": "11.1.18",
+ "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.18.tgz",
+ "integrity": "sha512-EQyQtLiYW029lyoczMl/Hh4Xu7cDecSc58JRYpHyL4tIAu3eqd1yJzQX04d2BZHDkzFFvm6qJEJWOtfDSWAXbQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/immer"
+ }
+ },
"node_modules/@remixicon/react": {
"version": "4.9.0",
"resolved": "https://registry.npmjs.org/@remixicon/react/-/react-4.9.0.tgz",
@@ -1511,6 +1550,18 @@
"node": ">=14.17"
}
},
+ "node_modules/@standard-schema/spec": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
+ "license": "MIT"
+ },
+ "node_modules/@standard-schema/utils": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz",
+ "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==",
+ "license": "MIT"
+ },
"node_modules/@swc/helpers": {
"version": "0.5.23",
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
@@ -2223,11 +2274,37 @@
"assertion-error": "^2.0.1"
}
},
+ "node_modules/@types/d3-array": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz",
+ "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-color": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",
+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-ease": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-interpolate": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",
+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-color": "*"
+ }
+ },
"node_modules/@types/d3-path": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-1.0.11.tgz",
"integrity": "sha512-4pQMp8ldf7UaB/gR8Fvvy69psNHkTpD/pVw3vmEi8iZAB9EPMBruB1JvHO4BIq9QkUUd2lV1F5YXpMNj7JPBpw==",
- "dev": true,
"license": "MIT"
},
"node_modules/@types/d3-sankey": {
@@ -2240,6 +2317,15 @@
"@types/d3-shape": "^1"
}
},
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",
+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
"node_modules/@types/d3-shape": {
"version": "1.3.12",
"resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-1.3.12.tgz",
@@ -2250,6 +2336,18 @@
"@types/d3-path": "^1"
}
},
+ "node_modules/@types/d3-time": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz",
+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-timer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
+ "license": "MIT"
+ },
"node_modules/@types/deep-eql": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
@@ -2293,7 +2391,7 @@
"version": "19.3.0",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
"integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"csstype": "^3.2.2"
@@ -2309,6 +2407,12 @@
"@types/react": "^19.3.0"
}
},
+ "node_modules/@types/use-sync-external-store": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",
+ "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",
+ "license": "MIT"
+ },
"node_modules/@types/whatwg-mimetype": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@types/whatwg-mimetype/-/whatwg-mimetype-3.0.2.tgz",
@@ -2928,7 +3032,7 @@
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/d3-array": {
@@ -2940,6 +3044,45 @@
"internmap": "^1.0.0"
}
},
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-ease": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz",
+ "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/d3-path": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz",
@@ -2956,6 +3099,22 @@
"d3-shape": "^1.2.0"
}
},
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/d3-shape": {
"version": "1.3.7",
"resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz",
@@ -2965,6 +3124,39 @@
"d3-path": "1"
}
},
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -2983,6 +3175,12 @@
}
}
},
+ "node_modules/decimal.js-light": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
+ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
+ "license": "MIT"
+ },
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -3035,6 +3233,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/es-toolkit": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.52.0.tgz",
+ "integrity": "sha512-XTNEJQh1tY1ZJVcf6ayP/2n4ZPyaHlW2FWs7xvw5ddPuhUVjLD3olQVQS7kf58JbAB48iL0uL/jerTrjtV3lDA==",
+ "license": "MIT",
+ "workspaces": [
+ "docs",
+ "benchmarks",
+ "tests/types",
+ "tests/browser-compat"
+ ]
+ },
"node_modules/escape-string-regexp": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
@@ -3235,6 +3445,12 @@
"node": ">=0.10.0"
}
},
+ "node_modules/eventemitter3": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
+ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
+ "license": "MIT"
+ },
"node_modules/expect-type": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
@@ -3337,6 +3553,33 @@
"license": "ISC",
"peer": true
},
+ "node_modules/framer-motion": {
+ "version": "12.43.0",
+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.43.0.tgz",
+ "integrity": "sha512-1eaL3RvR/kAlbG7UYcpMptEyzPoENO0c6w7ZnB3/hh2vSAz/6uGAFn6fdoqTBguNstf3MsFhJHsD/0DHiclG+g==",
+ "license": "MIT",
+ "dependencies": {
+ "motion-dom": "^12.43.0",
+ "motion-utils": "^12.39.0",
+ "tslib": "^2.4.0"
+ },
+ "peerDependencies": {
+ "@emotion/is-prop-valid": "*",
+ "react": "^18.0.0 || ^19.0.0",
+ "react-dom": "^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/is-prop-valid": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -3425,6 +3668,16 @@
"node": ">= 4"
}
},
+ "node_modules/immer": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz",
+ "integrity": "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/immer"
+ }
+ },
"node_modules/imurmurhash": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
@@ -3843,6 +4096,47 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/motion": {
+ "version": "12.43.0",
+ "resolved": "https://registry.npmjs.org/motion/-/motion-12.43.0.tgz",
+ "integrity": "sha512-BQgQbSa9Hn3/mtbib0MK53y6JSANa+YKUKlaYnWzAVDH424RYQ5LVpV3pNiWH00BA2z4ojsSdMzqT7g2FQwjuQ==",
+ "license": "MIT",
+ "dependencies": {
+ "framer-motion": "^12.43.0",
+ "tslib": "^2.4.0"
+ },
+ "peerDependencies": {
+ "@emotion/is-prop-valid": "*",
+ "react": "^18.0.0 || ^19.0.0",
+ "react-dom": "^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/is-prop-valid": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/motion-dom": {
+ "version": "12.43.0",
+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.43.0.tgz",
+ "integrity": "sha512-azKON4d9S65PEoFUiQTMTgPheEmzf2QngdRc50AKfJp9Q9mmcBVw22c8eMq9k8kxOFHdL7+WZY7N/5F/lwiDag==",
+ "license": "MIT",
+ "dependencies": {
+ "motion-utils": "^12.39.0"
+ }
+ },
+ "node_modules/motion-utils": {
+ "version": "12.39.0",
+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz",
+ "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==",
+ "license": "MIT"
+ },
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -4231,6 +4525,36 @@
"react": "^19.3.0"
}
},
+ "node_modules/react-is": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.3.0.tgz",
+ "integrity": "sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/react-redux": {
+ "version": "9.3.0",
+ "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.3.0.tgz",
+ "integrity": "sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/use-sync-external-store": "^0.0.6",
+ "use-sync-external-store": "^1.4.0"
+ },
+ "peerDependencies": {
+ "@types/react": "^18.2.25 || ^19",
+ "react": "^18.0 || ^19",
+ "redux": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "redux": {
+ "optional": true
+ }
+ }
+ },
"node_modules/react-stately": {
"version": "3.50.0",
"resolved": "https://registry.npmjs.org/react-stately/-/react-stately-3.50.0.tgz",
@@ -4248,6 +4572,57 @@
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
}
},
+ "node_modules/recharts": {
+ "version": "3.8.0",
+ "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.8.0.tgz",
+ "integrity": "sha512-Z/m38DX3L73ExO4Tpc9/iZWHmHnlzWG4njQbxsF5aSjwqmHNDDIm0rdEBArkwsBvR8U6EirlEHiQNYWCVh9sGQ==",
+ "license": "MIT",
+ "workspaces": [
+ "www"
+ ],
+ "dependencies": {
+ "@reduxjs/toolkit": "^1.9.0 || 2.x.x",
+ "clsx": "^2.1.1",
+ "decimal.js-light": "^2.5.1",
+ "es-toolkit": "^1.39.3",
+ "eventemitter3": "^5.0.1",
+ "immer": "^10.1.1",
+ "react-redux": "8.x.x || 9.x.x",
+ "reselect": "5.1.1",
+ "tiny-invariant": "^1.3.3",
+ "use-sync-external-store": "^1.2.2",
+ "victory-vendor": "^37.0.2"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/redux": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",
+ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==",
+ "license": "MIT"
+ },
+ "node_modules/redux-thunk": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz",
+ "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "redux": "^5.0.0"
+ }
+ },
+ "node_modules/reselect": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz",
+ "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==",
+ "license": "MIT"
+ },
"node_modules/rolldown": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.6.tgz",
@@ -4388,6 +4763,12 @@
"url": "https://opencollective.com/webpack"
}
},
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
"node_modules/tinybench": {
"version": "6.1.4",
"resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz",
@@ -4520,6 +4901,70 @@
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
+ "node_modules/victory-vendor": {
+ "version": "37.3.6",
+ "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz",
+ "integrity": "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==",
+ "license": "MIT AND ISC",
+ "dependencies": {
+ "@types/d3-array": "^3.0.3",
+ "@types/d3-ease": "^3.0.0",
+ "@types/d3-interpolate": "^3.0.1",
+ "@types/d3-scale": "^4.0.2",
+ "@types/d3-shape": "^3.1.0",
+ "@types/d3-time": "^3.0.0",
+ "@types/d3-timer": "^3.0.0",
+ "d3-array": "^3.1.6",
+ "d3-ease": "^3.0.1",
+ "d3-interpolate": "^3.0.1",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.1.0",
+ "d3-time": "^3.0.0",
+ "d3-timer": "^3.0.1"
+ }
+ },
+ "node_modules/victory-vendor/node_modules/@types/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/victory-vendor/node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/victory-vendor/node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/victory-vendor/node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/vite": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 1a388a6c6..e3b5baeed 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -19,11 +19,14 @@
"@remixicon/react": "4.9.0",
"@tanstack/react-query": "5.103.1",
"@tanstack/react-table": "8.21.3",
+ "clsx": "2.1.1",
"d3-sankey": "0.12.3",
+ "motion": "12.43.0",
"react": "19.3.0",
"react-aria": "3.52.1",
"react-aria-components": "1.21.1",
"react-dom": "19.3.0",
+ "recharts": "3.8.0",
"tailwind-merge": "3.7.0"
},
"devDependencies": {
diff --git a/frontend/src/react/charts/cn.ts b/frontend/src/react/charts/cn.ts
new file mode 100644
index 000000000..5a46be23c
--- /dev/null
+++ b/frontend/src/react/charts/cn.ts
@@ -0,0 +1,12 @@
+/* EvilCharts 源码里的 `@/lib/utils`:条件类名先经 `clsx` 摊平,再交给 BoardUI 的 `cx`。
+ *
+ * 上游是 shadcn 项目,`cn` 由 `shadcn init` 生成,不在注册表条目里。这里接的是 BoardUI 扩展过
+ * 的 `tailwind-merge`:它认得 `text-caption-1-regular` 这类字阶类,和颜色类同处一串时不会被
+ * 当成颜色丢掉。路径别名写在 `vite.react.config.ts`、`vitest.config.ts` 与 `src/react/tsconfig.json`。 */
+import { clsx, type ClassValue } from 'clsx';
+
+import { cx } from '@/utils/cx';
+
+export function cn(...inputs: ClassValue[]): string {
+ return cx(clsx(inputs));
+}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index f41845b6f..d8d544900 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -3,6 +3,7 @@ import './styles.css';
import type { ComponentType } from 'react';
import { QueryClientProvider } from '@tanstack/react-query';
+import { MotionConfig } from 'motion/react';
import { UNSAFE_PortalProvider } from 'react-aria';
import { createRoot } from 'react-dom/client';
import { flushSync } from 'react-dom';
@@ -54,13 +55,19 @@ function overlayContainer(): HTMLElement {
* 第一帧用 `flushSync` 同步落到 DOM 上:遗留壳挂完这一页紧接着就读它画出来的结构
* (配置页按 `.configgroup` 小标题切页签,再按地址里的 `#peachProxy` 滚过去),而
* `root.render` 自己是排进下一次渲染的;骨架已经清掉,晚一帧画就是一帧空白。往后的
- * `update` 照常异步。 */
+ * `update` 照常异步。
+ *
+ * EvilCharts 的生长动画由 Motion 逐帧驱动,`web/css/01-base.css` 那条全局 reduced motion
+ * 规则只关得掉 CSS 过渡,够不着它。`MotionConfig reducedMotion="user"` 在根上一处接住:
+ * 系统设了减弱动态效果,每棵 React 根里的 Motion 动画都按终态直接画。 */
function mounter<P extends object>(Component: ComponentType<P>) {
return (el: Element, props: P): Bundle.ReactMount<P> => {
const root = createRoot(el);
const paint = (next: P) => root.render(
<QueryClientProvider client={queryClient}>
- <UNSAFE_PortalProvider getContainer={overlayContainer}><Component {...next} /></UNSAFE_PortalProvider>
+ <MotionConfig reducedMotion="user">
+ <UNSAFE_PortalProvider getContainer={overlayContainer}><Component {...next} /></UNSAFE_PortalProvider>
+ </MotionConfig>
</QueryClientProvider>,
);
flushSync(() => paint(props));
diff --git a/frontend/src/react/evilcharts/ORIGIN.md b/frontend/src/react/evilcharts/ORIGIN.md
new file mode 100644
index 000000000..0cc001357
--- /dev/null
+++ b/frontend/src/react/evilcharts/ORIGIN.md
@@ -0,0 +1,39 @@
+# EvilCharts 源码
+
+来源是 EvilCharts 仓库 `https://github.com/legions-developer/evilcharts` 的 Recharts 分支,
+提交 `500ecd44c1fdcf319ba83ea68f3771bc76125974`(2026-08-29),2026-09-26 取得。
+文档站是 `https://evilcharts.com/docs/recharts/`。许可证为 MIT,原文见 `web/vendor/evilcharts-LICENSE.txt`。
+取舍见 `docs/adr/0076-evilcharts-recharts-charts.md`。
+
+本目录逐字复制上游 `src/registry/` 下的文件,相对路径与上游相同,所以上游源码里的
+`@/registry/*` 只要一条路径别名就能解析。这里的文件不做修改:Peach 需要不同的组合或外观时,
+在 `../charts/`、`../stats/`、`../taste/` 里组合,差异写进下表。
+
+`UPSTREAM.sha256` 记着复制时每个文件的 SHA-256,`tests/test_frontend_build.py` 逐文件比对:
+改了副本、多出没登记的文件都会红。升级上游时重新复制、重算对应行,并更新下表。
+
+| 注册表条目 | 复制的文件 | 上游依赖 |
+| --- | --- | --- |
+| `recharts-chart` | `registry/ui/recharts-chart.tsx` | `recharts` |
+| `recharts-tooltip` | `registry/ui/recharts-tooltip.tsx` | `recharts` |
+| `recharts-legend` | `registry/ui/recharts-legend.tsx` | `recharts` |
+| `recharts-background` | `registry/ui/recharts-background.tsx` | `recharts` |
+| `recharts-brush` | `registry/ui/recharts-brush.tsx` | `recharts` |
+| `recharts-dot` | `registry/ui/recharts-dot.tsx` | `recharts` |
+| `recharts-bar-chart` | `registry/charts/recharts-bar-chart.tsx` | `recharts`、`motion` |
+| `recharts-radial-chart` | `registry/charts/recharts-radial-chart.tsx` | `recharts`、`motion` |
+| `recharts-radar-chart` | `registry/charts/recharts-radar-chart.tsx` | `recharts`、`motion` |
+
+`recharts-brush` 与 `recharts-dot` 没有页面直接用,是柱状图和雷达图 import 的部件。
+
+## 没有逐字复制的部分
+
+| 上游 | 处理 | 原因 |
+| --- | --- | --- |
+| `@/lib/utils` 的 `cn` | `../charts/cn.ts`:先经 `clsx` 摊平条件类名,再交给 BoardUI 的 `cx` | 上游的 `cn` 由 `shadcn init` 生成,Peach 不跑 init;`cx` 已是带 BoardUI 字阶的 `tailwind-merge`,但不认 `clsx` 的对象写法 |
+| 路径别名 | `frontend/vite.react.config.ts`、`frontend/vitest.config.ts` 与 `../tsconfig.json` 把 `@/registry/*` 指到本目录、`@/lib/utils` 指到 `../charts/cn.ts`,排在 BoardUI 的 `@/*` 前面 | 上游按 shadcn 项目的目录写 import,改路径就要改上游文件 |
+| 类型导入 | `../tsconfig.json` 关掉 `verbatimModuleSyntax` | 上游用普通 import 取 `RectRadius`、`TypedDataKey` 两个类型;`isolatedModules` 仍开着,转译时照常剥掉 |
+| shadcn 语义色名 | `../styles.css` 的 `@theme inline` 把 `background`、`foreground`、`muted`、`muted-foreground`、`border` 接到 BoardUI 已有 token;`primary` 不接 | 上游浮层与轴刻度写的是 shadcn 色名,Peach 没有这一套变量;`primary` 只有加载指示用,Peach 不传 `isLoading` |
+| 系列颜色 | 调用处的 `ChartConfig` 只写 `var(--color-chart-N)`,不写上游示例里的 oklch 字面值 | 颜色只取 BoardUI 的 `chart-*` 档,深浅两档跟着 token 走 |
+| reduced motion | `../entry.tsx` 在每棵 React 根外包一层 `MotionConfig reducedMotion="user"` | 柱状图的生长动画由 Motion 逐帧驱动,`web/css/01-base.css` 的全局规则只关得掉 CSS 过渡;Recharts 自己的动画在 `isAnimationActive="auto"` 下已读系统设置 |
+| lint | `frontend/.oxlintrc.json` 的 `ignorePatterns` 排除本目录,与 `boardui/` 同一个做法 | 上游源码用任意值类名、内联样式和原始颜色,逐字复制就过不了 `@shadcn/lint`;Peach 自己的组合仍全量检查 |
diff --git a/frontend/src/react/evilcharts/UPSTREAM.sha256 b/frontend/src/react/evilcharts/UPSTREAM.sha256
new file mode 100644
index 000000000..acff72c19
--- /dev/null
+++ b/frontend/src/react/evilcharts/UPSTREAM.sha256
@@ -0,0 +1,9 @@
+660b0a63d43cfb14aaeabd7f1c6dc4ad6f30df387c2b6aca9497d5c417b14c53 registry/charts/recharts-bar-chart.tsx
+fd30c1b5186ad2c1f6fd3e35b0e6a5a6c510c640861b406af1a6d3c9e89897c4 registry/charts/recharts-radar-chart.tsx
+1445226e0365c4b4747da16e17cd86e9d7bdf96bf1a90cfa9a95cd9b8e6e6d63 registry/charts/recharts-radial-chart.tsx
+eb71bf98cc051f1638a91f1a50fc0b27b36d48502b8db5da420bf34b14b689cd registry/ui/recharts-background.tsx
+b7299eb13167fcb2b7786efcd630cf9273eb0e9c5660a34c2e919461a3d7ceb9 registry/ui/recharts-brush.tsx
+4cd9b99678ae2ee7fa588e2c980fa9c3ce4003110acdde6cdd7db1d96db67d3b registry/ui/recharts-chart.tsx
+94b12dc6ee83299561da38fe8fc4d0de66f05fedb2a81aebbab097f903781f5b registry/ui/recharts-dot.tsx
+d1eb325e11315c5640efe6b70543bbc370654e9d2e5101774603bd2b1dcb3ef8 registry/ui/recharts-legend.tsx
+49f0deedb6637b0ffcf1afd978311a3afb66cb966325a881fb8b324e15d8d09c registry/ui/recharts-tooltip.tsx
diff --git a/frontend/src/react/evilcharts/registry/charts/recharts-bar-chart.tsx b/frontend/src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
new file mode 100644
index 000000000..170dfc8b9
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
@@ -0,0 +1,1298 @@
+"use client";
+
+import {
+ Bar as RechartsBar,
+ BarChart as RechartsBarChart,
+ CartesianGrid,
+ Rectangle,
+ ReferenceLine,
+ XAxis as RechartsXAxis,
+ YAxis as RechartsYAxis,
+} from "recharts";
+import {
+ Children,
+ createContext,
+ isValidElement,
+ use,
+ useCallback,
+ useId,
+ useMemo,
+ useRef,
+ useState,
+ type ComponentProps,
+ type ReactNode,
+} from "react";
+import {
+ type ChartConfig,
+ ChartContainer,
+ getColorsCount,
+ getLoadingData,
+ LoadingIndicator,
+} from "@/registry/ui/recharts-chart";
+import {
+ ChartTooltip,
+ ChartTooltipContent,
+ type TooltipRoundness,
+ type TooltipVariant,
+} from "@/registry/ui/recharts-tooltip";
+import { ChartLegend, ChartLegendContent, type ChartLegendVariant } from "@/registry/ui/recharts-legend";
+import { Brush, EvilBrush, useEvilBrush, type BrushProps, type EvilBrushRange } from "@/registry/ui/recharts-brush";
+import { ChartBackground, type BackgroundVariant } from "@/registry/ui/recharts-background";
+import { RectRadius } from "recharts/types/shape/Rectangle";
+import { motion, useReducedMotion } from "motion/react";
+
+// Constants
+const DEFAULT_BAR_RADIUS = 2;
+const LOADING_BAR_DATA_KEY = "loading";
+const LOADING_ANIMATION_DURATION = 2000; // in milliseconds
+const STACK_ID = "evil-stacked";
+const BAR_GROW_DURATION = 0.5; // per-bar grow-in length, in seconds
+const BAR_STAGGER = 0.05; // delay between consecutive bars, in seconds
+const REVEAL_EASE: [number, number, number, number] = [0, 0.7, 0.5, 1]; // grow-in easing
+
+type BarVariant = "default" | "hatched" | "duotone" | "duotone-reverse" | "gradient" | "stripped";
+type StackType = "default" | "stacked" | "percent";
+type BarLayout = "vertical" | "horizontal";
+
+/**
+ * Order in which bars grow into view. Recharts' own bar animation is permanently
+ * disabled — every bar instead grows from its baseline (bottom for vertical
+ * layout, left for horizontal), and this controls the stagger sequence.
+ *
+ * NOTE: the grow-in is a per-frame animation, so it is heavier than a static
+ * chart. `"none"` opts out entirely; it is also what a device with the OS
+ * "reduce motion" preference falls back to automatically.
+ */
+type BarAnimationType = "none" | "left-to-right" | "right-to-left" | "center-out" | "edges-in";
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Shared context
+// ─────────────────────────────────────────────────────────────────────────────
+
+/**
+ * Shared state for every part of the chart. Lifted into <EvilBarChart /> so that
+ * <Bar />, <XAxis />, <Legend />, and friends can read it without prop drilling.
+ * Sub-components are composed freely — the provider is the single source of truth.
+ */
+type BarChartContextValue = {
+ config: ChartConfig; // colors + labels for every series
+ isStacked: boolean; // whether bars stack on top of each other
+ isHorizontal: boolean; // whether bars are laid out horizontally
+ isLoading: boolean; // whether the chart shows its loading skeleton
+ barRadius: number; // default corner radius each <Bar /> inherits
+ animationType: BarAnimationType; // default grow-in order each <Bar /> inherits
+ introStartedAt: number; // timestamp the chart mounted — anchors the one-shot grow-in
+ dataLength: number; // number of rows currently rendered
+ selectedDataKey: string | null; // currently selected series, or null when none
+ selectDataKey: (dataKey: string | null) => void; // sets the selected series
+ isMouseInChart: boolean; // whether the pointer is currently over the chart
+};
+
+const BarChartContext = createContext<BarChartContextValue | null>(null);
+
+// Reads the chart context, throwing a helpful error when used outside <EvilBarChart />
+function useBarChart() {
+ const context = use(BarChartContext);
+
+ if (!context) {
+ throw new Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
+ }
+
+ return context;
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Root container
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Validates that every config key also exists on the data row type
+type ValidateConfigKeys<TData, TConfig> = {
+ [K in keyof TConfig]: K extends keyof TData ? ChartConfig[string] : never;
+};
+
+type EvilBarChartBaseProps<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+> = {
+ config: TConfig & ValidateConfigKeys<TData, TConfig>; // series colors + labels
+ data: TData[]; // rows rendered by the chart
+ children: ReactNode; // composed parts — <Bar />, <XAxis />, <Legend />, …
+ className?: string; // extra classes for the chart container
+ chartProps?: ComponentProps<typeof RechartsBarChart>; // escape hatch for the raw Recharts chart
+ stackType?: StackType; // how multiple bars combine
+ layout?: BarLayout; // orientation of the bars
+ barRadius?: number; // default corner radius for every <Bar />
+ animationType?: BarAnimationType; // default grow-in order for every <Bar />
+ barGap?: number; // gap between bars within the same category
+ barCategoryGap?: number; // gap between categories of bars
+ backgroundVariant?: BackgroundVariant; // background pattern drawn behind the chart
+ defaultSelectedDataKey?: string | null; // series selected on first render
+ onSelectionChange?: (selectedDataKey: string | null) => void; // fires when the selected series changes
+ isLoading?: boolean; // shows the animated loading skeleton
+ loadingBars?: number; // number of bars in the loading skeleton
+ xDataKey?: keyof TData & string; // x-axis key — only needed for the <Brush /> footer
+};
+
+type EvilBarChartProps<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+> = EvilBarChartBaseProps<TData, TConfig>;
+
+/**
+ * Root of the composible bar chart. Owns the data, the shared context, the
+ * loading skeleton, and the optional zoom brush. Everything visual — axes,
+ * grid, tooltip, legend, and the bars themselves — is composed as children,
+ * so a consumer renders exactly the parts they need.
+ */
+export function EvilBarChart<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+>({
+ config,
+ data,
+ children,
+ className,
+ chartProps,
+ stackType = "default",
+ layout = "vertical",
+ barRadius = DEFAULT_BAR_RADIUS,
+ animationType = "left-to-right",
+ barGap,
+ barCategoryGap,
+ backgroundVariant,
+ defaultSelectedDataKey = null,
+ onSelectionChange,
+ isLoading = false,
+ loadingBars,
+ xDataKey,
+}: EvilBarChartProps<TData, TConfig>) {
+ const chartId = useId().replace(/:/g, ""); // colon-free id keeps CSS/SVG selectors valid
+ // Anchors the grow-in to a fixed moment so it plays exactly once — re-renders
+ // and Recharts' bar remounts read elapsed time from here instead of replaying.
+ // Lazy useState stamps the time once, on the initial render only.
+ const [introStartedAt] = useState(() => Date.now());
+ const [selectedDataKey, setSelectedDataKey] = useState<string | null>(defaultSelectedDataKey);
+ const [isMouseInChart, setIsMouseInChart] = useState(false);
+ const { loadingData, onShimmerExit } = useLoadingData(isLoading, loadingBars);
+ const { visibleData, brushProps } = useEvilBrush({ data });
+
+ // Brush is a <Brush /> child now (not props): pull it out of the children so
+ // it never reaches the Recharts tree, and drive the footer from its props.
+ const brush = useMemo(() => {
+ // Pull the <Brush> element out of the children (config-only, never rendered
+ // into the Recharts tree); toArray also assigns stable keys to the rest.
+ const parts = Children.toArray(children);
+ const brushEl = parts.find((child) => isValidElement(child) && child.type === Brush);
+ const bp = (isValidElement(brushEl) ? brushEl.props : {}) as BrushProps;
+ return {
+ slot: {
+ present: isValidElement(brushEl),
+ height: bp.height,
+ formatLabel: bp.formatLabel,
+ onChange: bp.onChange,
+ },
+ chartChildren: parts.filter((child) => !(isValidElement(child) && child.type === Brush)),
+ };
+ }, [children]);
+ const showBrush = brush.slot.present;
+
+ const isStacked = stackType === "stacked" || stackType === "percent";
+ const isHorizontal = layout === "horizontal";
+ const displayData = showBrush && !isLoading ? visibleData : data;
+
+ // Updates selection state and notifies the parent
+ const selectDataKey = useCallback(
+ (newSelectedDataKey: string | null) => {
+ setSelectedDataKey(newSelectedDataKey);
+ onSelectionChange?.(newSelectedDataKey);
+ },
+ [onSelectionChange],
+ );
+
+ const contextValue = useMemo<BarChartContextValue>(
+ () => ({
+ config,
+ isStacked,
+ isHorizontal,
+ isLoading,
+ barRadius,
+ animationType,
+ introStartedAt,
+ dataLength: displayData.length,
+ selectedDataKey,
+ selectDataKey,
+ isMouseInChart,
+ }),
+ [
+ config,
+ isStacked,
+ isHorizontal,
+ isLoading,
+ barRadius,
+ animationType,
+ introStartedAt,
+ displayData.length,
+ selectedDataKey,
+ selectDataKey,
+ isMouseInChart,
+ ],
+ );
+
+ return (
+ <BarChartContext value={contextValue}>
+ <ChartContainer
+ className={className}
+ config={config}
+ footer={
+ showBrush &&
+ !isLoading && (
+ <EvilBrush
+ data={data}
+ chartConfig={config}
+ xDataKey={xDataKey}
+ variant="bar"
+ barRadius={barRadius}
+ height={brush.slot.height}
+ formatLabel={brush.slot.formatLabel}
+ stacked={isStacked}
+ skipStyle
+ className="mt-1"
+ {...brushProps}
+ onChange={(range) => {
+ brushProps.onChange(range);
+ brush.slot.onChange?.(range);
+ }}
+ />
+ )
+ }
+ >
+ <LoadingIndicator isLoading={isLoading} />
+ <RechartsBarChart
+ id={chartId}
+ accessibilityLayer
+ layout={isHorizontal ? "vertical" : "horizontal"}
+ data={isLoading ? loadingData : displayData}
+ barGap={barGap}
+ barCategoryGap={barCategoryGap}
+ stackOffset={stackType === "percent" ? "expand" : undefined}
+ onMouseEnter={() => setIsMouseInChart(true)}
+ onMouseLeave={() => setIsMouseInChart(false)}
+ {...chartProps}
+ >
+ {backgroundVariant && <ChartBackground variant={backgroundVariant} />}
+ <ReferenceLine color="white" />
+ {brush.chartChildren}
+ {isLoading && <LoadingBar chartId={chartId} onShimmerExit={onShimmerExit} />}
+ </RechartsBarChart>
+ </ChartContainer>
+ </BarChartContext>
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Composible parts
+// ─────────────────────────────────────────────────────────────────────────────
+
+type BarProps = {
+ dataKey: string; // series key — must exist on the data and config
+ variant?: BarVariant; // fill style for this bar only
+ radius?: number; // corner radius — falls back to the chart default
+ animationType?: BarAnimationType; // grow-in order — falls back to the chart default
+ isClickable?: boolean; // lets this bar be selected by clicking it
+ enableHoverHighlight?: boolean; // dims this bar while another bar is hovered
+ glowing?: boolean; // applies a soft outer glow to this bar
+ bufferBar?: boolean; // renders the last data point as a hatched "buffer" bar
+ barProps?: ComponentProps<typeof RechartsBar>; // escape hatch for raw Recharts Bar props
+};
+
+/**
+ * A single bar series. Each <Bar /> is fully self-contained: it generates its
+ * own gradient/pattern definitions under a unique id, so any number of bars —
+ * each with its own variant, radius, glow, and clickability — can live in one
+ * chart without style collisions.
+ */
+function Bar({
+ dataKey,
+ variant = "default",
+ radius,
+ animationType,
+ isClickable = false,
+ enableHoverHighlight = false,
+ glowing = false,
+ bufferBar = false,
+ barProps,
+}: BarProps) {
+ const {
+ config,
+ isStacked,
+ isHorizontal,
+ isLoading,
+ barRadius: defaultRadius,
+ animationType: defaultAnimation,
+ introStartedAt,
+ dataLength,
+ selectedDataKey,
+ selectDataKey,
+ isMouseInChart,
+ } = useBarChart();
+ const id = useId().replace(/:/g, ""); // unique id scopes this bar's style defs
+ // Devices set to "reduce motion" skip the grow-in animation entirely
+ const shouldReduceMotion = useReducedMotion();
+
+ // The root renders the skeleton bar while loading, so real bars step aside
+ if (isLoading) return null;
+
+ const resolvedRadius = radius ?? defaultRadius;
+ const isSelected = selectedDataKey === dataKey;
+
+ // The grow-in is a per-frame animation — heavier than a static chart — so
+ // `"none"` and the OS reduce-motion preference both opt out of it.
+ const revealType: BarAnimationType = shouldReduceMotion
+ ? "none"
+ : (animationType ?? defaultAnimation);
+
+ const customBarProps = {
+ id,
+ dataKey,
+ variant,
+ barRadius: resolvedRadius,
+ glowing,
+ bufferBar,
+ isClickable,
+ enableHoverHighlight,
+ isMouseInChart,
+ isHorizontal,
+ introStartedAt,
+ selectedDataKey,
+ dataLength,
+ onClick: () => {
+ if (!isClickable) return;
+ // Clicking the selected bar clears the selection, otherwise selects it
+ selectDataKey(isSelected ? null : dataKey);
+ },
+ };
+
+ return (
+ <>
+ <RechartsBar
+ dataKey={dataKey}
+ stackId={isStacked ? STACK_ID : undefined}
+ fill={`url(#${id}-colors-${dataKey})`}
+ radius={resolvedRadius}
+ // Recharts' built-in bar animation is permanently disabled — every bar
+ // instead grows in from its baseline via the staggered motion.dev shape.
+ isAnimationActive={false}
+ style={isClickable || enableHoverHighlight ? { cursor: "pointer" } : undefined}
+ shape={(props: unknown) => (
+ <CustomBar {...(props as BarShapeProps)} {...customBarProps} animationType={revealType} />
+ )}
+ activeBar={(props: unknown) => (
+ // The active (hovered) bar must never re-run the grow-in animation
+ <CustomBar {...(props as BarShapeProps)} {...customBarProps} animationType="none" />
+ )}
+ {...barProps}
+ />
+ <defs>
+ <ColorGradient id={id} dataKey={dataKey} config={config} />
+ {variant === "hatched" && <HatchedPattern id={id} dataKey={dataKey} />}
+ {variant === "duotone" && <DuotonePattern id={id} dataKey={dataKey} config={config} />}
+ {variant === "duotone-reverse" && (
+ <DuotoneReversePattern id={id} dataKey={dataKey} config={config} />
+ )}
+ {variant === "gradient" && <GradientPattern id={id} dataKey={dataKey} />}
+ {variant === "stripped" && <StrippedPattern id={id} dataKey={dataKey} />}
+ {bufferBar && <BufferHatchedPattern id={id} dataKey={dataKey} />}
+ {glowing && <GlowFilter id={id} dataKey={dataKey} />}
+ </defs>
+ </>
+ );
+}
+
+type XAxisProps = ComponentProps<typeof RechartsXAxis>;
+
+/**
+ * The category axis. Ships with the chart's flat default styling and forwards
+ * every Recharts XAxis prop, so `dataKey`, `tickFormatter`, etc. are passed
+ * straight through. Hidden automatically while the chart is loading. Resolves
+ * its axis type from the chart layout — categorical when vertical, numeric
+ * when the bars run horizontally.
+ */
+function XAxis({
+ tickLine = false,
+ axisLine = false,
+ tickMargin = 8,
+ minTickGap = 8,
+ type,
+ ...props
+}: XAxisProps) {
+ const { isLoading, isHorizontal } = useBarChart();
+
+ if (isLoading) return null;
+
+ return (
+ <RechartsXAxis
+ tickLine={tickLine}
+ axisLine={axisLine}
+ tickMargin={tickMargin}
+ minTickGap={minTickGap}
+ type={type ?? (isHorizontal ? "number" : "category")}
+ {...props}
+ />
+ );
+}
+
+type YAxisProps = ComponentProps<typeof RechartsYAxis>;
+
+/**
+ * The value axis. Forwards every Recharts YAxis prop and resolves its axis type
+ * from the chart layout — numeric when vertical, categorical when the bars run
+ * horizontally. Hidden automatically while the chart is loading.
+ */
+function YAxis({
+ tickLine = false,
+ axisLine = false,
+ tickMargin = 8,
+ minTickGap = 8,
+ width = "auto",
+ type,
+ ...props
+}: YAxisProps) {
+ const { isLoading, isHorizontal } = useBarChart();
+
+ if (isLoading) return null;
+
+ return (
+ <RechartsYAxis
+ tickLine={tickLine}
+ axisLine={axisLine}
+ tickMargin={tickMargin}
+ minTickGap={minTickGap}
+ width={width}
+ type={type ?? (isHorizontal ? "category" : "number")}
+ {...props}
+ />
+ );
+}
+
+type GridProps = ComponentProps<typeof CartesianGrid>;
+
+/**
+ * The background grid lines. Defaults to dashed lines aligned to the value
+ * axis based on the chart layout, and forwards every Recharts CartesianGrid
+ * prop for full control.
+ */
+function Grid({ strokeDasharray = "3 3", vertical, horizontal, ...props }: GridProps) {
+ const { isHorizontal } = useBarChart();
+
+ return (
+ <CartesianGrid
+ strokeDasharray={strokeDasharray}
+ vertical={vertical ?? isHorizontal}
+ horizontal={horizontal ?? !isHorizontal}
+ {...props}
+ />
+ );
+}
+
+type TooltipProps = {
+ variant?: TooltipVariant; // visual style of the tooltip surface
+ roundness?: TooltipRoundness; // border-radius of the tooltip
+ defaultIndex?: number; // data index shown by default with no hover
+};
+
+/**
+ * The hover tooltip. Reads the chart's selection from context so its content
+ * dims unselected series. Hidden automatically while the chart is loading.
+ */
+function Tooltip({ variant, roundness, defaultIndex }: TooltipProps) {
+ const { isLoading, selectedDataKey } = useBarChart();
+
+ if (isLoading) return null;
+
+ return (
+ <ChartTooltip
+ cursor={false}
+ defaultIndex={defaultIndex}
+ content={
+ <ChartTooltipContent selected={selectedDataKey} roundness={roundness} variant={variant} />
+ }
+ />
+ );
+}
+
+type LegendProps = {
+ variant?: ChartLegendVariant; // visual style of the legend indicators
+ align?: "left" | "center" | "right"; // horizontal placement
+ verticalAlign?: "top" | "middle" | "bottom"; // vertical placement
+ isClickable?: boolean; // lets each entry toggle selection of its series
+};
+
+/**
+ * The series legend. When `isClickable` is set, each entry toggles selection of
+ * its series, driving the shared selection state read by every <Bar />.
+ */
+function Legend({
+ variant,
+ align = "right",
+ verticalAlign = "top",
+ isClickable = false,
+}: LegendProps) {
+ const { selectedDataKey, selectDataKey } = useBarChart();
+
+ return (
+ <ChartLegend
+ verticalAlign={verticalAlign}
+ align={align}
+ content={
+ <ChartLegendContent
+ selected={selectedDataKey}
+ onSelectChange={selectDataKey}
+ isClickable={isClickable}
+ variant={variant}
+ />
+ }
+ />
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Custom bar shape
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Raw geometry Recharts hands to a custom bar shape
+type BarShapeProps = {
+ x?: number;
+ y?: number;
+ width?: number;
+ height?: number;
+ fill?: string;
+ fillOpacity?: number;
+ dataKey?: string;
+ index?: number;
+ [key: string]: unknown;
+};
+
+// Per-series config the <Bar /> threads into every CustomBar render
+type CustomBarProps = {
+ id: string;
+ dataKey: string;
+ variant: BarVariant;
+ barRadius: number;
+ glowing?: boolean;
+ bufferBar?: boolean;
+ isClickable?: boolean;
+ enableHoverHighlight?: boolean;
+ isMouseInChart?: boolean;
+ isHorizontal?: boolean;
+ animationType?: BarAnimationType;
+ introStartedAt?: number;
+ selectedDataKey?: string | null;
+ isActive?: boolean;
+ dataLength?: number;
+ onClick?: () => void;
+} & BarShapeProps;
+
+/**
+ * Custom bar shape. Renders the visible bar painted by the owning <Bar />'s
+ * variant pattern, with an invisible full-height rectangle behind it to keep
+ * the whole column hoverable and clickable.
+ */
+const CustomBar = (props: CustomBarProps) => {
+ const {
+ x = 0,
+ y = 0,
+ width = 0,
+ height = 0,
+ id,
+ dataKey,
+ variant,
+ barRadius,
+ glowing,
+ bufferBar,
+ isClickable,
+ enableHoverHighlight,
+ isMouseInChart,
+ isHorizontal = false,
+ animationType = "none",
+ introStartedAt = 0,
+ selectedDataKey,
+ isActive,
+ dataLength = 0,
+ onClick,
+ } = props;
+
+ const index = typeof props.index === "number" ? props.index : -1;
+ const isLastBar = bufferBar && dataLength > 0 && index === dataLength - 1;
+ const isStripped = variant === "stripped";
+ const grow = getBarGrowAnimation(animationType, index, dataLength, isHorizontal, introStartedAt);
+
+ const fill = isLastBar
+ ? `url(#${id}-buffer-hatched-${dataKey})`
+ : getVariantFill(variant, id, dataKey);
+ const filter = glowing ? `url(#${id}-bar-glow-${dataKey})` : undefined;
+
+ const fillOpacity = getBarOpacity({
+ isClickable,
+ selectedDataKey,
+ dataKey,
+ enableHoverHighlight,
+ isMouseInChart,
+ isActive,
+ });
+ const cursorStyle = isClickable || enableHoverHighlight ? { cursor: "pointer" } : undefined;
+
+ // Stripped bars round only their top corners; every other variant rounds all four
+ const radius: RectRadius = isStripped ? [barRadius, barRadius, 0, 0] : barRadius;
+
+ // The visible, painted bar — plus the stripped variant's solid top strip
+ const visibleBar = (
+ <>
+ <Rectangle
+ x={x}
+ y={y}
+ width={width}
+ opacity={fillOpacity}
+ height={Math.max(0, height - 3)}
+ radius={radius}
+ fill={fill}
+ filter={filter}
+ stroke={isLastBar ? `url(#${id}-colors-${dataKey})` : undefined}
+ strokeWidth={isLastBar ? 1 : undefined}
+ />
+ {isStripped && (
+ <Rectangle
+ x={x}
+ y={y - 4}
+ width={width}
+ height={2}
+ radius={1}
+ fill={`url(#${id}-colors-${dataKey})`}
+ />
+ )}
+ </>
+ );
+
+ return (
+ <g style={cursorStyle} onClick={onClick}>
+ {/* Full-height invisible rect keeps the whole column hoverable/clickable */}
+ <Rectangle {...props} fill="transparent" />
+ {/* The painted bar grows in from its baseline; the hit rect above stays put */}
+ {grow ? (
+ <motion.g
+ initial={grow.initial}
+ animate={grow.animate}
+ transition={grow.transition}
+ style={grow.style}
+ >
+ {visibleBar}
+ </motion.g>
+ ) : (
+ visibleBar
+ )}
+ </g>
+ );
+};
+
+/**
+ * Builds the motion.dev grow-in animation for a single bar, or returns `null`
+ * when the bar should render statically (`"none"`, reduced motion, an unknown
+ * index, or — crucially — once the bar has already finished growing).
+ *
+ * Every bar grows from its baseline — `scaleY` from the bottom for vertical
+ * layout, `scaleX` from the left for horizontal — and `animationType` decides
+ * the stagger order, so the chart fills in one bar at a time.
+ *
+ * The intro is anchored to `introStartedAt` (stamped once when the chart
+ * mounts) rather than to component mount. Recharts remounts every bar whenever
+ * the chart re-renders — e.g. on hover-highlight — so a mount-based animation
+ * would replay endlessly. Reading elapsed time instead makes it a true
+ * one-shot: a bar past its window renders static, and a bar caught mid-grow
+ * resumes from the progress it should already be at.
+ */
+const getBarGrowAnimation = (
+ animationType: BarAnimationType,
+ index: number,
+ dataLength: number,
+ isHorizontal: boolean,
+ introStartedAt: number,
+) => {
+ if (animationType === "none" || index < 0 || dataLength <= 0) return null;
+
+ const lastIndex = dataLength - 1;
+ const center = lastIndex / 2;
+
+ // How many bars this one waits behind before it starts growing
+ let step: number;
+ switch (animationType) {
+ case "right-to-left":
+ step = lastIndex - index;
+ break;
+ case "center-out":
+ step = Math.abs(index - center);
+ break;
+ case "edges-in":
+ step = center - Math.abs(index - center);
+ break;
+ default: // left-to-right
+ step = index;
+ }
+
+ const startMs = step * BAR_STAGGER * 1000;
+ const durationMs = BAR_GROW_DURATION * 1000;
+ const endMs = startMs + durationMs;
+ const elapsed = Date.now() - introStartedAt;
+
+ // Already finished — render static so re-renders/remounts can't replay it
+ if (elapsed >= endMs) return null;
+
+ // Resume from wherever this bar should already be: 0 before it starts,
+ // partway through if a remount caught it mid-grow.
+ const from = elapsed <= startMs ? 0 : (elapsed - startMs) / durationMs;
+ const transition = {
+ duration: (endMs - Math.max(elapsed, startMs)) / 1000,
+ ease: REVEAL_EASE,
+ delay: Math.max(0, startMs - elapsed) / 1000,
+ };
+
+ // Horizontal bars grow rightward from the left edge, vertical from the bottom
+ return isHorizontal
+ ? { initial: { scaleX: from }, animate: { scaleX: 1 }, transition, style: { originX: 0 } }
+ : { initial: { scaleY: from }, animate: { scaleY: 1 }, transition, style: { originY: 1 } };
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Selection + fill helpers
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Resolves the SVG paint reference for a bar's fill based on its variant
+const getVariantFill = (variant: BarVariant, id: string, dataKey: string): string => {
+ switch (variant) {
+ case "hatched":
+ return `url(#${id}-hatched-${dataKey})`;
+ case "duotone":
+ return `url(#${id}-duotone-${dataKey})`;
+ case "duotone-reverse":
+ return `url(#${id}-duotone-reverse-${dataKey})`;
+ case "gradient":
+ return `url(#${id}-gradient-${dataKey})`;
+ case "stripped":
+ return `url(#${id}-stripped-${dataKey})`;
+ default:
+ return `url(#${id}-colors-${dataKey})`;
+ }
+};
+
+// Computes bar opacity from the click selection and hover-highlight state
+const getBarOpacity = ({
+ isClickable,
+ selectedDataKey,
+ dataKey,
+ enableHoverHighlight,
+ isMouseInChart,
+ isActive,
+}: {
+ isClickable?: boolean;
+ selectedDataKey?: string | null;
+ dataKey: string;
+ enableHoverHighlight?: boolean;
+ isMouseInChart?: boolean;
+ isActive?: boolean;
+}) => {
+ const isSelectedDataKey = selectedDataKey === null || selectedDataKey === dataKey;
+ const clickOpacity = isClickable && selectedDataKey !== null ? (isSelectedDataKey ? 1 : 0.15) : 1;
+
+ // While hovering, the hovered bar keeps its click opacity and the rest dim further
+ if (enableHoverHighlight && isMouseInChart) {
+ return isActive ? clickOpacity : clickOpacity * 0.3;
+ }
+
+ return clickOpacity;
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Style definitions — one set per <Bar />, scoped to its unique id
+// ─────────────────────────────────────────────────────────────────────────────
+
+type StyleProps = {
+ id: string; // unique id of the owning <Bar />
+ dataKey: string; // series key the colors belong to
+};
+
+/**
+ * Vertical top-to-bottom color gradient for a series. Always rendered — every
+ * fill variant and the buffer-bar stroke paint from this single gradient.
+ */
+const ColorGradient = ({ id, dataKey, config }: StyleProps & { config: ChartConfig }) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+
+ return (
+ <linearGradient id={`${id}-colors-${dataKey}`} x1="0" y1="0" x2="0" y2="1">
+ {colorsCount === 1 ? (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} />
+ <stop offset="100%" stopColor={`var(--color-${dataKey}-0)`} />
+ </>
+ ) : (
+ Array.from({ length: colorsCount }, (_, index) => {
+ const offset = `${(index / (colorsCount - 1)) * 100}%`;
+ return (
+ <stop
+ key={offset}
+ offset={offset}
+ stopColor={`var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`}
+ />
+ );
+ })
+ )}
+ </linearGradient>
+ );
+};
+
+/** Diagonal hatched-stripe fill, masked from the series color gradient. */
+const HatchedPattern = ({ id, dataKey }: StyleProps) => {
+ return (
+ <>
+ <pattern
+ id={`${id}-hatched-mask-pattern`}
+ x="0"
+ y="0"
+ width="5"
+ height="5"
+ patternUnits="userSpaceOnUse"
+ patternTransform="rotate(-45)"
+ >
+ <rect width="5" height="5" fill="white" fillOpacity={0.3} />
+ <rect width="1.5" height="5" fill="white" fillOpacity={1} />
+ </pattern>
+ <mask id={`${id}-hatched-mask-${dataKey}`}>
+ <rect width="100%" height="100%" fill={`url(#${id}-hatched-mask-pattern)`} />
+ </mask>
+ <pattern
+ id={`${id}-hatched-${dataKey}`}
+ patternUnits="userSpaceOnUse"
+ width="100%"
+ height="100%"
+ >
+ <rect
+ width="100%"
+ height="100%"
+ fill={`url(#${id}-colors-${dataKey})`}
+ mask={`url(#${id}-hatched-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Hatched diagonal lines with no background fill, used for the buffer bar. */
+const BufferHatchedPattern = ({ id, dataKey }: StyleProps) => {
+ return (
+ <>
+ <pattern
+ id={`${id}-buffer-hatched-mask-pattern`}
+ x="0"
+ y="0"
+ width="5"
+ height="5"
+ patternUnits="userSpaceOnUse"
+ patternTransform="rotate(-45)"
+ >
+ <rect width="5" height="5" fill="black" fillOpacity={0} />
+ <rect width="1" height="5" fill="white" fillOpacity={1} />
+ </pattern>
+ <mask id={`${id}-buffer-hatched-mask-${dataKey}`}>
+ <rect width="100%" height="100%" fill={`url(#${id}-buffer-hatched-mask-pattern)`} />
+ </mask>
+ <pattern
+ id={`${id}-buffer-hatched-${dataKey}`}
+ patternUnits="userSpaceOnUse"
+ width="100%"
+ height="100%"
+ >
+ <rect
+ width="100%"
+ height="100%"
+ fill={`url(#${id}-colors-${dataKey})`}
+ mask={`url(#${id}-buffer-hatched-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Two-tone fill — a half-faded, half-solid split applied per bar bounding box. */
+const DuotonePattern = ({ id, dataKey, config }: StyleProps & { config: ChartConfig }) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+
+ return (
+ <>
+ <linearGradient
+ id={`${id}-duotone-mask-gradient-${dataKey}`}
+ gradientUnits="objectBoundingBox"
+ x1="0"
+ y1="0"
+ x2="1"
+ y2="0"
+ >
+ <stop offset="50%" stopColor="white" stopOpacity={0.4} />
+ <stop offset="50%" stopColor="white" stopOpacity={1} />
+ </linearGradient>
+ <linearGradient
+ id={`${id}-duotone-colors-${dataKey}`}
+ gradientUnits="objectBoundingBox"
+ x1="0"
+ y1="0"
+ x2="0"
+ y2="1"
+ >
+ {colorsCount === 1 ? (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} />
+ <stop offset="100%" stopColor={`var(--color-${dataKey}-0)`} />
+ </>
+ ) : (
+ Array.from({ length: colorsCount }, (_, index) => {
+ const offset = `${(index / (colorsCount - 1)) * 100}%`;
+ return (
+ <stop
+ key={offset}
+ offset={offset}
+ stopColor={`var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`}
+ />
+ );
+ })
+ )}
+ </linearGradient>
+ <mask id={`${id}-duotone-mask-${dataKey}`} maskContentUnits="objectBoundingBox">
+ <rect
+ x="0"
+ y="0"
+ width="1"
+ height="1"
+ fill={`url(#${id}-duotone-mask-gradient-${dataKey})`}
+ />
+ </mask>
+ <pattern
+ id={`${id}-duotone-${dataKey}`}
+ patternUnits="objectBoundingBox"
+ patternContentUnits="objectBoundingBox"
+ width="1"
+ height="1"
+ >
+ <rect
+ x="0"
+ y="0"
+ width="1"
+ height="1"
+ fill={`url(#${id}-duotone-colors-${dataKey})`}
+ mask={`url(#${id}-duotone-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Two-tone fill with the solid and faded halves reversed from `duotone`. */
+const DuotoneReversePattern = ({ id, dataKey, config }: StyleProps & { config: ChartConfig }) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+
+ return (
+ <>
+ <linearGradient
+ id={`${id}-duotone-reverse-mask-gradient-${dataKey}`}
+ gradientUnits="objectBoundingBox"
+ x1="0"
+ y1="0"
+ x2="1"
+ y2="0"
+ >
+ <stop offset="50%" stopColor="white" stopOpacity={1} />
+ <stop offset="50%" stopColor="white" stopOpacity={0.4} />
+ </linearGradient>
+ <linearGradient
+ id={`${id}-duotone-reverse-colors-${dataKey}`}
+ gradientUnits="objectBoundingBox"
+ x1="0"
+ y1="0"
+ x2="0"
+ y2="1"
+ >
+ {colorsCount === 1 ? (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} />
+ <stop offset="100%" stopColor={`var(--color-${dataKey}-0)`} />
+ </>
+ ) : (
+ Array.from({ length: colorsCount }, (_, index) => {
+ const offset = `${(index / (colorsCount - 1)) * 100}%`;
+ return (
+ <stop
+ key={offset}
+ offset={offset}
+ stopColor={`var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`}
+ />
+ );
+ })
+ )}
+ </linearGradient>
+ <mask id={`${id}-duotone-reverse-mask-${dataKey}`} maskContentUnits="objectBoundingBox">
+ <rect
+ x="0"
+ y="0"
+ width="1"
+ height="1"
+ fill={`url(#${id}-duotone-reverse-mask-gradient-${dataKey})`}
+ />
+ </mask>
+ <pattern
+ id={`${id}-duotone-reverse-${dataKey}`}
+ patternUnits="objectBoundingBox"
+ patternContentUnits="objectBoundingBox"
+ width="1"
+ height="1"
+ >
+ <rect
+ x="0"
+ y="0"
+ width="1"
+ height="1"
+ fill={`url(#${id}-duotone-reverse-colors-${dataKey})`}
+ mask={`url(#${id}-duotone-reverse-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Gradient fill that fades the series color from solid at the top to clear. */
+const GradientPattern = ({ id, dataKey }: StyleProps) => {
+ return (
+ <>
+ <linearGradient id={`${id}-gradient-mask-gradient`} x1="0" y1="0" x2="0" y2="1">
+ <stop offset="20%" stopColor="white" stopOpacity={1} />
+ <stop offset="90%" stopColor="white" stopOpacity={0} />
+ </linearGradient>
+ <mask id={`${id}-gradient-mask-${dataKey}`}>
+ <rect width="100%" height="100%" fill={`url(#${id}-gradient-mask-gradient)`} />
+ </mask>
+ <pattern
+ id={`${id}-gradient-${dataKey}`}
+ patternUnits="userSpaceOnUse"
+ width="100%"
+ height="100%"
+ >
+ <rect
+ width="100%"
+ height="100%"
+ fill={`url(#${id}-colors-${dataKey})`}
+ mask={`url(#${id}-gradient-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Low-opacity body fill, paired with a solid top strip drawn by CustomBar. */
+const StrippedPattern = ({ id, dataKey }: StyleProps) => {
+ return (
+ <>
+ <linearGradient id={`${id}-stripped-mask-gradient`} x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stopColor="white" stopOpacity={0.2} />
+ <stop offset="100%" stopColor="white" stopOpacity={0.2} />
+ </linearGradient>
+ <mask id={`${id}-stripped-mask-${dataKey}`}>
+ <rect width="100%" height="100%" fill={`url(#${id}-stripped-mask-gradient)`} />
+ </mask>
+ <pattern
+ id={`${id}-stripped-${dataKey}`}
+ patternUnits="userSpaceOnUse"
+ width="100%"
+ height="100%"
+ >
+ <rect
+ width="100%"
+ height="100%"
+ fill={`url(#${id}-colors-${dataKey})`}
+ mask={`url(#${id}-stripped-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ );
+};
+
+/** Soft outer-glow filter applied to a glowing bar. */
+const GlowFilter = ({ id, dataKey }: StyleProps) => {
+ return (
+ <filter id={`${id}-bar-glow-${dataKey}`} x="-100%" y="-100%" width="300%" height="300%">
+ <feGaussianBlur in="SourceGraphic" stdDeviation="8" result="blur" />
+ <feColorMatrix
+ in="blur"
+ type="matrix"
+ values="1 0 0 0 0
+ 0 1 0 0 0
+ 0 0 1 0 0
+ 0 0 0 0.5 0"
+ result="glow"
+ />
+ <feMerge>
+ <feMergeNode in="glow" />
+ <feMergeNode in="SourceGraphic" />
+ </feMerge>
+ </filter>
+ );
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Loading skeleton
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Builds bell-curve eased gradient stops for the loading shimmer
+const generateEasedGradientStops = (
+ steps: number = 17,
+ minOpacity: number = 0.05,
+ maxOpacity: number = 0.9,
+) => {
+ return Array.from({ length: steps }, (_, i) => {
+ const t = i / (steps - 1); // 0 to 1
+ // Sine-based bell curve easing: peaks at center (t=0.5), smooth falloff at edges
+ const eased = Math.sin(t * Math.PI) ** 2;
+ const opacity = minOpacity + eased * (maxOpacity - minOpacity);
+ return { offset: `${(t * 100).toFixed(0)}%`, opacity: Number(opacity.toFixed(3)) };
+ });
+};
+
+/**
+ * Hook to manage loading data with pixel-perfect shimmer synchronization.
+ *
+ * Uses motion.dev's onUpdate callback to ensure chart data is only regenerated
+ * when the shimmer has completely exited the visible area. This eliminates
+ * timing drift issues from setTimeout/setInterval.
+ */
+export function useLoadingData(isLoading: boolean, loadingBars: number = 12) {
+ const [loadingDataKey, setLoadingDataKey] = useState(false);
+
+ // Callback fired by motion.dev when the shimmer exits the visible area
+ const onShimmerExit = useCallback(() => {
+ if (isLoading) {
+ setLoadingDataKey((prev) => !prev);
+ }
+ }, [isLoading]);
+
+ const loadingData = useMemo(
+ () => getLoadingData(loadingBars, 20, 80),
+ // loadingDataKey toggle triggers re-computation when the shimmer exits
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [loadingBars, loadingDataKey],
+ );
+
+ return { loadingData, onShimmerExit };
+}
+
+/**
+ * The skeleton bar shown while the chart is loading. Rendered by the root in
+ * place of the real bars, paired with its own masked shimmer pattern.
+ */
+const LoadingBar = ({ chartId, onShimmerExit }: { chartId: string; onShimmerExit: () => void }) => {
+ return (
+ <>
+ <RechartsBar
+ dataKey={LOADING_BAR_DATA_KEY}
+ fill="currentColor"
+ fillOpacity={0.15}
+ radius={DEFAULT_BAR_RADIUS}
+ isAnimationActive={false}
+ legendType="none"
+ style={{ mask: `url(#${chartId}-loading-mask)` }}
+ />
+ <defs>
+ <LoadingBarPattern chartId={chartId} onShimmerExit={onShimmerExit} />
+ </defs>
+ </>
+ );
+};
+
+/**
+ * Animated shimmer pattern for the loading skeleton.
+ *
+ * The visible chart area is normalized to 0-1, the shimmer gradient has width 1,
+ * and the pattern is 3x wide so the shimmer has buffer on both sides. The motion
+ * rect travels x from -1 to 2; onShimmerExit fires as it crosses x=1, letting the
+ * data swap happen while the shimmer is off-screen for a seamless loop.
+ */
+const LoadingBarPattern = ({
+ chartId,
+ onShimmerExit,
+}: {
+ chartId: string;
+ onShimmerExit: () => void;
+}) => {
+ const gradientStops = generateEasedGradientStops();
+
+ // 1 (left buffer) + 1 (visible) + 1 (right buffer)
+ const patternWidth = 3;
+ const startX = -1;
+ const endX = 2;
+
+ // Tracks the last x value to detect the exit threshold crossing
+ const lastXRef = useRef(startX);
+
+ return (
+ <>
+ <linearGradient id={`${chartId}-loading-mask-gradient`} x1="0" y1="0" x2="1" y2="0">
+ {gradientStops.map(({ offset, opacity }) => (
+ <stop key={offset} offset={offset} stopColor="white" stopOpacity={opacity} />
+ ))}
+ </linearGradient>
+ <pattern
+ id={`${chartId}-loading-mask-pattern`}
+ patternUnits="objectBoundingBox"
+ patternContentUnits="objectBoundingBox"
+ patternTransform="rotate(25)"
+ width={patternWidth}
+ height="1"
+ x="0"
+ y="0"
+ >
+ <motion.rect
+ y="0"
+ width="1"
+ height="1"
+ fill={`url(#${chartId}-loading-mask-gradient)`}
+ initial={{ x: startX }}
+ animate={{ x: endX }}
+ transition={{
+ duration: LOADING_ANIMATION_DURATION / 1000,
+ ease: "linear",
+ repeat: Infinity,
+ repeatType: "loop",
+ }}
+ onUpdate={(latest) => {
+ const xValue = typeof latest.x === "number" ? latest.x : startX;
+ const lastX = lastXRef.current;
+
+ // Fire once per loop, when the shimmer fully exits the visible area
+ if (xValue >= 1 && lastX < 1) {
+ onShimmerExit();
+ }
+
+ lastXRef.current = xValue;
+ }}
+ />
+ </pattern>
+ <mask id={`${chartId}-loading-mask`} maskUnits="userSpaceOnUse">
+ <rect width="100%" height="100%" fill={`url(#${chartId}-loading-mask-pattern)`} />
+ </mask>
+ </>
+ );
+};
+
+// Compound API: every part hangs off the root as a static member, so a consumer
+// writes <EvilBarChart.Bar/>, <EvilBarChart.Tooltip/>, … from a single import
+// — no colliding named marker exports when several charts share one file.
+EvilBarChart.Bar = Bar;
+EvilBarChart.XAxis = XAxis;
+EvilBarChart.YAxis = YAxis;
+EvilBarChart.Grid = Grid;
+EvilBarChart.Tooltip = Tooltip;
+EvilBarChart.Legend = Legend;
+EvilBarChart.Brush = Brush;
diff --git a/frontend/src/react/evilcharts/registry/charts/recharts-radar-chart.tsx b/frontend/src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
new file mode 100644
index 000000000..98738589c
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
@@ -0,0 +1,611 @@
+"use client";
+
+import {
+ PolarAngleAxis as RechartsPolarAngleAxis,
+ PolarGrid as RechartsPolarGrid,
+ PolarRadiusAxis as RechartsPolarRadiusAxis,
+ Radar as RechartsRadar,
+ RadarChart as RechartsRadarChart,
+} from "recharts";
+import {
+ Children,
+ createContext,
+ isValidElement,
+ use,
+ useCallback,
+ useEffect,
+ useId,
+ useMemo,
+ useState,
+ type ComponentProps,
+ type FC,
+ type ReactElement,
+ type ReactNode,
+} from "react";
+import {
+ ChartTooltip,
+ ChartTooltipContent,
+ type TooltipRoundness,
+ type TooltipVariant,
+} from "@/registry/ui/recharts-tooltip";
+import {
+ type ChartConfig,
+ ChartContainer,
+ getColorsCount,
+ LoadingIndicator,
+} from "@/registry/ui/recharts-chart";
+import { ChartLegend, ChartLegendContent, type ChartLegendVariant } from "@/registry/ui/recharts-legend";
+import { ChartBackground, type BackgroundVariant } from "@/registry/ui/recharts-background";
+import { ChartDot, type DotVariant } from "@/registry/ui/recharts-dot";
+
+// Constants
+const STROKE_WIDTH = 1;
+const DEFAULT_FILL_OPACITY = 0.3;
+const LOADING_POINTS = 6;
+const LOADING_ANIMATION_DURATION = 1500; // in milliseconds
+const LOADING_RADAR_DATA_KEY = "value";
+
+type RadarVariant = "filled" | "lines";
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Shared context
+// ─────────────────────────────────────────────────────────────────────────────
+
+/**
+ * Shared state for every part of the chart. Lifted into <EvilRadarChart /> so that
+ * <Radar />, <PolarAngleAxis />, <Legend />, and friends can read it without prop
+ * drilling. Sub-components are composed freely — the provider is the single source
+ * of truth.
+ */
+type RadarChartContextValue = {
+ config: ChartConfig; // colors + labels for every series
+ isLoading: boolean; // whether the chart shows its loading skeleton
+ selectedDataKey: string | null; // currently selected series, or null when none
+ selectDataKey: (dataKey: string | null) => void; // sets the selected series
+};
+
+const RadarChartContext = createContext<RadarChartContextValue | null>(null);
+
+// Reads the chart context, throwing a helpful error when used outside <EvilRadarChart />
+function useRadarChart() {
+ const context = use(RadarChartContext);
+
+ if (!context) {
+ throw new Error(
+ "Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />",
+ );
+ }
+
+ return context;
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Root container
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Validates that every config key also exists on the data row type
+type ValidateConfigKeys<TData, TConfig> = {
+ [K in keyof TConfig]: K extends keyof TData ? ChartConfig[string] : never;
+};
+
+type EvilRadarChartBaseProps<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+> = {
+ config: TConfig & ValidateConfigKeys<TData, TConfig>; // series colors + labels
+ data: TData[]; // rows rendered by the chart
+ children: ReactNode; // composed parts — <Radar />, <PolarGrid />, <Legend />, …
+ className?: string; // extra classes for the chart container
+ chartProps?: ComponentProps<typeof RechartsRadarChart>; // escape hatch for the raw Recharts chart
+ backgroundVariant?: BackgroundVariant; // background pattern drawn behind the chart
+ defaultSelectedDataKey?: string | null; // series selected on first render
+ onSelectionChange?: (selectedDataKey: string | null) => void; // fires when the selected series changes
+ isLoading?: boolean; // shows the animated loading skeleton
+ loadingPoints?: number; // number of points in the loading skeleton
+};
+
+type EvilRadarChartProps<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+> = EvilRadarChartBaseProps<TData, TConfig>;
+
+/**
+ * Root of the composible radar chart. Owns the data, the shared context, and the
+ * loading skeleton. Everything visual — the polar grid, axes, tooltip, legend, and
+ * the radars themselves — is composed as children, so a consumer renders exactly
+ * the parts they need.
+ */
+export function EvilRadarChart<
+ TData extends Record<string, unknown>,
+ TConfig extends Record<string, ChartConfig[string]>,
+>({
+ config,
+ data,
+ children,
+ className,
+ chartProps,
+ backgroundVariant,
+ defaultSelectedDataKey = null,
+ onSelectionChange,
+ isLoading = false,
+ loadingPoints,
+}: EvilRadarChartProps<TData, TConfig>) {
+ const chartId = useId().replace(/:/g, ""); // colon-free id keeps CSS/SVG selectors valid
+ const [selectedDataKey, setSelectedDataKey] = useState<string | null>(defaultSelectedDataKey);
+ const loadingData = useLoadingData(isLoading, loadingPoints);
+
+ // Updates selection state and notifies the parent
+ const selectDataKey = useCallback(
+ (newSelectedDataKey: string | null) => {
+ setSelectedDataKey(newSelectedDataKey);
+ onSelectionChange?.(newSelectedDataKey);
+ },
+ [onSelectionChange],
+ );
+
+ const contextValue = useMemo<RadarChartContextValue>(
+ () => ({
+ config,
+ isLoading,
+ selectedDataKey,
+ selectDataKey,
+ }),
+ [config, isLoading, selectedDataKey, selectDataKey],
+ );
+
+ return (
+ <RadarChartContext value={contextValue}>
+ <ChartContainer className={className} config={config}>
+ <LoadingIndicator isLoading={isLoading} />
+ <RechartsRadarChart id={chartId} data={isLoading ? loadingData : data} {...chartProps}>
+ {backgroundVariant && <ChartBackground variant={backgroundVariant} />}
+ {children}
+ {isLoading && <LoadingRadar />}
+ </RechartsRadarChart>
+ </ChartContainer>
+ </RadarChartContext>
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Composible parts
+// ─────────────────────────────────────────────────────────────────────────────
+
+type RadarProps = {
+ dataKey: string; // series key — must exist on the data and config
+ variant?: RadarVariant; // fill style for this radar only
+ fillOpacity?: number; // opacity of the filled area when `variant="filled"`
+ isGlowing?: boolean; // adds a soft outer glow around this radar
+ isClickable?: boolean; // lets this radar be selected by clicking it
+ children?: ReactNode; // optional <Dot /> and <ActiveDot /> composition
+ radarProps?: Omit<ComponentProps<typeof RechartsRadar>, "dataKey">; // escape hatch for raw Recharts Radar props
+};
+
+/**
+ * A single radar series. Each <Radar /> is fully self-contained: it generates its
+ * own stroke/fill gradients and glow filter under a unique id, so any number of
+ * radars — each with its own variant, opacity, and clickability — can live in one
+ * chart without style collisions. Compose <Dot /> and <ActiveDot /> inside it to
+ * add point markers.
+ */
+function Radar({
+ dataKey,
+ variant = "filled",
+ fillOpacity = DEFAULT_FILL_OPACITY,
+ isGlowing = false,
+ isClickable = false,
+ children,
+ radarProps,
+}: RadarProps) {
+ const { config, isLoading, selectedDataKey, selectDataKey } = useRadarChart();
+ const id = useId().replace(/:/g, ""); // unique id scopes this radar's style defs
+
+ // The root renders the skeleton radar while loading, so real radars step aside
+ if (isLoading) return null;
+
+ const isSelected = selectedDataKey === null || selectedDataKey === dataKey;
+ const isDimmed = isClickable && !isSelected;
+ // Opacity when another radar is selected. The stroke stays full (1) on the
+ // selected/normal radar; when dimmed the fill recedes twice as far as the
+ // stroke and dots (fill 0.1 vs 0.2) so the picked radar reads clearly. The
+ // fill value multiplies the `fillOpacity` prop; stroke/dot are absolute.
+ const opacity = {
+ stroke: isDimmed ? 0.2 : 1,
+ fill: isDimmed ? 0.1 : 1,
+ dot: isDimmed ? 0.2 : 1,
+ };
+ const isFilled = variant === "filled";
+
+ const { dot, activeDot } = resolveDots(children, id, dataKey, opacity.dot);
+
+ return (
+ <>
+ <RechartsRadar
+ dataKey={dataKey}
+ stroke={`url(#${id}-radar-stroke-${dataKey})`}
+ strokeOpacity={opacity.stroke}
+ strokeWidth={STROKE_WIDTH}
+ fill={isFilled ? `url(#${id}-radar-fill-${dataKey})` : "none"}
+ fillOpacity={isFilled ? fillOpacity * opacity.fill : 0}
+ dot={dot}
+ activeDot={activeDot}
+ filter={isGlowing ? `url(#${id}-radar-glow-${dataKey})` : undefined}
+ className="transition-opacity duration-200"
+ style={isClickable ? { cursor: "pointer" } : undefined}
+ onClick={() => {
+ if (!isClickable) return;
+ // Clicking the selected radar clears the selection, otherwise selects it
+ selectDataKey(selectedDataKey === dataKey ? null : dataKey);
+ }}
+ {...radarProps}
+ />
+ <defs>
+ <ColorGradient id={id} dataKey={dataKey} config={config} />
+ <StrokeGradient id={id} dataKey={dataKey} config={config} />
+ {isFilled && <FillGradient id={id} dataKey={dataKey} config={config} />}
+ {isGlowing && <GlowFilter id={id} dataKey={dataKey} />}
+ </defs>
+ </>
+ );
+}
+
+type DotProps = {
+ variant?: DotVariant; // visual style of the point marker
+};
+
+/**
+ * Declares a resting point marker for the <Radar /> it is composed inside.
+ * It renders nothing on its own — the parent <Radar /> reads its variant and
+ * wires it into the Recharts dot slot.
+ */
+const Dot: FC<DotProps> = () => null;
+
+/**
+ * Declares the hovered/active point marker for the <Radar /> it is composed
+ * inside. Like <Dot />, it is a configuration slot and renders nothing itself.
+ */
+const ActiveDot: FC<DotProps> = () => null;
+
+type PolarGridProps = ComponentProps<typeof RechartsPolarGrid>;
+
+/**
+ * The polar grid lines. Defaults to a dashed polygon grid and forwards every
+ * Recharts PolarGrid prop, so `gridType`, `polarRadius`, etc. pass straight through.
+ */
+function PolarGrid({
+ gridType = "polygon",
+ stroke = "currentColor",
+ strokeOpacity = 0.2,
+ strokeDasharray = "3 4",
+ ...props
+}: PolarGridProps) {
+ return (
+ <RechartsPolarGrid
+ gridType={gridType}
+ stroke={stroke}
+ strokeOpacity={strokeOpacity}
+ strokeDasharray={strokeDasharray}
+ {...props}
+ />
+ );
+}
+
+type PolarAngleAxisProps = ComponentProps<typeof RechartsPolarAngleAxis>;
+
+/**
+ * The angular category axis — the labels around the chart's perimeter. Ships
+ * with the chart's flat default styling and forwards every Recharts
+ * PolarAngleAxis prop. Hidden automatically while the chart is loading.
+ */
+function PolarAngleAxis({
+ tick = { fill: "currentColor", fontSize: 12 },
+ tickLine = false,
+ ...props
+}: PolarAngleAxisProps) {
+ const { isLoading } = useRadarChart();
+
+ if (isLoading) return null;
+
+ return <RechartsPolarAngleAxis tick={tick} tickLine={tickLine} {...props} />;
+}
+
+type PolarRadiusAxisProps = ComponentProps<typeof RechartsPolarRadiusAxis>;
+
+/**
+ * The radial value axis — the scale running from the center outward. Forwards
+ * every Recharts PolarRadiusAxis prop. Hidden automatically while the chart is
+ * loading.
+ */
+function PolarRadiusAxis({
+ tick = { fill: "currentColor", fontSize: 10 },
+ tickLine = false,
+ axisLine = false,
+ ...props
+}: PolarRadiusAxisProps) {
+ const { isLoading } = useRadarChart();
+
+ if (isLoading) return null;
+
+ return <RechartsPolarRadiusAxis tick={tick} tickLine={tickLine} axisLine={axisLine} {...props} />;
+}
+
+type TooltipProps = {
+ variant?: TooltipVariant; // visual style of the tooltip surface
+ roundness?: TooltipRoundness; // border-radius of the tooltip
+ defaultIndex?: number; // data index shown by default with no hover
+};
+
+/**
+ * The hover tooltip. Reads the chart's selection from context so its content
+ * dims unselected series. Hidden automatically while the chart is loading.
+ */
+function Tooltip({ variant, roundness, defaultIndex }: TooltipProps) {
+ const { isLoading, selectedDataKey } = useRadarChart();
+
+ if (isLoading) return null;
+
+ return (
+ <ChartTooltip
+ defaultIndex={defaultIndex}
+ cursor={false}
+ content={
+ <ChartTooltipContent selected={selectedDataKey} roundness={roundness} variant={variant} />
+ }
+ />
+ );
+}
+
+type LegendProps = {
+ variant?: ChartLegendVariant; // visual style of the legend indicators
+ align?: "left" | "center" | "right"; // horizontal placement
+ verticalAlign?: "top" | "middle" | "bottom"; // vertical placement
+ isClickable?: boolean; // lets each entry toggle selection of its series
+};
+
+/**
+ * The series legend. When `isClickable` is set, each entry toggles selection of
+ * its series, driving the shared selection state read by every <Radar />.
+ * Hidden automatically while the chart is loading.
+ */
+function Legend({
+ variant,
+ align = "center",
+ verticalAlign = "bottom",
+ isClickable = false,
+}: LegendProps) {
+ const { isLoading, selectedDataKey, selectDataKey } = useRadarChart();
+
+ if (isLoading) return null;
+
+ return (
+ <ChartLegend
+ verticalAlign={verticalAlign}
+ align={align}
+ content={
+ <ChartLegendContent
+ selected={selectedDataKey}
+ onSelectChange={selectDataKey}
+ isClickable={isClickable}
+ variant={variant}
+ />
+ }
+ />
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Dot helpers
+// ─────────────────────────────────────────────────────────────────────────────
+
+type RadarDotProp = ComponentProps<typeof RechartsRadar>["dot"];
+type RadarActiveDotProp = ComponentProps<typeof RechartsRadar>["activeDot"];
+
+// Pulls <Dot /> and <ActiveDot /> out of a radar's children into Recharts dot slots
+const resolveDots = (
+ children: ReactNode,
+ id: string,
+ dataKey: string,
+ dotOpacity: number,
+): { dot: RadarDotProp; activeDot: RadarActiveDotProp } => {
+ let dot: RadarDotProp = false;
+ let activeDot: RadarActiveDotProp = false;
+
+ Children.forEach(children, (child) => {
+ if (!isValidElement(child)) return;
+
+ if (child.type === Dot) {
+ const { variant } = (child as ReactElement<DotProps>).props;
+ dot = <ChartDot type={variant} dataKey={dataKey} chartId={id} fillOpacity={dotOpacity} />;
+ }
+
+ if (child.type === ActiveDot) {
+ const { variant } = (child as ReactElement<DotProps>).props;
+ activeDot = (
+ <ChartDot type={variant} dataKey={dataKey} chartId={id} fillOpacity={dotOpacity} />
+ );
+ }
+ });
+
+ return { dot, activeDot };
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Style definitions — one set per <Radar />, scoped to its unique id
+// ─────────────────────────────────────────────────────────────────────────────
+
+type StyleProps = {
+ id: string; // unique id of the owning <Radar />
+ dataKey: string; // series key the styles belong to
+ config: ChartConfig; // colors + labels for every series
+};
+
+type ColorStopsProps = {
+ dataKey: string; // series key the stops belong to
+ colorsCount: number; // number of color steps in the gradient
+ opacities?: number[]; // optional per-stop opacity ramp
+};
+
+// Emits one <stop> per color, falling back to a flat gradient for single colors
+const ColorStops = ({ dataKey, colorsCount, opacities }: ColorStopsProps) => {
+ if (colorsCount === 1) {
+ return (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} stopOpacity={opacities?.[0]} />
+ <stop
+ offset="100%"
+ stopColor={`var(--color-${dataKey}-0)`}
+ stopOpacity={opacities?.[opacities.length - 1]}
+ />
+ </>
+ );
+ }
+
+ return (
+ <>
+ {Array.from({ length: colorsCount }, (_, index) => {
+ const offset = `${(index / (colorsCount - 1)) * 100}%`;
+ return (
+ <stop
+ key={offset}
+ offset={offset}
+ stopColor={`var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`}
+ stopOpacity={opacities?.[index]}
+ />
+ );
+ })}
+ </>
+ );
+};
+
+/**
+ * Horizontal left-to-right color gradient for a series. Always rendered — the
+ * radar's dots paint from this single gradient.
+ */
+const ColorGradient = ({ id, dataKey, config }: StyleProps) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+
+ return (
+ <linearGradient id={`${id}-colors-${dataKey}`} x1="0" y1="0" x2="1" y2="0">
+ <ColorStops dataKey={dataKey} colorsCount={colorsCount} />
+ </linearGradient>
+ );
+};
+
+/** Diagonal color gradient used for the radar's outline stroke. */
+const StrokeGradient = ({ id, dataKey, config }: StyleProps) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+
+ return (
+ <linearGradient id={`${id}-radar-stroke-${dataKey}`} x1="0" y1="0" x2="1" y2="1">
+ <ColorStops dataKey={dataKey} colorsCount={colorsCount} />
+ </linearGradient>
+ );
+};
+
+/** Radial color gradient used for the radar's filled area, fading toward the edge. */
+const FillGradient = ({ id, dataKey, config }: StyleProps) => {
+ const colorsCount = getColorsCount(config[dataKey] ?? {});
+ const opacities =
+ colorsCount === 1
+ ? [0.8, 0.3]
+ : Array.from({ length: colorsCount }, (_, i) => (i === 0 ? 0.8 : 0.3));
+
+ return (
+ <radialGradient id={`${id}-radar-fill-${dataKey}`} cx="50%" cy="50%" r="50%">
+ <ColorStops dataKey={dataKey} colorsCount={colorsCount} opacities={opacities} />
+ </radialGradient>
+ );
+};
+
+/** Soft outer glow filter applied to a radar when `isGlowing` is set. */
+const GlowFilter = ({ id, dataKey }: Pick<StyleProps, "id" | "dataKey">) => {
+ return (
+ <filter id={`${id}-radar-glow-${dataKey}`} x="-50%" y="-50%" width="200%" height="200%">
+ <feGaussianBlur in="SourceGraphic" stdDeviation="4" result="blur" />
+ <feColorMatrix
+ in="blur"
+ type="matrix"
+ values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0"
+ result="glow"
+ />
+ <feMerge>
+ <feMergeNode in="glow" />
+ <feMergeNode in="SourceGraphic" />
+ </feMerge>
+ </filter>
+ );
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Loading skeleton
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Builds a fresh set of randomized loading points for the skeleton radar
+const generateLoadingData = (points: number) => {
+ const categories = ["A", "B", "C", "D", "E", "F"];
+
+ return categories.slice(0, points).map((category) => ({
+ skill: category,
+ [LOADING_RADAR_DATA_KEY]: 30 + Math.random() * 70,
+ }));
+};
+
+/**
+ * Hook that regenerates the loading skeleton data on a fixed interval, so the
+ * skeleton radar keeps animating between shapes while the chart is loading.
+ */
+export function useLoadingData(isLoading: boolean, loadingPoints: number = LOADING_POINTS) {
+ const [refreshKey, setRefreshKey] = useState(0);
+
+ useEffect(() => {
+ if (!isLoading) return;
+
+ const interval = setInterval(() => {
+ setRefreshKey((prev) => prev + 1);
+ }, LOADING_ANIMATION_DURATION);
+
+ return () => clearInterval(interval);
+ }, [isLoading]);
+
+ const loadingData = useMemo(
+ () => generateLoadingData(loadingPoints),
+ // refreshKey toggle triggers re-computation each animation cycle
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [loadingPoints, refreshKey],
+ );
+
+ return loadingData;
+}
+
+/**
+ * The skeleton radar shown while the chart is loading. Rendered by the root in
+ * place of the real radars, it animates between randomized shapes.
+ */
+const LoadingRadar = () => {
+ return (
+ <RechartsRadar
+ dataKey={LOADING_RADAR_DATA_KEY}
+ stroke="currentColor"
+ strokeOpacity={0.3}
+ strokeWidth={2}
+ fill="currentColor"
+ fillOpacity={0.1}
+ dot={false}
+ isAnimationActive
+ animationDuration={LOADING_ANIMATION_DURATION}
+ animationEasing="ease-in-out"
+ />
+ );
+};
+
+// Compound API: every part hangs off the root as a static member, so a consumer
+// writes <EvilRadarChart.Radar/>, <EvilRadarChart.Tooltip/>, … from a single import
+// — no colliding named marker exports when several charts share one file.
+EvilRadarChart.Radar = Radar;
+EvilRadarChart.Dot = Dot;
+EvilRadarChart.ActiveDot = ActiveDot;
+EvilRadarChart.PolarGrid = PolarGrid;
+EvilRadarChart.PolarAngleAxis = PolarAngleAxis;
+EvilRadarChart.PolarRadiusAxis = PolarRadiusAxis;
+EvilRadarChart.Tooltip = Tooltip;
+EvilRadarChart.Legend = Legend;
diff --git a/frontend/src/react/evilcharts/registry/charts/recharts-radial-chart.tsx b/frontend/src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
new file mode 100644
index 000000000..37b0c88aa
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
@@ -0,0 +1,449 @@
+"use client";
+
+import {
+ PolarAngleAxis,
+ RadialBar as RechartsRadialBar,
+ RadialBarChart as RechartsRadialBarChart,
+ Sector,
+ type SectorProps,
+} from "recharts";
+import {
+ createContext,
+ use,
+ useCallback,
+ useEffect,
+ useId,
+ useMemo,
+ useState,
+ type ComponentProps,
+ type ReactNode,
+} from "react";
+import {
+ ChartTooltip,
+ ChartTooltipContent,
+ type TooltipRoundness,
+ type TooltipVariant,
+} from "@/registry/ui/recharts-tooltip";
+import {
+ type ChartConfig,
+ ChartContainer,
+ getColorsCount,
+ LoadingIndicator,
+} from "@/registry/ui/recharts-chart";
+import {
+ ChartLegend,
+ ChartLegendContent,
+ type ChartLegendVariant,
+} from "@/registry/ui/recharts-legend";
+import { ChartBackground, type BackgroundVariant } from "@/registry/ui/recharts-background";
+import { TypedDataKey } from "recharts/types/util/typedDataKey";
+
+// Constants
+const DEFAULT_INNER_RADIUS = "30%";
+const DEFAULT_OUTER_RADIUS = "100%";
+const DEFAULT_CORNER_RADIUS = 5;
+const DEFAULT_BAR_SIZE = 14;
+const LOADING_BARS = 5;
+const LOADING_ANIMATION_DURATION = 1500; // in milliseconds — interval between skeleton data changes
+
+type RadialBarChartProps = ComponentProps<typeof RechartsRadialBarChart>;
+type RadialBarRechartsProps = ComponentProps<typeof RechartsRadialBar>;
+
+type RadialVariant = "full" | "semi";
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Shared context
+// ─────────────────────────────────────────────────────────────────────────────
+
+/**
+ * Shared state for every part of the chart. Lifted into <EvilRadialChart /> so
+ * that <RadialBar />, <Tooltip />, and <Legend /> can read it without prop
+ * drilling. Sub-components are composed freely — the provider is the single
+ * source of truth.
+ */
+type RadialChartContextValue = {
+ config: ChartConfig; // colors + labels for every bar
+ nameKey: string; // data key holding each bar's name
+ chartId: string; // colon-free id scoping this chart's style defs
+ isLoading: boolean; // whether the chart shows its loading skeleton
+ selectedBar: string | null; // currently selected bar name, or null when none
+ selectBar: (barName: string | null, value?: number) => void; // sets the selected bar
+};
+
+const RadialChartContext = createContext<RadialChartContextValue | null>(null);
+
+// Reads the chart context, throwing a helpful error when used outside <EvilRadialChart />
+function useRadialChart() {
+ const context = use(RadialChartContext);
+
+ if (!context) {
+ throw new Error(
+ "Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />",
+ );
+ }
+
+ return context;
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Root container
+// ─────────────────────────────────────────────────────────────────────────────
+
+type EvilRadialChartBaseProps<TData extends Record<string, unknown>> = {
+ config: ChartConfig; // bar colors + labels, keyed by each bar's name
+ data: TData[]; // rows rendered by the chart — one bar per row
+ nameKey: keyof TData & string; // data key holding each bar's name
+ children: ReactNode; // composed parts — <RadialBar />, <Tooltip />, <Legend />
+ className?: string; // extra classes for the chart container
+ chartProps?: RadialBarChartProps; // escape hatch for the raw Recharts chart
+ variant?: RadialVariant; // arc shape — full circle or half circle
+ // Value a full sweep represents. Without it the scale is derived from the data,
+ // so the largest bar always fills the arc — set it (e.g. 100) for gauges, where
+ // a single value has to read against a fixed total.
+ max?: number;
+ innerRadius?: number | string; // inner radius of the radial bars
+ outerRadius?: number | string; // outer radius of the radial bars
+ defaultSelectedDataKey?: string | null; // bar selected on first render
+ onSelectionChange?: (selection: { dataKey: string; value: number } | null) => void; // fires when the selected bar changes
+ isLoading?: boolean; // shows the animated loading skeleton
+ backgroundVariant?: BackgroundVariant; // background pattern behind the chart
+};
+
+type EvilRadialChartProps<TData extends Record<string, unknown>> = EvilRadialChartBaseProps<TData>;
+
+/**
+ * Root of the composible radial chart. Owns the data, the shared context, the
+ * loading skeleton, and the chart-wide arc shape. Everything visual — the
+ * tooltip, legend, and the radial bar itself — is composed as children, so a
+ * consumer renders exactly the parts they need.
+ */
+export function EvilRadialChart<TData extends Record<string, unknown>>({
+ config,
+ data,
+ nameKey,
+ children,
+ className,
+ chartProps,
+ variant = "full",
+ max,
+ innerRadius = DEFAULT_INNER_RADIUS,
+ outerRadius = DEFAULT_OUTER_RADIUS,
+ defaultSelectedDataKey = null,
+ onSelectionChange,
+ isLoading = false,
+ backgroundVariant,
+}: EvilRadialChartProps<TData>) {
+ const chartId = useId().replace(/:/g, ""); // colon-free id keeps CSS/SVG selectors valid
+ const [selectedBar, setSelectedBar] = useState<string | null>(defaultSelectedDataKey);
+ const loadingData = useLoadingData(isLoading);
+
+ const variantConfig = getVariantConfig(variant);
+
+ // Updates selection state and notifies the parent with the bar's value
+ const selectBar = useCallback(
+ (barName: string | null, value?: number) => {
+ setSelectedBar(barName);
+ onSelectionChange?.(barName === null ? null : { dataKey: barName, value: value ?? 0 });
+ },
+ [onSelectionChange],
+ );
+
+ // Real bars paint from a per-name gradient; the skeleton keeps the raw rows
+ const preparedData = useMemo(
+ () =>
+ data.map((item) => ({
+ ...item,
+ fill: `url(#${chartId}-radial-colors-${item[nameKey] as string})`,
+ })),
+ [data, nameKey, chartId],
+ );
+
+ const contextValue = useMemo<RadialChartContextValue>(
+ () => ({
+ config,
+ nameKey,
+ chartId,
+ isLoading,
+ selectedBar,
+ selectBar,
+ }),
+ [config, nameKey, chartId, isLoading, selectedBar, selectBar],
+ );
+
+ return (
+ <RadialChartContext value={contextValue}>
+ <ChartContainer className={className} config={config}>
+ <LoadingIndicator isLoading={isLoading} />
+ <RechartsRadialBarChart
+ id={chartId}
+ data={isLoading ? loadingData : preparedData}
+ innerRadius={innerRadius}
+ outerRadius={outerRadius}
+ startAngle={variantConfig.startAngle}
+ endAngle={variantConfig.endAngle}
+ cx={variantConfig.cx}
+ cy={variantConfig.cy}
+ {...chartProps}
+ >
+ {/* Pinning the angle domain is what lets a single value read against a
+ fixed total instead of auto-scaling to fill the arc. */}
+ {max != null && max > 0 && (
+ <PolarAngleAxis type="number" domain={[0, max]} tick={false} axisLine={false} />
+ )}
+ {backgroundVariant && <ChartBackground variant={backgroundVariant} />}
+ {children}
+ {isLoading && <LoadingRadialBar />}
+ <defs>
+ <ColorGradientStyle config={config} chartId={chartId} />
+ </defs>
+ </RechartsRadialBarChart>
+ </ChartContainer>
+ </RadialChartContext>
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Composible parts
+// ─────────────────────────────────────────────────────────────────────────────
+
+type RadialBarProps = {
+ dataKey: string; // value key — determines each bar's size
+ cornerRadius?: number; // border radius of each bar's corners
+ barSize?: number; // thickness of each radial bar
+ showBackground?: boolean; // renders the unfilled track behind each bar
+ isClickable?: boolean; // lets bars be selected by clicking them
+ radialBarProps?: Omit<RadialBarRechartsProps, "dataKey">; // escape hatch for raw Recharts RadialBar props
+};
+
+/**
+ * The radial bar series. Each data row becomes one bar. Pass `isClickable` to
+ * make bars selectable.
+ */
+function RadialBar({
+ dataKey,
+ cornerRadius = DEFAULT_CORNER_RADIUS,
+ barSize = DEFAULT_BAR_SIZE,
+ showBackground = true,
+ isClickable = false,
+ radialBarProps,
+}: RadialBarProps) {
+ const { nameKey, isLoading, selectedBar, selectBar } = useRadialChart();
+
+ // The root renders the skeleton bar while loading, so the real bar steps aside
+ if (isLoading) return null;
+
+ return (
+ <RechartsRadialBar
+ dataKey={dataKey as TypedDataKey<Record<string, unknown>>}
+ cornerRadius={cornerRadius}
+ barSize={barSize}
+ background={showBackground}
+ className="drop-shadow-sm"
+ style={isClickable ? { cursor: "pointer" } : undefined}
+ onClick={(payload, index) => {
+ if (!isClickable) return;
+ const entry = payload as Record<string, unknown>;
+ const barName = (entry?.[nameKey] as string | undefined) ?? String(index);
+ const value = Number(entry?.[dataKey] ?? 0);
+ // Clicking the selected bar clears the selection, otherwise selects it
+ selectBar(selectedBar === barName ? null : barName, value);
+ }}
+ shape={(props: SectorProps) => {
+ const barName = (props as unknown as Record<string, unknown>)[nameKey] as string;
+ const isSelected = selectedBar === null || selectedBar === barName;
+
+ return (
+ <Sector
+ {...props}
+ opacity={isClickable && !isSelected ? 0.15 : 1}
+ className="transition-opacity duration-200"
+ />
+ );
+ }}
+ {...radialBarProps}
+ />
+ );
+}
+
+type TooltipProps = {
+ variant?: TooltipVariant; // visual style of the tooltip surface
+ roundness?: TooltipRoundness; // border-radius of the tooltip
+ defaultIndex?: number; // data index shown by default with no hover
+};
+
+/**
+ * The hover tooltip. Labels each bar by its name from context. Hidden
+ * automatically while the chart is loading.
+ */
+function Tooltip({ variant, roundness, defaultIndex }: TooltipProps) {
+ const { nameKey, isLoading } = useRadialChart();
+
+ if (isLoading) return null;
+
+ return (
+ <ChartTooltip
+ defaultIndex={defaultIndex}
+ cursor={false}
+ content={
+ <ChartTooltipContent nameKey={nameKey} hideLabel roundness={roundness} variant={variant} />
+ }
+ />
+ );
+}
+
+type LegendProps = {
+ variant?: ChartLegendVariant; // visual style of the legend indicators
+ align?: "left" | "center" | "right"; // horizontal placement
+ verticalAlign?: "top" | "middle" | "bottom"; // vertical placement
+ isClickable?: boolean; // lets each entry toggle selection of its bar
+};
+
+/**
+ * The bar legend. When `isClickable` is set, each entry toggles selection of
+ * its bar, driving the shared selection state read by <RadialBar />. Hidden
+ * automatically while the chart is loading.
+ */
+function Legend({
+ variant,
+ align = "center",
+ verticalAlign = "bottom",
+ isClickable = false,
+}: LegendProps) {
+ const { nameKey, isLoading, selectedBar, selectBar } = useRadialChart();
+
+ if (isLoading) return null;
+
+ return (
+ <ChartLegend
+ verticalAlign={verticalAlign}
+ align={align}
+ content={
+ <ChartLegendContent
+ selected={selectedBar}
+ onSelectChange={selectBar}
+ isClickable={isClickable}
+ nameKey={nameKey}
+ variant={variant}
+ />
+ }
+ />
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Variant helpers
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Returns the angle + center configuration for the chart's arc shape
+function getVariantConfig(variant: RadialVariant) {
+ switch (variant) {
+ case "semi":
+ return { startAngle: 180, endAngle: 0, cx: "50%", cy: "70%" };
+ case "full":
+ default:
+ return { startAngle: 90, endAngle: -270, cx: "50%", cy: "50%" };
+ }
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Style definitions — scoped to the chart's unique id
+// ─────────────────────────────────────────────────────────────────────────────
+
+/** Diagonal color gradient applied to every radial bar, one per config key. */
+const ColorGradientStyle = ({ config, chartId }: { config: ChartConfig; chartId: string }) => {
+ return (
+ <>
+ {Object.entries(config).map(([dataKey, colorConfig]) => {
+ const colorsCount = getColorsCount(colorConfig);
+
+ return (
+ <linearGradient
+ key={`${chartId}-radial-colors-${dataKey}`}
+ id={`${chartId}-radial-colors-${dataKey}`}
+ x1="0"
+ y1="0"
+ x2="1"
+ y2="1"
+ >
+ {colorsCount === 1 ? (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} />
+ <stop offset="100%" stopColor={`var(--color-${dataKey}-0)`} />
+ </>
+ ) : (
+ Array.from({ length: colorsCount }, (_, index) => {
+ const offset = `${(index / (colorsCount - 1)) * 100}%`;
+ return (
+ <stop
+ key={offset}
+ offset={offset}
+ stopColor={`var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`}
+ />
+ );
+ })
+ )}
+ </linearGradient>
+ );
+ })}
+ </>
+ );
+};
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Loading skeleton
+// ─────────────────────────────────────────────────────────────────────────────
+
+// Builds random skeleton rows with values between 40 and 100
+function generateLoadingData() {
+ return Array.from({ length: LOADING_BARS }, (_, i) => ({
+ name: `loading${i}`,
+ value: 40 + Math.random() * 60,
+ }));
+}
+
+// Hook to animate the loading skeleton data at fixed intervals
+function useLoadingData(isLoading: boolean) {
+ const [tick, setTick] = useState(0);
+
+ useEffect(() => {
+ if (!isLoading) return;
+
+ const interval = setInterval(() => {
+ setTick((prev) => prev + 1);
+ }, LOADING_ANIMATION_DURATION);
+
+ return () => clearInterval(interval);
+ }, [isLoading]);
+
+ // Regenerate skeleton data whenever the interval ticks
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ const loadingData = useMemo(() => generateLoadingData(), [tick]);
+
+ return loadingData;
+}
+
+/**
+ * The skeleton bar shown while the chart is loading. Rendered by the root in
+ * place of the real <RadialBar />, with animated values and a muted fill.
+ */
+const LoadingRadialBar = () => {
+ return (
+ <RechartsRadialBar
+ dataKey="value"
+ cornerRadius={DEFAULT_CORNER_RADIUS}
+ barSize={DEFAULT_BAR_SIZE}
+ background
+ isAnimationActive
+ animationDuration={LOADING_ANIMATION_DURATION}
+ animationEasing="ease-in-out"
+ shape={(props: SectorProps) => <Sector {...props} fill="currentColor" fillOpacity={0.25} />}
+ />
+ );
+};
+
+// Compound API: every part hangs off the root as a static member, so a consumer
+// writes <EvilRadialChart.RadialBar/>, <EvilRadialChart.Tooltip/>, … from a single
+// import — no colliding named marker exports when several charts share one file.
+EvilRadialChart.RadialBar = RadialBar;
+EvilRadialChart.Tooltip = Tooltip;
+EvilRadialChart.Legend = Legend;
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-background.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-background.tsx
new file mode 100644
index 000000000..9c35f3ff4
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-background.tsx
@@ -0,0 +1,229 @@
+"use client";
+
+import { ZIndexLayer } from "recharts";
+import { useId } from "react";
+
+// ── Background Variant Types ─────────────────────────────────────────────────
+// To add a new variant:
+// 1. Add its name to the BackgroundVariant union type below
+// 2. Create a pattern component with PatternProps
+// 3. Register it in PATTERN_MAP
+
+export type BackgroundVariant =
+ | "dots"
+ | "grid"
+ | "cross-hatch"
+ | "diagonal-lines"
+ | "plus"
+ | "falling-triangles"
+ | "4-pointed-star"
+ | "tiny-checkers"
+ | "overlapping-circles"
+ | "wiggle-lines"
+ | "bubbles";
+
+// ── Pattern Components ───────────────────────────────────────────────────────
+
+type PatternProps = { id: string };
+
+const DotsPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
+ <circle className="text-border dark:text-border" cx="2" cy="2" r="1" fill="currentColor" />
+ </pattern>
+);
+
+const GridPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border dark:text-border"
+ d="M 20 0 L 0 0 0 20"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="0.5"
+ />
+ </pattern>
+);
+
+const CrossHatchPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border/60 dark:text-border/50"
+ d="M 0 0 L 20 20 M 20 0 L 0 20"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="0.5"
+ />
+ </pattern>
+);
+
+const DiagonalLinesPattern = ({ id }: PatternProps) => (
+ <pattern
+ id={id}
+ x="0"
+ y="0"
+ width="6"
+ height="6"
+ patternUnits="userSpaceOnUse"
+ patternTransform="rotate(45)"
+ >
+ <line
+ className="text-border dark:text-border"
+ x1="0"
+ y1="0"
+ x2="0"
+ y2="6"
+ stroke="currentColor"
+ strokeWidth="0.5"
+ />
+ </pattern>
+);
+
+const PlusPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="16" height="16" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border dark:text-border"
+ d="M 8 4 L 8 12 M 4 8 L 12 8"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="0.5"
+ strokeLinecap="round"
+ />
+ </pattern>
+);
+
+const FallingTrianglesPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="18" height="36" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border dark:text-border"
+ d="M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z"
+ transform="scale(0.5)"
+ fill="currentColor"
+ fillOpacity="0.4"
+ />
+ </pattern>
+);
+
+const FourPointedStarPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="16" height="16" patternUnits="userSpaceOnUse">
+ <polygon
+ className="text-border dark:text-border"
+ fillRule="evenodd"
+ points="5 3 8 4 5 5 4 8 3 5 0 4 3 3 4 0 5 3"
+ fill="currentColor"
+ fillOpacity="0.4"
+ />
+ </pattern>
+);
+
+const TinyCheckersPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="8" height="8" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border dark:text-border"
+ fillRule="evenodd"
+ d="M0 0h4v4H0V0zm4 4h4v4H4V4z"
+ fill="currentColor"
+ fillOpacity="0.2"
+ />
+ </pattern>
+);
+
+const OverlappingCirclesPattern = ({ id }: PatternProps) => (
+ <pattern id={id} x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse">
+ <path
+ className="text-border dark:text-border"
+ fillRule="evenodd"
+ d="M25 25c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5s-5-2.238-5-5 2.238-5 5-5zM5 5c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5S0 12.762 0 10s2.238-5 5-5zm5 4c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4zm20 20c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4z"
+ fill="currentColor"
+ fillOpacity="0.4"
+ />
+ </pattern>
+);
+
+const WiggleLinesPattern = ({ id }: PatternProps) => (
+ <pattern
+ id={id}
+ x="0"
+ y="0"
+ width="52"
+ height="26"
+ patternUnits="userSpaceOnUse"
+ patternTransform="scale(0.6)"
+ >
+ <path
+ className="text-border dark:text-border"
+ d="M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z"
+ fill="currentColor"
+ fillOpacity="0.4"
+ />
+ </pattern>
+);
+
+const BubblesPattern = ({ id }: PatternProps) => (
+ <pattern
+ id={id}
+ x="0"
+ y="0"
+ width="100"
+ height="100"
+ patternUnits="userSpaceOnUse"
+ patternTransform="scale(0.6667)"
+ >
+ <path
+ className="text-border dark:text-border"
+ d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z"
+ fill="currentColor"
+ fillOpacity="0.4"
+ fillRule="evenodd"
+ />
+ </pattern>
+);
+
+// ── Pattern Registry ─────────────────────────────────────────────────────────
+// Map variant names to pattern components
+
+const PATTERN_MAP: Record<BackgroundVariant, React.FC<PatternProps>> = {
+ dots: DotsPattern,
+ grid: GridPattern,
+ plus: PlusPattern,
+ bubbles: BubblesPattern,
+ "cross-hatch": CrossHatchPattern,
+ "diagonal-lines": DiagonalLinesPattern,
+ "falling-triangles": FallingTrianglesPattern,
+ "4-pointed-star": FourPointedStarPattern,
+ "tiny-checkers": TinyCheckersPattern,
+ "overlapping-circles": OverlappingCirclesPattern,
+ "wiggle-lines": WiggleLinesPattern,
+};
+
+// ── Main Component ───────────────────────────────────────────────────────────
+// Usage: Place <ChartBackground variant="dots" /> inside any Recharts chart component.
+// ZIndexLayer with zIndex={-1} ensures the background renders behind all chart content.
+
+interface ChartBackgroundProps {
+ variant: BackgroundVariant;
+}
+
+export function ChartBackground({ variant }: ChartBackgroundProps) {
+ const baseId = useId().replace(/:/g, "");
+ const patternId = `${baseId}-bg-${variant}`;
+ const maskId = `${baseId}-bg-edge-fade`;
+ const filterId = `${baseId}-bg-blur`;
+ const PatternComponent = PATTERN_MAP[variant];
+
+ return (
+ <ZIndexLayer zIndex={-1}>
+ <defs>
+ <PatternComponent id={patternId} />
+ {/* Gaussian blur filter for soft edge fade */}
+ <filter id={filterId}>
+ <feGaussianBlur stdDeviation="25" />
+ </filter>
+ {/* Mask: a slightly inset white rect with blur creates smooth transparent edges */}
+ <mask id={maskId} maskUnits="userSpaceOnUse">
+ <rect x="8%" y="20%" width="85%" height="60%" fill="white" filter={`url(#${filterId})`} />
+ </mask>
+ </defs>
+ <rect width="100%" height="100%" fill={`url(#${patternId})`} mask={`url(#${maskId})`} />
+ </ZIndexLayer>
+ );
+}
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-brush.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-brush.tsx
new file mode 100644
index 000000000..a2b6ad84f
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-brush.tsx
@@ -0,0 +1,702 @@
+"use client";
+
+import { motion, useMotionValue, useMotionValueEvent, useSpring, useTransform } from "motion/react";
+import { ResponsiveContainer, AreaChart, Area, LineChart, Line, BarChart, Bar } from "recharts";
+import { ChartStyle, getColorsCount, type ChartConfig } from "@/registry/ui/recharts-chart";
+import { useCallback, useEffect, type ComponentProps, type FC } from "react";
+import type { MotionValue } from "motion/react";
+import { cn } from "@/lib/utils";
+import * as React from "react";
+
+// ─── Types ──────────────────────────────────────────────────────────────────
+
+type EvilBrushVariant = "line" | "area" | "bar";
+type CurveType = ComponentProps<typeof Area>["type"];
+
+interface EvilBrushRange {
+ startIndex: number;
+ endIndex: number;
+}
+
+// ─── Brush marker — the declarative `<Chart.Brush/>` child ─────────────────────
+// Renders nothing; its PRESENCE turns the brush footer on (replacing the old
+// showBrush prop) and its props carry the brush's height, handle-label
+// formatter, and range callback. Shared so every cartesian chart attaches the
+// SAME component to its root.
+
+export interface BrushProps {
+ height?: number; // brush preview strip height in px
+ formatLabel?: (value: unknown, index: number) => string; // formats the range-handle labels
+ onChange?: (range: EvilBrushRange) => void; // fires as the range moves
+}
+
+/** Declares the zoom brush below the chart. Presence renders it; renders nothing itself. */
+export const Brush: FC<BrushProps> = () => null;
+
+interface EvilBrushProps {
+ /** Full dataset – always rendered in the miniature chart */
+ data: Record<string, unknown>[];
+ /** Chart config with colour definitions */
+ chartConfig: ChartConfig;
+ /** Data keys to plot (default: all keys from chartConfig) */
+ dataKeys?: string[];
+ /** X-axis data key – used for handle labels */
+ xDataKey?: string;
+ /** Visual variant of the mini chart */
+ variant?: EvilBrushVariant;
+ /** Pixel height of the brush */
+ height?: number;
+ /** Extra className */
+ className?: string;
+ /** Whether areas/bars should be stacked in the mini chart */
+ stacked?: boolean;
+ /** Stroke variant for line / area strokes in the mini chart */
+ strokeVariant?: "solid" | "dashed" | "animated-dashed";
+ /** Whether to connect null data points in line / area variants */
+ connectNulls?: boolean;
+ /** Radius for bar corners in the bar variant */
+ barRadius?: number;
+
+ // ── Controlled mode ──────────────────────────────────────────────────
+ /** Controlled start index */
+ startIndex?: number;
+ /** Controlled end index */
+ endIndex?: number;
+
+ // ── Uncontrolled mode ────────────────────────────────────────────────
+ /** Initial start index (uncontrolled) */
+ defaultStartIndex?: number;
+ /** Initial end index (uncontrolled) */
+ defaultEndIndex?: number;
+
+ /** Fired whenever the visible range changes */
+ onChange?: (range: EvilBrushRange) => void;
+ /** Format the handle label from the xDataKey value */
+ formatLabel?: (value: unknown, index: number) => string;
+ /** Curve type for line / area variants */
+ curveType?: CurveType;
+ /** Minimum number of data points that must remain selected */
+ minSpan?: number;
+ /** Whether to render labels on the handles */
+ showLabels?: boolean;
+ /** Skip rendering own ChartStyle (when inside a ChartContainer that already provides CSS vars) */
+ skipStyle?: boolean;
+}
+
+// ─── Spring config ──────────────────────────────────────────────────────────
+
+const SPRING_CONFIG = { stiffness: 300, damping: 35, mass: 0.8 };
+
+// ─── Pointer-capture drag hook ──────────────────────────────────────────────
+// Replaces raw addEventListener with the modern Pointer Events API.
+// setPointerCapture routes all pointer events to the originating element,
+// so we get mouse + touch + pen support with zero global listeners.
+
+type DragType = "left" | "right" | "middle";
+
+interface DragState {
+ type: DragType;
+ originX: number;
+ originRange: EvilBrushRange;
+}
+
+function useBrushDrag({
+ range,
+ totalPoints,
+ containerRef,
+ commit,
+}: {
+ range: EvilBrushRange;
+ totalPoints: number;
+ containerRef: React.RefObject<HTMLDivElement | null>;
+ commit: (next: EvilBrushRange, mode?: DragType) => void;
+}) {
+ const dragRef = React.useRef<DragState | null>(null);
+ const [isDragging, setIsDragging] = React.useState(false);
+
+ const toIndexDelta = useCallback(
+ (px: number) => {
+ if (!containerRef.current || totalPoints <= 1) return 0;
+ return Math.round(
+ (px / containerRef.current.getBoundingClientRect().width) * (totalPoints - 1),
+ );
+ },
+ [totalPoints, containerRef],
+ );
+
+ const onPointerDown = useCallback(
+ (e: React.PointerEvent, type: DragType) => {
+ e.preventDefault();
+ (e.target as HTMLElement).setPointerCapture(e.pointerId);
+ dragRef.current = { type, originX: e.clientX, originRange: { ...range } };
+ setIsDragging(true);
+ },
+ [range],
+ );
+
+ const onPointerMove = useCallback(
+ (e: React.PointerEvent) => {
+ const d = dragRef.current;
+ if (!d) return;
+
+ const delta = toIndexDelta(e.clientX - d.originX);
+ const { type, originRange: o } = d;
+
+ if (type === "left") {
+ commit({ startIndex: o.startIndex + delta, endIndex: o.endIndex }, "left");
+ } else if (type === "right") {
+ commit({ startIndex: o.startIndex, endIndex: o.endIndex + delta }, "right");
+ } else {
+ const span = o.endIndex - o.startIndex;
+ let s = o.startIndex + delta;
+ let e2 = s + span;
+ if (s < 0) {
+ s = 0;
+ e2 = span;
+ }
+ if (e2 > totalPoints - 1) {
+ e2 = totalPoints - 1;
+ s = Math.max(0, e2 - span);
+ }
+ commit({ startIndex: s, endIndex: e2 }, "middle");
+ }
+ },
+ [toIndexDelta, totalPoints, commit],
+ );
+
+ const onPointerUp = useCallback((e: React.PointerEvent) => {
+ (e.target as HTMLElement).releasePointerCapture(e.pointerId);
+ dragRef.current = null;
+ setIsDragging(false);
+ }, []);
+
+ // Helper to bind all three pointer handlers for a given drag type
+ const bind = useCallback(
+ (type: DragType) => ({
+ onPointerDown: (e: React.PointerEvent) => onPointerDown(e, type),
+ onPointerMove,
+ onPointerUp,
+ }),
+ [onPointerDown, onPointerMove, onPointerUp],
+ );
+
+ return { isDragging, bind };
+}
+
+// ─── EvilBrush ────────────────────────────────────────────────────────────
+
+function EvilBrush({
+ data,
+ chartConfig,
+ dataKeys,
+ xDataKey,
+ variant = "area",
+ height = 56,
+ className,
+ stacked = false,
+ strokeVariant = "solid",
+ connectNulls = false,
+ barRadius,
+ startIndex: controlledStart,
+ endIndex: controlledEnd,
+ defaultStartIndex = 0,
+ defaultEndIndex,
+ onChange,
+ formatLabel,
+ curveType = "monotone",
+ minSpan = 2,
+ showLabels = true,
+ skipStyle = false,
+}: EvilBrushProps) {
+ const containerRef = React.useRef<HTMLDivElement>(null);
+ const keys = React.useMemo(() => dataKeys ?? Object.keys(chartConfig), [dataKeys, chartConfig]);
+ const totalPoints = data.length;
+ const chartId = React.useId().replace(/:/g, "");
+
+ // ── Controlled vs uncontrolled ──────────────────────────────────────────
+
+ const isControlled = controlledStart !== undefined && controlledEnd !== undefined;
+
+ const [internalRange, setInternalRange] = React.useState<EvilBrushRange>(() => ({
+ startIndex: Math.max(0, Math.min(defaultStartIndex, totalPoints - 1)),
+ endIndex: Math.max(0, Math.min(defaultEndIndex ?? totalPoints - 1, totalPoints - 1)),
+ }));
+
+ // Track the last committed range to avoid duplicate updates when small
+ // mouse movements don't produce index changes (e.g., at boundaries)
+ const lastCommittedRef = React.useRef<EvilBrushRange>(internalRange);
+
+ useEffect(() => {
+ if (!isControlled) {
+ setInternalRange((prev) => {
+ const adjusted = {
+ startIndex: Math.min(prev.startIndex, Math.max(0, totalPoints - 1)),
+ endIndex: Math.min(prev.endIndex, Math.max(0, totalPoints - 1)),
+ };
+ lastCommittedRef.current = adjusted;
+ return adjusted;
+ });
+ }
+ }, [totalPoints, isControlled]);
+
+ // ── Clamping & committing ───────────────────────────────────────────────
+
+ const clampRange = useCallback(
+ (range: EvilBrushRange, mode?: DragType): EvilBrushRange => {
+ let { startIndex, endIndex } = range;
+ const maxIndex = Math.max(0, totalPoints - 1);
+
+ startIndex = Math.max(0, Math.min(startIndex, maxIndex));
+ endIndex = Math.max(0, Math.min(endIndex, maxIndex));
+
+ if (mode === "left") {
+ const maxStart = Math.max(0, endIndex - minSpan);
+ startIndex = Math.min(startIndex, maxStart);
+ return { startIndex, endIndex };
+ }
+
+ if (mode === "right") {
+ const minEnd = Math.min(maxIndex, startIndex + minSpan);
+ endIndex = Math.max(endIndex, minEnd);
+ return { startIndex, endIndex };
+ }
+
+ if (endIndex - startIndex < minSpan) {
+ endIndex = Math.min(startIndex + minSpan, maxIndex);
+ if (endIndex - startIndex < minSpan) {
+ startIndex = Math.max(0, endIndex - minSpan);
+ }
+ }
+ return { startIndex, endIndex };
+ },
+ [totalPoints, minSpan],
+ );
+
+ const commit = useCallback(
+ (next: EvilBrushRange, mode?: DragType) => {
+ const clamped = clampRange(next, mode);
+ const last = lastCommittedRef.current;
+
+ // Only update if the range has actually changed — avoids unnecessary
+ // re-renders when the brush is at a boundary and small mouse movements
+ // don't produce index changes
+ if (last.startIndex === clamped.startIndex && last.endIndex === clamped.endIndex) {
+ return;
+ }
+
+ lastCommittedRef.current = clamped;
+ setInternalRange(clamped);
+ // Defer the parent callback — chart re-render happens at lower priority,
+ // React can skip intermediate frames during fast drags
+ React.startTransition(() => {
+ onChange?.(clamped);
+ });
+ },
+ [clampRange, onChange],
+ );
+
+ // ── Drag ────────────────────────────────────────────────────────────────
+
+ const { isDragging, bind } = useBrushDrag({
+ range: internalRange,
+ totalPoints,
+ containerRef,
+ commit,
+ });
+
+ // Position always driven by internalRange (never lags behind controlled props)
+ const range = internalRange;
+
+ // Sync internalRange with controlled props when not dragging
+ useEffect(() => {
+ if (isControlled && !isDragging) {
+ const syncedRange = { startIndex: controlledStart, endIndex: controlledEnd };
+ // eslint-disable-next-line react-hooks/set-state-in-effect
+ setInternalRange(syncedRange);
+ lastCommittedRef.current = syncedRange;
+ }
+ }, [isControlled, controlledStart, controlledEnd, isDragging]);
+
+ // ── Computed positions (%) ──────────────────────────────────────────────
+
+ const leftPct = totalPoints > 1 ? (range.startIndex / (totalPoints - 1)) * 100 : 0;
+ const rightPct = totalPoints > 1 ? (range.endIndex / (totalPoints - 1)) * 100 : 100;
+
+ // Drive all moving brush UI from the same springed edge values.
+ const leftTarget = useMotionValue(leftPct);
+ const rightTarget = useMotionValue(rightPct);
+ if (leftTarget.get() !== leftPct) leftTarget.set(leftPct);
+ if (rightTarget.get() !== rightPct) rightTarget.set(rightPct);
+
+ const leftSpring = useSpring(leftTarget, SPRING_CONFIG);
+ const rightSpring = useSpring(rightTarget, SPRING_CONFIG);
+ const leftPosition = useTransform(leftSpring, (v) => `${v}%`);
+ const rightPosition = useTransform(rightSpring, (v) => `${v}%`);
+ const leftOverlayWidth = useTransform(leftSpring, (v) => `${v}%`);
+ const rightOverlayWidth = useTransform(rightSpring, (v) => `${Math.max(0, 100 - v)}%`);
+ const selectedWidth = useMotionValue(`${Math.max(0, rightPct - leftPct)}%`);
+
+ const updateSelectedWidth = useCallback(() => {
+ selectedWidth.set(`${Math.max(0, rightSpring.get() - leftSpring.get())}%`);
+ }, [leftSpring, rightSpring, selectedWidth]);
+
+ useMotionValueEvent(leftSpring, "change", updateSelectedWidth);
+ useMotionValueEvent(rightSpring, "change", updateSelectedWidth);
+
+ const getLabel = useCallback(
+ (idx: number) => {
+ if (!xDataKey) return String(idx);
+ const v = data[idx]?.[xDataKey];
+ return formatLabel ? formatLabel(v, idx) : String(v ?? idx);
+ },
+ [data, xDataKey, formatLabel],
+ );
+
+ // ── Render ──────────────────────────────────────────────────────────────
+
+ if (totalPoints === 0) return null;
+
+ return (
+ <div
+ ref={containerRef}
+ data-chart={skipStyle ? undefined : chartId}
+ className={cn("group relative select-none", className)}
+ style={{ height }}
+ >
+ {!skipStyle && <ChartStyle id={chartId} config={chartConfig} />}
+
+ {/* Mini chart – always shows all data */}
+ <div className="absolute inset-0 overflow-hidden rounded-md">
+ <MiniChart
+ data={data}
+ keys={keys}
+ chartConfig={chartConfig}
+ variant={variant}
+ curveType={curveType}
+ chartId={chartId}
+ stacked={stacked}
+ strokeVariant={strokeVariant === "animated-dashed" ? "dashed" : strokeVariant}
+ connectNulls={connectNulls}
+ barRadius={barRadius}
+ />
+ </div>
+
+ {/* Dim overlay – left */}
+ <motion.div
+ className="bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]"
+ style={{ width: leftOverlayWidth }}
+ />
+ {/* Dim overlay – right */}
+ <motion.div
+ className="bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]"
+ style={{ width: rightOverlayWidth }}
+ />
+
+ {/* Selected region – draggable to pan */}
+ <motion.div
+ className="absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing"
+ style={{ left: leftPosition, width: selectedWidth }}
+ {...bind("middle")}
+ />
+
+ {/* Left handle */}
+ <BrushHandle
+ side="left"
+ position={leftPosition}
+ label={showLabels ? getLabel(range.startIndex) : undefined}
+ bind={bind("left")}
+ />
+
+ {/* Right handle */}
+ <BrushHandle
+ side="right"
+ position={rightPosition}
+ label={showLabels ? getLabel(range.endIndex) : undefined}
+ bind={bind("right")}
+ />
+ </div>
+ );
+}
+
+// ─── Brush Handle ───────────────────────────────────────────────────────────
+
+function BrushHandle({
+ side,
+ position,
+ label,
+ bind,
+}: {
+ side: "left" | "right";
+ position: MotionValue<string>;
+ label?: string;
+ bind: {
+ onPointerDown: (e: React.PointerEvent) => void;
+ onPointerMove: (e: React.PointerEvent) => void;
+ onPointerUp: (e: React.PointerEvent) => void;
+ };
+}) {
+ const isLeft = side === "left";
+
+ return (
+ <motion.div className="absolute inset-y-0 z-10" style={{ left: position }}>
+ <div
+ className={cn(
+ "group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']",
+ isLeft ? "" : "-translate-x-full",
+ )}
+ {...bind}
+ >
+ <div
+ className={cn(
+ "bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors",
+ isLeft ? "-left-[5.5px]" : "-right-[5.5px]",
+ )}
+ >
+ <div className="flex flex-col gap-[2px]">
+ <div className="bg-background/70 h-[2px] w-[2px] rounded-full" />
+ <div className="bg-background/70 h-[2px] w-[2px] rounded-full" />
+ <div className="bg-background/70 h-[2px] w-[2px] rounded-full" />
+ </div>
+ </div>
+ </div>
+
+ {label && (
+ <div
+ className={cn(
+ "bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100",
+ isLeft ? "left-1.5" : "right-1.5",
+ )}
+ >
+ {label}
+ </div>
+ )}
+ </motion.div>
+ );
+}
+
+// ─── Mini Chart ─────────────────────────────────────────────────────────────
+
+function MiniChart({
+ data,
+ keys,
+ chartConfig,
+ variant,
+ curveType,
+ chartId,
+ stacked,
+ strokeVariant = "solid",
+ connectNulls = false,
+ barRadius,
+}: {
+ data: Record<string, unknown>[];
+ keys: string[];
+ chartConfig: ChartConfig;
+ variant: EvilBrushVariant;
+ curveType: CurveType;
+ chartId: string;
+ stacked: boolean;
+ strokeVariant?: "solid" | "dashed" | "animated-dashed";
+ connectNulls?: boolean;
+ barRadius?: number;
+}) {
+ const gradients = React.useMemo(
+ () =>
+ Object.entries(chartConfig)
+ .filter(([key]) => keys.includes(key))
+ .map(([dataKey, config]) => ({
+ dataKey,
+ colorsCount: getColorsCount(config),
+ })),
+ [chartConfig, keys],
+ );
+
+ const dashArray =
+ strokeVariant === "dashed" || strokeVariant === "animated-dashed" ? "4 4" : undefined;
+
+ const defsContent = (
+ <>
+ {/* Vertical fade gradient for area fill mask */}
+ {variant === "area" && (
+ <linearGradient id={`${chartId}-zm-vertical-fade`} x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stopColor="white" stopOpacity={0.15} />
+ <stop offset="100%" stopColor="white" stopOpacity={0} />
+ </linearGradient>
+ )}
+ {gradients.map(({ dataKey, colorsCount }) => {
+ const colorStops =
+ colorsCount === 1 ? (
+ <>
+ <stop offset="0%" stopColor={`var(--color-${dataKey}-0)`} />
+ <stop offset="100%" stopColor={`var(--color-${dataKey}-0)`} />
+ </>
+ ) : (
+ Array.from({ length: colorsCount }, (_, i) => (
+ <stop
+ key={i}
+ offset={`${(i / (colorsCount - 1)) * 100}%`}
+ stopColor={`var(--color-${dataKey}-${i}, var(--color-${dataKey}-0))`}
+ />
+ ))
+ );
+
+ return (
+ <React.Fragment key={dataKey}>
+ {/* Vertical color gradient (stroke + bar fill) */}
+ <linearGradient id={`${chartId}-zm-${dataKey}`} x1="0" y1="0" x2="0" y2="1">
+ {colorStops}
+ </linearGradient>
+
+ {/* Area fill: color gradient masked with vertical fade */}
+ {variant === "area" && (
+ <>
+ <mask id={`${chartId}-zm-fill-mask-${dataKey}`}>
+ <rect width="100%" height="100%" fill={`url(#${chartId}-zm-vertical-fade)`} />
+ </mask>
+ <pattern
+ id={`${chartId}-zm-fill-${dataKey}`}
+ patternUnits="userSpaceOnUse"
+ width="100%"
+ height="100%"
+ >
+ <rect
+ width="100%"
+ height="100%"
+ fill={`url(#${chartId}-zm-${dataKey})`}
+ mask={`url(#${chartId}-zm-fill-mask-${dataKey})`}
+ />
+ </pattern>
+ </>
+ )}
+ </React.Fragment>
+ );
+ })}
+ </>
+ );
+
+ if (variant === "line") {
+ return (
+ <ResponsiveContainer width="100%" height="100%">
+ <LineChart data={data} margin={{ top: 4, right: 0, bottom: 0, left: 0 }}>
+ <defs>{defsContent}</defs>
+ {keys.map((dk) => (
+ <Line
+ key={dk}
+ type={curveType}
+ dataKey={dk}
+ stroke={`url(#${chartId}-zm-${dk})`}
+ strokeWidth={1}
+ strokeOpacity={0.5}
+ strokeDasharray={dashArray}
+ connectNulls={connectNulls}
+ dot={false}
+ activeDot={false}
+ isAnimationActive={false}
+ />
+ ))}
+ </LineChart>
+ </ResponsiveContainer>
+ );
+ }
+
+ if (variant === "bar") {
+ const r = barRadius ?? 3;
+ return (
+ <ResponsiveContainer width="100%" height="100%">
+ <BarChart
+ data={data}
+ margin={{ top: 2, right: 0, bottom: 0, left: 0 }}
+ barGap={2}
+ barSize={14}
+ >
+ <defs>{defsContent}</defs>
+ {keys.map((dk) => (
+ <Bar
+ key={dk}
+ dataKey={dk}
+ fill={`url(#${chartId}-zm-${dk})`}
+ fillOpacity={0.35}
+ stackId={stacked ? "zm-stack" : undefined}
+ isAnimationActive={false}
+ radius={[r, r, r, r]}
+ />
+ ))}
+ </BarChart>
+ </ResponsiveContainer>
+ );
+ }
+
+ // Default: area
+ return (
+ <ResponsiveContainer width="100%" height="100%">
+ <AreaChart data={data} margin={{ top: 4, right: 0, bottom: 0, left: 0 }}>
+ <defs>{defsContent}</defs>
+ {keys.map((dk) => (
+ <Area
+ key={dk}
+ type={curveType}
+ dataKey={dk}
+ stroke={`url(#${chartId}-zm-${dk})`}
+ fill={`url(#${chartId}-zm-fill-${dk})`}
+ strokeWidth={1}
+ strokeOpacity={0.5}
+ strokeDasharray={dashArray}
+ connectNulls={connectNulls}
+ fillOpacity={1}
+ stackId={stacked ? "zm-stack" : undefined}
+ dot={false}
+ activeDot={false}
+ isAnimationActive={false}
+ />
+ ))}
+ </AreaChart>
+ </ResponsiveContainer>
+ );
+}
+
+// ─── useEvilBrush Hook ──────────────────────────────────────────────────────
+
+function useEvilBrush<TData extends Record<string, unknown>>({
+ data,
+ defaultStartIndex = 0,
+ defaultEndIndex,
+}: {
+ data: TData[];
+ defaultStartIndex?: number;
+ defaultEndIndex?: number;
+}) {
+ const [range, setRange] = React.useState<EvilBrushRange>({
+ startIndex: defaultStartIndex,
+ endIndex: defaultEndIndex ?? Math.max(0, data.length - 1),
+ });
+
+ // Defer the range used for data slicing — the brush handles move at the
+
+ // immediate `range` cadence while the expensive chart re-render uses the
+ // deferred value. React can skip intermediate slices during fast drags.
+ const deferredRange = React.useDeferredValue(range);
+
+ useEffect(() => {
+ // eslint-disable-next-line react-hooks/set-state-in-effect
+ setRange({
+ startIndex: 0,
+ endIndex: Math.max(0, data.length - 1),
+ });
+ }, [data.length]);
+
+ const visibleData = React.useMemo(
+ () => data.slice(deferredRange.startIndex, deferredRange.endIndex + 1),
+ [data, deferredRange.startIndex, deferredRange.endIndex],
+ );
+
+ return {
+ range,
+ visibleData,
+ brushProps: {
+ startIndex: range.startIndex,
+ endIndex: range.endIndex,
+ onChange: setRange,
+ } satisfies Pick<EvilBrushProps, "startIndex" | "endIndex" | "onChange">,
+ };
+}
+
+export { EvilBrush, useEvilBrush, type EvilBrushProps, type EvilBrushRange, type EvilBrushVariant };
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-chart.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-chart.tsx
new file mode 100644
index 000000000..dbbabd84c
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -0,0 +1,261 @@
+"use client";
+
+import * as RechartsPrimitive from "recharts";
+import { cn } from "@/lib/utils";
+import * as React from "react";
+
+// Format: { THEME_NAME: CSS_SELECTOR }
+const THEMES = { light: "", dark: ".dark" } as const;
+
+type ThemeKey = keyof typeof THEMES;
+
+// All Keys are optional at first
+type ThemeColorsBase = {
+ [K in ThemeKey]?: string[];
+};
+
+// Require at least one theme key
+type AtLeastOneThemeColor = {
+ [K in ThemeKey]: Required<Pick<ThemeColorsBase, K>> & Partial<Omit<ThemeColorsBase, K>>;
+}[ThemeKey];
+
+const VALID_THEME_KEYS = Object.keys(THEMES) as ThemeKey[];
+
+// Validation for chart config colors at runtime
+function validateChartConfigColors(config: ChartConfig): void {
+ for (const [key, value] of Object.entries(config)) {
+ if (value.colors) {
+ const hasValidThemeKey = VALID_THEME_KEYS.some(
+ (themeKey) => value.colors?.[themeKey] !== undefined,
+ );
+
+ if (!hasValidThemeKey) {
+ throw new Error(
+ `[EvilCharts] Invalid chart config for "${key}": colors object must have at least one theme key (${VALID_THEME_KEYS.join(", ")}). Received empty object or invalid keys.`,
+ );
+ }
+ }
+ }
+}
+
+export type ChartConfig = Record<
+ string,
+ {
+ label?: React.ReactNode;
+ icon?: React.ComponentType;
+ colors?: AtLeastOneThemeColor;
+ }
+>;
+
+interface ChartContextProps {
+ config: ChartConfig;
+}
+
+const ChartContext = React.createContext<ChartContextProps | null>(null);
+
+export function useChart() {
+ const context = React.useContext(ChartContext);
+
+ if (!context) {
+ throw new Error("useChart must be used within a <ChartContainer />");
+ }
+
+ return context;
+}
+
+interface ChartContainerProps
+ extends
+ Omit<React.ComponentProps<"div">, "children">,
+ Pick<
+ React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>,
+ | "initialDimension"
+ | "aspect"
+ | "debounce"
+ | "minHeight"
+ | "minWidth"
+ | "maxHeight"
+ | "height"
+ | "width"
+ | "onResize"
+ | "children"
+ > {
+ config: ChartConfig;
+ innerResponsiveContainerStyle?: React.ComponentProps<
+ typeof RechartsPrimitive.ResponsiveContainer
+ >["style"];
+ /** Optional content rendered below the chart (e.g. EvilBrush) */
+ footer?: React.ReactNode;
+}
+
+function ChartContainer({
+ id,
+ config,
+ initialDimension = { width: 320, height: 200 },
+ className,
+ children,
+ footer,
+ ...props
+}: Readonly<ChartContainerProps>) {
+ const uniqueId = React.useId();
+ const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
+
+ // Validate chart config at runtime
+ validateChartConfigColors(config);
+
+ return (
+ <ChartContext.Provider value={{ config }}>
+ <div
+ data-slot="chart"
+ data-chart={chartId}
+ className={cn(
+ "min-h-0 w-full flex-1",
+ "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
+ !footer && "aspect-video",
+ className,
+ )}
+ {...props}
+ >
+ <ChartStyle id={chartId} config={config} />
+ <RechartsPrimitive.ResponsiveContainer
+ className="min-h-0 w-full flex-1"
+ initialDimension={initialDimension}
+ >
+ {children}
+ </RechartsPrimitive.ResponsiveContainer>
+ {footer}
+ </div>
+ </ChartContext.Provider>
+ );
+}
+
+function LoadingIndicator({ isLoading }: { isLoading: boolean }) {
+ if (!isLoading) {
+ return null;
+ }
+
+ return (
+ <div className="pointer-events-none absolute inset-0 z-20 flex items-center justify-center">
+ <div className="text-primary bg-background flex items-center justify-center gap-2 rounded-md border px-2 py-0.5 text-sm">
+ <div className="border-border border-t-primary h-3 w-3 animate-spin rounded-full border" />
+ <span>Loading</span>
+ </div>
+ </div>
+ );
+}
+
+// Distribute colors evenly across slots, extra slots go to last color(s)
+// Example: 2 colors for 4 slots → [red, red, pink, pink]
+// Example: 3 colors for 4 slots → [red, pink, blue, blue]
+function distributeColors(colorsArray: string[], maxCount: number): string[] {
+ const availableCount = colorsArray.length;
+ if (availableCount >= maxCount) {
+ return colorsArray.slice(0, maxCount);
+ }
+
+ const result: string[] = [];
+ const baseSlots = Math.floor(maxCount / availableCount);
+ const extraSlots = maxCount % availableCount;
+
+ // First (availableCount - extraSlots) colors get baseSlots each
+ // Last extraSlots colors get (baseSlots + 1) each
+ for (let colorIdx = 0; colorIdx < availableCount; colorIdx++) {
+ const isExtraColor = colorIdx >= availableCount - extraSlots;
+ const slotsForThisColor = baseSlots + (isExtraColor ? 1 : 0);
+ for (let j = 0; j < slotsForThisColor; j++) {
+ result.push(colorsArray[colorIdx]);
+ }
+ }
+
+ return result;
+}
+
+const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
+ const colorConfig = Object.entries(config).filter(([, config]) => config.colors);
+
+ if (!colorConfig.length) {
+ return null;
+ }
+
+ const generateCssVars = (theme: keyof typeof THEMES) =>
+ colorConfig
+ .flatMap(([key, itemConfig]) => {
+ const colorsArray = itemConfig.colors?.[theme];
+ if (!colorsArray || !Array.isArray(colorsArray) || colorsArray.length === 0) {
+ return [];
+ }
+
+ // Get max count across all themes for this key
+ const maxCount = getColorsCount(itemConfig);
+
+ // Distribute colors evenly across all required slots
+ const distributedColors = distributeColors(colorsArray, maxCount);
+
+ return distributedColors.map((color, index) => ` --color-${key}-${index}: ${color};`);
+ })
+ .filter(Boolean)
+ .join("\n");
+
+ const css = Object.entries(THEMES)
+ .map(
+ ([theme, prefix]) =>
+ `${prefix} [data-chart=${id}] {\n${generateCssVars(theme as keyof typeof THEMES)}\n}`,
+ )
+ .join("\n");
+
+ return <style dangerouslySetInnerHTML={{ __html: css }} />;
+};
+
+// Helper to extract item config from a payload.
+export function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {
+ if (typeof payload !== "object" || payload === null) {
+ return undefined;
+ }
+
+ const payloadPayload =
+ "payload" in payload && typeof payload.payload === "object" && payload.payload !== null
+ ? payload.payload
+ : undefined;
+
+ let configLabelKey: string = key;
+
+ if (key in payload && typeof payload[key as keyof typeof payload] === "string") {
+ configLabelKey = payload[key as keyof typeof payload] as string;
+ } else if (
+ payloadPayload &&
+ key in payloadPayload &&
+ typeof payloadPayload[key as keyof typeof payloadPayload] === "string"
+ ) {
+ configLabelKey = payloadPayload[key as keyof typeof payloadPayload] as string;
+ }
+
+ return configLabelKey in config ? config[configLabelKey] : config[key];
+}
+
+// Format values to percent for expanded charts
+function axisValueToPercentFormatter(value: number) {
+ return `${Math.round(value * 100).toFixed(0)}%`;
+}
+
+// Get max colors count across all themes for a config entry
+function getColorsCount(config: ChartConfig[string]): number {
+ if (!config.colors) return 1;
+ const counts = VALID_THEME_KEYS.map((theme) => config.colors?.[theme]?.length ?? 0);
+ return Math.max(...counts, 1);
+}
+
+// Generate random loading data for skeleton/loading state
+// min/max represent percentage of the range (0-100), defaults to 20-80 for realistic look
+export const getLoadingData = (points: number = 10, min: number = 0, max: number = 70) => {
+ const range = max - min;
+ return Array.from({ length: points }, () => ({
+ loading: Math.floor(Math.random() * range) + min,
+ }));
+};
+
+export {
+ ChartContainer,
+ ChartStyle,
+ axisValueToPercentFormatter,
+ LoadingIndicator,
+ getColorsCount,
+};
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-dot.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-dot.tsx
new file mode 100644
index 000000000..79c2df6af
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-dot.tsx
@@ -0,0 +1,175 @@
+import { cn } from "@/lib/utils";
+import * as React from "react";
+
+export type DotVariant = "default" | "border" | "colored-border";
+
+type ChartDotProps = {
+ cx?: number;
+ cy?: number;
+ dataKey: string;
+ chartId: string;
+ className?: string;
+ fillOpacity?: number;
+ type?: DotVariant;
+ /** Optional SVG <mask> id — lets the dot share an area's intro reveal wipe. */
+ maskId?: string;
+};
+
+const ChartDot = React.memo(function ChartDot({
+ cx,
+ cy,
+ dataKey,
+ chartId,
+ className,
+ fillOpacity = 1,
+ type = "default",
+ maskId,
+}: ChartDotProps) {
+ const dotId = React.useId().replace(/:/g, "");
+ const gradientUrl = `url(#${chartId}-colors-${String(dataKey)})`;
+
+ if (cx === undefined || cy === undefined) return null;
+
+ switch (type) {
+ case "border":
+ return (
+ <PrimaryBorderDot
+ cx={cx}
+ cy={cy}
+ dotId={dotId}
+ fillOpacity={fillOpacity}
+ gradientUrl={gradientUrl}
+ className={className}
+ maskId={maskId}
+ />
+ );
+ case "colored-border":
+ return (
+ <ColoredBorderDot
+ cx={cx}
+ cy={cy}
+ dotId={dotId}
+ fillOpacity={fillOpacity}
+ gradientUrl={gradientUrl}
+ className={className}
+ maskId={maskId}
+ />
+ );
+ default:
+ return (
+ <DefaultDot
+ cx={cx}
+ cy={cy}
+ dotId={dotId}
+ fillOpacity={fillOpacity}
+ gradientUrl={gradientUrl}
+ className={className}
+ maskId={maskId}
+ />
+ );
+ }
+});
+
+type DotVariantProps = {
+ cx: number;
+ cy: number;
+ dotId: string;
+ fillOpacity: number;
+ gradientUrl: string;
+ className?: string;
+ maskId?: string;
+};
+
+const DefaultDot = React.memo(
+ ({ cx, cy, dotId, fillOpacity, gradientUrl, className, maskId }: DotVariantProps) => {
+ const r = 3;
+ return (
+ <g className={className} mask={maskId ? `url(#${maskId})` : undefined}>
+ <defs>
+ <clipPath id={`dot-clip-${dotId}`}>
+ <circle cx={cx} cy={cy} r={r} />
+ </clipPath>
+ </defs>
+ {/* Full-width gradient rectangle clipped to dot shape */}
+ <rect
+ x="0"
+ y={cy - r}
+ width="100%"
+ height={r * 2}
+ fill={gradientUrl}
+ fillOpacity={fillOpacity}
+ clipPath={`url(#dot-clip-${dotId})`}
+ />
+ </g>
+ );
+ },
+);
+
+DefaultDot.displayName = "DefaultDot";
+
+const PrimaryBorderDot = React.memo(
+ ({ cx, cy, dotId, fillOpacity, gradientUrl, className, maskId }: DotVariantProps) => {
+ const r = 6;
+ const strokeWidth = 5;
+ return (
+ <g className={cn(className, "text-background")} mask={maskId ? `url(#${maskId})` : undefined}>
+ <defs>
+ <clipPath id={`dot-clip-${dotId}`}>
+ <circle cx={cx} cy={cy} r={r} />
+ </clipPath>
+ </defs>
+ {/* Background stroke (border) */}
+ <circle cx={cx} cy={cy} r={r} fill="currentColor" />
+ {/* Inner gradient circle clipped */}
+ <rect
+ x="0"
+ y={cy - (r - strokeWidth / 2)}
+ width="100%"
+ height={(r - strokeWidth / 2) * 2}
+ fill={gradientUrl}
+ fillOpacity={fillOpacity}
+ clipPath={`url(#dot-clip-inner-${dotId})`}
+ />
+ <defs>
+ <clipPath id={`dot-clip-inner-${dotId}`}>
+ <circle cx={cx} cy={cy} r={r - strokeWidth / 2} />
+ </clipPath>
+ </defs>
+ </g>
+ );
+ },
+);
+
+PrimaryBorderDot.displayName = "PrimaryBorderDot";
+
+const ColoredBorderDot = React.memo(
+ ({ cx, cy, dotId, fillOpacity, gradientUrl, className, maskId }: DotVariantProps) => {
+ const r = 3;
+ const strokeWidth = 1;
+ return (
+ <g className={cn(className, "text-background")} mask={maskId ? `url(#${maskId})` : undefined}>
+ <defs>
+ <clipPath id={`dot-clip-${dotId}`}>
+ <circle cx={cx} cy={cy} r={r + strokeWidth / 2} />
+ </clipPath>
+ </defs>
+ {/* Gradient stroke (border) via clipped rect */}
+ <rect
+ x="0"
+ y={cy - r - strokeWidth / 2}
+ width="100%"
+ height={(r + strokeWidth / 2) * 2}
+ fill={gradientUrl}
+ fillOpacity={fillOpacity}
+ clipPath={`url(#dot-clip-${dotId})`}
+ />
+ {/* Inner solid fill */}
+ <circle cx={cx} cy={cy} r={r - strokeWidth / 2} fill="currentColor" />
+ </g>
+ );
+ },
+);
+
+ColoredBorderDot.displayName = "ColoredBorderDot";
+
+export { ChartDot };
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-legend.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-legend.tsx
new file mode 100644
index 000000000..45be86f13
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-legend.tsx
@@ -0,0 +1,204 @@
+import { getPayloadConfigFromPayload, getColorsCount, useChart } from "@/registry/ui/recharts-chart";
+import * as RechartsPrimitive from "recharts";
+import { cn } from "@/lib/utils";
+import * as React from "react";
+
+type ChartLegendVariant =
+ | "square"
+ | "circle"
+ | "circle-outline"
+ | "rounded-square"
+ | "rounded-square-outline"
+ | "vertical-bar"
+ | "horizontal-bar";
+
+function ChartLegendContent({
+ className,
+ hideIcon = false,
+ nameKey,
+ payload,
+ verticalAlign,
+ align = "right",
+ selected,
+ onSelectChange,
+ isClickable,
+ variant = "rounded-square",
+}: React.ComponentProps<"div"> & {
+ hideIcon?: boolean;
+ nameKey?: string;
+ selected?: string | null;
+ isClickable?: boolean;
+ onSelectChange?: (selected: string | null) => void;
+ variant?: ChartLegendVariant;
+} & RechartsPrimitive.DefaultLegendContentProps) {
+ const { config } = useChart();
+
+ if (!payload?.length) {
+ return null;
+ }
+
+ return (
+ <div
+ className={cn(
+ "flex items-center gap-4 select-none",
+ align === "left" && "justify-start",
+ align === "center" && "justify-center",
+ align === "right" && "justify-end",
+ verticalAlign === "top" ? "pb-4" : "pt-4",
+ className,
+ )}
+ >
+ {payload
+ .filter((item) => item.type !== "none")
+ .map((item) => {
+ // For pie charts, item.value contains the sector name (e.g., "chrome")
+ // For radial charts, the name is in item.payload[nameKey]
+ // For other charts, item.dataKey contains the series name (e.g., "desktop")
+ const payloadName =
+ nameKey && item.payload
+ ? (item.payload as Record<string, unknown>)[nameKey]
+ : undefined;
+ const key = `${payloadName ?? item.value ?? item.dataKey ?? "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+ const isSelected = selected === null || selected === key;
+
+ // Get colors count for this item to determine gradient vs solid
+ const colorsCount = itemConfig ? getColorsCount(itemConfig) : 1;
+
+ return (
+ <div
+ key={key}
+ className={cn(
+ "[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3",
+ !isSelected && "opacity-30",
+ isClickable && "cursor-pointer",
+ )}
+ onClick={() => {
+ if (!isClickable) return;
+
+ onSelectChange?.(selected === key ? null : key);
+ }}
+ >
+ {itemConfig?.icon && !hideIcon ? (
+ <itemConfig.icon />
+ ) : (
+ <LegendIndicator
+ variant={variant}
+ dataKey={key}
+ colorsCount={colorsCount}
+ />
+ )}
+ {itemConfig?.label}
+ </div>
+ );
+ })}
+ </div>
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Legend indicator — each variant gets its own branch so future variants
+// can diverge freely in markup & style.
+// ---------------------------------------------------------------------------
+
+function LegendIndicator({
+ variant,
+ dataKey,
+ colorsCount,
+}: {
+ variant: ChartLegendVariant;
+ dataKey: string;
+ colorsCount: number;
+}) {
+ const fillStyle = getLegendFillStyle(dataKey, colorsCount);
+ const outlineStyle = getLegendOutlineStyle(dataKey, colorsCount);
+
+ switch (variant) {
+ case "square":
+ return <div className="h-2 w-2 shrink-0" style={fillStyle} />;
+
+ case "circle":
+ return <div className="h-2 w-2 shrink-0 rounded-full" style={fillStyle} />;
+
+ case "circle-outline":
+ return (
+ <div
+ className="h-2.5 w-2.5 shrink-0 rounded-full p-[1.5px]"
+ style={outlineStyle}
+ />
+ );
+
+ case "vertical-bar":
+ return <div className="h-3 w-1 shrink-0 rounded-[2px]" style={fillStyle} />;
+
+ case "horizontal-bar":
+ return <div className="h-1 w-3 shrink-0 rounded-[2px]" style={fillStyle} />;
+
+ case "rounded-square-outline":
+ return (
+ <div
+ className="h-2.5 w-2.5 shrink-0 rounded-[3px] p-[1.5px]"
+ style={outlineStyle}
+ />
+ );
+
+ case "rounded-square":
+ default:
+ return <div className="h-2 w-2 shrink-0 rounded-[2px]" style={fillStyle} />;
+ }
+}
+
+// ---------------------------------------------------------------------------
+// Style helpers
+// ---------------------------------------------------------------------------
+
+/** Solid fill / gradient background for filled variants. */
+function getLegendFillStyle(dataKey: string, colorsCount: number): React.CSSProperties {
+ if (colorsCount <= 1) {
+ return { backgroundColor: `var(--color-${dataKey}-0)` };
+ }
+
+ const stops = Array.from({ length: colorsCount }, (_, i) => {
+ const offset = (i / (colorsCount - 1)) * 100;
+ return `var(--color-${dataKey}-${i}) ${offset}%`;
+ }).join(", ");
+
+ return { background: `linear-gradient(to right, ${stops})` };
+}
+
+/**
+ * Outline style for stroke variants.
+ * Uses background + mask-composite to punch out the center, leaving only the
+ * "border" visible. Works with both solid colors and gradients, and respects
+ * border-radius — unlike plain `border-color`.
+ */
+function getLegendOutlineStyle(dataKey: string, colorsCount: number): React.CSSProperties {
+ const maskStyle: React.CSSProperties = {
+ WebkitMask:
+ "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
+ WebkitMaskComposite: "xor",
+ mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
+ maskComposite: "exclude",
+ };
+
+ if (colorsCount <= 1) {
+ return {
+ backgroundColor: `var(--color-${dataKey}-0)`,
+ ...maskStyle,
+ };
+ }
+
+ const stops = Array.from({ length: colorsCount }, (_, i) => {
+ const offset = (i / (colorsCount - 1)) * 100;
+ return `var(--color-${dataKey}-${i}) ${offset}%`;
+ }).join(", ");
+
+ return {
+ background: `linear-gradient(to right, ${stops})`,
+ ...maskStyle,
+ };
+}
+
+const ChartLegend = RechartsPrimitive.Legend;
+
+export { ChartLegend, ChartLegendContent, type ChartLegendVariant };
diff --git a/frontend/src/react/evilcharts/registry/ui/recharts-tooltip.tsx b/frontend/src/react/evilcharts/registry/ui/recharts-tooltip.tsx
new file mode 100644
index 000000000..c8f92095f
--- /dev/null
+++ b/frontend/src/react/evilcharts/registry/ui/recharts-tooltip.tsx
@@ -0,0 +1,193 @@
+import { getPayloadConfigFromPayload, getColorsCount, useChart } from "@/registry/ui/recharts-chart";
+import type { NameType, ValueType } from "recharts/types/component/DefaultTooltipContent";
+import * as RechartsPrimitive from "recharts";
+import { cn } from "@/lib/utils";
+import * as React from "react";
+
+type TooltipRoundness = "sm" | "md" | "lg" | "xl";
+type TooltipVariant = "default" | "frosted-glass";
+
+const roundnessMap: Record<TooltipRoundness, string> = {
+ sm: "rounded-sm",
+ md: "rounded-md",
+ lg: "rounded-lg",
+ xl: "rounded-xl",
+};
+
+const variantMap: Record<TooltipVariant, string> = {
+ default: "bg-background",
+ "frosted-glass": "bg-background/70 backdrop-blur-sm",
+};
+
+function ChartTooltipContent({
+ active,
+ payload,
+ className,
+ indicator = "dot",
+ hideLabel = false,
+ hideIndicator = false,
+ label,
+ labelFormatter,
+ labelClassName,
+ formatter,
+ nameKey,
+ labelKey,
+ selected,
+ roundness = "lg",
+ variant = "default",
+}: React.ComponentProps<typeof RechartsPrimitive.Tooltip> &
+ React.ComponentProps<"div"> & {
+ hideLabel?: boolean;
+ hideIndicator?: boolean;
+ indicator?: "line" | "dot" | "dashed";
+ nameKey?: string;
+ labelKey?: string;
+ selected?: string | null;
+ roundness?: TooltipRoundness;
+ variant?: TooltipVariant;
+ } & Omit<
+ RechartsPrimitive.DefaultTooltipContentProps<ValueType, NameType>,
+ "accessibilityLayer"
+ >) {
+ const { config } = useChart();
+
+ const tooltipLabel = React.useMemo(() => {
+ if (hideLabel || !payload?.length) {
+ return null;
+ }
+
+ const [item] = payload;
+ const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+ const value =
+ !labelKey && typeof label === "string" ? (config[label]?.label ?? label) : itemConfig?.label;
+
+ if (labelFormatter) {
+ return (
+ <div className={cn("font-medium", labelClassName)}>{labelFormatter(value, payload)}</div>
+ );
+ }
+
+ if (!value) {
+ return null;
+ }
+
+ return <div className={cn("font-medium", labelClassName)}>{value}</div>;
+ }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
+
+ if (!active || !payload?.length) {
+ // Empty tooltip - to prevent position getting 0.0 so it doesnt animate tooltip every time from 0.0 origin
+ return <span className="p-4" />;
+ }
+
+ const nestLabel = payload.length === 1 && indicator !== "dot";
+
+ return (
+ <div
+ className={cn(
+ "border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl",
+ roundnessMap[roundness],
+ variantMap[variant],
+ className,
+ )}
+ >
+ {!nestLabel ? tooltipLabel : null}
+ <div className="grid gap-1.5">
+ {payload
+ .filter((item) => item.type !== "none")
+ .map((item, index) => {
+ // For pie charts, item.name contains the sector name (e.g., "chrome")
+ // For radial charts, the name is in item.payload[nameKey]
+ // For other charts, item.name or item.dataKey contains the series name
+ const payloadName =
+ nameKey && item.payload
+ ? (item.payload as Record<string, unknown>)[nameKey]
+ : undefined;
+ const key = `${payloadName ?? item.name ?? item.dataKey ?? "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+
+ // Get colors count for this item to determine gradient vs solid
+ const colorsCount = itemConfig ? getColorsCount(itemConfig) : 1;
+
+ return (
+ <div
+ key={index}
+ className={cn(
+ "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
+ indicator === "dot" && "items-center",
+ selected != null && selected !== item.dataKey && "opacity-30",
+ )}
+ >
+ {formatter && item?.value !== undefined && item.name ? (
+ formatter(item.value, item.name, item, index, item.payload)
+ ) : (
+ <>
+ {itemConfig?.icon ? (
+ <itemConfig.icon />
+ ) : (
+ !hideIndicator && (
+ <div
+ className={cn("shrink-0 rounded-[2px]", {
+ "h-2.5 w-2.5": indicator === "dot",
+ "w-1": indicator === "line",
+ "w-0 border-[1.5px] border-dashed bg-transparent!":
+ indicator === "dashed",
+ "my-0.5": nestLabel && indicator === "dashed",
+ })}
+ style={getIndicatorColorStyle(key, colorsCount)}
+ />
+ )
+ )}
+ <div
+ className={cn(
+ "flex flex-1 justify-between gap-4 leading-none",
+ nestLabel ? "items-end" : "items-center",
+ )}
+ >
+ <div className="grid gap-1.5">
+ {nestLabel ? tooltipLabel : null}
+ <span className="text-muted-foreground">
+ {itemConfig?.label ?? item.name}
+ </span>
+ </div>
+ {item.value != null && (
+ <span className="text-foreground font-mono font-medium tabular-nums">
+ {typeof item.value === "number"
+ ? item.value.toLocaleString()
+ : String(item.value)}
+ </span>
+ )}
+ </div>
+ </>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ );
+}
+
+function getIndicatorColorStyle(dataKey: string, colorsCount: number): React.CSSProperties {
+ if (colorsCount <= 1) {
+ return { background: `var(--color-${dataKey}-0)` };
+ }
+
+ // Multiple colors: create linear gradient with evenly distributed stops
+ const stops = Array.from({ length: colorsCount }, (_, index) => {
+ const offset = (index / (colorsCount - 1)) * 100;
+ return `var(--color-${dataKey}-${index}) ${offset}%`;
+ }).join(", ");
+
+ return { background: `linear-gradient(to right, ${stops})` };
+}
+
+const ChartTooltip = ({
+ animationDuration = 200,
+ ...props
+}: React.ComponentProps<typeof RechartsPrimitive.Tooltip>) => (
+ <RechartsPrimitive.Tooltip animationDuration={animationDuration} {...props} />
+);
+
+export { ChartTooltip, ChartTooltipContent };
+export type { TooltipRoundness, TooltipVariant };
diff --git a/frontend/src/react/styles.css b/frontend/src/react/styles.css
index aad1832e9..03a7ba018 100644
--- a/frontend/src/react/styles.css
+++ b/frontend/src/react/styles.css
@@ -85,6 +85,19 @@
--breakpoint-board: 1000px;
}
+/* EvilCharts 源码写的是 shadcn 的语义色名(`bg-background`、`text-muted-foreground`、
+ * `fill-muted`、`border-border`)。这里只把名字接到 BoardUI 已有的 token 上,不另起一套颜色:
+ * 浮层面同菜单(`background-primary-default`),次要字与轴刻度取 `text-secondary`,
+ * 径向轨道与悬停底取 `chart-track`,分隔取 `separator-border`。`inline` 让工具类直接带出
+ * 右边那个变量,不在 `:root` 上多出一组同名的 `--color-*`。来源与差异见 `evilcharts/ORIGIN.md`。 */
+@theme inline {
+ --color-background: var(--color-background-primary-default);
+ --color-foreground: var(--color-text-primary);
+ --color-muted: var(--color-chart-track);
+ --color-muted-foreground: var(--color-text-secondary);
+ --color-border: var(--color-separator-border);
+}
+
/* 复核队列的卡片网格与作品样本网格。两处都是「按可用宽度自动折行」,只有最窄那一列
* 不同:队列卡要放下一张候选表单,样本格只放一张 16/10 的缩略图。 */
@utility review-grid {
diff --git a/frontend/src/react/tsconfig.json b/frontend/src/react/tsconfig.json
index a42d281d8..541c573a5 100644
--- a/frontend/src/react/tsconfig.json
+++ b/frontend/src/react/tsconfig.json
@@ -6,7 +6,13 @@
// boardui/ 逐字复制上游源码,上游没有按这两条写;在这里放宽,而不是改上游文件。
"exactOptionalPropertyTypes": false,
"noUncheckedIndexedAccess": false,
+ // evilcharts/ 同样逐字复制,上游用普通 import 取 recharts 的类型(`RectRadius`、`TypedDataKey`);
+ // `isolatedModules` 仍开着,转译时只被当类型用的 import 照常剥掉。
+ "verbatimModuleSyntax": false,
"paths": {
+ // EvilCharts 源码按 shadcn 项目的路径写 import;最长前缀优先,排在 `@/*` 之前命中。
+ "@/registry/*": ["./evilcharts/registry/*"],
+ "@/lib/utils": ["./charts/cn.ts"],
"@/*": ["./boardui/*"],
"@peach/legacy/core": ["../legacy/core.d.ts"],
"@peach/legacy/ui": ["../legacy/ui.d.ts"]
diff --git a/frontend/vite.react.config.ts b/frontend/vite.react.config.ts
index b29a26f35..fa7c1262a 100644
--- a/frontend/vite.react.config.ts
+++ b/frontend/vite.react.config.ts
@@ -4,7 +4,8 @@
* `@peach/react` 引用这份产物,构建时改写成 `/dist/peach-react.js`,只有挂到 React 子树时
* 浏览器才去取它。`npm run build` 先跑 Preact 那份(它会清空 web/dist),再跑这份。
*
- * `@/` 指向 `src/react/boardui/`,上游 BoardUI 源码里的 `@/utils/cx` 因此原样成立。 */
+ * `@/` 指向 `src/react/boardui/`,上游 BoardUI 源码里的 `@/utils/cx` 因此原样成立。
+ * EvilCharts 源码的 `@/registry/*` 与 `@/lib/utils` 排在它前面:别名按书写顺序取第一个命中的。 */
import { fileURLToPath } from 'node:url';
import tailwindcss from '@tailwindcss/vite';
@@ -15,7 +16,11 @@ import { LEGACY_MODULES } from './vite.config.ts';
export default defineConfig({
plugins: [tailwindcss()],
resolve: {
- alias: { '@': fileURLToPath(new URL('./src/react/boardui', import.meta.url)) },
+ alias: {
+ '@/registry': fileURLToPath(new URL('./src/react/evilcharts/registry', import.meta.url)),
+ '@/lib/utils': fileURLToPath(new URL('./src/react/charts/cn.ts', import.meta.url)),
+ '@': fileURLToPath(new URL('./src/react/boardui', import.meta.url)),
+ },
},
// 库模式不替换 `process.env.NODE_ENV`,React 会在浏览器里读到一个不存在的 `process`。
define: { 'process.env.NODE_ENV': JSON.stringify('production') },
diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts
index b6992fcb4..a219d385a 100644
--- a/frontend/vitest.config.ts
+++ b/frontend/vitest.config.ts
@@ -16,6 +16,8 @@ export default mergeConfig(base, defineConfig({
'@peach/legacy/ui': stub('legacy-ui.ts'),
// 测试里 island 直接拿到 React 子树的源码入口,不经过 web/dist 产物。
'@peach/react': source('react/entry.tsx'),
+ '@/registry': source('react/evilcharts/registry'),
+ '@/lib/utils': source('react/charts/cn.ts'),
'@': source('react/boardui'),
},
},
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index ad798ac31..46905805f 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -223,28 +223,34 @@ class ReactBundleTests(unittest.TestCase):
class BoardUiUpstreamTests(unittest.TestCase):
- """`frontend/src/react/boardui/` 是 BoardUI 注册表源码的逐字副本,只加不改(ADR-0031)。
+ """`frontend/src/react/boardui/` 与 `evilcharts/` 是上游注册表源码的逐字副本,只加不改
+ (ADR-0031、ADR-0076)。
- `UPSTREAM.sha256` 记下复制时每个文件的 SHA-256。改了副本、多出没登记的文件、登记了却
- 删掉,都在这里红。比的是登记的快照而不是线上注册表:上游随时会改,测试不能联网。
- 升级上游时重新复制文件、重算对应行,并更新 `ORIGIN.md` 的条目哈希。
+ 每个目录的 `UPSTREAM.sha256` 记下复制时每个文件的 SHA-256。改了副本、多出没登记的文件、
+ 登记了却删掉,都在这里红。比的是登记的快照而不是线上注册表:上游随时会改,测试不能联网。
+ 升级上游时重新复制文件、重算对应行,并更新同目录 `ORIGIN.md` 的条目哈希。
"""
- BOARDUI = FRONTEND / "src" / "react" / "boardui"
+ VENDORED = ("boardui", "evilcharts")
RECORDS = ("ORIGIN.md", "UPSTREAM.sha256")
def test_the_copied_sources_match_their_recorded_upstream_hashes(self):
+ for name in self.VENDORED:
+ with self.subTest(name):
+ self.assert_matches_upstream(FRONTEND / "src" / "react" / name, name)
+
+ def assert_matches_upstream(self, root: Path, name: str):
recorded = {}
- for line in (self.BOARDUI / "UPSTREAM.sha256").read_text(encoding="utf-8").splitlines():
+ for line in (root / "UPSTREAM.sha256").read_text(encoding="utf-8").splitlines():
digest, path = line.split(" ", 1)
recorded[path] = digest
- present = {file.relative_to(self.BOARDUI).as_posix(): file for file in self.BOARDUI.rglob("*")
+ present = {file.relative_to(root).as_posix(): file for file in root.rglob("*")
if file.is_file() and file.name not in self.RECORDS}
self.assertEqual(sorted(present), sorted(recorded),
- "boardui/ 的文件要与 UPSTREAM.sha256 一一对应;Peach 自己的组合放在 boardui/ 外面")
+ f"{name}/ 的文件要与 UPSTREAM.sha256 一一对应;Peach 自己的组合放在 {name}/ 外面")
for path, file in present.items():
self.assertEqual(hashlib.sha256(file.read_bytes()).hexdigest(), recorded[path],
- f"boardui/{path} 与复制时的上游内容不同;外观差异在 boardui/ 外面组合")
+ f"{name}/{path} 与复制时的上游内容不同;外观差异在 {name}/ 外面组合")
class FrontendManifestTests(unittest.TestCase):
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index 5aeabd3f9..42de5f6c9 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-divide-y-reverse:0;--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;--shadow-sm:var(--elevation-sm);--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;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--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-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--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-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--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;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--color-card-footer:var(--card-footer,transparent);--color-card-hover:var(--card-hover,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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-full{top:100%}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.right-0{right:0}.right-1{right:var(--spacing)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-10{z-index:10}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.container{width:100%}@media (width>=600px){.container{max-width:600px}}@media (width>=900px){.container{max-width:900px}}@media (width>=1000px){.container{max-width:1000px}}@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-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-auto{margin-top:auto}.mr-auto{margin-right:auto}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.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-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.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-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.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-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.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-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.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-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.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-75{height:calc(var(--spacing) * 75)}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-2\/3{width:66.6667%}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.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%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.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-cover-crop{max-width:var(--container-cover-crop)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.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-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.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-2{grid-template-columns:repeat(2,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-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.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}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.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-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.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-y{border-block-style:var(--tw-border-style);border-block-width:1px}.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-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-full{background-color:var(--color-background-full)}.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-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--color-card-footer)}.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,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.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-lime-text{background-color:var(--color-status-lime-text)}.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-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.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))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.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))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.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-1{padding:var(--spacing)}.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-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.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-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.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-mono{font-family:var(--font-mono)}.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-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--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-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--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}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.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-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-100{opacity:1}.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-card{--tw-shadow:var(--elevation-card);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:var(--elevation-dropdown);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:var(--elevation-xs);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-background-full{--tw-ring-color:var(--color-background-full)}.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}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.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,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.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-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--color-card-hover)}}.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-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--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-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.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-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.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-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:ring-2[data-selected]{--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)}.data-selected\:ring-border-focus-ring[data-selected]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:ring-inset[data-selected]{--tw-ring-inset:inset}.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 not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:min-h-10{min-height:calc(var(--spacing) * 10)}.review-tight\:w-review-cover{width:var(--container-review-cover)}.review-tight\:px-3{padding-inline:calc(var(--spacing) * 3)}.review-tight\:py-2\.5{padding-block:calc(var(--spacing) * 2.5)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:flex-nowrap{flex-wrap:nowrap}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@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))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@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\: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))}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_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)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000080;--elevation-xs:0 1px 2px 0 #0000008c;--elevation-sm:0 1px 2px 0 #00000080, 0 2px 6px 0 #0006;--elevation-md:0 2px 4px -1px #00000080, 0 4px 10px -1px #00000073;--elevation-lg:0 4px 6px -2px #00000073, 0 10px 20px -3px #0000008c;--elevation-xl:0 10px 10px -5px #0006, 0 20px 30px -5px #0009;--elevation-card:0 1px 2px 0 #0009, 0 2px 8px 0 #00000073;--elevation-dropdown:0 1px 2px 0 #0009, 0 4px 12px 0 #00000073;--elevation-sidebar:0 1px 0 0 #0000004d, 0 1px 12px 0 #00000073, 0 0 1px 0 #000000b3;--elevation-waitlist:0 0 6px 0 #0000004d, 0 0 64px 0 #00000080, 0 0 1px 0 #000000b3, 0 1px 12px 0 #00000059, 0 1px 0 0 #0003}.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-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react [data-review-filter]{top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;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));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;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));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{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));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-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);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);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))}@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-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@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-divide-y-reverse:0;--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-leading:initial;--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-outline-style:solid;--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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--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;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:var(--elevation-sm);--drop-shadow-sm:0 1px 2px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--aspect-video:16 / 9;--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;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--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-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--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-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--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;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--color-card-footer:var(--card-footer,transparent);--color-card-hover:var(--card-hover,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}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-full{top:100%}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-\[5\.5px\]{right:-5.5px}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.-left-\[5\.5px\]{left:-5.5px}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.container{width:100%}@media (width>=600px){.container{max-width:600px}}@media (width>=900px){.container{max-width:900px}}@media (width>=1000px){.container{max-width:1000px}}@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-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-auto{margin-top:auto}.mr-auto{margin-right:auto}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.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)}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.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-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.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-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.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-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.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-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.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-75{height:calc(var(--spacing) * 75)}.h-\[2px\]{height:2px}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-0{width:0}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[2px\]{width:2px}.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%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.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-cover-crop{max-width:var(--container-cover-crop)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.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-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.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)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);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}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.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-2{grid-template-columns:repeat(2,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}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.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-\[2px\]{gap:2px}.gap-\[5px\]{gap:5px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.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}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.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-\[2px\]{border-radius:2px}.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-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.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-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.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-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border{border-color:var(--color-separator-border)}.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-border\/50{border-color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.border-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.bg-background{background-color:var(--color-background-primary-default)}.bg-background-full{background-color:var(--color-background-full)}.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-background\/70{background-color:var(--color-background-primary-default)}@supports (color:color-mix(in lab, red, red)){.bg-background\/70{background-color:color-mix(in oklab, var(--color-background-primary-default) 70%, transparent)}}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--color-card-footer)}.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,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-foreground{background-color:var(--color-text-primary)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-muted-foreground{background-color:var(--color-text-secondary)}.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-lime-text{background-color:var(--color-status-lime-text)}.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-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.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))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.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))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.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-1{padding:var(--spacing)}.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)}.p-\[1\.5px\]{padding:1.5px}.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-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block:1px}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.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-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.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-mono{font-family:var(--font-mono)}.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-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--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-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--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))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.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}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-accent-600{color:var(--color-accent-600)}.text-background{color:var(--color-background-primary-default)}.text-border,.text-border\/60{color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.text-border\/60{color:color-mix(in oklab, var(--color-separator-border) 60%, transparent)}}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.text-foreground{color:var(--color-text-primary)}.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-muted-foreground{color:var(--color-text-secondary)}.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-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-100{opacity:1}.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-card{--tw-shadow:var(--elevation-card);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:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--elevation-xl);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:var(--elevation-xs);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-background-full{--tw-ring-color:var(--color-background-full)}.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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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,)}.drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));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,)}.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,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.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}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}.group-hover\:bg-foreground:is(:where(.group):hover *){background-color:var(--color-text-primary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\:-left-4:after{content:var(--tw-content);left:calc(var(--spacing) * -4)}.after\:w-11:after{content:var(--tw-content);width:calc(var(--spacing) * 11)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.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,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.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-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--color-card-hover)}}.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-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:cursor-grabbing:active{cursor:grabbing}.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-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.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-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.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-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:ring-2[data-selected]{--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)}.data-selected\:ring-border-focus-ring[data-selected]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:ring-inset[data-selected]{--tw-ring-inset:inset}.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 not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:min-h-10{min-height:calc(var(--spacing) * 10)}.review-tight\:w-review-cover{width:var(--container-review-cover)}.review-tight\:px-3{padding-inline:calc(var(--spacing) * 3)}.review-tight\:py-2\.5{padding-block:calc(var(--spacing) * 2.5)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:flex-nowrap{flex-wrap:nowrap}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@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))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@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\: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))}}.dark\:text-border:where(.dark,.dark *),.dark\:text-border\/50:where(.dark,.dark *){color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.dark\:text-border\/50:where(.dark,.dark *){color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--color-text-secondary)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--color-separator-border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--color-chart-track)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_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}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-text-secondary)}@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)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000080;--elevation-xs:0 1px 2px 0 #0000008c;--elevation-sm:0 1px 2px 0 #00000080, 0 2px 6px 0 #0006;--elevation-md:0 2px 4px -1px #00000080, 0 4px 10px -1px #00000073;--elevation-lg:0 4px 6px -2px #00000073, 0 10px 20px -3px #0000008c;--elevation-xl:0 10px 10px -5px #0006, 0 20px 30px -5px #0009;--elevation-card:0 1px 2px 0 #0009, 0 2px 8px 0 #00000073;--elevation-dropdown:0 1px 2px 0 #0009, 0 4px 12px 0 #00000073;--elevation-sidebar:0 1px 0 0 #0000004d, 0 1px 12px 0 #00000073, 0 0 1px 0 #000000b3;--elevation-waitlist:0 0 6px 0 #0000004d, 0 0 64px 0 #00000080, 0 0 1px 0 #000000b3, 0 1px 12px 0 #00000059, 0 1px 0 0 #0003}.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-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react [data-review-filter]{top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;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));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;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));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{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));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-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);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);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))}@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-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@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-leading{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@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}@keyframes spin{to{transform:rotate(360deg)}}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 39dd4909e..5f48a7b39 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -1,16 +1,30 @@
import { LOC as e, fmtDur as t, fmtSize as n, mapLimit as r, requestErrorMessage as i, siteMarkUrl as a } from "/js/core.js";
import { MEDIA_SOURCE_ICONS as o, attachOverlayScrollbar as s, confirmModal as c, setCollapseOpen as l } from "/js/ui-components.js";
//#region \0rolldown/runtime.js
-var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, m = Object.getPrototypeOf, h = Object.prototype.hasOwnProperty, g = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), _ = (e, t, n, r) => {
+var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, m = Object.getPrototypeOf, h = Object.prototype.hasOwnProperty, g = (e, t, n) => () => {
+ if (n) throw n[0];
+ try {
+ return e && (t = e(e = 0)), t;
+ } catch (e) {
+ throw n = [e], e;
+ }
+}, _ = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), v = (e, t) => {
+ let n = {};
+ for (var r in e) d(n, r, {
+ get: e[r],
+ enumerable: !0
+ });
+ return t || d(n, Symbol.toStringTag, { value: "Module" }), n;
+}, y = (e, t, n, r) => {
if (t && typeof t == "object" || typeof t == "function") for (var i = p(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !h.call(e, s) && s !== n && d(e, s, {
get: ((e) => t[e]).bind(null, s),
enumerable: !(r = f(t, s)) || r.enumerable
});
return e;
-}, v = (e, t, n) => (n = e == null ? {} : u(m(e)), _(t || !e || !e.__esModule || !h.call(e, "default") ? d(n, "default", {
+}, b = (e, t, n) => (n = e == null ? {} : u(m(e)), y(t || !e || !e.__esModule || !h.call(e, "default") ? d(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), y = /* @__PURE__ */ g(((e) => {
+}) : n, e)), x = (e) => h.call(e, "module.exports") ? e["module.exports"] : y(d({}, "__esModule", { value: !0 }), e), S = /* @__PURE__ */ _(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
function h(e) {
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -123,14 +137,14 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
}
return c;
}
- function ne(e, t, n) {
+ function N(e, t, n) {
if (e == null) return e;
var r = [], i = 0;
return te(e, r, "", "", function(e) {
return t.call(n, e, i++);
}), r;
}
- function N(e) {
+ function P(e) {
if (e._status === -1) {
var t = e._result, n = t();
n.then(function(t) {
@@ -142,7 +156,7 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
if (e._status === 1) return e._result.default;
throw e._result;
}
- var re = typeof reportError == "function" ? reportError : function(e) {
+ var ne = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -157,40 +171,40 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
}
console.error(e);
};
- function ie(e) {
+ function re(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
var r = e(), i = T.S;
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, re);
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ne);
} catch (e) {
- re(e);
+ ne(e);
} finally {
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function ae(e) {
+ function F(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 ie(ae.bind(null, e));
+ } else re(F.bind(null, e));
}
- var oe = {
- map: ne,
+ var ie = {
+ map: N,
forEach: function(e, t, n) {
- ne(e, function() {
+ N(e, function() {
t.apply(this, arguments);
}, n);
},
count: function(e) {
var t = 0;
- return ne(e, function() {
+ return N(e, function() {
t++;
}), t;
},
toArray: function(e) {
- return ne(e, function(e) {
+ return N(e, function(e) {
return e;
}) || [];
},
@@ -199,12 +213,12 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
return e;
}
};
- 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 = {
+ e.Activity = f, e.Children = ie, 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 = ae, e.cache = function(e) {
+ }, e.addTransitionType = F, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -258,7 +272,7 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
_status: -1,
_result: e
},
- _init: N
+ _init: P
};
}, e.memo = function(e, t) {
return {
@@ -266,7 +280,7 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = ie, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = re, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -305,9 +319,9 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), b = /* @__PURE__ */ g(((e, t) => {
- t.exports = y();
-})), x = /* @__PURE__ */ g(((e) => {
+})), C = /* @__PURE__ */ _(((e, t) => {
+ t.exports = S();
+})), w = /* @__PURE__ */ _(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -322,25 +336,25 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), S = /* @__PURE__ */ g(((e, t) => {
- t.exports = x();
-})), C = /* @__PURE__ */ v(b(), 1), w = S(), T = C.createContext(void 0), E = (e) => {
- let t = C.useContext(T);
+})), T = /* @__PURE__ */ _(((e, t) => {
+ t.exports = w();
+})), E = /* @__PURE__ */ b(C(), 1), D = T(), O = E.createContext(void 0), k = (e) => {
+ let t = E.useContext(O);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, D = ({ client: e, children: t }) => (C.useEffect(() => (e.mount(), () => {
+}, A = ({ client: e, children: t }) => (E.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, w.jsx)(T.Provider, {
+}), [e]), /* @__PURE__ */ (0, D.jsx)(O.Provider, {
value: e,
children: t
-})), O = {
+})), j = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, k = new class {
- #e = O;
+}, M = new class {
+ #e = j;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -357,31 +371,31 @@ var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescr
this.#e.clearInterval(e);
}
}();
-function A(e) {
+function ee(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var j = typeof window > "u" || "Deno" in globalThis;
-function M() {}
-function ee(e, t) {
+var te = typeof window > "u" || "Deno" in globalThis;
+function N() {}
+function P(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function te(e) {
+function ne(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function ne(e, t) {
+function re(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function N(e, t) {
+function F(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function re(e, t) {
+function ie(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== ae(o, t.options)) return !1;
- } else if (!se(t.queryKey, o)) return !1;
+ if (t.queryHash !== oe(o, t.options)) return !1;
+ } else if (!ce(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -389,68 +403,68 @@ function re(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function ie(e, t) {
+function ae(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (oe(t.options.mutationKey) !== oe(a)) return !1;
- } else if (!se(t.options.mutationKey, a)) return !1;
+ if (se(t.options.mutationKey) !== se(a)) return !1;
+ } else if (!ce(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
-function ae(e, t) {
- return (t?.queryKeyHashFn || oe)(e);
+function oe(e, t) {
+ return (t?.queryKeyHashFn || se)(e);
}
-function oe(e) {
- return JSON.stringify(e, (e, t) => fe(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function se(e) {
+ return JSON.stringify(e, (e, t) => I(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function se(e, t) {
+function ce(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)) {
if (t.length > e.length) return !1;
- for (let n = 0; n < t.length; n++) if (!se(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!ce(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!se(e[r], t[r])) return !1;
+ for (let r of n) if (!ce(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var ce = Object.prototype.hasOwnProperty;
-function le(e, t, n = 0) {
+var le = Object.prototype.hasOwnProperty;
+function ue(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = de(e) && de(t);
- if (!r && !(fe(e) && fe(t))) return t;
+ let r = fe(e) && fe(t);
+ if (!r && !(I(e) && I(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 : ce.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : le.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = le(u, d, n + 1);
+ let f = ue(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function ue(e, t) {
+function de(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 de(e) {
+function fe(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function fe(e) {
+function I(e) {
if (!pe(e)) return !1;
let t = Object.getPrototypeOf(e), n = t?.constructor;
if (n === void 0) return !0;
@@ -463,31 +477,31 @@ function pe(e) {
}
function me(e) {
return new Promise((t) => {
- k.setTimeout(t, e);
+ M.setTimeout(t, e);
});
}
-function P(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : le(e, t);
+function he(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : ue(e, t);
}
-function he(e) {
+function ge(e) {
return e;
}
-function ge(e, t, n = 0) {
+function _e(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function _e(e, t, n = 0) {
+function ve(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var ve = Symbol();
-function ye(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === ve ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
-}
+var ye = Symbol();
function be(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === ye ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function xe(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function xe(e, t, n) {
+function Se(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -496,7 +510,7 @@ function xe(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var Se = () => j, Ce = () => Se(), we = class {
+var Ce = () => te, we = () => Ce(), Te = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -510,7 +524,7 @@ var Se = () => j, Ce = () => Se(), we = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, Te = new class extends we {
+}, Ee = new class extends Te {
#e;
#t;
#n;
@@ -547,13 +561,13 @@ var Se = () => j, Ce = () => Se(), we = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), Ee = A;
-function De() {
+}(), De = ee;
+function Oe() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = Ee, a = (r) => {
+ }, i = De, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -595,7 +609,7 @@ function De() {
}
};
}
-var Oe = De(), ke = new class extends we {
+var ke = Oe(), Ae = new class extends Te {
#e = !0;
#t;
#n;
@@ -629,32 +643,32 @@ var Oe = De(), ke = new class extends we {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Ae(e) {
+function je(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function je(e) {
- return (e ?? "online") !== "online" || ke.isOnline();
+function Me(e) {
+ return (e ?? "online") !== "online" || Ae.isOnline();
}
-var Me = class extends Error {
+var Ne = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Ne(e) {
+function Pe(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(M);
+ s.catch(N);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new Me(t);
+ let n = new Ne(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => Te.isFocused() && (e.networkMode === "always" || ke.isOnline()) && e.canRun(), p = () => je(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => Ee.isFocused() && (e.networkMode === "always" || Ae.isOnline()) && e.canRun(), p = () => Me(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -674,7 +688,7 @@ function Ne(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (Ce() ? 0 : 3), a = e.retryDelay ?? Ae, 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 ?? (we() ? 0 : 3), a = e.retryDelay ?? je, 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;
@@ -697,34 +711,34 @@ function Ne(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var Pe = class {
+var Fe = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), te(this.gcTime) && (this.#e = k.setTimeout(() => {
+ this.clearGcTimeout(), ne(this.gcTime) && (this.#e = M.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (Ce() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (we() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (k.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (M.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function Fe(e) {
+function Ie(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) => {
- xe(e, () => t.signal, () => n = !0);
- }, u = ye(t.options, t.fetchOptions), d = async (e, r, i) => {
+ Se(e, () => t.signal, () => n = !0);
+ }, u = be(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 = (() => {
@@ -736,14 +750,14 @@ function Fe(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? _e : ge;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? ve : _e;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Le : Ie, n = {
+ let e = i === "backward", t = e ? Re : Le, n = {
pages: a,
pageParams: o
};
@@ -751,7 +765,7 @@ function Fe(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : Ie(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Le(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -766,16 +780,16 @@ function Fe(e) {
}, n) : l;
} };
}
-function Ie(e, { pages: t, pageParams: n }) {
+function Le(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 Le(e, { pages: t, pageParams: n }) {
+function Re(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 Re = class extends Pe {
+var ze = class extends Fe {
#e;
#t;
#n;
@@ -785,7 +799,7 @@ var Re = class extends Pe {
#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 = Ve(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 = He(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -801,15 +815,15 @@ var Re = class extends Pe {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Ve(this.options);
- e.data !== void 0 && (this.setState(Be(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = He(this.options);
+ e.data !== void 0 && (this.setState(Ve(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = P(this.state.data, e, this.options);
+ let n = he(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -825,7 +839,7 @@ var Re = class extends Pe {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(M).catch(M) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(N).catch(N) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -837,22 +851,22 @@ var Re = class extends Pe {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => N(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => F(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ve || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ye || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => N(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => F(e.options.staleTime, this) === "static");
}
isStale() {
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
}
isStaleByTime(e = 0) {
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ne(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !re(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -896,7 +910,7 @@ var Re = class extends Pe {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = ye(this.options, t), n = (() => {
+ let e = be(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -916,15 +930,15 @@ var Re = class extends Pe {
};
return r(e), e;
})();
- (this.#e === "infinite" ? Fe(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" ? Ie(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 = Ne({
+ let o = this.#a = Pe({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof Me && e.revert && this.setState({
+ e instanceof Ne && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -952,7 +966,7 @@ var Re = class extends Pe {
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 Me) {
+ if (e instanceof Ne) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -985,13 +999,13 @@ var Re = class extends Pe {
};
case "fetch": return {
...t,
- ...ze(t.data, this.options),
+ ...Be(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Be(e.data, e.dataUpdatedAt),
+ ...Ve(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1023,7 +1037,7 @@ var Re = class extends Pe {
};
}
};
- this.state = t(this.state), Oe.batch(() => {
+ this.state = t(this.state), ke.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1034,18 +1048,18 @@ var Re = class extends Pe {
});
}
};
-function ze(e, t) {
+function Be(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: je(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Me(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Be(e, t) {
+function Ve(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1054,7 +1068,7 @@ function Be(e, t) {
status: "success"
};
}
-function Ve(e) {
+function He(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,
@@ -1073,7 +1087,7 @@ function Ve(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var He = class extends we {
+var Ue = class extends Te {
#e;
#t = void 0;
#n = void 0;
@@ -1095,36 +1109,36 @@ var He = class extends we {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), We(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), Ge(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Ge(this.#t, this.options, this.options.refetchOnReconnect);
+ return Ke(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Ge(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return Ke(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
}
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 N(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 && !ue(this.options, t) && this.#e.getQueryCache().notify({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof F(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 && !de(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && Ke(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(t.enabled, this.#t) || N(this.options.staleTime, this.#t) !== N(t.staleTime, this.#t)) && this.#g();
+ r && qe(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(t.enabled, this.#t) || F(this.options.staleTime, this.#t) !== F(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(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 ue(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return de(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1163,44 +1177,44 @@ var He = class extends we {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(M)), t;
+ return e?.throwOnError || (t = t.catch(N)), t;
}
#h(e) {
- return !Ce() && N(this.options.enabled, this.#t) !== !1 && te(e);
+ return !we() && F(this.options.enabled, this.#t) !== !1 && ne(e);
}
#g() {
this.#b();
- let e = N(this.options.staleTime, this.#t);
+ let e = F(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = ne(this.#r.dataUpdatedAt, e) + 1;
- this.#u = k.setTimeout(() => {
+ let t = re(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = M.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
#_() {
- return N(this.options.refetchInterval, this.#t) ?? !1;
+ return F(this.options.refetchInterval, this.#t) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = k.setInterval(() => {
- (this.options.refetchIntervalInBackground || Te.isFocused()) && this.#m();
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = M.setInterval(() => {
+ (this.options.refetchIntervalInBackground || Ee.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (k.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (M.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (k.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (M.clearInterval(this.#d), this.#d = void 0);
}
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 && We(e, t), o = i && Ke(e, n, t, r);
+ let i = this.hasListeners(), a = !i && Ge(e, t), o = i && qe(e, n, t, r);
(a || o) && (l = {
...l,
- ...ze(c.data, e.options)
+ ...Be(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1208,12 +1222,12 @@ var He = class extends we {
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 = P(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 = he(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 = P(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = he(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1243,14 +1257,14 @@ var He = class extends we {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: qe(e, t),
+ isStale: Je(e, t),
refetch: this.refetch,
- isEnabled: N(t.enabled, e) !== !1
+ isEnabled: F(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), ue(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), de(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1262,7 +1276,7 @@ var He = class extends we {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- Oe.batch(() => {
+ ke.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1281,34 +1295,34 @@ var He = class extends we {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function Ue(e, t) {
- return N(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || N(t.retryOnMount, e) !== !1);
-}
function We(e, t) {
- return Ue(e, t) || e.state.data !== void 0 && Ge(e, t, t.refetchOnMount);
+ return F(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || F(t.retryOnMount, e) !== !1);
+}
+function Ge(e, t) {
+ return We(e, t) || e.state.data !== void 0 && Ke(e, t, t.refetchOnMount);
}
-function Ge(e, t, n) {
- if (N(t.enabled, e) !== !1 && N(t.staleTime, e) !== "static") {
- let r = N(n, e);
- return r === "always" || r !== !1 && qe(e, t);
+function Ke(e, t, n) {
+ if (F(t.enabled, e) !== !1 && F(t.staleTime, e) !== "static") {
+ let r = F(n, e);
+ return r === "always" || r !== !1 && Je(e, t);
}
return !1;
}
-function Ke(e, t, n, r) {
- return (e !== t || N(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && qe(e, n);
+function qe(e, t, n, r) {
+ return (e !== t || F(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Je(e, n);
}
-function qe(e, t) {
- return N(t.enabled, e) !== !1 && e.isStaleByTime(N(t.staleTime, e));
+function Je(e, t) {
+ return F(t.enabled, e) !== !1 && e.isStaleByTime(F(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var Je = class extends Pe {
+var Ye = class extends Fe {
#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 || Ye(), 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 || Xe(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1343,7 +1357,7 @@ var Je = class extends Pe {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = Ne({
+ }, r = this.#r = Pe({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -1459,7 +1473,7 @@ var Je = class extends Pe {
};
}
};
- this.state = t(this.state), Oe.batch(() => {
+ this.state = t(this.state), ke.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1470,7 +1484,7 @@ var Je = class extends Pe {
});
}
};
-function Ye() {
+function Xe() {
return {
context: void 0,
data: void 0,
@@ -1485,7 +1499,7 @@ function Ye() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var Xe = class extends we {
+var Ze = class extends Te {
#e;
#t;
#n;
@@ -1493,7 +1507,7 @@ var Xe = class extends we {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Je({
+ let r = new Ye({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1504,7 +1518,7 @@ var Xe = class extends we {
}
add(e) {
this.#e.add(e);
- let t = Ze(e);
+ let t = Qe(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -1516,7 +1530,7 @@ var Xe = class extends we {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = Ze(e);
+ let t = Qe(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1533,7 +1547,7 @@ var Xe = class extends we {
});
}
canRun(e) {
- let t = Ze(e);
+ let t = Qe(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -1541,11 +1555,11 @@ var Xe = class extends we {
return !0;
}
runNext(e) {
- let t = Ze(e);
+ let t = Qe(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- Oe.batch(() => {
+ ke.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1562,13 +1576,13 @@ var Xe = class extends we {
exact: !0,
...e
};
- return this.getAll().find((e) => ie(t, e));
+ return this.getAll().find((e) => ae(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => ie(e, t));
+ return this.getAll().filter((t) => ae(e, t));
}
notify(e) {
- Oe.batch(() => {
+ ke.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1576,15 +1590,15 @@ var Xe = class extends we {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return Oe.batch(() => Promise.all(e.map((e) => e.continue().catch(M))));
+ return ke.batch(() => Promise.all(e.map((e) => e.continue().catch(N))));
}
};
-function Ze(e) {
+function Qe(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var Qe = class extends we {
+var $e = class extends Te {
#e;
#t = void 0;
#n;
@@ -1597,11 +1611,11 @@ var Qe = class extends we {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), ue(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), de(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && oe(t.mutationKey) !== oe(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && se(t.mutationKey) !== se(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());
@@ -1622,7 +1636,7 @@ var Qe = class extends we {
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 ?? Ye();
+ let e = this.#n?.state ?? Xe();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -1634,7 +1648,7 @@ var Qe = class extends we {
};
}
#a(e) {
- Oe.batch(() => {
+ ke.batch(() => {
if (this.#r && this.hasListeners()) {
let t = this.#t.variables, n = this.#t.context, r = {
client: this.#e,
@@ -1670,14 +1684,14 @@ var Qe = class extends we {
});
});
}
-}, $e = class extends we {
+}, et = class extends Te {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? ae(r, t), a = this.get(i);
- return a || (a = new Re({
+ let r = t.queryKey, i = t.queryHash ?? oe(r, t), a = this.get(i);
+ return a || (a = new ze({
client: e,
queryKey: r,
queryHash: i,
@@ -1700,7 +1714,7 @@ var Qe = class extends we {
}));
}
clear() {
- Oe.batch(() => {
+ ke.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1717,34 +1731,34 @@ var Qe = class extends we {
exact: !0,
...e
};
- return this.getAll().find((e) => re(t, e));
+ return this.getAll().find((e) => ie(t, e));
}
findAll(e = {}) {
let t = this.getAll();
- return Object.keys(e).length > 0 ? t.filter((t) => re(e, t)) : t;
+ return Object.keys(e).length > 0 ? t.filter((t) => ie(e, t)) : t;
}
notify(e) {
- Oe.batch(() => {
+ ke.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- Oe.batch(() => {
+ ke.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- Oe.batch(() => {
+ ke.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, et = class {
+}, tt = class {
#e;
#t;
#n;
@@ -1754,12 +1768,12 @@ var Qe = class extends we {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new $e(), this.#t = e.mutationCache || new Xe(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new et(), this.#t = e.mutationCache || new Ze(), 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 = Te.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = Ee.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = ke.subscribe(async (e) => {
+ }), this.#s = Ae.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1784,20 +1798,20 @@ var Qe = class extends we {
}
ensureQueryData(e) {
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(N(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(F(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
}
getQueriesData(e) {
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
}
setQueryData(e, t, n) {
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ee(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = P(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return Oe.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return ke.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1805,7 +1819,7 @@ var Qe = class extends we {
}
removeQueries(e) {
let t = this.#e;
- Oe.batch(() => {
+ ke.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1813,7 +1827,7 @@ var Qe = class extends we {
}
resetQueries(e, t) {
let n = this.#e;
- return Oe.batch(() => {
+ return ke.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1827,11 +1841,11 @@ var Qe = class extends we {
let n = {
revert: !0,
...t
- }, r = Oe.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(M).catch(M);
+ }, r = ke.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(N).catch(N);
}
invalidateQueries(e, t = {}) {
- return Oe.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return ke.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1842,26 +1856,26 @@ var Qe = class extends we {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = Oe.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = ke.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(M)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(N)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(M);
+ return Promise.all(r).then(N);
}
async query(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
- let n = this.#e.build(this, t), r = n.isStaleByTime(N(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(F(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
return i ? i(r) : r;
}
fetchQuery(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
let n = this.#e.build(this, t);
- return n.isStaleByTime(N(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(F(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(M).catch(M);
+ return this.fetchQuery(e).then(N).catch(N);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -1870,13 +1884,13 @@ var Qe = class extends we {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(M).catch(M);
+ return this.fetchInfiniteQuery(e).then(N).catch(N);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return ke.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Ae.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1891,7 +1905,7 @@ var Qe = class extends we {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(oe(e), {
+ this.#r.set(se(e), {
queryKey: e,
defaultOptions: t
});
@@ -1899,11 +1913,11 @@ var Qe = class extends we {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- se(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ ce(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(oe(e), {
+ this.#i.set(se(e), {
mutationKey: e,
defaultOptions: t
});
@@ -1911,7 +1925,7 @@ var Qe = class extends we {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- se(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ ce(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -1922,7 +1936,7 @@ var Qe = class extends we {
...e,
_defaulted: !0
};
- return t.queryHash ||= ae(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 === ve && (t.enabled = !1), t;
+ return t.queryHash ||= oe(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 === ye && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -1935,11 +1949,11 @@ var Qe = class extends we {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, tt = C.createContext(!1), nt = () => C.useContext(tt);
-tt.Provider;
+}, nt = E.createContext(!1), rt = () => E.useContext(nt);
+nt.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function rt() {
+function it() {
let e = !1;
return {
clearReset: () => {
@@ -1951,34 +1965,34 @@ function rt() {
isReset: () => e
};
}
-var it = C.createContext(rt()), at = () => C.useContext(it), ot = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? be(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var at = E.createContext(it()), ot = () => E.useContext(at), st = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? xe(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, st = (e) => {
- C.useEffect(() => {
+}, ct = (e) => {
+ E.useEffect(() => {
e.clearReset();
}, [e]);
-}, ct = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || be(n, [e.error, r])), lt = (e) => {
+}, lt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || xe(n, [e.error, r])), ut = (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));
}
-}, ut = (e, t) => e?.suspense && t.isPending, dt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, dt = (e, t) => e?.suspense && t.isPending, ft = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function ft(e, t, n) {
- let r = nt(), i = at(), a = E(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, lt(o), ot(o, i, s), st(i);
- let [l] = C.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (C.useSyncExternalStore(C.useCallback((e) => {
- let t = d ? l.subscribe(Oe.batchCalls(e)) : M;
+function pt(e, t, n) {
+ let r = rt(), i = ot(), a = k(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, ut(o), st(o, i, s), ct(i);
+ let [l] = E.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (E.useSyncExternalStore(E.useCallback((e) => {
+ let t = d ? l.subscribe(ke.batchCalls(e)) : N;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), C.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), E.useEffect(() => {
l.setOptions(o);
- }, [o, l]), ut(o, u)) throw dt(o, l, i);
- if (ct({
+ }, [o, l]), dt(o, u)) throw ft(o, l, i);
+ if (lt({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1989,20 +2003,20 @@ function ft(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function pt(e, t) {
- return ft(e, He, t);
+function mt(e, t) {
+ return pt(e, Ue, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function mt(e, t) {
- let n = E(t), [r] = C.useState(() => new Qe(n, e));
- C.useEffect(() => {
+function ht(e, t) {
+ let n = k(t), [r] = E.useState(() => new $e(n, e));
+ E.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = C.useSyncExternalStore(C.useCallback((e) => r.subscribe(Oe.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = C.useCallback((...e) => {
- r.mutate(e[0], e[1]).catch(M);
+ let i = E.useSyncExternalStore(E.useCallback((e) => r.subscribe(ke.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = E.useCallback((...e) => {
+ r.mutate(e[0], e[1]).catch(N);
}, [r]);
- if (i.error && be(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && xe(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -2010,8 +2024,57 @@ function mt(e, t) {
};
}
//#endregion
+//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
+function gt(e) {
+ let t = (0, E.useRef)(null);
+ return t.current === null && (t.current = e()), t.current;
+}
+//#endregion
+//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
+function _t(e, t) {
+ if (e?.inherit && t) {
+ let { inherit: n, ...r } = e;
+ return {
+ ...t,
+ ...r
+ };
+ }
+ return e;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
+var vt = (0, E.createContext)({
+ transformPagePoint: (e) => e,
+ isStatic: !1,
+ reducedMotion: "never"
+}), yt = /* @__PURE__ */ v({ default: () => bt }), bt, xt = g((() => {
+ throw bt = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+}));
+try {
+ (xt(), x(yt)).default;
+} catch {}
+//#endregion
+//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
+function St({ children: e, isValidProp: t, ...n }) {
+ let r = (0, E.useContext)(vt);
+ n = {
+ ...r,
+ ...n
+ }, n.transition = _t(n.transition, r.transition), n.isStatic = gt(() => n.isStatic);
+ let i = (0, E.useMemo)(() => n, [
+ JSON.stringify(n.transition),
+ n.transformPagePoint,
+ n.reducedMotion,
+ n.skipAnimations
+ ]);
+ return (0, D.jsx)(vt.Provider, {
+ value: i,
+ children: e
+ });
+}
+//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var ht = class {
+var Ct = 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;
}
@@ -2026,22 +2089,22 @@ var ht = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, gt = class extends ht {
+}, wt = class extends Ct {
filter(e, t, n) {
- let [r, i] = bt(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Ot(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ht {
+(class extends Ct {
static {
this.type = "header";
}
});
-var _t = class extends ht {
+var Tt = class extends Ct {
static {
this.type = "loader";
}
-}, vt = class extends gt {
+}, Et = class extends wt {
static {
this.type = "item";
}
@@ -2053,7 +2116,7 @@ var _t = class extends ht {
return null;
}
};
-(class extends gt {
+(class extends wt {
static {
this.type = "section";
}
@@ -2066,7 +2129,7 @@ var _t = class extends ht {
return null;
}
});
-var yt = class {
+var Dt = class {
get size() {
return this.itemCount;
}
@@ -2141,14 +2204,14 @@ var yt = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = bt(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Ot(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 bt(e, t, n, r) {
+function Ot(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2163,7 +2226,7 @@ function bt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var xt = class {
+var kt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2244,7 +2307,7 @@ var xt = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, St = class e extends xt {
+}, At = class e extends kt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2295,7 +2358,7 @@ var xt = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Ct = class extends xt {
+}, jt = class extends kt {
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;
}
@@ -2303,7 +2366,7 @@ var xt = class {
return !0;
}
createElement(e) {
- return new St(e, this);
+ return new At(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2325,8 +2388,8 @@ var xt = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof St && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof St ? (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 At && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof At ? (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() {
@@ -2345,19 +2408,19 @@ var xt = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function wt(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, C.useMemo)(() => void 0, [t]), s = (0, C.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, C.useMemo)(() => {
+function Mt(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, E.useMemo)(() => void 0, [t]), s = (0, E.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, E.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Tt(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Nt(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
r != null && o.props.id == null && c != null && (c = r + ":" + c);
let l = c ?? e.length;
- o = (0, C.cloneElement)(o, i ? {
+ o = (0, E.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -2376,7 +2439,7 @@ function wt(e) {
i
]);
}
-function Tt(e) {
+function Nt(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2386,26 +2449,26 @@ function Tt(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function Et(e) {
- if (Ot()) e.focus({ preventScroll: !0 });
+function Pt(e) {
+ if (It()) e.focus({ preventScroll: !0 });
else {
- let t = kt(e);
- e.focus(), At(t);
+ let t = Lt(e);
+ e.focus(), Rt(t);
}
}
-var Dt = null;
-function Ot() {
- if (Dt == null) {
- Dt = !1;
+var Ft = null;
+function It() {
+ if (Ft == null) {
+ Ft = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return Dt = !0, !0;
+ return Ft = !0, !0;
} });
} catch {}
}
- return Dt;
+ return Ft;
}
-function kt(e) {
+function Lt(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,
@@ -2418,25 +2481,25 @@ function kt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function At(e) {
+function Rt(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 F = (e) => Nt(e) ? e.document : Pt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), jt = (e) => F(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Mt(e) {
+var L = (e) => Vt(e) ? e.document : Ht(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), zt = (e) => L(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function Bt(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Nt(e) {
+function Vt(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Pt(e) {
- return Mt(e) && e.nodeType === 9;
+function Ht(e) {
+ return Bt(e) && e.nodeType === 9;
}
-function Ft(e) {
- return Mt(e) && e.nodeType === 11 && "host" in e;
+function Ut(e) {
+ return Bt(e) && e.nodeType === 11 && "host" in e;
}
-function It(e, t, n, r) {
+function Wt(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);
@@ -2444,7 +2507,7 @@ function It(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Lt(e, t, n, r) {
+function Gt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2459,73 +2522,73 @@ function Lt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Rt = !1;
-function zt() {
- return Rt;
+var Kt = !1;
+function qt() {
+ return Kt;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function I(e, t) {
- if (!zt()) return t && e ? e.contains(t) : !1;
+function R(e, t) {
+ if (!qt()) 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 : Ft(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Ut(n) ? n.host : n.parentNode;
}
return !1;
}
-var Bt = (e = document) => {
- if (!zt()) return e.activeElement;
+var Jt = (e = document) => {
+ if (!qt()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function L(e) {
- if (zt() && e.target instanceof Element && e.target.shadowRoot) {
+function z(e) {
+ if (qt() && 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 Vt(e, t) {
+function Yt(e, t) {
if (t === null) return [];
- t ??= jt(e);
+ t ??= zt(e);
let n = [t];
- if (!zt() || !e || e === t) return n;
+ if (!qt() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Ft(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Ut(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Ht(e) {
+function Xt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = jt(e);
+ let t = e.getRootNode(), n = zt(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 Ut = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Wt(e) {
- let t = jt(e);
+var Zt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Qt(e) {
+ let t = zt(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 } = jt(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = zt(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Gt(e, t) {
+function $t(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 Kt(e, t) {
- return Ut ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Wt(e) && Gt(e, t) && (!e.parentElement || Kt(e.parentElement, e));
+function en(e, t) {
+ return Zt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Qt(e) && $t(e, t) && (!e.parentElement || en(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var qt = [
+var tn = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2540,60 +2603,60 @@ var qt = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Jt = qt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-qt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Yt = qt.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Xt(e, t) {
- return e.matches(Jt) && !Qt(e) && (t?.skipVisibilityCheck || Kt(e));
+], nn = tn.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+tn.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var rn = tn.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function an(e, t) {
+ return e.matches(nn) && !sn(e) && (t?.skipVisibilityCheck || en(e));
}
-function Zt(e) {
- return e.matches(Yt) && Kt(e) && !Qt(e);
+function on(e) {
+ return e.matches(rn) && en(e) && !sn(e);
}
-function Qt(e) {
+function sn(e) {
let t = e;
for (; t != null;) {
- if (t instanceof jt(t).HTMLElement && t.inert) return !0;
+ if (t instanceof zt(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var $t = typeof document < "u" ? C.useLayoutEffect : () => {};
+var cn = typeof document < "u" ? E.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function en(e) {
+function ln(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function tn(e, t) {
+function un(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function nn(e) {
- let t = (0, C.useRef)({
+function dn(e) {
+ let t = (0, E.useRef)({
isFocused: !1,
observer: null
});
- return $t(() => {
+ return cn(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, C.useCallback)((n) => {
- let r = L(n);
+ }, []), (0, E.useCallback)((n) => {
+ let r = z(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 = en(r);
+ let t = ln(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 === Bt() ? null : Bt();
+ let e = n === Jt() ? null : Jt();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2606,83 +2669,83 @@ function nn(e) {
}
}, [e]);
}
-var rn = !1;
-function an(e) {
- for (; e && !Xt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = Bt(jt(e).document);
+var fn = !1;
+function pn(e) {
+ for (; e && !an(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Jt(zt(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Ft(n) ? n : jt(e), i = (t) => t === e || t != null && I(e, t), a = (e) => e === t || t != null && e != null && I(t, e);
- rn = !0;
+ let n = e?.getRootNode(), r = n != null && Ut(n) ? n : zt(e), i = (t) => t === e || t != null && R(e, t), a = (e) => e === t || t != null && e != null && R(t, e);
+ fn = !0;
let o = !1, s = (e) => {
- (a(L(e)) || o) && e.stopImmediatePropagation();
+ (a(z(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(L(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Et(t), d()));
+ (a(z(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Pt(t), d()));
}, l = (e) => {
- (i(L(e)) || o) && e.stopImmediatePropagation();
+ (i(z(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(L(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Et(t), d()));
+ (i(z(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Pt(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), rn = !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), fn = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function on(e) {
+function mn(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 sn(e) {
+function hn(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function cn(e) {
+function gn(e) {
let t = null;
return () => (t ??= e(), t);
}
-var ln = cn(function() {
- return sn(/^Mac/i);
-}), un = cn(function() {
- return sn(/^iPhone/i);
-}), dn = cn(function() {
- return sn(/^iPad/i) || ln() && navigator.maxTouchPoints > 1;
-}), fn = cn(function() {
- return un() || dn();
-}), pn = cn(function() {
- return ln() || fn();
-}), mn = cn(function() {
- return on(/AppleWebKit/i) && (fn() || !hn());
-}), hn = cn(function() {
- return on(/Chrome|CriOS|CrMo/i);
-}), gn = cn(function() {
- return on(/Android/i);
-}), _n = cn(function() {
- return on(/(Firefox|FxiOS)/i);
+var _n = gn(function() {
+ return hn(/^Mac/i);
+}), vn = gn(function() {
+ return hn(/^iPhone/i);
+}), yn = gn(function() {
+ return hn(/^iPad/i) || _n() && navigator.maxTouchPoints > 1;
+}), bn = gn(function() {
+ return vn() || yn();
+}), xn = gn(function() {
+ return _n() || bn();
+}), Sn = gn(function() {
+ return mn(/AppleWebKit/i) && (bn() || !Cn());
+}), Cn = gn(function() {
+ return mn(/Chrome|CriOS|CrMo/i);
+}), wn = gn(function() {
+ return mn(/Android/i);
+}), Tn = gn(function() {
+ return mn(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function vn(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : gn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function En(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : wn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function yn(e) {
- return !gn() && e.width === 0 && e.height === 0 || gn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Dn(e) {
+ return !wn() && e.width === 0 && e.height === 0 || wn() && 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 bn = /*#__PURE__*/ (0, C.createContext)({
+var On = /*#__PURE__*/ (0, E.createContext)({
isNative: !0,
- open: wn,
+ open: Mn,
useHref: (e) => e
});
-function xn() {
- return (0, C.useContext)(bn);
+function kn() {
+ return (0, E.useContext)(On);
}
-function Sn(e, t, n = !0) {
+function An(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !mn() && _n() && window.event?.type?.startsWith("key") && e.target === "_blank" && (ln() ? r = !0 : i = !0);
- let s = mn() && ln() && !dn() ? new KeyboardEvent("keydown", {
+ !Sn() && Tn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (_n() ? r = !0 : i = !0);
+ let s = Sn() && _n() && !yn() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2697,21 +2760,21 @@ function Sn(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- Sn.isOpening = n, Et(e), e.dispatchEvent(s), Sn.isOpening = !1;
+ An.isOpening = n, Pt(e), e.dispatchEvent(s), An.isOpening = !1;
}
-Sn.isOpening = !1;
-function Cn(e, t) {
+An.isOpening = !1;
+function jn(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 wn(e, t) {
- Cn(e, (e) => Sn(e, t));
+function Mn(e, t) {
+ jn(e, (e) => An(e, t));
}
-function Tn(e) {
- let t = xn().useHref(e.href ?? "");
+function Nn(e) {
+ let t = kn().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -2721,8 +2784,8 @@ function Tn(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function En(e) {
- let t = xn().useHref(e?.href ?? ""), n = {};
+function Pn(e) {
+ let t = kn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2735,133 +2798,133 @@ function En(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Dn = {
+var Fn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, On = /*#__PURE__*/ C.createContext(Dn), kn = /*#__PURE__*/ C.createContext(!1);
+}, In = /*#__PURE__*/ E.createContext(Fn), Ln = /*#__PURE__*/ E.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var An = /* @__PURE__ */ new WeakMap();
-function jn(e = !1) {
- let t = (0, C.useContext)(On), n = (0, C.useRef)(null);
+var Rn = /* @__PURE__ */ new WeakMap();
+function zn(e = !1) {
+ let t = (0, E.useContext)(In), n = (0, E.useRef)(null);
if (n.current === null && !e) {
- let e = C.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = E.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = An.get(e);
- n == null ? An.set(e, {
+ let n = Rn.get(e);
+ n == null ? Rn.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, An.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Rn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Mn(e) {
- let t = (0, C.useContext)(On), n = jn(!!e), r = `react-aria${t.prefix}`;
+function Bn(e) {
+ let t = (0, E.useContext)(In), n = zn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Nn(e) {
- let t = C.useId(), [n] = (0, C.useState)(Rn()), r = n ? "react-aria" : `react-aria${Dn.prefix}`;
+function Vn(e) {
+ let t = E.useId(), [n] = (0, E.useState)(Kn()), r = n ? "react-aria" : `react-aria${Fn.prefix}`;
return e || `${r}-${t}`;
}
-var Pn = typeof C.useId == "function" ? Nn : Mn;
-function Fn() {
+var Hn = typeof E.useId == "function" ? Vn : Bn;
+function Un() {
return !1;
}
-function In() {
+function Wn() {
return !0;
}
-function Ln(e) {
+function Gn(e) {
return () => {};
}
-function Rn() {
- return typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore(Ln, Fn, In) : (0, C.useContext)(kn);
+function Kn() {
+ return typeof E.useSyncExternalStore == "function" ? E.useSyncExternalStore(Gn, Un, Wn) : (0, E.useContext)(Ln);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var zn = null, Bn = /* @__PURE__ */ new Set(), Vn = /* @__PURE__ */ new Map(), Hn = !1, Un = !1, Wn = {
+var qn = null, Jn = /* @__PURE__ */ new Set(), Yn = /* @__PURE__ */ new Map(), Xn = !1, Zn = !1, Qn = {
Tab: !0,
Escape: !0
};
-function Gn(e, t) {
- for (let n of Bn) n(e, t);
+function $n(e, t) {
+ for (let n of Jn) n(e, t);
}
-function Kn(e) {
- return !(e.metaKey || !ln() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function er(e) {
+ return !(e.metaKey || !_n() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function qn(e) {
- Hn = !0, !Sn.isOpening && Kn(e) && (zn = "keyboard", Gn("keyboard", e));
+function tr(e) {
+ Xn = !0, !An.isOpening && er(e) && (qn = "keyboard", $n("keyboard", e));
}
-function Jn(e) {
- zn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Hn = !0, Gn("pointer", e));
+function nr(e) {
+ qn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Xn = !0, $n("pointer", e));
}
-function Yn(e) {
- !Sn.isOpening && vn(e) && (Hn = !0, zn = "virtual");
+function rr(e) {
+ !An.isOpening && En(e) && (Xn = !0, qn = "virtual");
}
-function Xn(e) {
- if (rn) return;
- let t = L(e), n = jt(t), r = F(t);
+function ir(e) {
+ if (fn) return;
+ let t = z(e), n = zt(t), r = L(t);
if (t === n) {
- Un = !0;
+ Zn = !0;
return;
}
- t === r || !e.isTrusted || (!Hn && !Un && (zn = "virtual", Gn("virtual", e)), Hn = !1, Un = !1);
+ t === r || !e.isTrusted || (!Xn && !Zn && (qn = "virtual", $n("virtual", e)), Xn = !1, Zn = !1);
}
-function Zn() {
- rn || (Hn = !1, Un = !0);
+function ar() {
+ fn || (Xn = !1, Zn = !0);
}
-function Qn(e) {
+function or(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = jt(e), n = F(e);
- if (Vn.get(t)) return;
+ let t = zt(e), n = L(e);
+ if (Yn.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Hn = !0, r.apply(this, arguments);
+ Xn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", qn, !0), n.addEventListener("keyup", qn, !0), n.addEventListener("click", Yn, !0), t.addEventListener("focus", Xn, !0), t.addEventListener("blur", Zn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Jn, !0), n.addEventListener("pointermove", Jn, !0), n.addEventListener("pointerup", Jn, !0)), t.addEventListener("beforeunload", () => {
- $n(e);
- }, { once: !0 }), Vn.set(t, { focus: r });
+ }), n.addEventListener("keydown", tr, !0), n.addEventListener("keyup", tr, !0), n.addEventListener("click", rr, !0), t.addEventListener("focus", ir, !0), t.addEventListener("blur", ar, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", nr, !0), n.addEventListener("pointermove", nr, !0), n.addEventListener("pointerup", nr, !0)), t.addEventListener("beforeunload", () => {
+ sr(e);
+ }, { once: !0 }), Yn.set(t, { focus: r });
}
-var $n = (e, t) => {
- let n = jt(e), r = F(e);
- t && r.removeEventListener("DOMContentLoaded", t), Vn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var sr = (e, t) => {
+ let n = zt(e), r = L(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Yn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Vn.get(n).focus
- }), r.removeEventListener("keydown", qn, !0), r.removeEventListener("keyup", qn, !0), r.removeEventListener("click", Yn, !0), n.removeEventListener("focus", Xn, !0), n.removeEventListener("blur", Zn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Jn, !0), r.removeEventListener("pointermove", Jn, !0), r.removeEventListener("pointerup", Jn, !0)), Vn.delete(n));
+ value: Yn.get(n).focus
+ }), r.removeEventListener("keydown", tr, !0), r.removeEventListener("keyup", tr, !0), r.removeEventListener("click", rr, !0), n.removeEventListener("focus", ir, !0), n.removeEventListener("blur", ar, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", nr, !0), r.removeEventListener("pointermove", nr, !0), r.removeEventListener("pointerup", nr, !0)), Yn.delete(n));
};
-function er(e) {
- let t = F(e), n;
+function cr(e) {
+ let t = L(e), n;
return t.readyState === "loading" ? (n = () => {
- Qn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Qn(e), () => $n(e, n);
+ or(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : or(e), () => sr(e, n);
}
-typeof document < "u" && er();
-function tr() {
- return zn !== "pointer";
+typeof document < "u" && cr();
+function lr() {
+ return qn !== "pointer";
}
-function nr() {
- return zn;
+function ur() {
+ return qn;
}
-function rr(e) {
- zn = e, Gn(e, null);
+function dr(e) {
+ qn = e, $n(e, null);
}
-function ir() {
- Qn();
- let [e, t] = (0, C.useState)(zn);
- return (0, C.useEffect)(() => {
+function fr() {
+ or();
+ let [e, t] = (0, E.useState)(qn);
+ return (0, E.useEffect)(() => {
let e = () => {
- t(zn);
+ t(qn);
};
- return Bn.add(e), () => {
- Bn.delete(e);
+ return Jn.add(e), () => {
+ Jn.delete(e);
};
- }, []), Rn() ? null : e;
+ }, []), Kn() ? null : e;
}
-var ar = /* @__PURE__ */ new Set([
+var pr = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2872,78 +2935,78 @@ var ar = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function or(e, t, n) {
- let r = n ? L(n) : void 0, i = F(r), a = jt(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 = Bt(i);
- return e = e || u instanceof o && !ar.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Wn[n.key]);
+function mr(e, t, n) {
+ let r = n ? z(n) : void 0, i = L(r), a = zt(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 = Jt(i);
+ return e = e || u instanceof o && !pr.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Qn[n.key]);
}
-function sr(e, t, n) {
- Qn(), (0, C.useEffect)(() => {
+function hr(e, t, n) {
+ or(), (0, E.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- or(!!n?.isTextInput, t, r) && e(tr());
+ mr(!!n?.isTextInput, t, r) && e(lr());
};
- return Bn.add(t), () => {
- Bn.delete(t);
+ return Jn.add(t), () => {
+ Jn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var cr = /* @__PURE__ */ new Map(), lr = /* @__PURE__ */ new Set();
-function ur() {
+var gr = /* @__PURE__ */ new Map(), _r = /* @__PURE__ */ new Set();
+function vr() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = L(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = cr.get(r);
- i || (i = /* @__PURE__ */ new Set(), cr.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = gr.get(r);
+ i || (i = /* @__PURE__ */ new Set(), gr.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = L(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = cr.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), cr.delete(r)), cr.size === 0)) {
- for (let e of lr) e();
- lr.clear();
+ let i = gr.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), gr.delete(r)), gr.size === 0)) {
+ for (let e of _r) e();
+ _r.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", ur) : ur());
-function dr() {
- for (let [e] of cr) "isConnected" in e && !e.isConnected && cr.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", vr) : vr());
+function yr() {
+ for (let [e] of gr) "isConnected" in e && !e.isConnected && gr.delete(e);
}
-function fr(e) {
+function br(e) {
requestAnimationFrame(() => {
- dr(), cr.size === 0 ? e() : lr.add(e);
+ yr(), gr.size === 0 ? e() : _r.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function pr(e) {
+function xr(e) {
if (!e.isConnected) return;
- let t = F(e);
- if (nr() === "virtual") {
- let n = Bt(t);
- fr(() => {
- let r = Bt(t);
- (r === n || r === t.body) && e.isConnected && Et(e);
+ let t = L(e);
+ if (ur() === "virtual") {
+ let n = Jt(t);
+ br(() => {
+ let r = Jt(t);
+ (r === n || r === t.body) && e.isConnected && Pt(e);
});
- } else Et(e);
+ } else Pt(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function mr(...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 hr(e) {
- let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(t), i = (0, C.useRef)(null), a = (0, C.useRef)(() => {
+function Cr(e) {
+ let [t, n] = (0, E.useState)(e), r = (0, E.useRef)(t), i = (0, E.useRef)(null), a = (0, E.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -2952,51 +3015,51 @@ function hr(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return $t(() => {
+ return cn(() => {
r.current = t, i.current && a.current();
- }), [t, (0, C.useCallback)((e) => {
+ }), [t, (0, E.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var gr = !!(typeof window < "u" && window.document && window.document.createElement), _r = /* @__PURE__ */ new Map(), vr;
-typeof FinalizationRegistry < "u" && (vr = new FinalizationRegistry((e) => {
- _r.delete(e);
+var wr = !!(typeof window < "u" && window.document && window.document.createElement), Tr = /* @__PURE__ */ new Map(), Er;
+typeof FinalizationRegistry < "u" && (Er = new FinalizationRegistry((e) => {
+ Tr.delete(e);
}));
-var yr = /* @__PURE__ */ new WeakMap();
-function br(e) {
- let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(null), i = Pn(t), a = (0, C.useRef)(null), o = yr.get(a);
- if (vr && o !== i && (o != null && vr.unregister(a), vr.register(a, i, a), yr.set(a, i)), gr) {
- let e = _r.get(i);
- e && !e.includes(r) ? e.push(r) : _r.set(i, [r]);
+var Dr = /* @__PURE__ */ new WeakMap();
+function Or(e) {
+ let [t, n] = (0, E.useState)(e), r = (0, E.useRef)(null), i = Hn(t), a = (0, E.useRef)(null), o = Dr.get(a);
+ if (Er && o !== i && (o != null && Er.unregister(a), Er.register(a, i, a), Dr.set(a, i)), wr) {
+ let e = Tr.get(i);
+ e && !e.includes(r) ? e.push(r) : Tr.set(i, [r]);
}
- return $t(() => {
+ return cn(() => {
let e = i;
return () => {
- vr && (vr.unregister(a), yr.delete(a)), _r.delete(e);
+ Er && (Er.unregister(a), Dr.delete(a)), Tr.delete(e);
};
- }, [i]), (0, C.useEffect)(() => {
+ }, [i]), (0, E.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function xr(e, t) {
+function kr(e, t) {
if (e === t) return e;
- let n = _r.get(e);
+ let n = Tr.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = _r.get(t);
+ let r = Tr.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Sr(e = []) {
- let t = br(), [n, r] = hr(t), i = (0, C.useCallback)(() => {
+function Ar(e = []) {
+ let t = Or(), [n, r] = Cr(t), i = (0, E.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return $t(i, [
+ return cn(i, [
t,
i,
...e
@@ -3004,60 +3067,60 @@ function Sr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Cr(...e) {
+function jr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = wr(e, t);
+ let r = Mr(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : wr(e[n], null);
+ typeof t == "function" ? t() : Mr(e[n], null);
});
};
};
}
-function wr(e, t) {
+function Mr(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Tr(e) {
+function Nr(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 = Tr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Nr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Er() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Tr(e)) && (r && (r += " "), r += t);
+function Pr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Nr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function R(...e) {
+function B(...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] = mr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Er(n, i) : e === "id" && n && i ? t.id = xr(n, i) : e === "ref" && n && i ? t.ref = Cr(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] = Pr(n, i) : e === "id" && n && i ? t.id = kr(n, i) : e === "ref" && n && i ? t.ref = jr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Dr(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, C.useCallback)((e) => {
- if (L(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = nn(a), s = (0, C.useCallback)((e) => {
- let t = L(e), r = F(t), a = r ? Bt(r) : Bt();
+function Fr(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, E.useCallback)((e) => {
+ if (z(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = dn(a), s = (0, E.useCallback)((e) => {
+ let t = z(e), r = L(t), a = r ? Jt(r) : Jt();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -3071,7 +3134,7 @@ function Dr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Or(e) {
+function Ir(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -3096,33 +3159,33 @@ function Or(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var kr = /* @__PURE__ */ new Set([
+var Lr = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Ar = [
+]), Rr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function jr(e) {
+function zr(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(ln() ? "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(_n() ? "Meta" : "Control"), t;
}
-function Mr(e) {
+function Br(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 Nr(e) {
- return Ar.filter((t) => e.has(t));
+function Vr(e) {
+ return Rr.filter((t) => e.has(t));
}
-function Pr(e) {
+function Hr(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return kr.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 Lr.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,
@@ -3134,10 +3197,10 @@ function Pr(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 Fr(e) {
+function Ur(e) {
return e.toLowerCase();
}
-var Ir = {
+var Wr = {
space: " ",
esc: "escape",
del: "delete",
@@ -3149,26 +3212,26 @@ var Ir = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Lr(e) {
- let t = Fr(e);
- return Ir[t] ?? t;
+function Gr(e) {
+ let t = Ur(e);
+ return Wr[t] ?? t;
}
-function Rr(e) {
- let t = Nr(jr(e)), n = Lr(e.key);
+function Kr(e) {
+ let t = Vr(zr(e)), n = Gr(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function zr(e) {
- let t = Nr(Mr(e)), n = Fr(e.key);
+function qr(e) {
+ let t = Vr(Br(e)), n = Ur(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Br(e) {
+function Jr(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Pr(n);
- t.set(Rr(e), r);
+ let e = Hr(n);
+ t.set(Kr(e), r);
}
return (e) => {
- let n = zr(e), r = t.get(n), i = r?.(e);
+ let n = qr(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3180,11 +3243,11 @@ function Br(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Vr(e) {
+function Yr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Br(t), s = Or((e) => {
- if (!I(e.currentTarget, L(e))) {
+ let o = Jr(t), s = Ir((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3193,8 +3256,8 @@ function Vr(e) {
return;
}
o(e);
- }), c = Or((e) => {
- if (!I(e.currentTarget, L(e))) {
+ }), c = Ir((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3204,8 +3267,8 @@ function Vr(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? mr(e.onKeyDown, s) : s, a = e.onKeyUp ? mr(e.onKeyUp, c) : c;
- } else i = Or(e.onKeyDown), a = Or(e.onKeyUp);
+ i = e.onKeyDown ? Sr(e.onKeyDown, s) : s, a = e.onKeyUp ? Sr(e.onKeyUp, c) : c;
+ } else i = Ir(e.onKeyDown), a = Ir(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3213,8 +3276,8 @@ function Vr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Hr(e) {
- let t = (0, C.useRef)(null), n = (0, C.useRef)(void 0), r = (0, C.useCallback)((t) => {
+function Xr(e) {
+ let t = (0, E.useRef)(null), n = (0, E.useRef)(void 0), r = (0, E.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -3225,7 +3288,7 @@ function Hr(e) {
e.current = null;
};
}, [e]);
- return (0, C.useMemo)(() => ({
+ return (0, E.useMemo)(() => ({
get current() {
return t.current;
},
@@ -3236,8 +3299,8 @@ function Hr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Ur(e, t) {
- $t(() => {
+function Zr(e, t) {
+ cn(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3245,20 +3308,20 @@ function Ur(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Wr = /*#__PURE__*/ C.createContext(null);
-function Gr(e) {
- let t = (0, C.useContext)(Wr) || {};
- Ur(t, e);
+var Qr = /*#__PURE__*/ E.createContext(null);
+function $r(e) {
+ let t = (0, E.useContext)(Qr) || {};
+ Zr(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Kr(e, t) {
- let { focusProps: n } = Dr(e), { keyboardProps: r } = Vr(e), i = R(n, r), a = Gr(t), o = e.isDisabled ? {} : a, s = (0, C.useRef)(e.autoFocus);
- (0, C.useEffect)(() => {
- s.current && t.current && pr(t.current), s.current = !1;
+function ei(e, t) {
+ let { focusProps: n } = Fr(e), { keyboardProps: r } = Yr(e), i = B(n, r), a = $r(t), o = e.isDisabled ? {} : a, s = (0, E.useRef)(e.autoFocus);
+ (0, E.useEffect)(() => {
+ s.current && t.current && xr(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: R({
+ return e.isDisabled && (c = void 0), { focusableProps: B({
...i,
tabIndex: c
}, o) };
@@ -3290,23 +3353,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var qr = /*#__PURE__*/ (0, C.createContext)(!1);
-function Jr(e) {
- if ((0, C.useContext)(qr)) return /*#__PURE__*/ C.createElement(C.Fragment, null, e.children);
- let t = /*#__PURE__*/ C.createElement(qr.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ C.createElement("template", null, t);
+var ti = /*#__PURE__*/ (0, E.createContext)(!1);
+function ni(e) {
+ if ((0, E.useContext)(ti)) return /*#__PURE__*/ E.createElement(E.Fragment, null, e.children);
+ let t = /*#__PURE__*/ E.createElement(ti.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ E.createElement("template", null, t);
}
-function Yr(e) {
- let t = (t, n) => (0, C.useContext)(qr) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, C.forwardRef)(t);
+function ri(e) {
+ let t = (t, n) => (0, E.useContext)(ti) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, E.forwardRef)(t);
}
-function Xr() {
- return (0, C.useContext)(qr);
+function ii() {
+ return (0, E.useContext)(ti);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var Zr = /* @__PURE__ */ g(((e) => {
- var t = b();
+var ai = /* @__PURE__ */ _(((e) => {
+ var t = C();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -3433,7 +3496,7 @@ var Zr = /* @__PURE__ */ g(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Qr = /* @__PURE__ */ g(((e, t) => {
+})), oi = /* @__PURE__ */ _(((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);
@@ -3441,9 +3504,9 @@ var Zr = /* @__PURE__ */ g(((e) => {
console.error(e);
}
}
- n(), t.exports = Zr();
-})), $r = /* @__PURE__ */ g(((e) => {
- var t = b();
+ n(), t.exports = ai();
+})), si = /* @__PURE__ */ _(((e) => {
+ var t = C();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -3480,48 +3543,48 @@ var Zr = /* @__PURE__ */ g(((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;
-})), ei = /* @__PURE__ */ g(((e, t) => {
- t.exports = $r();
-})), ti = /* @__PURE__ */ v(Qr(), 1), ni = ei(), ri = /*#__PURE__*/ (0, C.createContext)(!1), ii = /*#__PURE__*/ (0, C.createContext)(null);
-function ai(e) {
- if ((0, C.useContext)(ii)) return e.content;
- let { collection: t, document: n } = li(e.createCollection);
- return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Jr, null, /*#__PURE__*/ C.createElement(ii.Provider, { value: n }, e.content)), /*#__PURE__*/ C.createElement(oi, {
+})), ci = /* @__PURE__ */ _(((e, t) => {
+ t.exports = si();
+})), li = /* @__PURE__ */ b(oi(), 1), ui = ci(), di = /*#__PURE__*/ (0, E.createContext)(!1), fi = /*#__PURE__*/ (0, E.createContext)(null);
+function pi(e) {
+ if ((0, E.useContext)(fi)) return e.content;
+ let { collection: t, document: n } = _i(e.createCollection);
+ return /*#__PURE__*/ E.createElement(E.Fragment, null, /*#__PURE__*/ E.createElement(ni, null, /*#__PURE__*/ E.createElement(fi.Provider, { value: n }, e.content)), /*#__PURE__*/ E.createElement(mi, {
render: e.children,
collection: t
}));
}
-function oi({ collection: e, render: t }) {
+function mi({ collection: e, render: t }) {
return t(e);
}
-function si(e, t, n) {
- let r = Rn(), i = (0, C.useRef)(r);
+function hi(e, t, n) {
+ let r = Kn(), i = (0, E.useRef)(r);
i.current = r;
- let a = (0, C.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, ni.useSyncExternalStore)(e, a);
+ let a = (0, E.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, ui.useSyncExternalStore)(e, a);
}
-var ci = typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore : si;
-function li(e) {
- let [t] = (0, C.useState)(() => new Ct(e?.() || new yt()));
+var gi = typeof E.useSyncExternalStore == "function" ? E.useSyncExternalStore : hi;
+function _i(e) {
+ let [t] = (0, E.useState)(() => new jt(e?.() || new Dt()));
return {
- collection: ci((0, C.useCallback)((e) => t.subscribe(e), [t]), (0, C.useCallback)(() => {
+ collection: gi((0, E.useCallback)((e) => t.subscribe(e), [t]), (0, E.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, C.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, E.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ui = /*#__PURE__*/ (0, C.createContext)(null);
-function di(e) {
- return class extends ht {
+var vi = /*#__PURE__*/ (0, E.createContext)(null);
+function yi(e) {
+ return class extends Ct {
static {
this.type = e;
}
};
}
-function fi(e, t, n, r, i, a) {
- typeof e == "string" && (e = di(e));
- let o = (0, C.useCallback)((i) => {
+function bi(e, t, n, r, i, a) {
+ typeof e == "string" && (e = yi(e));
+ let o = (0, E.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -3529,81 +3592,81 @@ function fi(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, C.useContext)(ui);
+ ]), s = (0, E.useContext)(vi);
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__*/ C.createElement(ui.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__*/ E.createElement(vi.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ C.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ E.createElement(e.type, { ref: o }, i);
}
-function pi(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, C.forwardRef)((r, i) => {
- let a = (0, C.useContext)(Wr);
- if (!(0, C.useContext)(ri)) {
+function xi(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, E.forwardRef)((r, i) => {
+ let a = (0, E.useContext)(Qr);
+ if (!(0, E.useContext)(di)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return fi(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ C.createElement(Wr.Provider, { value: a }, /*#__PURE__*/ C.createElement(n, { node: e })));
+ return bi(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ E.createElement(Qr.Provider, { value: a }, /*#__PURE__*/ E.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function mi(e, t, n = hi) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, C.forwardRef)((t, i) => fi(e, t, i, null, n(t), (e) => /*#__PURE__*/ C.createElement(r, { node: e })) ?? /*#__PURE__*/ C.createElement(C.Fragment, null));
+function Si(e, t, n = Ci) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, E.forwardRef)((t, i) => bi(e, t, i, null, n(t), (e) => /*#__PURE__*/ E.createElement(r, { node: e })) ?? /*#__PURE__*/ E.createElement(E.Fragment, null));
return i.displayName = t.name, i;
}
-function hi(e) {
- return wt({
+function Ci(e) {
+ return Mt({
...e,
addIdAndValue: !0
});
}
-var gi = /*#__PURE__*/ (0, C.createContext)(null);
-function _i(e) {
- let t = (0, C.useContext)(gi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = hi({
+var wi = /*#__PURE__*/ (0, E.createContext)(null);
+function Ti(e) {
+ let t = (0, E.useContext)(wi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Ci({
...e,
idScope: r,
dependencies: n
});
- return (0, C.useContext)(ii) && (i = /*#__PURE__*/ C.createElement(vi, null, i)), t = (0, C.useMemo)(() => ({
+ return (0, E.useContext)(fi) && (i = /*#__PURE__*/ E.createElement(Ei, null, i)), t = (0, E.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ C.createElement(gi.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ E.createElement(wi.Provider, { value: t }, i);
}
-function vi({ children: e }) {
- let t = (0, C.useContext)(ii), n = (0, C.useMemo)(() => /*#__PURE__*/ C.createElement(ii.Provider, { value: null }, /*#__PURE__*/ C.createElement(ri.Provider, { value: !0 }, e)), [e]);
- return Rn() ? /*#__PURE__*/ C.createElement(ui.Provider, { value: t }, n) : /*#__PURE__*/ (0, ti.createPortal)(n, t);
+function Ei({ children: e }) {
+ let t = (0, E.useContext)(fi), n = (0, E.useMemo)(() => /*#__PURE__*/ E.createElement(fi.Provider, { value: null }, /*#__PURE__*/ E.createElement(di.Provider, { value: !0 }, e)), [e]);
+ return Kn() ? /*#__PURE__*/ E.createElement(vi.Provider, { value: t }, n) : /*#__PURE__*/ (0, li.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var yi = "react-aria-clear-focus", bi = "react-aria-focus";
+var Di = "react-aria-clear-focus", Oi = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function xi(e) {
- let t = wi(F(e));
- t !== e && (t && Si(t, e), e && Ci(e, t));
+function ki(e) {
+ let t = Mi(L(e));
+ t !== e && (t && Ai(t, e), e && ji(e, t));
}
-function Si(e, t) {
+function Ai(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function Ci(e, t) {
+function ji(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function wi(e) {
- let t = Bt(e), n = t?.getAttribute("aria-activedescendant");
+function Mi(e) {
+ let t = Jt(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function Ti(e) {
- return ln() ? e.metaKey : e.ctrlKey;
+function Ni(e) {
+ return _n() ? e.metaKey : e.ctrlKey;
}
-var Ei = /* @__PURE__ */ new Set([
+var Pi = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3614,27 +3677,27 @@ var Ei = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Di(e) {
- return e instanceof HTMLInputElement && !Ei.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Fi(e) {
+ return e instanceof HTMLInputElement && !Pi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Oi = C.useInsertionEffect ?? $t;
-function ki(e) {
- let t = (0, C.useRef)(null);
- return Oi(() => {
+var Ii = E.useInsertionEffect ?? cn;
+function Li(e) {
+ let t = (0, E.useRef)(null);
+ return Ii(() => {
t.current = e;
- }, [e]), (0, C.useCallback)((...e) => {
+ }, [e]), (0, E.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ai(e, t, n, r) {
- let i = ki(n), a = n == null;
- (0, C.useEffect)(() => {
- if (!(a || e.current == null)) return It(e.current, t, i, r);
+function Ri(e, t, n, r) {
+ let i = Li(n), a = n == null;
+ (0, E.useEffect)(() => {
+ if (!(a || e.current == null)) return Wt(e.current, t, i, r);
}, [
e,
t,
@@ -3644,9 +3707,9 @@ function Ai(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function ji(e, t) {
+function zi(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = br(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 = Or(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
@@ -3654,7 +3717,7 @@ function ji(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Mi = /* @__PURE__ */ new Set([
+var Bi = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3665,7 +3728,7 @@ var Mi = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Ni = /* @__PURE__ */ new Set([
+]), Vi = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3686,20 +3749,20 @@ var Mi = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Pi(e) {
+function Hi(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 Mi.has(t.script);
+ if (t.script) return Bi.has(t.script);
}
let t = e.split("-")[0];
- return Ni.has(t);
+ return Vi.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Fi = Symbol.for("react-aria.i18n.locale");
-function Ii() {
- let e = typeof window < "u" && window[Fi] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Ui = Symbol.for("react-aria.i18n.locale");
+function Wi() {
+ let e = typeof window < "u" && window[Ui] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3707,33 +3770,33 @@ function Ii() {
}
return {
locale: e,
- direction: Pi(e) ? "rtl" : "ltr"
+ direction: Hi(e) ? "rtl" : "ltr"
};
}
-var Li = Ii(), Ri = /* @__PURE__ */ new Set();
-function zi() {
- Li = Ii();
- for (let e of Ri) e(Li);
+var Gi = Wi(), Ki = /* @__PURE__ */ new Set();
+function qi() {
+ Gi = Wi();
+ for (let e of Ki) e(Gi);
}
-function Bi() {
- let e = Rn(), [t, n] = (0, C.useState)(Li);
- return (0, C.useEffect)(() => (Ri.size === 0 && window.addEventListener("languagechange", zi), Ri.add(n), () => {
- Ri.delete(n), Ri.size === 0 && window.removeEventListener("languagechange", zi);
+function Ji() {
+ let e = Kn(), [t, n] = (0, E.useState)(Gi);
+ return (0, E.useEffect)(() => (Ki.size === 0 && window.addEventListener("languagechange", qi), Ki.add(n), () => {
+ Ki.delete(n), Ki.size === 0 && window.removeEventListener("languagechange", qi);
}), []), e ? {
- locale: typeof window < "u" && window[Fi] || "en-US",
+ locale: typeof window < "u" && window[Ui] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Vi = /*#__PURE__*/ C.createContext(null);
-function Hi() {
- let e = Bi();
- return (0, C.useContext)(Vi) || e;
+var Yi = /*#__PURE__*/ E.createContext(null);
+function Xi() {
+ let e = Ji();
+ return (0, E.useContext)(Yi) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Ui = Symbol.for("react-aria.i18n.locale"), Wi = Symbol.for("react-aria.i18n.strings"), Gi = void 0, Ki = class e {
+var Zi = Symbol.for("react-aria.i18n.locale"), Qi = Symbol.for("react-aria.i18n.strings"), $i = void 0, ea = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3744,39 +3807,39 @@ var Ui = Symbol.for("react-aria.i18n.locale"), Wi = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = qi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = ta(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Ui];
- if (Gi === void 0) {
- let t = window[Wi];
+ let n = window[Zi];
+ if ($i === void 0) {
+ let t = window[Qi];
if (!t) return null;
- Gi = {};
- for (let r in t) Gi[r] = new e({ [n]: t[r] }, n);
+ $i = {};
+ for (let r in t) $i[r] = new e({ [n]: t[r] }, n);
}
- let r = Gi?.[t];
+ let r = $i?.[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 qi(e, t, n = "en-US") {
+function ta(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Ji(e), i = Yi(e);
+ let r = na(e), i = ra(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 Ji(e) {
+function na(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Yi(e) {
+function ra(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Xi = /* @__PURE__ */ new Map(), Zi = /* @__PURE__ */ new Map(), Qi = class {
+var ia = /* @__PURE__ */ new Map(), aa = /* @__PURE__ */ new Map(), oa = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3787,37 +3850,37 @@ var Xi = /* @__PURE__ */ new Map(), Zi = /* @__PURE__ */ new Map(), Qi = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Xi.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Xi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = ia.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), ia.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Zi.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Zi.set(this.locale, t)), t.format(e);
+ let t = aa.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), aa.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, $i = /* @__PURE__ */ new WeakMap();
-function ea(e) {
- let t = $i.get(e);
- return t || (t = new Ki(e), $i.set(e, t)), t;
+}, sa = /* @__PURE__ */ new WeakMap();
+function ca(e) {
+ let t = sa.get(e);
+ return t || (t = new ea(e), sa.set(e, t)), t;
}
-function ta(e, t) {
- return t && Ki.getGlobalDictionaryForPackage(t) || ea(e);
+function la(e, t) {
+ return t && ea.getGlobalDictionaryForPackage(t) || ca(e);
}
-function na(e, t) {
- let { locale: n } = Hi(), r = ta(e, t);
- return (0, C.useMemo)(() => new Qi(n, r), [n, r]);
+function ua(e, t) {
+ let { locale: n } = Xi(), r = la(e, t);
+ return (0, E.useMemo)(() => new oa(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var ra = /* @__PURE__ */ new Set(["id"]), ia = /* @__PURE__ */ new Set([
+var da = /* @__PURE__ */ new Set(["id"]), fa = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), z = /* @__PURE__ */ new Set([
+]), pa = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3825,72 +3888,72 @@ var ra = /* @__PURE__ */ new Set(["id"]), ia = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), aa = /* @__PURE__ */ new Set([
+]), ma = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), oa = /* @__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(".")), sa = /^(data-.*)$/;
-function B(e, t = {}) {
+]), ha = /* @__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(".")), ga = /^(data-.*)$/;
+function V(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) && (ra.has(t) || n && ia.has(t) || r && z.has(t) || i && aa.has(t) || a && (oa.has(t) || t.endsWith("Capture") && oa.has(t.slice(0, -7))) || o?.has(t) || sa.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (da.has(t) || n && fa.has(t) || r && pa.has(t) || i && ma.has(t) || a && (ha.has(t) || t.endsWith("Capture") && ha.has(t.slice(0, -7))) || o?.has(t) || ga.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var ca = "default", la = "", ua = /* @__PURE__ */ new WeakMap();
-function da(e) {
- if (fn() && mn()) {
- if (ca === "default") {
- let t = F(e);
- la = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- ca = "disabled";
+var _a = "default", va = "", ya = /* @__PURE__ */ new WeakMap();
+function ba(e) {
+ if (bn() && Sn()) {
+ if (_a === "default") {
+ let t = L(e);
+ va = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ _a = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- ua.set(e, e.style[t]), e.style[t] = "none";
+ ya.set(e, e.style[t]), e.style[t] = "none";
}
}
-function fa(e) {
- if (fn() && mn()) {
- if (ca !== "disabled") return;
- ca = "restoring", setTimeout(() => {
- fr(() => {
- if (ca === "restoring") {
- let t = F(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = la || ""), la = "", ca = "default";
+function xa(e) {
+ if (bn() && Sn()) {
+ if (_a !== "disabled") return;
+ _a = "restoring", setTimeout(() => {
+ br(() => {
+ if (_a === "restoring") {
+ let t = L(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = va || ""), va = "", _a = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ua.has(e)) {
- let t = ua.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ua.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ya.has(e)) {
+ let t = ya.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ya.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function pa(e, t) {
- let n = jt(t), r = F(t);
+function Sa(e, t) {
+ let n = zt(t), r = L(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 ma = /* @__PURE__ */ new WeakMap();
-function ha(e) {
- let t = F(e), n = ma.get(t);
- return n ??= pa("csp-nonce", t), n !== void 0 && ma.set(t, n), n;
+var Ca = /* @__PURE__ */ new WeakMap();
+function wa(e) {
+ let t = L(e), n = Ca.get(t);
+ return n ??= Sa("csp-nonce", t), n !== void 0 && Ca.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var ga = C.createContext({ register: () => {} });
-ga.displayName = "PressResponderContext";
+var Ta = E.createContext({ register: () => {} });
+Ta.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function _a() {
- let e = (0, C.useRef)(/* @__PURE__ */ new Map()), t = (0, C.useCallback)((t, n, r, i) => {
+function Ea() {
+ let e = (0, E.useRef)(/* @__PURE__ */ new Map()), t = (0, E.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -3900,15 +3963,15 @@ function _a() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, C.useCallback)((t, n, r, i) => {
+ }, []), n = (0, E.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, C.useCallback)(() => {
+ }, []), r = (0, E.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, C.useEffect)(() => r, [r]), {
+ return (0, E.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -3916,15 +3979,15 @@ function _a() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function va(e) {
- let t = (0, C.useContext)(ga);
+function Da(e) {
+ let t = (0, E.useContext)(Ta);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = R(i, e), n();
+ e = B(i, e), n();
}
- return Ur(t, e.ref), e;
+ return Zr(t, e.ref), e;
}
-var ya = class {
+var Oa = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3937,9 +4000,9 @@ var ya = class {
get shouldStopPropagation() {
return this.#e;
}
-}, ba = Symbol("linkClicked"), xa = "react-aria-pressable-style", Sa = "data-react-aria-pressable";
-function Ca(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 } = va(e), [m, h] = (0, C.useState)(!1), g = (0, C.useRef)({
+}, ka = Symbol("linkClicked"), Aa = "react-aria-pressable-style", ja = "data-react-aria-pressable";
+function Ma(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 } = Da(e), [m, h] = (0, E.useState)(!1), g = (0, E.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3949,12 +4012,12 @@ function Ca(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = _a(), y = (0, C.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Ea(), y = (0, E.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new ya("pressstart", t, e);
+ let n = new Oa("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3962,17 +4025,17 @@ function Ca(e) {
s,
r,
n
- ]), b = (0, C.useCallback)((e, r, a = !0) => {
+ ]), b = (0, E.useCallback)((e, r, a = !0) => {
let o = g.current;
if (!o.didFirePressStart) return !1;
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new ya("pressend", r, e);
+ let t = new Oa("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new ya("press", r, e);
+ let n = new Oa("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3981,19 +4044,19 @@ function Ca(e) {
i,
n,
t
- ]), x = ki(b), S = ki((0, C.useCallback)((e, t) => {
+ ]), x = Li(b), S = Li((0, E.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new ya("pressup", t, e);
+ let r = new Oa("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), w = (0, C.useCallback)((e) => {
+ }, [s, a])), C = (0, E.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Ea(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || fa(t.target);
+ t.didFirePressStart && t.pointerType != null && b(Fa(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || xa(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -4001,9 +4064,9 @@ function Ca(e) {
d,
v,
b
- ]), T = ki(w);
- (0, C.useEffect)(() => {
- s && g.current.isPressed && T({
+ ]), w = Li(C);
+ (0, E.useEffect)(() => {
+ s && g.current.isPressed && w({
currentTarget: g.current.target,
shiftKey: !1,
ctrlKey: !1,
@@ -4011,46 +4074,46 @@ function Ca(e) {
altKey: !1
});
}, [s]);
- let E = (0, C.useCallback)((e) => {
- u && w(e);
- }, [u, w]), D = (0, C.useCallback)((e) => {
+ let T = (0, E.useCallback)((e) => {
+ u && C(e);
+ }, [u, C]), D = (0, E.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, C.useCallback)((e, t) => {
+ }, [s, o]), O = (0, E.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- tn(n, t), o(en(n));
+ un(n, t), o(ln(n));
}
- }, [s, o]), k = (0, C.useMemo)(() => {
+ }, [s, o]), k = (0, E.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Ta(t.nativeEvent, t.currentTarget) && I(t.currentTarget, L(t))) {
- Oa(L(t), t.key) && t.preventDefault();
+ if (Pa(t.nativeEvent, t.currentTarget) && R(t.currentTarget, z(t))) {
+ La(z(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;
- _(F(t.currentTarget), "keyup", mr((t) => {
- Ta(t, i) && !t.repeat && I(i, L(t)) && e.target && S(Ea(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && ln() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(L(t.currentTarget), "keyup", Sr((t) => {
+ Pa(t, i) && !t.repeat && R(i, z(t)) && e.target && S(Fa(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && _n() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !I(t.currentTarget, L(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Sn.isOpening) {
+ if (!(t && !R(t.currentTarget, z(t))) && t && t.button === 0 && !e.isTriggeringEvent && !An.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || vn(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || En(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Ea(t.currentTarget, t), r), a = x(Ea(t.currentTarget, t), r, !0);
- n = i && a, e.isOverTarget = !1, D(t), T(t);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Fa(t.currentTarget, t), r), a = x(Fa(t.currentTarget, t), r, !0);
+ n = i && a, e.isOverTarget = !1, D(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Ta(t, e.target)) {
- Oa(L(t), t.key) && t.preventDefault();
- let n = L(t), r = I(e.target, n);
- x(Ea(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && wa(e.target) && I(e.target, n) && !t[ba] && (t[ba] = !0, Sn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && Pa(t, e.target)) {
+ La(z(t), t.key) && t.preventDefault();
+ let n = z(t), r = R(e.target, n);
+ x(Fa(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && Na(e.target) && R(e.target, n) && !t[ka] && (t[ka] = !0, An(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;
@@ -4059,49 +4122,49 @@ function Ca(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !I(t.currentTarget, L(t))) return;
- if (yn(t.nativeEvent)) {
+ if (t.button !== 0 || !R(t.currentTarget, z(t))) return;
+ if (Dn(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 || da(e.target), i = y(t, e.pointerType);
- let a = L(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(F(t.currentTarget), "pointerup", n, !1), _(F(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ba(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);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (I(t.currentTarget, L(t)) && t.button === 0) {
+ if (R(t.currentTarget, z(t)) && t.button === 0) {
if (l) {
- let n = an(t.target);
+ let n = pn(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !I(t.currentTarget, L(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !R(t.currentTarget, z(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Ea(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Fa(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Ea(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Fa(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (I(e.target, L(t)) && e.pointerType != null) {
+ if (R(e.target, z(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (Et(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Pt(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
- } else T(t);
+ } else w(t);
e.isOverTarget = !1;
}
}, r = (e) => {
- T(e);
+ w(e);
};
t.onDragStart = (e) => {
- I(e.currentTarget, L(e)) && T(e);
+ R(e.currentTarget, z(e)) && w(e);
};
}
return t;
@@ -4111,45 +4174,45 @@ function Ca(e) {
l,
v,
d,
- E,
+ T,
y,
D,
O
]);
- return (0, C.useEffect)(() => {
+ return (0, E.useEffect)(() => {
if (!f) return;
- let e = F(f.current);
- if (!e || !e.head || e.getElementById(xa)) return;
+ let e = L(f.current);
+ if (!e || !e.head || e.getElementById(Aa)) return;
let t = e.createElement("style");
- t.id = xa;
- let n = ha(e);
+ t.id = Aa;
+ let n = wa(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Sa}] {
+ [${ja}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, C.useEffect)(() => {
+ }, [f]), (0, E.useEffect)(() => {
let e = g.current;
return () => {
- d || fa(e.target ?? void 0);
+ d || xa(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: R(p, k, { [Sa]: !0 })
+ pressProps: B(p, k, { [ja]: !0 })
};
}
-function wa(e) {
+function Na(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Ta(e, t) {
+function Pa(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof jt(i).HTMLInputElement && !Aa(i, n) || i instanceof jt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && wa(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof zt(i).HTMLInputElement && !za(i, n) || i instanceof zt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Na(i)) && n !== "Enter");
}
-function Ea(e, t) {
+function Fa(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4162,13 +4225,13 @@ function Ea(e, t) {
key: t.key
};
}
-function Da(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !wa(e);
+function Ia(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Na(e);
}
-function Oa(e, t) {
- return ln() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Aa(e, t) : Da(e);
+function La(e, t) {
+ return _n() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !za(e, t) : Ia(e);
}
-var ka = /* @__PURE__ */ new Set([
+var Ra = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4179,12 +4242,12 @@ var ka = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Aa(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : ka.has(e.type);
+function za(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Ra.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function ja(e, t) {
+function Ba(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,
@@ -4206,7 +4269,7 @@ function ja(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = Ca({
+ let { pressProps: _, isPressed: v } = Ma({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4216,12 +4279,12 @@ function ja(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Kr(e, t);
+ }), { focusableProps: y } = ei(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = R(y, _, B(e, { labelable: !0 }));
+ let b = B(y, _, V(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: R(g, b, {
+ buttonProps: B(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -4233,7 +4296,7 @@ function ja(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Ma = class {
+var Va = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4258,7 +4321,7 @@ var Ma = class {
return this._currentNode;
}
set currentNode(e) {
- if (!I(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!R(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 });
@@ -4272,7 +4335,7 @@ var Ma = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return I(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return R(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -4336,202 +4399,202 @@ var Ma = class {
return null;
}
};
-function Na(e, t, n, r) {
- return zt() ? new Ma(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Ha(e, t, n, r) {
+ return qt() ? new Va(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Pa = /*#__PURE__*/ C.createContext(null), Fa = "react-aria-focus-scope-restore", Ia = null;
-function La(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useRef)([]), { parentNode: c } = (0, C.useContext)(Pa) || {}, l = (0, C.useMemo)(() => new ao({ scopeRef: s }), [s]);
- $t(() => {
- let e = c || oo.root;
- if (oo.getTreeNode(e.scopeRef) && Ia && !Ja(Ia, e.scopeRef)) {
- let t = oo.getTreeNode(Ia);
+var Ua = /*#__PURE__*/ E.createContext(null), Wa = "react-aria-focus-scope-restore", Ga = null;
+function Ka(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, E.useRef)(null), o = (0, E.useRef)(null), s = (0, E.useRef)([]), { parentNode: c } = (0, E.useContext)(Ua) || {}, l = (0, E.useMemo)(() => new ho({ scopeRef: s }), [s]);
+ cn(() => {
+ let e = c || go.root;
+ if (go.getTreeNode(e.scopeRef) && Ga && !ro(Ga, e.scopeRef)) {
+ let t = go.getTreeNode(Ga);
t && (e = t);
}
- e.addChild(l), oo.addNode(l);
- }, [l, c]), $t(() => {
- let e = oo.getTreeNode(s);
+ e.addChild(l), go.addNode(l);
+ }, [l, c]), cn(() => {
+ let e = go.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), $t(() => {
+ }, [n]), cn(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Fa, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Wa, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Fa, n);
+ for (let e of t) e.removeEventListener(Wa, n);
};
- }, [t]), $a(s, r, n), Ua(s, n), to(s, r, n), Qa(s, i), (0, C.useEffect)(() => {
- let e = Bt(F(s.current ? s.current[0] : void 0)), t = null;
- if (Ga(e, s.current)) {
- for (let n of oo.traverse()) n.scopeRef && Ga(e, n.scopeRef.current) && (t = n);
- t === oo.getTreeNode(s) && (Ia = t.scopeRef);
- }
- }, [s]), $t(() => () => {
- let e = oo.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Ia || Ja(s, Ia)) && (!e || oo.getTreeNode(e)) && (Ia = e), oo.removeTreeNode(s);
+ }, [t]), co(s, r, n), Qa(s, n), uo(s, r, n), so(s, i), (0, E.useEffect)(() => {
+ let e = Jt(L(s.current ? s.current[0] : void 0)), t = null;
+ if (eo(e, s.current)) {
+ for (let n of go.traverse()) n.scopeRef && eo(e, n.scopeRef.current) && (t = n);
+ t === go.getTreeNode(s) && (Ga = t.scopeRef);
+ }
+ }, [s]), cn(() => () => {
+ let e = go.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Ga || ro(s, Ga)) && (!e || go.getTreeNode(e)) && (Ga = e), go.removeTreeNode(s);
}, [s]);
- let u = (0, C.useMemo)(() => Ra(s), []), d = (0, C.useMemo)(() => ({
+ let u = (0, E.useMemo)(() => qa(s), []), d = (0, E.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ C.createElement(Pa.Provider, { value: d }, /*#__PURE__*/ C.createElement("span", {
+ return /*#__PURE__*/ E.createElement(Ua.Provider, { value: d }, /*#__PURE__*/ E.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ C.createElement("span", {
+ }), t, /*#__PURE__*/ E.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function Ra(e) {
+function qa(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bt(F(n[0] ?? void 0)), c = n[0].previousElementSibling, l = ro(za(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Jt(L(n[0] ?? void 0)), c = n[0].previousElementSibling, l = po(Ja(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Ga(s, n) ? s : c;
+ l.currentNode = eo(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ya(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && io(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bt(F(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = ro(za(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Jt(L(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = po(Ja(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Ga(s, n) ? s : c;
+ l.currentNode = eo(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ya(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && io(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = ro(za(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = po(Ja(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ya(o, !0), o;
+ return o && io(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = ro(za(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = po(Ja(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ya(o, !0), o;
+ return o && io(o, !0), o;
}
};
}
-function za(e) {
+function Ja(e) {
return e[0].parentElement;
}
-function Ba(e) {
- let t = oo.getTreeNode(Ia);
+function Ya(e) {
+ let t = go.getTreeNode(Ga);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Va(e) {
- if (!e.form) return Array.from(F(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = jt(e);
+function Xa(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 = zt(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Ha(e) {
+function Za(e) {
if (e.checked) return !0;
- let t = Va(e);
+ let t = Xa(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Ua(e, t) {
- let n = (0, C.useRef)(void 0), r = (0, C.useRef)(void 0);
- $t(() => {
+function Qa(e, t) {
+ let n = (0, E.useRef)(void 0), r = (0, E.useRef)(void 0);
+ cn(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = F(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ba(e) || t.isComposing) return;
- let n = Bt(a), r = e.current;
- if (!r || !Ga(n, r)) return;
- let i = ro(za(r), { tabbable: !0 }, r);
+ let a = L(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ya(e) || t.isComposing) return;
+ let n = Jt(a), r = e.current;
+ if (!r || !eo(n, r)) return;
+ let i = po(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 && (Ya(o, !0), o instanceof jt(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 && (io(o, !0), o instanceof zt(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Ia || Ja(Ia, e)) && Ga(L(t), e.current) ? (Ia = e, n.current = L(t)) : Ba(e) && !Ka(L(t), e) ? n.current ? Ya(n.current) : Ia && Ia.current && Za(Ia.current) : Ba(e) && (n.current = L(t));
+ (!Ga || ro(Ga, e)) && eo(z(t), e.current) ? (Ga = e, n.current = z(t)) : Ya(e) && !to(z(t), e) ? n.current ? io(n.current) : Ga && Ga.current && oo(Ga.current) : Ya(e) && (n.current = z(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = nr(), i = (r === "virtual" || r === null) && gn() && hn(), o = Bt(a);
- if (!i && o && Ba(e) && !Ka(o, e)) {
- Ia = e;
- let r = L(t);
- r && r.isConnected ? (n.current = r, Ya(n.current)) : Ia.current && Za(Ia.current);
+ let r = ur(), i = (r === "virtual" || r === null) && wn() && Cn(), o = Jt(a);
+ if (!i && o && Ya(e) && !to(o, e)) {
+ Ga = e;
+ let r = z(t);
+ r && r.isConnected ? (n.current = r, io(n.current)) : Ga.current && oo(Ga.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]), $t(() => () => {
+ }, [e, t]), cn(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Wa(e) {
- return Ka(e);
+function $a(e) {
+ return to(e);
}
-function Ga(e, t) {
- return !e || !t ? !1 : t.some((t) => I(t, e));
+function eo(e, t) {
+ return !e || !t ? !1 : t.some((t) => R(t, e));
}
-function Ka(e, t = null) {
+function to(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of oo.traverse(oo.getTreeNode(t))) if (n && Ga(e, n.current)) return !0;
+ for (let { scopeRef: n } of go.traverse(go.getTreeNode(t))) if (n && eo(e, n.current)) return !0;
return !1;
}
-function qa(e) {
- return Ka(e, Ia);
+function no(e) {
+ return to(e, Ga);
}
-function Ja(e, t) {
- let n = oo.getTreeNode(t)?.parent;
+function ro(e, t) {
+ let n = go.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ya(e, t = !1) {
+function io(e, t = !1) {
if (e != null && !t) try {
- pr(e);
+ xr(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Xa(e, t = !0) {
- let n = e[0].previousElementSibling, r = za(e), i = ro(r, { tabbable: t }, e);
+function ao(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Ja(e), i = po(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = za(e), i = ro(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Ja(e), i = po(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Za(e, t = !0) {
- Ya(Xa(e, t));
+function oo(e, t = !0) {
+ io(ao(e, t));
}
-function Qa(e, t) {
- let n = C.useRef(t);
- (0, C.useEffect)(() => {
- n.current && (Ia = e, !Ga(Bt(F(e.current ? e.current[0] : void 0)), Ia.current) && e.current && Za(e.current)), n.current = !1;
+function so(e, t) {
+ let n = E.useRef(t);
+ (0, E.useEffect)(() => {
+ n.current && (Ga = e, !eo(Jt(L(e.current ? e.current[0] : void 0)), Ga.current) && e.current && oo(e.current)), n.current = !1;
}, [e]);
}
-function $a(e, t, n) {
- $t(() => {
+function co(e, t, n) {
+ cn(() => {
if (t || n) return;
- let r = e.current, i = F(r ? r[0] : void 0), a = (t) => {
- let n = L(t);
- Ga(n, e.current) ? Ia = e : Wa(n) || (Ia = null);
+ let r = e.current, i = L(r ? r[0] : void 0), a = (t) => {
+ let n = z(t);
+ eo(n, e.current) ? Ga = e : $a(n) || (Ga = 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));
@@ -4542,43 +4605,43 @@ function $a(e, t, n) {
n
]);
}
-function eo(e) {
- let t = oo.getTreeNode(Ia);
+function lo(e) {
+ let t = go.getTreeNode(Ga);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function to(e, t, n) {
- let r = (0, C.useRef)(typeof document < "u" ? Bt(F(e.current ? e.current[0] : void 0)) : null);
- $t(() => {
- let r = e.current, i = F(r ? r[0] : void 0);
+function uo(e, t, n) {
+ let r = (0, E.useRef)(typeof document < "u" ? Jt(L(e.current ? e.current[0] : void 0)) : null);
+ cn(() => {
+ let r = e.current, i = L(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Ia || Ja(Ia, e)) && Ga(Bt(i), e.current) && (Ia = e);
+ (!Ga || ro(Ga, e)) && eo(Jt(i), e.current) && (Ga = 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]), $t(() => {
- let r = F(e.current ? e.current[0] : void 0);
+ }, [e, n]), cn(() => {
+ let r = L(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ba(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ya(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Ka(n, e) || !eo(e)) return;
- let i = oo.getTreeNode(e);
+ if (!to(n, e) || !lo(e)) return;
+ let i = go.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = ro(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = po(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 || !Ka(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !to(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Ka(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ya(s, !0) : Wa(a) ? Ya(a, !0) : n.blur();
+ while (to(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? io(s, !0) : $a(a) ? io(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4588,31 +4651,31 @@ function to(e, t, n) {
e,
t,
n
- ]), $t(() => {
- let n = F(e.current ? e.current[0] : void 0);
+ ]), cn(() => {
+ let n = L(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = oo.getTreeNode(e);
+ let i = go.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = oo.getTreeNode(e);
+ let r = go.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = Bt(n);
- if (t && i && (a && Ka(a, e) || a === n.body && eo(e))) {
- let t = oo.clone();
+ let i = r.nodeToRestore, a = Jt(n);
+ if (t && i && (a && to(a, e) || a === n.body && lo(e))) {
+ let t = go.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- no(n.nodeToRestore);
+ fo(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && oo.getTreeNode(n.scopeRef)) {
- let e = Xa(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && go.getTreeNode(n.scopeRef)) {
+ let e = ao(n.scopeRef.current, !0);
if (e) {
- no(e);
+ fo(e);
return;
}
}
@@ -4624,21 +4687,21 @@ function to(e, t, n) {
};
}, [e, t]);
}
-function no(e) {
- e.dispatchEvent(new CustomEvent(Fa, {
+function fo(e) {
+ e.dispatchEvent(new CustomEvent(Wa, {
bubbles: !0,
cancelable: !0
- })) && Ya(e);
+ })) && io(e);
}
-function ro(e, t, n) {
- let r = t?.tabbable ? Zt : Xt, i = F(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Na(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return I(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ha(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Ga(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function po(e, t, n) {
+ let r = t?.tabbable ? on : an, i = L(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ha(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return R(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Za(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || eo(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var io = class e {
+var mo = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new ao({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new ho({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4649,7 +4712,7 @@ var io = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new ao({ scopeRef: e });
+ let i = new ho({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4660,7 +4723,7 @@ var io = 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 && Ga(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 && eo(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);
}
@@ -4672,7 +4735,7 @@ var io = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, ao = class {
+}, ho = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4682,13 +4745,13 @@ var io = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, oo = new io(), so = 7e3, co = null;
-function lo(e, t = "assertive", n = so) {
- co ? co.announce(e, t, n) : (co = new uo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? co.announce(e, t, n) : setTimeout(() => {
- co?.isAttached() && co?.announce(e, t, n);
+}, go = new mo(), _o = 7e3, vo = null;
+function yo(e, t = "assertive", n = _o) {
+ vo ? vo.announce(e, t, n) : (vo = new bo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? vo.announce(e, t, n) : setTimeout(() => {
+ vo?.isAttached() && vo?.announce(e, t, n);
}, 100));
}
-var uo = class {
+var bo = 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,
@@ -4713,7 +4776,7 @@ var uo = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = so) {
+ announce(e, t = "assertive", n = _o) {
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(() => {
@@ -4726,57 +4789,57 @@ var uo = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function fo(e, t) {
- let n = (0, C.useRef)(!0), r = (0, C.useRef)(null), i = ki(e);
- (0, C.useEffect)(() => (n.current = !0, () => {
+function xo(e, t) {
+ let n = (0, E.useRef)(!0), r = (0, E.useRef)(null), i = Li(e);
+ (0, E.useEffect)(() => (n.current = !0, () => {
n.current = !1;
- }), []), (0, C.useEffect)(() => {
+ }), []), (0, E.useEffect)(() => {
let e = r.current;
n.current ? n.current = !1 : (!e || t.some((t, n) => !Object.is(t, e[n]))) && i(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function po(e, t) {
+function So(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 mo(e, t) {
+function Co(e, t) {
let n = e;
- for (po(n, t) && (n = n.parentElement); n && !po(n, t);) n = n.parentElement;
+ for (So(n, t) && (n = n.parentElement); n && !So(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function ho(e, t) {
+function wo(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (po(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (So(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function go(e, t, n = {}) {
- e !== t && _o(e, t, t.getBoundingClientRect(), n);
-}
-function _o(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, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, te = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, N = e === d ? 0 : e.offsetHeight - e.clientHeight - te, 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;
- fn() && mn() || u.direction === "ltr" ? oe -= ne : u.direction === "rtl" && (ae += ne);
- let se = k < re || A > ie, ce = j < ae || M > 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;
+function To(e, t, n = {}) {
+ e !== t && Eo(e, t, t.getBoundingClientRect(), n);
+}
+function Eo(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, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, te = e === d ? 0 : T + E, N = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - te, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
+ bn() && Sn() || u.direction === "ltr" ? ie -= N : u.direction === "rtl" && (F += N);
+ let ae = k < ne || A > re, oe = j < F || M > ie;
+ if (ae && i === "start") o += k - ne;
+ else if (ae && i === "center") o += (k + A) / 2 - (ne + re) / 2;
+ else if (ae && i === "end") o += A - re;
+ else if (ae && i === "nearest") {
+ let e = k - ne, t = A - re;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (ce && a === "start") s += j - ae;
- else if (ce && a === "center") s += (j + M) / 2 - (ae + oe) / 2;
- else if (ce && a === "end") s += M - oe;
- else if (ce && a === "nearest") {
- let e = j - ae, t = M - oe;
+ if (oe && a === "start") s += j - F;
+ else if (oe && a === "center") s += (j + M) / 2 - (F + ie) / 2;
+ else if (oe && a === "end") s += M - ie;
+ else if (oe && a === "nearest") {
+ let e = j - F, t = M - ie;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -4784,7 +4847,7 @@ function _o(e, t, n, r = {}) {
top: o
});
}
-function vo(e, t = {}) {
+function Do(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4797,50 +4860,50 @@ function vo(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = ho(e, !0);
- for (let t of i) go(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = wo(e, !0);
+ for (let t of i) To(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? ho(n, !0) : [];
- for (let e of i) go(e, n, {
+ i = n ? wo(n, !0) : [];
+ for (let e of i) To(e, n, {
block: "center",
inline: "center"
});
- for (let t of ho(e, !0)) go(t, e);
+ for (let t of wo(e, !0)) To(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var yo = 0, bo = /* @__PURE__ */ new Map();
-function xo(e) {
- let [t, n] = (0, C.useState)();
- return $t(() => {
+var Oo = 0, ko = /* @__PURE__ */ new Map();
+function Ao(e) {
+ let [t, n] = (0, E.useState)();
+ return cn(() => {
if (!e) return;
- let t = bo.get(e);
+ let t = ko.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${yo++}`;
+ let r = `react-aria-description-${Oo++}`;
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
- }, bo.set(e, t);
+ }, ko.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), bo.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), ko.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function So(e, t, n) {
- let r = ki((e) => {
+function jo(e, t, n) {
+ let r = Li((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -4849,35 +4912,35 @@ function So(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Co(e, t, n) {
+function Mo(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- $t(() => {
+ cn(() => {
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(To(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Po(n.current));
}
});
- let a = (0, C.useRef)(!1), o = ki(() => {
+ let a = (0, E.useRef)(!1), o = Li(() => {
a.current || t.resetValidation();
- }), s = ki((e) => {
+ }), s = Li((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Eo(r) === n.current && (i ? i() : n.current?.focus(), rr("keyboard")), e.preventDefault();
- }), c = ki(() => {
+ !e.defaultPrevented && n && r && Fo(r) === n.current && (i ? i() : n.current?.focus(), dr("keyboard")), e.preventDefault();
+ }), c = Li(() => {
t.commitValidation();
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && L(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && z(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 wo(e) {
+function No(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4893,14 +4956,14 @@ function wo(e) {
valid: t.valid
};
}
-function To(e) {
+function Po(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: wo(e),
+ validationDetails: No(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Eo(e) {
+function Fo(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4909,16 +4972,16 @@ function Eo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Do(e = !0) {
- let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {
+function Io(e = !0) {
+ let [t, n] = (0, E.useState)(e), r = (0, E.useRef)(!1), i = (0, E.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return $t(() => {
+ return cn(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Oo(e = !0) {
- let t = br(), [n, r] = Do(e);
+function Lo(e = !0) {
+ let t = Or(), [n, r] = Io(e);
return {
id: r ? t : void 0,
ref: n
@@ -4926,7 +4989,7 @@ function Oo(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var ko = {
+var Ro = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4938,18 +5001,18 @@ var ko = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Ao = {
- ...ko,
+}, zo = {
+ ...Ro,
customError: !0,
valid: !1
-}, jo = {
+}, Bo = {
isInvalid: !1,
- validationDetails: ko,
+ validationDetails: Ro,
validationErrors: []
-}, Mo = (0, C.createContext)({}), No = "__reactAriaFormValidationState";
-function Po(e) {
+}, H = (0, E.createContext)({}), Vo = "__reactAriaFormValidationState";
+function Ho(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[No];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Vo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4958,71 +5021,71 @@ function Po(e) {
commitValidation: a
};
}
- return Fo(e);
+ return Uo(e);
}
-function Fo(e) {
+function Uo(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: Ao
- }, l = (0, C.useMemo)(() => !o || i == null ? null : Ro(Lo(o, i)), [o, i]);
+ validationDetails: zo
+ }, l = (0, E.useMemo)(() => !o || i == null ? null : Ko(Go(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, C.useContext)(Mo), d = (0, C.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Io(u[e])) : Io(u[r]) : [], [u, r]), [f, p] = (0, C.useState)(u), [m, h] = (0, C.useState)(!1);
+ let u = (0, E.useContext)(H), d = (0, E.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Wo(u[e])) : Wo(u[r]) : [], [u, r]), [f, p] = (0, E.useState)(u), [m, h] = (0, E.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, C.useMemo)(() => Ro(m ? [] : d), [m, d]), _ = (0, C.useRef)(jo), [v, y] = (0, C.useState)(jo), b = (0, C.useRef)(jo), x = () => {
+ let g = (0, E.useMemo)(() => Ko(m ? [] : d), [m, d]), _ = (0, E.useRef)(Bo), [v, y] = (0, E.useState)(Bo), b = (0, E.useRef)(Bo), x = () => {
if (!S) return;
- w(!1);
+ C(!1);
let e = l || a || _.current;
- zo(e, b.current) || (b.current = e, y(e));
- }, [S, w] = (0, C.useState)(!1);
- return (0, C.useEffect)(x), {
- realtimeValidation: c || g || l || a || jo,
+ qo(e, b.current) || (b.current = e, y(e));
+ }, [S, C] = (0, E.useState)(!1);
+ return (0, E.useEffect)(x), {
+ realtimeValidation: c || g || l || a || Bo,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !zo(v, e) ? y(e) : _.current = e;
+ s === "aria" && !qo(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = jo;
- zo(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = Bo;
+ qo(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
- s === "native" && w(!0), h(!0);
+ s === "native" && C(!0), h(!0);
}
};
}
-function Io(e) {
+function Wo(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Lo(e, t) {
+function Go(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Io(n);
+ if (n && typeof n != "boolean") return Wo(n);
}
return [];
}
-function Ro(e) {
+function Ko(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Ao
+ validationDetails: zo
} : null;
}
-function zo(e, t) {
+function qo(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 Bo(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 = Po({
+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 = Ho({
...e,
value: t.isSelected
- }), { isInvalid: x, validationErrors: S, validationDetails: w } = b.displayValidation;
- Co(e, b, n);
- let T = (e) => {
- e.stopPropagation(), t.setSelected(L(e).checked);
- }, { pressProps: E, isPressed: D } = Ca({
+ }), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
+ Mo(e, b, n);
+ let w = (e) => {
+ e.stopPropagation(), t.setSelected(z(e).checked);
+ }, { pressProps: T, isPressed: D } = Ma({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -5030,7 +5093,7 @@ function Bo(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, C.useState)(!1), { pressProps: A } = Ca({
+ }), [O, k] = (0, E.useState)(!1), { pressProps: A } = Ma({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -5059,16 +5122,16 @@ function Bo(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [No]: i } = e, { commitValidation: a } = i || b;
+ let { [Vo]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Kr(e, n), M = R(E, j), ee = B(e, { labelable: !0 });
- So(n, t.defaultSelected, t.setSelected);
- let te = Oo(), ne = Oo();
+ }), { focusableProps: j } = ei(e, n), M = B(T, j), ee = V(e, { labelable: !0 });
+ jo(n, t.defaultSelected, t.setSelected);
+ let te = Lo(), N = Lo();
return {
- labelProps: R(A, { onClick: (e) => e.preventDefault() }),
- inputProps: R(ee, {
+ labelProps: B(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: B(ee, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -5078,10 +5141,10 @@ function Bo(e, t, n) {
"aria-readonly": i || void 0,
"aria-describedby": [
te.id,
- ne.id,
+ N.id,
p
].filter(Boolean).join(" ") || void 0,
- onChange: T,
+ onChange: w,
disabled: r,
...a == null ? {} : { value: a },
name: o,
@@ -5090,24 +5153,24 @@ function Bo(e, t, n) {
...M
}),
descriptionProps: te,
- errorMessageProps: ne,
+ errorMessageProps: N,
isSelected: t.isSelected,
isPressed: D || O,
isDisabled: r,
isReadOnly: i,
isInvalid: x || e.validationState === "invalid",
validationErrors: S,
- validationDetails: w
+ validationDetails: C
};
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function Vo(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 } = Bo(e, t, n), { isIndeterminate: m } = e;
- return (0, C.useEffect)(() => {
+function Yo(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, E.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: R(r, (0, C.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: B(r, (0, E.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -5122,18 +5185,18 @@ function Vo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var V = /* @__PURE__ */ new WeakMap();
+var Xo = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function Ho(e) {
+function Zo(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = br(t);
- let o = br(), s = {};
+ t = Or(t);
+ let o = Or(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = ji({
+ let c = zi({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -5145,19 +5208,19 @@ function Ho(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Uo(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Ho(e), s = Sr([
+function Qo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Zo(e), s = Ar([
!!t,
!!n,
r,
i
- ]), c = Sr([
+ ]), c = Ar([
!!t,
!!n,
r,
i
]);
- return o = R(o, { "aria-describedby": [
+ return o = B(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -5170,26 +5233,26 @@ function Uo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function Wo(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, C.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = _a(), c = (0, C.useCallback)((e) => {
- I(e.currentTarget, L(e)) && a.current.isFocusWithin && !I(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function $o(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, E.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Ea(), c = (0, E.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));
}, [
n,
i,
a,
s
- ]), l = nn(c), u = (0, C.useCallback)((e) => {
- if (!I(e.currentTarget, L(e))) return;
- let t = L(e), n = F(t), s = Bt(n);
+ ]), l = dn(c), u = (0, E.useCallback)((e) => {
+ if (!R(e.currentTarget, z(e))) return;
+ let t = z(e), n = L(t), s = Jt(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 = L(e);
- if (a.current.isFocusWithin && !I(t, r)) {
+ let r = z(e);
+ if (a.current.isFocusWithin && !R(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- tn(e, t);
- let i = en(e);
+ un(e, t);
+ let i = ln(e);
c(i);
}
}, { capture: !0 });
@@ -5211,26 +5274,26 @@ function Wo(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Go = typeof document < "u" ? C.useInsertionEffect ?? C.useLayoutEffect : () => {};
-function Ko(e, t, n) {
- let [r, i] = (0, C.useState)(e || t), a = (0, C.useRef)(r), o = (0, C.useRef)(e !== void 0), s = e !== void 0;
- (0, C.useEffect)(() => {
+var es = typeof document < "u" ? E.useInsertionEffect ?? E.useLayoutEffect : () => {};
+function ts(e, t, n) {
+ let [r, i] = (0, E.useState)(e || t), a = (0, E.useRef)(r), o = (0, E.useRef)(e !== void 0), s = e !== void 0;
+ (0, E.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Go(() => {
+ es(() => {
a.current = c;
});
- let [, l] = (0, C.useReducer)(() => ({}), {});
- return [c, (0, C.useCallback)((e, ...t) => {
+ let [, l] = (0, E.useReducer)(() => ({}), {});
+ return [c, (0, E.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function qo(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Ko(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, C.useState)(n);
+function ns(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = ts(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, E.useState)(n);
function a(e) {
t || r(e);
}
@@ -5246,26 +5309,26 @@ function qo(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Jo(e, t, n) {
- let r = qo({
+function rs(e, t, n) {
+ let r = ns({
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 } = V.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Xo.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = Po({
+ let { realtimeValidation: l } = Ho({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, C.useRef)(jo), d = () => {
+ }), u = (0, E.useRef)(Bo), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, C.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Vo({
+ (0, E.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Yo({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5273,7 +5336,7 @@ function Jo(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [No]: {
+ [Vo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5297,12 +5360,12 @@ function Jo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Yo(e, t = -Infinity, n = Infinity) {
+function is(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 Xo = {
+var as = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5314,40 +5377,40 @@ var Xo = {
width: "1px",
whiteSpace: "nowrap"
};
-function Zo(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, C.useState)(!1), { focusWithinProps: a } = Wo({
+function os(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, E.useState)(!1), { focusWithinProps: a } = $o({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, C.useMemo)(() => r ? t : t ? {
- ...Xo,
+ }), o = (0, E.useMemo)(() => r ? t : t ? {
+ ...as,
...t
- } : Xo, [r]);
+ } : as, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Qo(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Zo(e);
- return /*#__PURE__*/ C.createElement(n, R(a, o), t);
+function ss(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = os(e);
+ return /*#__PURE__*/ E.createElement(n, B(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function $o(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Ko(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Kr(e, t), d = Po({
+function cs(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ts(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = ei(e, t), d = Ho({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Uo({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Qo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = B(e, { labelable: !0 }), b = {
+ }), y = V(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
- }, [x] = (0, C.useState)(c);
- return So(t, e.defaultValue ?? x, l), Co(e, d, t), {
+ }, [x] = (0, E.useState)(c);
+ return jo(t, e.defaultValue ?? x, l), Mo(e, d, t), {
labelProps: h,
- inputProps: R(y, n === "input" ? b : void 0, {
+ inputProps: B(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -5359,7 +5422,7 @@ function $o(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(L(e).value),
+ onChange: (e) => l(z(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -5392,42 +5455,42 @@ function $o(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var es = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function ts(e) {
+var ls = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function us(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var ns = /* @__PURE__ */ new WeakMap(), rs = [];
-function is(e, t) {
- let n = jt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && es, 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 ds = /* @__PURE__ */ new WeakMap(), fs = [];
+function ps(e, t) {
+ let n = zt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && ls, 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 (zt()) {
+ if (qt()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Ft(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Ut(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 (I(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (R(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Na(F(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Ha(L(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 = ns.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), ns.set(e, t + 1));
+ let t = ds.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), ds.set(e, t + 1));
};
- rs.length && rs[rs.length - 1].disconnect(), d(i);
+ fs.length && fs[fs.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) => I(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && ts(e) ? o.add(e) : e instanceof Element && d(e);
- if (zt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && us(e) ? o.add(e) : e instanceof Element && d(e);
+ if (qt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5440,11 +5503,11 @@ function is(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (zt()) for (let e of u) {
+ if (qt()) 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) => I(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && ts(e) ? o.add(e) : e instanceof Element && d(e);
- if (zt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && us(e) ? o.add(e) : e instanceof Element && d(e);
+ if (qt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5470,59 +5533,59 @@ function is(e, t) {
p.disconnect();
}
};
- return rs.push(h), () => {
- if (p.disconnect(), zt()) for (let e of m) e.disconnect();
+ return fs.push(h), () => {
+ if (p.disconnect(), qt()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = ns.get(e);
- t != null && (t === 1 ? (l(e, !1), ns.delete(e)) : ns.set(e, t - 1));
+ let t = ds.get(e);
+ t != null && (t === 1 ? (l(e, !1), ds.delete(e)) : ds.set(e, t - 1));
}
- h === rs[rs.length - 1] ? (rs.pop(), rs.length && rs[rs.length - 1].observe()) : rs.splice(rs.indexOf(h), 1);
+ h === fs[fs.length - 1] ? (fs.pop(), fs.length && fs[fs.length - 1].observe()) : fs.splice(fs.indexOf(h), 1);
};
}
-function as(e) {
- let t = rs[rs.length - 1];
+function ms(e) {
+ let t = fs[fs.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 os = /* @__PURE__ */ new WeakMap();
-function ss(e) {
+var hs = /* @__PURE__ */ new WeakMap();
+function gs(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function cs(e, t) {
- let n = os.get(e);
+function _s(e, t) {
+ let n = hs.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${ss(t)}`;
+ return `${n.id}-option-${gs(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function ls(e) {
- return pn() ? e.altKey : e.ctrlKey;
+function vs(e) {
+ return xn() ? e.altKey : e.ctrlKey;
}
-function us(e, t) {
+function ys(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 ds = /* @__PURE__ */ new WeakMap();
-function fs(e) {
- let t = br();
- return ds.set(e, t), t;
+var bs = /* @__PURE__ */ new WeakMap();
+function xs(e) {
+ let t = Or();
+ return bs.set(e, t), t;
}
-function ps(e) {
- return ds.get(e);
+function Ss(e) {
+ return bs.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var ms = class {
+var Cs = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : us(this.ref, e);
+ let n = e == null ? null : ys(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5548,12 +5611,12 @@ var ms = class {
height: e?.clientHeight ?? 0
};
}
-}, hs = class {
+}, ws = 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 ms(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 ms(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 Cs(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 Cs(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5593,14 +5656,14 @@ var ms = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = us(this.ref, e);
+ let t = this.getNextKey(e), n = ys(this.ref, e);
if (t != null) {
- let e = us(this.ref, t);
+ let e = ys(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = us(this.ref, r);
+ let e = ys(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5634,7 +5697,7 @@ var ms = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !po(t)) return this.getFirstKey();
+ if (t && !So(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5649,7 +5712,7 @@ var ms = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !po(t)) return this.getLastKey();
+ if (t && !So(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);
@@ -5672,184 +5735,184 @@ var ms = class {
}
return null;
}
-}, gs = {};
-gs = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, Ts = {};
+Ts = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var _s = {};
-_s = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Es = {};
+Es = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var vs = {};
-vs = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Ds = {};
+Ds = { 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 ys = {};
-ys = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Os = {};
+Os = { 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 bs = {};
-bs = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ks = {};
+ks = { 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 xs = {};
-xs = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var As = {};
+As = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Ss = {};
-Ss = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var js = {};
+js = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Cs = {};
-Cs = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Ms = {};
+Ms = { 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 ws = {};
-ws = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ns = {};
+Ns = { 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 Ts = {};
-Ts = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Ps = {};
+Ps = { 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 Es = {};
-Es = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Fs = {};
+Fs = { 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 Ds = {};
-Ds = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Is = {};
+Is = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Os = {};
-Os = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Ls = {};
+Ls = { 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 ks = {};
-ks = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Rs = {};
+Rs = { 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 As = {};
-As = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var zs = {};
+zs = { 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 js = {};
-js = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Bs = {};
+Bs = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Ms = {};
-Ms = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Vs = {};
+Vs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Ns = {};
-Ns = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Hs = {};
+Hs = { 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 Ps = {};
-Ps = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Us = {};
+Us = { 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 Fs = {};
-Fs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Ws = {};
+Ws = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Is = {};
-Is = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Gs = {};
+Gs = { 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 Ls = {};
-Ls = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ks = {};
+Ks = { 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 Rs = {};
-Rs = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var qs = {};
+qs = { 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 zs = {};
-zs = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Js = {};
+Js = { 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 Bs = {};
-Bs = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Ys = {};
+Ys = { 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 Vs = {};
-Vs = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Xs = {};
+Xs = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Hs = {};
-Hs = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Zs = {};
+Zs = { 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 Us = {};
-Us = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Qs = {};
+Qs = { 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 Ws = {};
-Ws = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var $s = {};
+$s = { 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 Gs = {};
-Gs = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var ec = {};
+ec = { 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 Ks = {};
-Ks = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var tc = {};
+tc = { 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 qs = {};
-qs = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var nc = {};
+nc = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Js = {};
-Js = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var rc = {};
+rc = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Ys = {};
-Ys = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var ic = {};
+ic = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Xs = {};
-Xs = {
- "ar-AE": gs,
- "bg-BG": _s,
- "cs-CZ": vs,
- "da-DK": ys,
- "de-DE": bs,
- "el-GR": xs,
- "en-US": Ss,
- "es-ES": Cs,
- "et-EE": ws,
- "fi-FI": Ts,
- "fr-FR": Es,
- "he-IL": Ds,
- "hr-HR": Os,
- "hu-HU": ks,
- "it-IT": As,
- "ja-JP": js,
- "ko-KR": Ms,
- "lt-LT": Ns,
- "lv-LV": Ps,
- "nb-NO": Fs,
- "nl-NL": Is,
- "pl-PL": Ls,
- "pt-BR": Rs,
- "pt-PT": zs,
- "ro-RO": Bs,
- "ru-RU": Vs,
- "sk-SK": Hs,
- "sl-SI": Us,
- "sr-SP": Ws,
- "sv-SE": Gs,
- "tr-TR": Ks,
- "uk-UA": qs,
- "zh-CN": Js,
- "zh-TW": Ys
+var ac = {};
+ac = {
+ "ar-AE": Ts,
+ "bg-BG": Es,
+ "cs-CZ": Ds,
+ "da-DK": Os,
+ "de-DE": ks,
+ "el-GR": As,
+ "en-US": js,
+ "es-ES": Ms,
+ "et-EE": Ns,
+ "fi-FI": Ps,
+ "fr-FR": Fs,
+ "he-IL": Is,
+ "hr-HR": Ls,
+ "hu-HU": Rs,
+ "it-IT": zs,
+ "ja-JP": Bs,
+ "ko-KR": Vs,
+ "lt-LT": Hs,
+ "lv-LV": Us,
+ "nb-NO": Ws,
+ "nl-NL": Gs,
+ "pl-PL": Ks,
+ "pt-BR": qs,
+ "pt-PT": Js,
+ "ro-RO": Ys,
+ "ru-RU": Xs,
+ "sk-SK": Zs,
+ "sl-SI": Qs,
+ "sr-SP": $s,
+ "sv-SE": ec,
+ "tr-TR": tc,
+ "uk-UA": nc,
+ "zh-CN": rc,
+ "zh-TW": ic
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Zs = 500;
-function Qs(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Zs, accessibilityDescription: s } = e, c = (0, C.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = _a(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ca({
+var oc = 500;
+function sc(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = oc, accessibilityDescription: s } = e, c = (0, E.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Ea(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ma({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5857,12 +5920,12 @@ function Qs(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), F(e.target).activeElement !== e.target && Et(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), L(e.target).activeElement !== e.target && Pt(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 = jt(e.target);
+ let t = zt(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5877,12 +5940,12 @@ function Qs(e) {
});
}
});
- return { longPressProps: R(f, xo(a && !t ? s : void 0)) };
+ return { longPressProps: B(f, Ao(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function $s(e) {
- let { onContextMenu: t } = e, n = (0, C.useRef)(!1), { longPressProps: r } = Qs({
+function cc(e) {
+ let { onContextMenu: t } = e, n = (0, E.useRef)(!1), { longPressProps: r } = sc({
onLongPressStart() {
n.current = !1;
},
@@ -5894,7 +5957,7 @@ function $s(e) {
});
}
});
- return t ? { contextMenuProps: R(fn() ? r : {}, {
+ return t ? { contextMenuProps: B(bn() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5905,7 +5968,7 @@ function $s(e) {
});
},
onKeyDown(e) {
- if (ln() && e.ctrlKey && e.key === "Enter") {
+ if (_n() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5925,13 +5988,13 @@ function $s(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var ec = /* @__PURE__ */ new WeakMap();
-function tc(e) {
+var lc = /* @__PURE__ */ new WeakMap();
+function uc(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, C.useEffect)(() => !n || r === null ? void 0 : It(Vt(t.current), "scroll", (e) => {
- let n = L(e);
- if (!t.current || n instanceof Node && !I(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || ec.get(t.current);
+ (0, E.useEffect)(() => !n || r === null ? void 0 : Wt(Yt(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 || lc.get(t.current);
i && i();
}, !0), [
n,
@@ -5941,14 +6004,14 @@ function tc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function nc(e, t, n) {
+function dc(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, C.useEffect)(() => {
- n && n.current && ec.set(n.current, t.close);
+ (0, E.useEffect)(() => {
+ n && n.current && lc.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = br();
+ let o = Or();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5961,14 +6024,14 @@ function nc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function rc(e) {
+function fc(e) {
return e && e.__esModule ? e.default : e;
}
-function ic(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = br(), { triggerProps: s, overlayProps: c } = nc({ type: r }, t, n), l = (e, n, r = "first") => {
+function pc(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Or(), { triggerProps: s, overlayProps: c } = dc({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Vr({
+ }, { keyboardProps: u } = Yr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5980,7 +6043,7 @@ function ic(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = na(rc(Xs), "@react-aria/menu"), { longPressProps: f } = Qs({
+ }), d = ua(fc(ac), "@react-aria/menu"), { longPressProps: f } = sc({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5992,24 +6055,24 @@ function ic(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Et(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Pt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (Et(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Pt(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = $s({ onContextMenu(e) {
+ let { contextMenuProps: m } = cc({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && L(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && z(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -6044,13 +6107,13 @@ function ic(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var ac = 1e3;
-function oc(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, C.useRef)({
+var mc = 1e3;
+function hc(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, E.useRef)({
search: "",
timeout: void 0
});
- return (0, C.useEffect)(() => {
+ return (0, E.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -6064,12 +6127,12 @@ function oc(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, ac);
+ }, mc);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = sc(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !I(e.currentTarget, L(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = gc(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !R(e.currentTarget, z(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();
@@ -6080,34 +6143,34 @@ function oc(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, ac);
+ }, mc);
}
} : void 0
} };
}
-function sc(e) {
+function gc(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function cc(e, t) {
- let n = (0, C.useRef)(!0), r = (0, C.useRef)(null);
- $t(() => (n.current = !0, () => {
+function _c(e, t) {
+ let n = (0, E.useRef)(!0), r = (0, E.useRef)(null);
+ cn(() => (n.current = !0, () => {
n.current = !1;
- }), []), $t(() => {
+ }), []), cn(() => {
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 lc(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 } = Hi(), _ = xn(), v = (e, n, i) => {
+function vc(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 } = Xi(), _ = kn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !ls(e)) {
- (0, ti.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !vs(e)) {
+ (0, li.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = us(r, n), o = t.getItemProps(n);
+ let a = ys(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -6119,7 +6182,7 @@ function lc(e) {
t.extendSelection(n);
return;
}
- if (l && !ls(e)) {
+ if (l && !vs(e)) {
t.replaceSelection(n);
return;
}
@@ -6146,9 +6209,9 @@ function lc(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Ti(e));
+ let r = n.getFirstKey(t.focusedKey, Ni(e));
if (t.setFocusedKey(r), r != null) {
- if (Ti(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ni(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6168,7 +6231,7 @@ function lc(e) {
}
}
return !1;
- }, w = (e) => {
+ }, C = (e) => {
if (n.getKeyRightOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyRightOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getLastKey?.(t.focusedKey) : n.getFirstKey?.(t.focusedKey)), r != null) {
@@ -6177,12 +6240,12 @@ function lc(e) {
}
}
return !1;
- }, T = (e) => {
+ }, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Ti(e));
+ let r = n.getLastKey(t.focusedKey, Ni(e));
if (t.setFocusedKey(r), r != null) {
- if (Ti(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ni(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6193,7 +6256,7 @@ function lc(e) {
}
}
return !1;
- }, E = (e) => {
+ }, T = (e) => {
if (n.getKeyPageBelow && t.focusedKey != null) {
let r = n.getKeyPageBelow(t.focusedKey);
if (r != null) return v(e, r);
@@ -6219,12 +6282,12 @@ function lc(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = ro(r.current, { tabbable: !0 }), t, n;
+ let e = po(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = Bt();
- t && (!Ht(t) || i && !Zt(i)) && Et(t);
+ let i = Jt();
+ t && (!Xt(t) || i && !on(i)) && Pt(t);
}
return {
shouldContinuePropagation: !0,
@@ -6234,44 +6297,44 @@ function lc(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [ln() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [_n() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [ln() ? e + "+Alt" : e + "+Control"]: t,
+ [_n() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: ee } = Vr({
+ }), { keyboardProps: ee } = Yr({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
...M("ArrowLeft", S),
- ...M("ArrowRight", w),
- ...M("PageDown", E),
+ ...M("ArrowRight", C),
+ ...M("PageDown", T),
...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: te } = Vr({ shortcuts: {
+ }), { keyboardProps: te } = Yr({ shortcuts: {
...M("Home", x),
- ...M("End", T),
+ ...M("End", w),
"Mod+A": O,
Escape: k,
Tab: A,
"Tab+Shift": j
- } }), ne = (0, C.useRef)({
+ } }), N = (0, E.useRef)({
top: 0,
left: 0
});
- Ai(p, "scroll", () => {
- ne.current = {
+ Ri(p, "scroll", () => {
+ N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
};
});
- let N = (e) => {
+ let P = (e) => {
if (t.isFocused) {
- I(e.currentTarget, L(e)) || t.setFocused(!1);
+ R(e.currentTarget, z(e)) || t.setFocused(!1);
return;
}
- if (!I(e.currentTarget, L(e))) return;
- let i = nr();
+ if (!R(e.currentTarget, z(e))) return;
+ let i = ur();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6280,34 +6343,34 @@ function lc(e) {
else if (t.focusedKey == null) {
let r = e.relatedTarget;
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);
+ } else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = us(r, t.focusedKey);
- e instanceof HTMLElement && (!Ht(e) && !d && Et(e), (i === "keyboard" || h && i === "virtual") && vo(e, { containingElement: r.current }));
+ let e = ys(r, t.focusedKey);
+ e instanceof HTMLElement && (!Xt(e) && !d && Pt(e), (i === "keyboard" || h && i === "virtual") && Do(e, { containingElement: r.current }));
}
- }, re = (e) => {
- I(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, ie = (0, C.useRef)(!1);
- Ai(r, bi, d ? (e) => {
+ }, ne = (e) => {
+ R(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, re = (0, E.useRef)(!1);
+ Ri(r, Oi, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ie.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
- let ae = n.getFirstKey?.() ?? null;
- cc(() => {
- if (ie.current) {
- if (ae == null) {
- let e = Bt();
- xi(r.current), Ci(e, null), t.collection.size > 0 && (ie.current = !1);
- } else t.setFocusedKey(ae), ie.current = !1;
- }
- }, [ae, t.collection.size]), cc(() => {
- t.collection.size > 0 && (ie.current = !1);
- }, [t.focusedKey]), Ai(r, yi, d ? (e) => {
+ let F = n.getFirstKey?.() ?? null;
+ _c(() => {
+ if (re.current) {
+ if (F == null) {
+ let e = Jt();
+ ki(r.current), ji(e, null), t.collection.size > 0 && (re.current = !1);
+ } else t.setFocusedKey(F), re.current = !1;
+ }
+ }, [F, t.collection.size]), _c(() => {
+ t.collection.size > 0 && (re.current = !1);
+ }, [t.focusedKey]), Ri(r, Di, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let oe = (0, C.useRef)(i), se = (0, C.useRef)(!1);
- (0, C.useEffect)(() => {
- if (oe.current) {
+ let ie = (0, E.useRef)(i), ae = (0, E.useRef)(!1);
+ (0, E.useEffect)(() => {
+ if (ie.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -6317,53 +6380,53 @@ function lc(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && pr(r.current), t.collection.size > 0 && (oe.current = !1, se.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && xr(r.current), t.collection.size > 0 && (ie.current = !1, ae.current = !0);
}
});
- let ce = (0, C.useRef)(t.focusedKey), le = (0, C.useRef)(null);
- (0, C.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ce.current || se.current) && p.current && r.current) {
- let e = nr(), n = us(r, t.focusedKey);
+ let oe = (0, E.useRef)(t.focusedKey), se = (0, E.useRef)(null);
+ (0, E.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
+ let e = ur(), n = ys(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || se.current) && (le.current && cancelAnimationFrame(le.current), le.current = requestAnimationFrame(() => {
- p.current && (go(p.current, n), e !== "virtual" && vo(n, { containingElement: r.current }));
+ (e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
+ p.current && (To(p.current, n), e !== "virtual" && Do(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ce.current != null && r.current && pr(r.current), ce.current = t.focusedKey, se.current = !1;
- }), (0, C.useEffect)(() => () => {
- le.current && cancelAnimationFrame(le.current);
- }, []), Ai(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && xr(r.current), oe.current = t.focusedKey, ae.current = !1;
+ }), (0, E.useEffect)(() => () => {
+ se.current && cancelAnimationFrame(se.current);
+ }, []), Ri(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let ue = {
- ...R(te, ee),
- onFocus: N,
- onBlur: re,
+ let ce = {
+ ...B(te, ee),
+ onFocus: P,
+ onBlur: ne,
onMouseDown(e) {
- p.current === L(e) && e.preventDefault();
+ p.current === z(e) && e.preventDefault();
}
- }, { typeSelectProps: de } = oc({
+ }, { typeSelectProps: le } = hc({
keyboardDelegate: n,
selectionManager: t
});
- u || (ue = R(de, ue));
- let fe;
- d || (fe = t.focusedKey == null ? 0 : -1);
- let pe = fs(t.collection);
- return { collectionProps: R(ue, {
- tabIndex: fe,
- "data-collection": pe
+ u || (ce = B(le, ce));
+ let ue;
+ d || (ue = t.focusedKey == null ? 0 : -1);
+ let de = xs(t.collection);
+ return { collectionProps: B(ce, {
+ tabIndex: ue,
+ "data-collection": de
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function uc(e, t) {
+function yc(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function dc(e) {
- return fc(e, 0);
+function bc(e) {
+ return xc(e, 0);
}
-function fc(e, t) {
+function xc(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6371,101 +6434,101 @@ function fc(e, t) {
n++;
}
}
-function pc(e) {
+function Sc(e) {
let t;
for (let n of e) t = n;
return t;
}
-function mc(e, t, n) {
+function Cc(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...hc(e, t), t], i = [...hc(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...wc(e, t), t], i = [...wc(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 hc(e, t) {
+function wc(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 gc = /* @__PURE__ */ new WeakMap();
-function _c(e) {
- let t = gc.get(e);
+var Tc = /* @__PURE__ */ new WeakMap();
+function Ec(e) {
+ let t = Tc.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(uc(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(yc(i, e)) : i.type === "item" && n++;
};
- return r(e), gc.set(e, n), n;
+ return r(e), Tc.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var vc = /* @__PURE__ */ new Map();
-function yc(e) {
- let { locale: t } = Hi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (vc.has(n)) return vc.get(n);
+var Dc = /* @__PURE__ */ new Map();
+function Oc(e) {
+ let { locale: t } = Xi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (Dc.has(n)) return Dc.get(n);
let r = new Intl.Collator(t, e);
- return vc.set(n, r), r;
+ return Dc.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function bc({ children: e }) {
- let t = (0, C.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ C.createElement(ga.Provider, { value: t }, e);
+function kc({ children: e }) {
+ let t = (0, E.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ E.createElement(Ta.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var xc = /*#__PURE__*/ (0, C.createContext)({});
-function Sc(e) {
- let { getContainer: t } = e, { getContainer: n } = Cc();
- return /*#__PURE__*/ C.createElement(xc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Ac = /*#__PURE__*/ (0, E.createContext)({});
+function jc(e) {
+ let { getContainer: t } = e, { getContainer: n } = Mc();
+ return /*#__PURE__*/ E.createElement(Ac.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function Cc() {
- return (0, C.useContext)(xc) ?? {};
+function Mc() {
+ return (0, E.useContext)(Ac) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var wc = /*#__PURE__*/ C.createContext(null);
-function Tc(e) {
- let t = Rn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, C.useState)(!1), o = (0, C.useMemo)(() => ({
+var Nc = /*#__PURE__*/ E.createContext(null);
+function Pc(e) {
+ let t = Kn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, E.useState)(!1), o = (0, E.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = Cc();
+ }), [i, a]), { getContainer: s } = Mc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ C.createElement(La, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ E.createElement(Ka, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ C.createElement(wc.Provider, { value: o }, /*#__PURE__*/ C.createElement(bc, null, /*#__PURE__*/ C.createElement(Wr.Provider, { value: null }, c))), /*#__PURE__*/ ti.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ E.createElement(Nc.Provider, { value: o }, /*#__PURE__*/ E.createElement(kc, null, /*#__PURE__*/ E.createElement(Qr.Provider, { value: null }, c))), /*#__PURE__*/ li.createPortal(c, n);
}
-function Ec() {
- let e = (0, C.useContext)(wc)?.setContain;
- $t(() => {
+function Fc() {
+ let e = (0, E.useContext)(Nc)?.setContain;
+ cn(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Dc(e, t) {
- let { role: n = "dialog" } = e, r = Sr();
+function Ic(e, t) {
+ let { role: n = "dialog" } = e, r = Ar();
r = e["aria-label"] ? void 0 : r;
- let i = Sr();
+ let i = Ar();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, C.useRef)(!1);
- (0, C.useEffect)(() => {
- if (t.current && !Ht(t.current)) {
- pr(t.current);
+ let a = (0, E.useRef)(!1);
+ (0, E.useEffect)(() => {
+ if (t.current && !Xt(t.current)) {
+ xr(t.current);
let e = setTimeout(() => {
- (Bt() === t.current || Bt() === document.body) && (a.current = !0, t.current && (t.current.blur(), pr(t.current)), a.current = !1);
+ (Jt() === t.current || Jt() === document.body) && (a.current = !0, t.current && (t.current.blur(), xr(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), Ec(), (0, C.useRef)(!1), (0, C.useEffect)(() => {});
+ }, [t]), Fc(), (0, E.useRef)(!1), (0, E.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...B(e, { labelable: !0 }),
+ ...V(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6480,23 +6543,23 @@ function Dc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Oc(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, C.useRef)({
+function Lc(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, E.useRef)({
isFocused: !1,
- isFocusVisible: t || tr()
- }), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, C.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, C.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = tr(), o(e), l();
+ isFocusVisible: t || lr()
+ }), [a, o] = (0, E.useState)(!1), [s, c] = (0, E.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, E.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, E.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = lr(), o(e), l();
}, [l]);
- sr((e) => {
+ hr((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Dr({
+ let { focusProps: d } = Fr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = Wo({
+ }), { focusWithinProps: f } = $o({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6508,42 +6571,42 @@ function Oc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function kc(e = {}) {
- let { locale: t } = Hi();
- return (0, C.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function Rc(e = {}) {
+ let { locale: t } = Xi();
+ return (0, E.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Ac = !1, jc = 0;
-function Mc() {
- Ac = !0, setTimeout(() => {
- Ac = !1;
+var zc = !1, Bc = 0;
+function Vc() {
+ zc = !0, setTimeout(() => {
+ zc = !1;
}, 500);
}
-function Nc(e) {
- e.pointerType === "touch" && Mc();
+function Hc(e) {
+ e.pointerType === "touch" && Vc();
}
-function Pc() {
- let e = F(null);
- if (e !== void 0) return jc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Nc), jc++, () => {
- jc--, !(jc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Nc);
+function Uc() {
+ let e = L(null);
+ if (e !== void 0) return Bc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Hc), Bc++, () => {
+ Bc--, !(Bc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Hc);
};
}
-function Fc(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, C.useState)(!1), s = (0, C.useRef)({
+function Wc(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, E.useState)(!1), s = (0, E.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, C.useEffect)(Pc, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = _a(), { hoverProps: u, triggerHoverEnd: d } = (0, C.useMemo)(() => {
+ (0, E.useEffect)(Uc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Ea(), { hoverProps: u, triggerHoverEnd: d } = (0, E.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !I(e.currentTarget, L(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !R(e.currentTarget, z(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(F(L(e)), "pointerover", (e) => {
- s.isHovered && s.target && !I(s.target, L(e)) && a(e, e.pointerType);
+ s.target = l, c(L(z(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !R(s.target, z(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -6558,9 +6621,9 @@ function Fc(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Ac && t.pointerType === "mouse" || e(t, t.pointerType);
+ zc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && I(e.currentTarget, L(e)) && a(e, e.pointerType);
+ !i && R(e.currentTarget, z(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -6574,7 +6637,7 @@ function Fc(e) {
c,
l
]);
- return (0, C.useEffect)(() => {
+ return (0, E.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -6583,22 +6646,22 @@ function Fc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Ic(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, C.useRef)({
+function Gc(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, E.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = ki((e) => {
- n && Lc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = ki((e) => {
+ }), o = Li((e) => {
+ n && Kc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Li((e) => {
n && n(e);
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = F(n);
+ let n = t.current, i = L(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Lc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Kc(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);
@@ -6606,19 +6669,19 @@ function Ic(e) {
}
}, [t, r]);
}
-function Lc(e, t) {
+function Kc(e, t) {
if (e.button > 0) return !1;
- let n = L(e);
+ let n = z(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !I(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !R(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/intl/grid/ar-AE.mjs
-var Rc = {};
-Rc = {
+var qc = {};
+qc = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -6632,8 +6695,8 @@ Rc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var zc = {};
-zc = {
+var Jc = {};
+Jc = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -6647,8 +6710,8 @@ zc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Bc = {};
-Bc = {
+var Yc = {};
+Yc = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -6662,8 +6725,8 @@ Bc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Vc = {};
-Vc = {
+var Xc = {};
+Xc = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -6677,8 +6740,8 @@ Vc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Hc = {};
-Hc = {
+var Zc = {};
+Zc = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -6692,8 +6755,8 @@ Hc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Uc = {};
-Uc = {
+var Qc = {};
+Qc = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -6707,8 +6770,8 @@ Uc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var Wc = {};
-Wc = {
+var $c = {};
+$c = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -6722,8 +6785,8 @@ Wc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Gc = {};
-Gc = {
+var el = {};
+el = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -6737,8 +6800,8 @@ Gc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Kc = {};
-Kc = {
+var tl = {};
+tl = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -6752,8 +6815,8 @@ Kc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var qc = {};
-qc = {
+var nl = {};
+nl = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -6767,8 +6830,8 @@ qc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Jc = {};
-Jc = {
+var rl = {};
+rl = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -6782,8 +6845,8 @@ Jc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Yc = {};
-Yc = {
+var il = {};
+il = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -6797,8 +6860,8 @@ Yc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Xc = {};
-Xc = {
+var al = {};
+al = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -6812,8 +6875,8 @@ Xc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Zc = {};
-Zc = {
+var ol = {};
+ol = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -6827,8 +6890,8 @@ Zc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Qc = {};
-Qc = {
+var sl = {};
+sl = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -6842,8 +6905,8 @@ Qc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var $c = {};
-$c = {
+var cl = {};
+cl = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -6857,8 +6920,8 @@ $c = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var el = {};
-el = {
+var ll = {};
+ll = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -6872,8 +6935,8 @@ el = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var tl = {};
-tl = {
+var ul = {};
+ul = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -6887,8 +6950,8 @@ tl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var nl = {};
-nl = {
+var dl = {};
+dl = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -6902,8 +6965,8 @@ nl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var rl = {};
-rl = {
+var fl = {};
+fl = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -6917,8 +6980,8 @@ rl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var il = {};
-il = {
+var pl = {};
+pl = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -6932,8 +6995,8 @@ il = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var al = {};
-al = {
+var ml = {};
+ml = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -6947,8 +7010,8 @@ al = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var ol = {};
-ol = {
+var hl = {};
+hl = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -6962,8 +7025,8 @@ ol = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var sl = {};
-sl = {
+var gl = {};
+gl = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -6977,8 +7040,8 @@ sl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var cl = {};
-cl = {
+var _l = {};
+_l = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -6992,8 +7055,8 @@ cl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var ll = {};
-ll = {
+var vl = {};
+vl = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -7007,8 +7070,8 @@ ll = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var ul = {};
-ul = {
+var yl = {};
+yl = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -7022,8 +7085,8 @@ ul = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var dl = {};
-dl = {
+var bl = {};
+bl = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -7037,8 +7100,8 @@ dl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var fl = {};
-fl = {
+var xl = {};
+xl = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -7052,8 +7115,8 @@ fl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var pl = {};
-pl = {
+var Sl = {};
+Sl = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -7067,8 +7130,8 @@ pl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var ml = {};
-ml = {
+var Cl = {};
+Cl = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -7082,8 +7145,8 @@ ml = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var hl = {};
-hl = {
+var wl = {};
+wl = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -7097,8 +7160,8 @@ hl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var gl = {};
-gl = {
+var Tl = {};
+Tl = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -7112,8 +7175,8 @@ gl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var _l = {};
-_l = {
+var El = {};
+El = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -7127,55 +7190,55 @@ _l = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var vl = {};
-vl = {
- "ar-AE": Rc,
- "bg-BG": zc,
- "cs-CZ": Bc,
- "da-DK": Vc,
- "de-DE": Hc,
- "el-GR": Uc,
- "en-US": Wc,
- "es-ES": Gc,
- "et-EE": Kc,
- "fi-FI": qc,
- "fr-FR": Jc,
- "he-IL": Yc,
- "hr-HR": Xc,
- "hu-HU": Zc,
- "it-IT": Qc,
- "ja-JP": $c,
- "ko-KR": el,
- "lt-LT": tl,
- "lv-LV": nl,
- "nb-NO": rl,
- "nl-NL": il,
- "pl-PL": al,
- "pt-BR": ol,
- "pt-PT": sl,
- "ro-RO": cl,
- "ru-RU": ll,
- "sk-SK": ul,
- "sl-SI": dl,
- "sr-SP": fl,
- "sv-SE": pl,
- "tr-TR": ml,
- "uk-UA": hl,
- "zh-CN": gl,
- "zh-TW": _l
+var Dl = {};
+Dl = {
+ "ar-AE": qc,
+ "bg-BG": Jc,
+ "cs-CZ": Yc,
+ "da-DK": Xc,
+ "de-DE": Zc,
+ "el-GR": Qc,
+ "en-US": $c,
+ "es-ES": el,
+ "et-EE": tl,
+ "fi-FI": nl,
+ "fr-FR": rl,
+ "he-IL": il,
+ "hr-HR": al,
+ "hu-HU": ol,
+ "it-IT": sl,
+ "ja-JP": cl,
+ "ko-KR": ll,
+ "lt-LT": ul,
+ "lv-LV": dl,
+ "nb-NO": fl,
+ "nl-NL": pl,
+ "pl-PL": ml,
+ "pt-BR": hl,
+ "pt-PT": gl,
+ "ro-RO": _l,
+ "ru-RU": vl,
+ "sk-SK": yl,
+ "sl-SI": bl,
+ "sr-SP": xl,
+ "sv-SE": Sl,
+ "tr-TR": Cl,
+ "uk-UA": wl,
+ "zh-CN": Tl,
+ "zh-TW": El
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function yl(e) {
+function Ol(e) {
return e && e.__esModule ? e.default : e;
}
-function bl(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = na(yl(vl), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, C.useRef)(i), o = (0, C.useCallback)(() => {
+function kl(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = ua(Ol(Dl), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, E.useRef)(i), o = (0, E.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = xl(i, a.current), o = xl(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Al(i, a.current), o = Al(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -7195,7 +7258,7 @@ function bl(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && lo(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && yo(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -7206,7 +7269,7 @@ function bl(e, t) {
n,
r
]);
- fo(() => {
+ xo(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -7214,7 +7277,7 @@ function bl(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function xl(e, t) {
+function Al(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -7222,13 +7285,13 @@ function xl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Sl(e, t) {
- let n = t?.isDisabled, [r, i] = (0, C.useState)(!1);
- return $t(() => {
+function jl(e, t) {
+ let n = t?.isDisabled, [r, i] = (0, E.useState)(!1);
+ return cn(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = ro(e.current, { tabbable: !0 });
+ let t = po(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -7247,12 +7310,12 @@ function Sl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Cl(e) {
+function Ml(e) {
return e && e.__esModule ? e.default : e;
}
-function wl(e) {
- let t = na(Cl(vl), "@react-aria/grid"), n = ir(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return xo((0, C.useMemo)(() => {
+function Nl(e) {
+ let t = ua(Ml(Dl), "@react-aria/grid"), n = fr(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return Ao((0, E.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -7265,11 +7328,11 @@ function wl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Tl(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = yc({
+function Pl(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Oc({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, C.useMemo)(() => a || new hs({
+ }), l = t.disabledBehavior, u = (0, E.useMemo)(() => a || new ws({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -7286,7 +7349,7 @@ function Tl(e) {
c,
l,
s
- ]), { collectionProps: d } = lc({
+ ]), { collectionProps: d } = vc({
...e,
ref: i,
selectionManager: t,
@@ -7296,11 +7359,11 @@ function Tl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function El(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 = xn();
- t = br(t);
+function Fl(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 = kn();
+ t = Or(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && ls(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && vs(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -7311,11 +7374,11 @@ function El(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 && (Ti(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 && (Ni(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, C.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? xi(i.current) : s ? s() : Bt() !== i.current && i.current && pr(i.current));
+ (0, E.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? ki(i.current) : s ? s() : Jt() !== i.current && i.current && xr(i.current));
}, [
i,
r,
@@ -7328,38 +7391,38 @@ function El(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- L(e) === i.current && n.setFocusedKey(r);
+ z(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, C.useEffect)(() => {
+ }), (0, E.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, w = (0, C.useRef)(null), T = S && v, E = (0, C.useRef)(!1), D = (0, C.useRef)(!1), O = n.getItemProps(r), k = (e) => {
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, E.useRef)(null), w = S && v, T = (0, E.useRef)(!1), D = (0, E.useRef)(!1), O = n.getItemProps(r), k = (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" && (!S || Ol(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || Ll(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 || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Dl(e.key)) return;
+ if (e.pointerType === "keyboard" && !Il(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 || Ol(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Ll(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Dl(e.key) || e.pointerType === "mouse" && D.current) && (S ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Il(e.key) || e.pointerType === "mouse" && D.current) && (S ? k(e) : v && p(e));
});
- let j = ps(n.collection);
- if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = R(A, {
+ let j = Ss(n.collection);
+ if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = B(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -7373,50 +7436,50 @@ function El(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = mr(A[e], O[e]));
- let { pressProps: M, isPressed: ee } = Ca(A), te = x ? (e) => {
- w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: ne } = Qs({
- isDisabled: !T,
+ ]) O[e] && (A[e] = Sr(A[e], O[e]));
+ let { pressProps: M, isPressed: ee } = Ma(A), te = x ? (e) => {
+ C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
+ } : void 0, { longPressProps: N } = sc({
+ isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
}
- }), N = (e) => {
- w.current === "touch" && E.current && e.preventDefault();
- }, re = d !== "none" && n.isLink(r) ? (e) => {
- Sn.isOpening || e.preventDefault();
- } : void 0, ie = R(m, v || b || o && !c ? M : {}, T ? ne : {}, {
+ }), P = (e) => {
+ C.current === "touch" && T.current && e.preventDefault();
+ }, ne = d !== "none" && n.isLink(r) ? (e) => {
+ An.isOpening || e.preventDefault();
+ } : void 0, re = B(m, v || b || o && !c ? M : {}, w ? N : {}, {
onDoubleClick: te,
- onDragStartCapture: N,
- onClick: re,
+ onDragStartCapture: P,
+ onClick: ne,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ae = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), F = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
if (e != null) return e !== j;
t = t.parentElement;
}
- return Zt(e);
- }, oe = ie.onPointerDown;
- ie.onPointerDown = (e) => {
- let t = L(e);
- if (t && t !== i.current && ae(t)) {
+ return on(e);
+ }, ie = re.onPointerDown;
+ re.onPointerDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && F(t)) {
e.stopPropagation();
return;
}
- oe?.(e);
+ ie?.(e);
};
- let se = ie.onMouseDown;
- return ie.onMouseDown = (e) => {
- let t = L(e);
- if (t && t !== i.current && ae(t)) {
+ let ae = re.onMouseDown;
+ return re.onMouseDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && F(t)) {
e.stopPropagation();
return;
}
- se?.(e);
+ ae?.(e);
}, {
- itemProps: ie,
+ itemProps: re,
isPressed: ee,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
@@ -7425,22 +7488,22 @@ function El(e) {
hasAction: S
};
}
-function Dl(e) {
+function Il(e) {
return e === "Enter";
}
-function Ol(e) {
+function Ll(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function kl(e) {
+function Rl(e) {
return e && e.__esModule ? e.default : e;
}
-function Al(e, t) {
- let { key: n } = e, r = t.selectionManager, i = br(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function zl(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = Or(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": na(kl(vl), "@react-aria/grid").format("select"),
+ "aria-label": ua(Rl(Dl), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -7448,22 +7511,22 @@ function Al(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function jl(e, t, n) {
- let r = B(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Bl(e, t, n) {
+ let r = V(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 } = Tl({
+ let { listProps: s } = Pl({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = Wo({
+ }), { focusWithinProps: c } = $o({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = br(e.id);
- os.set(t, {
+ }), l = Or(e.id);
+ hs.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -7473,24 +7536,24 @@ function jl(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = Ho({
+ let { labelProps: u, fieldProps: d } = Zo({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: R(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: B(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...R(d, s)
+ ...B(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ml(e) {
- let { heading: t, "aria-label": n } = e, r = br();
+function Vl(e) {
+ let { heading: t, "aria-label": n } = e, r = Or();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -7509,8 +7572,8 @@ function Ml(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Nl(e, t, n) {
- let { key: r } = e, i = os.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 = Sr(), f = Sr(), p = {
+function Hl(e, t, n) {
+ let { key: r } = e, i = hs.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 = Ar(), f = Ar(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -7520,9 +7583,9 @@ function Nl(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"] = _c(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Ec(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = cs(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = El({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = _s(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Fl({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -7531,28 +7594,28 @@ function Nl(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? mr(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 } = Fc({
+ }), { hoverProps: S } = Wc({
isDisabled: a || !c,
onHoverStart() {
- tr() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ lr() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = B(m?.props);
+ }), C = V(m?.props);
delete C.id;
- let w = En(m?.props);
+ let w = Pn(m?.props);
return {
optionProps: {
...p,
- ...R(C, _, S, w),
+ ...B(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && tr(),
+ isFocusVisible: y && t.selectionManager.isFocused && lr(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -7562,15 +7625,15 @@ function Nl(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Pl() {
+function Ul() {
return window.ResizeObserver !== void 0;
}
-function Fl(e) {
- let { ref: t, box: n, onResize: r } = e, i = ki(r);
- (0, C.useEffect)(() => {
+function Wl(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Li(r);
+ (0, E.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Pl()) {
+ if (Ul()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -7586,189 +7649,189 @@ function Fl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Il = {};
-Il = { dismiss: "تجاهل" };
+var Gl = {};
+Gl = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Ll = {};
-Ll = { dismiss: "Отхвърляне" };
+var Kl = {};
+Kl = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Rl = {};
-Rl = { dismiss: "Odstranit" };
+var ql = {};
+ql = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var zl = {};
-zl = { dismiss: "Luk" };
+var Jl = {};
+Jl = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Bl = {};
-Bl = { dismiss: "Schließen" };
+var Yl = {};
+Yl = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Vl = {};
-Vl = { dismiss: "Απόρριψη" };
+var Xl = {};
+Xl = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Hl = {};
-Hl = { dismiss: "Dismiss" };
+var Zl = {};
+Zl = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Ul = {};
-Ul = { dismiss: "Descartar" };
+var Ql = {};
+Ql = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Wl = {};
-Wl = { dismiss: "Lõpeta" };
+var $l = {};
+$l = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Gl = {};
-Gl = { dismiss: "Hylkää" };
+var eu = {};
+eu = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Kl = {};
-Kl = { dismiss: "Rejeter" };
+var tu = {};
+tu = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var ql = {};
-ql = { dismiss: "התעלם" };
+var nu = {};
+nu = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Jl = {};
-Jl = { dismiss: "Odbaci" };
+var ru = {};
+ru = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Yl = {};
-Yl = { dismiss: "Elutasítás" };
+var iu = {};
+iu = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Xl = {};
-Xl = { dismiss: "Ignora" };
+var au = {};
+au = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Zl = {};
-Zl = { dismiss: "閉じる" };
+var ou = {};
+ou = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Ql = {};
-Ql = { dismiss: "무시" };
+var su = {};
+su = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var $l = {};
-$l = { dismiss: "Atmesti" };
+var cu = {};
+cu = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var eu = {};
-eu = { dismiss: "Nerādīt" };
+var lu = {};
+lu = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var tu = {};
-tu = { dismiss: "Lukk" };
+var uu = {};
+uu = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var nu = {};
-nu = { dismiss: "Negeren" };
+var du = {};
+du = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ru = {};
-ru = { dismiss: "Zignoruj" };
+var fu = {};
+fu = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var iu = {};
-iu = { dismiss: "Descartar" };
+var pu = {};
+pu = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var au = {};
-au = { dismiss: "Dispensar" };
+var mu = {};
+mu = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ou = {};
-ou = { dismiss: "Revocare" };
+var hu = {};
+hu = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var su = {};
-su = { dismiss: "Пропустить" };
+var gu = {};
+gu = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var cu = {};
-cu = { dismiss: "Zrušiť" };
+var _u = {};
+_u = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var lu = {};
-lu = { dismiss: "Opusti" };
+var vu = {};
+vu = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var uu = {};
-uu = { dismiss: "Odbaci" };
+var yu = {};
+yu = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var du = {};
-du = { dismiss: "Avvisa" };
+var bu = {};
+bu = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var fu = {};
-fu = { dismiss: "Kapat" };
+var xu = {};
+xu = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var pu = {};
-pu = { dismiss: "Скасувати" };
+var Su = {};
+Su = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var mu = {};
-mu = { dismiss: "取消" };
+var Cu = {};
+Cu = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var hu = {};
-hu = { dismiss: "關閉" };
+var wu = {};
+wu = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var gu = {};
-gu = {
- "ar-AE": Il,
- "bg-BG": Ll,
- "cs-CZ": Rl,
- "da-DK": zl,
- "de-DE": Bl,
- "el-GR": Vl,
- "en-US": Hl,
- "es-ES": Ul,
- "et-EE": Wl,
- "fi-FI": Gl,
- "fr-FR": Kl,
- "he-IL": ql,
- "hr-HR": Jl,
- "hu-HU": Yl,
- "it-IT": Xl,
- "ja-JP": Zl,
- "ko-KR": Ql,
- "lt-LT": $l,
- "lv-LV": eu,
- "nb-NO": tu,
- "nl-NL": nu,
- "pl-PL": ru,
- "pt-BR": iu,
- "pt-PT": au,
- "ro-RO": ou,
- "ru-RU": su,
- "sk-SK": cu,
- "sl-SI": lu,
- "sr-SP": uu,
- "sv-SE": du,
- "tr-TR": fu,
- "uk-UA": pu,
- "zh-CN": mu,
- "zh-TW": hu
+var Tu = {};
+Tu = {
+ "ar-AE": Gl,
+ "bg-BG": Kl,
+ "cs-CZ": ql,
+ "da-DK": Jl,
+ "de-DE": Yl,
+ "el-GR": Xl,
+ "en-US": Zl,
+ "es-ES": Ql,
+ "et-EE": $l,
+ "fi-FI": eu,
+ "fr-FR": tu,
+ "he-IL": nu,
+ "hr-HR": ru,
+ "hu-HU": iu,
+ "it-IT": au,
+ "ja-JP": ou,
+ "ko-KR": su,
+ "lt-LT": cu,
+ "lv-LV": lu,
+ "nb-NO": uu,
+ "nl-NL": du,
+ "pl-PL": fu,
+ "pt-BR": pu,
+ "pt-PT": mu,
+ "ro-RO": hu,
+ "ru-RU": gu,
+ "sk-SK": _u,
+ "sl-SI": vu,
+ "sr-SP": yu,
+ "sv-SE": bu,
+ "tr-TR": xu,
+ "uk-UA": Su,
+ "zh-CN": Cu,
+ "zh-TW": wu
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function _u(e) {
+function Eu(e) {
return e && e.__esModule ? e.default : e;
}
-function vu(e) {
- let { onDismiss: t, ...n } = e, r = ji(n, na(_u(gu), "@react-aria/overlays").format("dismiss")), i = () => {
+function Du(e) {
+ let { onDismiss: t, ...n } = e, r = zi(n, ua(Eu(Tu), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ C.createElement(Qo, null, /*#__PURE__*/ C.createElement("button", {
+ return /*#__PURE__*/ E.createElement(ss, null, /*#__PURE__*/ E.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -7780,38 +7843,38 @@ function vu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var yu = [];
-function bu(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, C.useRef)(void 0);
- (0, C.useEffect)(() => {
- if (i && !yu.includes(t)) return yu.push(t), () => {
- let e = yu.indexOf(t);
- e >= 0 && yu.splice(e, 1);
+var Ou = [];
+function ku(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, E.useRef)(void 0);
+ (0, E.useEffect)(() => {
+ if (i && !Ou.includes(t)) return Ou.push(t), () => {
+ let e = Ou.indexOf(t);
+ e >= 0 && Ou.splice(e, 1);
};
}, [i, t]);
let l = () => {
- yu[yu.length - 1] === t && n && n();
+ Ou[Ou.length - 1] === t && n && n();
}, u = (e) => {
- let n = yu[yu.length - 1];
- c.current = n, (!s || s(L(e))) && n === t && e.stopPropagation();
+ let n = Ou[Ou.length - 1];
+ c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(L(e))) && (yu[yu.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Vr({ shortcuts: { Escape: () => {
+ (!s || s(z(e))) && (Ou[Ou.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Yr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- Ic({
+ Gc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = Wo({
+ let { focusWithinProps: p } = $o({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || qa(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || no(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7824,26 +7887,26 @@ function bu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var xu = typeof document < "u" && window.visualViewport, Su = 0, Cu;
-function wu(e = {}) {
+var Au = typeof document < "u" && window.visualViewport, ju = 0, Mu;
+function Nu(e = {}) {
let { isDisabled: t } = e;
- $t(() => {
- if (!t) return Su++, Su === 1 && (Cu = fn() && mn() ? Eu() : Tu()), () => {
- Su--, Su === 0 && Cu();
+ cn(() => {
+ if (!t) return ju++, ju === 1 && (Mu = bn() && Sn() ? Fu() : Pu()), () => {
+ ju--, ju === 0 && Mu();
};
}, [t]);
}
-function Tu() {
+function Pu() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return mr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Lt(document.documentElement, "scrollbar-gutter", "stable") : Lt(document.documentElement, "padding-right", `${e}px`)), Lt(document.documentElement, "overflow", "hidden"));
+ return Sr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Gt(document.documentElement, "scrollbar-gutter", "stable") : Gt(document.documentElement, "padding-right", `${e}px`)), Gt(document.documentElement, "overflow", "hidden"));
}
-function Eu() {
- let e = Lt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = L(e);
- t = po(r) ? r : mo(r, !0), n = !1;
+function Fu() {
+ let e = Gt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = z(e);
+ t = So(r) ? r : Co(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 = ha();
+ }, i = document.createElement("style"), a = wa();
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)) {
@@ -7854,27 +7917,27 @@ function Eu() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = L(e), n = e.relatedTarget;
- n && Di(n) ? (n.focus({ preventScroll: !0 }), Du(n, Di(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = z(e), n = e.relatedTarget;
+ n && Fi(n) ? (n.focus({ preventScroll: !0 }), Iu(n, Fi(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 = Bt(), n = t != null && Di(t);
+ let t = Jt(), n = t != null && Fi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Du(this, n);
+ }), (!e || !e.preventScroll) && Iu(this, n);
}
});
- let l = mr(It(document, "touchstart", r, {
+ let l = Sr(Wt(document, "touchstart", r, {
passive: !1,
capture: !0
- }), It(document, "touchmove", o, {
+ }), Wt(document, "touchmove", o, {
passive: !1,
capture: !0
- }), It(document, "blur", s, !0));
+ }), Wt(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7883,18 +7946,18 @@ function Eu() {
});
};
}
-function Du(e, t) {
- t || !xu ? Ou(e) : xu.addEventListener("resize", () => Ou(e), { once: !0 });
+function Iu(e, t) {
+ t || !Au ? Lu(e) : Au.addEventListener("resize", () => Lu(e), { once: !0 });
}
-function Ou(e) {
+function Lu(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = mo(n);
+ let e = Co(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;
- xu && (n = Math.min(n, xu.offsetTop + xu.height));
+ Au && (n = Math.min(n, Au.offsetTop + Au.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)),
@@ -7907,48 +7970,48 @@ function Ou(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function ku(e, t, n) {
- let { overlayProps: r, underlayProps: i } = bu({
+function Ru(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = ku({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return wu({ isDisabled: !t.isOpen }), Ec(), (0, C.useEffect)(() => {
- if (t.isOpen && n.current) return is([n.current], { shouldUseInert: !0 });
+ return Nu({ isDisabled: !t.isOpen }), Fc(), (0, E.useEffect)(() => {
+ if (t.isOpen && n.current) return ps([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
- modalProps: R(r),
+ modalProps: B(r),
underlayProps: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Au = {
+var zu = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ju = {
+}, Bu = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Mu = {
+}, Vu = {
top: "left",
left: "top"
-}, Nu = {
+}, Hu = {
top: "height",
left: "width"
-}, Pu = {
+}, Uu = {
width: "totalWidth",
height: "totalHeight"
-}, Fu = {}, Iu = () => typeof document < "u" ? window.visualViewport : null;
-function Lu(e, t) {
+}, Wu = {}, Gu = () => typeof document < "u" ? window.visualViewport : null;
+function Ku(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} = Ju(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return mn() && (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} = rd(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), {
width: n,
height: r,
totalWidth: i,
@@ -7958,7 +8021,7 @@ function Lu(e, t) {
left: s
};
}
-function Ru(e) {
+function qu(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7966,11 +8029,11 @@ function Ru(e) {
height: e.scrollHeight
};
}
-function zu(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Nu[e]], l = o[e] + r.scroll[Au[e]] + a, u = o[e] + r.scroll[Au[e]] + c - a, d = t - s + r.scroll[Au[e]] + o[e] - r[Au[e]], f = t - s + n + r.scroll[Au[e]] + o[e] - r[Au[e]];
+function Ju(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Hu[e]], l = o[e] + r.scroll[zu[e]] + a, u = o[e] + r.scroll[zu[e]] + c - a, d = t - s + r.scroll[zu[e]] + o[e] - r[zu[e]], f = t - s + n + r.scroll[zu[e]] + o[e] - r[zu[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Bu(e) {
+function Yu(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7979,58 +8042,58 @@ function Bu(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Vu(e) {
- if (Fu[e]) return Fu[e];
- let [t, n] = e.split(" "), r = Au[t] || "right", i = Mu[r];
- Au[n] || (n = "center");
- let a = Nu[r], o = Nu[i];
- return Fu[e] = {
+function Xu(e) {
+ if (Wu[e]) return Wu[e];
+ let [t, n] = e.split(" "), r = zu[t] || "right", i = Vu[r];
+ zu[n] || (n = "center");
+ let a = Hu[r], o = Hu[i];
+ return Wu[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Fu[e];
+ }, Wu[e];
}
-function Hu(e, t, n, r, i, a, o, s, c, l, u) {
+function Zu(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] = Yo(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Pu[h]];
- _[ju[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = is(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Uu[h]];
+ _[Bu[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Uu(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Pu.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Qu(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Uu.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 Wu(e, t, n, r, i, a, o, s) {
+function $u(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[ju[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[ju[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Bu[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[Bu[l]] - i);
}
-function Gu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Vu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Hu(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Wu(s, l, t, i, a + u, v, c, g);
+function ed(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Xu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Zu(t, s, n, v, u, d, l, f, m, h, c), T = u, E = $u(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Vu(`${ju[S]} ${C}`), r = Hu(t, s, n, e, u, d, l, f, m, h, c);
- Wu(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Xu(`${Bu[S]} ${C}`), r = Zu(t, s, n, e, u, d, l, f, m, h, c);
+ $u(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 = zu(b, w[b], n[x], s, c, a, l);
+ let O = Ju(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Uu(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Hu(t, s, n, v, T, d, l, f, m, h, c), O = zu(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Au[b]], M = j + .5 * t[x], ee = m / 2 + h, te = Au[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - te - m / 2 - h;
- A[b] = Yo(Yo(M, t[b] + m / 2 - (w[b] + i[Au[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Au[b]])), ee, ne), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
- let N = S === "left" || S === "top" ? n[y] : 0, re = {
- x: S === "top" || S === "bottom" ? j : N,
- y: S === "left" || S === "right" ? j : N
+ let k = Qu(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Zu(t, s, n, v, T, d, l, f, m, h, c), O = Ju(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[zu[b]], M = j + .5 * t[x], ee = m / 2 + h, te = zu[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), N = n[x] - te - m / 2 - h;
+ A[b] = is(is(M, t[b] + m / 2 - (w[b] + i[zu[b]]), t[b] + t[x] - m / 2 - (w[b] + i[zu[b]])), ee, N), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let P = S === "left" || S === "top" ? n[y] : 0, ne = {
+ x: S === "top" || S === "bottom" ? j : P,
+ y: S === "left" || S === "right" ? j : P
};
return {
position: w,
@@ -8038,20 +8101,20 @@ function Gu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
arrowOffsetLeft: A.left,
arrowOffsetTop: A.top,
placement: S,
- triggerAnchorPoint: re
+ triggerAnchorPoint: ne
};
}
-function Ku(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 = Iu(), h = r instanceof HTMLElement ? Xu(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Ju(n, !1, p) : Yu(n, h, !1, p);
+function td(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 = Gu(), h = r instanceof HTMLElement ? ad(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? rd(n, !1, p) : id(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 = Ju(r, !0), x = Bu(r);
+ let b = rd(r, !0), x = Yu(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Ru(i), C = Lu(s, m), w = Lu(h, m), T;
+ let S = qu(i), C = Ku(s, m), w = Ku(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = qu(h, !1);
+ let e = nd(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -8063,11 +8126,11 @@ function Ku(e) {
left: 0,
width: 0,
height: 0
- } : Yu(s, h, !1);
- let E = I(s, h);
- return Gu(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : id(s, h, !1);
+ let E = R(s, h);
+ return ed(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function qu(e, t) {
+function nd(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,
@@ -8076,8 +8139,8 @@ function qu(e, t) {
height: a
};
}
-function Ju(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || qu(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function rd(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || nd(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -8085,30 +8148,30 @@ function Ju(e, t, n) {
height: o
};
}
-function Yu(e, t, n, r) {
+function id(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || qu(e, n);
+ if (i.position === "fixed") a = r || nd(e, n);
else {
- a = Ju(e, n, r);
- let i = Ju(t, n), o = window.getComputedStyle(t);
+ a = rd(e, n, r);
+ let i = rd(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 Xu(e) {
+function ad(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Zu(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Zu(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !od(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !od(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Zu(e) {
+function od(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 Qu = typeof document < "u" ? window.visualViewport : null;
-function $u(e) {
- let { direction: t } = Hi(), { 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, C.useState)(null), x = [
+var sd = typeof document < "u" ? window.visualViewport : null;
+function cd(e) {
+ let { direction: t } = Xi(), { 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, E.useState)(null), x = [
p,
s,
i.current,
@@ -8125,15 +8188,15 @@ function $u(e) {
g,
_,
n
- ], S = (0, C.useRef)(Qu?.scale);
- (0, C.useEffect)(() => {
- m && (S.current = Qu?.scale);
+ ], S = (0, E.useRef)(sd?.scale);
+ (0, E.useEffect)(() => {
+ m && (S.current = sd?.scale);
}, [m]);
- let w = (0, C.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Qu?.scale !== S.current) return;
+ let C = (0, E.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || sd?.scale !== S.current) return;
let e = null;
- if (o.current && Ht(o.current)) {
- let t = Bt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Xt(o.current)) {
+ let t = Jt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -8141,8 +8204,8 @@ function $u(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 = Ku({
- placement: td(s, t),
+ let y = td({
+ placement: ud(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -8152,48 +8215,48 @@ function $u(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? qu(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? nd(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 = Bt();
+ let x = Jt();
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);
}, x);
- $t(w, x), ed(w), Fl({
+ cn(C, x), ld(C), Wl({
ref: i,
- onResize: w
- }), Fl({
+ onResize: C
+ }), Wl({
ref: r,
- onResize: w
+ onResize: C
});
- let T = (0, C.useRef)(!1);
- $t(() => {
+ let w = (0, E.useRef)(!1);
+ cn(() => {
let e, t = () => {
- T.current = !0, clearTimeout(e), e = setTimeout(() => {
- T.current = !1;
- }, 500), w();
+ w.current = !0, clearTimeout(e), e = setTimeout(() => {
+ w.current = !1;
+ }, 500), C();
}, n = () => {
- T.current && t();
+ w.current && t();
};
- Qu?.addEventListener("resize", t), Qu?.addEventListener("scroll", n);
- let r = It(Vt(window), "scroll", n);
+ sd?.addEventListener("resize", t), sd?.addEventListener("scroll", n);
+ let r = Wt(Yt(window), "scroll", n);
return () => {
- Qu?.removeEventListener("resize", t), Qu?.removeEventListener("scroll", n), r();
+ sd?.removeEventListener("resize", t), sd?.removeEventListener("scroll", n), r();
};
- }, [w]);
- let E = (0, C.useCallback)(() => {
- T.current || h?.();
- }, [h, T]);
- return tc({
+ }, [C]);
+ let T = (0, E.useCallback)(() => {
+ w.current || h?.();
+ }, [h, w]);
+ return uc({
triggerRef: r,
isOpen: m,
- onClose: h && E
+ onClose: h && T
}), {
overlayProps: { style: {
position: y ? "absolute" : "fixed",
@@ -8213,28 +8276,28 @@ function $u(e) {
top: y?.arrowOffsetTop
}
},
- updatePosition: w
+ updatePosition: C
};
}
-function ed(e) {
- $t(() => (window.addEventListener("resize", e, !1), () => {
+function ld(e) {
+ cn(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function td(e, t) {
+function ud(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 nd(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 } = bu({
+function dd(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 } = ku({
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 } = $u({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = cd({
...c,
targetRef: n,
overlayRef: r,
@@ -8242,17 +8305,17 @@ function nd(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)
});
- wu({ isDisabled: a || !t.isOpen }), (0, C.useEffect)(() => {
- if (t.isOpen && r.current) return a ? as(i?.current ?? r.current) : is([i?.current ?? r.current], { shouldUseInert: !0 });
+ Nu({ isDisabled: a || !t.isOpen }), (0, E.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? ms(i?.current ?? r.current) : ps([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = Wo(e);
+ let { focusWithinProps: g } = $o(e);
return {
- popoverProps: R(u, f, g),
+ popoverProps: B(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -8261,13 +8324,13 @@ function nd(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var rd = /* @__PURE__ */ new WeakMap();
+var fd = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function id(e, t, n) {
+function pd(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: _ } = Ca({
+ }, { pressProps: g, isPressed: _ } = Ma({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -8275,7 +8338,7 @@ function id(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = Ca({
+ }), { pressProps: v, isPressed: y } = Ma({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -8285,22 +8348,22 @@ function id(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Kr(R(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = R(g, b), S = B(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 } = rd.get(t);
- So(n, t.defaultSelectedValue, t.setSelectedValue), Co({ validationBehavior: k }, t, n);
- let A = Oo();
+ }), { focusableProps: b } = ei(B(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = B(g, b), S = V(e, { labelable: !0 }), C = -1;
+ t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
+ let { name: w, form: T, descriptionId: D, errorMessageId: O, validationBehavior: k } = fd.get(t);
+ jo(n, t.defaultSelectedValue, t.setSelectedValue), Mo({ validationBehavior: k }, t, n);
+ let A = Lo();
return {
- labelProps: R(v, (0, C.useMemo)(() => ({
+ labelProps: B(v, (0, E.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: R(S, {
+ inputProps: B(S, {
...x,
type: "radio",
- name: T,
- form: E,
- tabIndex: w,
+ name: w,
+ form: T,
+ tabIndex: C,
disabled: p,
required: t.isRequired && k === "native",
checked: m,
@@ -8321,13 +8384,13 @@ function id(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function ad(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Hi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Uo({
+function md(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Xi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Qo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = B(e, { labelable: !0 }), { focusWithinProps: v } = Wo({
+ }), _ = V(e, { labelable: !0 }), { focusWithinProps: v } = $o({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -8335,13 +8398,13 @@ function ad(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = ro(n.currentTarget, {
- from: L(n),
- accept: (e) => e instanceof jt(e).HTMLInputElement && e.type === "radio"
+ let r = po(n.currentTarget, {
+ from: z(n),
+ accept: (e) => e instanceof zt(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 } = Vr({
+ let { keyboardProps: b } = Yr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -8349,15 +8412,15 @@ function ad(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = br(n);
- return rd.set(t, {
+ }), x = Or(n);
+ return fd.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: R(_, {
+ radioGroupProps: B(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -8379,21 +8442,21 @@ function ad(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var od = /* @__PURE__ */ new WeakMap();
-function sd(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = yc({
+var hd = /* @__PURE__ */ new WeakMap();
+function gd(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Oc({
usage: "search",
sensitivity: "base"
- }), u = (0, C.useMemo)(() => r || new hs(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, E.useMemo)(() => r || new ws(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = ic({
+ ]), { menuTriggerProps: d, menuProps: f } = pc({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Vr({
+ }, t, n), { keyboardProps: p } = Yr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -8409,21 +8472,21 @@ function sd(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = oc({
+ }), { typeSelectProps: m } = hc({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = Uo({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = Qo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = B(e, { labelable: !0 }), w = R(m, d, y), T = br();
- return od.set(t, {
+ let S = V(e, { labelable: !0 }), C = B(m, d, y), w = Or();
+ return hd.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -8433,18 +8496,18 @@ function sd(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), rr("keyboard"));
+ e.isDisabled || (n.current?.focus(), dr("keyboard"));
}
},
- triggerProps: R(S, {
- ...w,
+ triggerProps: B(S, {
+ ...C,
isDisabled: i,
- onKeyDown: mr(w.onKeyDown, p.onKeyDown),
+ onKeyDown: Sr(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
- T,
- w["aria-labelledby"],
- w["aria-label"] && !w["aria-labelledby"] ? w.id : null
+ w,
+ C["aria-labelledby"],
+ C["aria-label"] && !C["aria-labelledby"] ? C.id : null
].filter(Boolean).join(" "),
onFocus(n) {
t.isFocused || (e.onFocus && e.onFocus(n), e.onFocusChange && e.onFocusChange(!0), t.setFocused(!0));
@@ -8453,7 +8516,7 @@ function sd(e, t, n) {
t.isOpen || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
}
}),
- valueProps: { id: T },
+ valueProps: { id: w },
menuProps: {
...f,
onAction: void 0,
@@ -8463,9 +8526,9 @@ function sd(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- I(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ R(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(" ")
+ "aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
descriptionProps: b,
errorMessageProps: x,
@@ -8484,18 +8547,18 @@ function sd(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function cd(e, t, n) {
- let r = od.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 _d(e, t, n) {
+ let r = hd.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = os({ style: {
position: "fixed",
top: 0,
left: 0
} });
- So(e.selectRef, t.defaultValue, t.setValue), Co({
+ jo(e.selectRef, t.defaultValue, t.setValue), Mo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, C.useCallback)((e) => {
- let t = L(e);
+ let d = t.setValue, f = (0, E.useCallback)((e) => {
+ let t = z(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -8520,32 +8583,32 @@ function cd(e, t, n) {
}
};
}
-function ld(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, C.useRef)(null), c = (0, C.useRef)(null), { containerProps: l, selectProps: u } = cd({
+function vd(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, E.useRef)(null), c = (0, E.useRef)(null), { containerProps: l, selectProps: u } = _d({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
- if (t.collection.size <= 300) return /*#__PURE__*/ C.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ E.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ C.createElement("label", null, r, /*#__PURE__*/ C.createElement("select", {
+ }, /*#__PURE__*/ E.createElement("label", null, r, /*#__PURE__*/ E.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ C.createElement("option", {
+ }, /*#__PURE__*/ E.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ C.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ E.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ C.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ E.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = od.get(t) || {};
+ let { validationBehavior: e } = hd.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -8556,7 +8619,7 @@ function ld(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ C.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ E.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -8564,20 +8627,20 @@ function ld(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ C.createElement("input", {
+ }) : /*#__PURE__*/ E.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ C.createElement(C.Fragment, null, n);
+ return /*#__PURE__*/ E.createElement(E.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ud(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Bo(e, t, n);
+function yd(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Jo(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -8591,10 +8654,10 @@ function ud(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var dd = class {
+var bd = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new fd(e.layout) : new ms(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new xd(e.layout) : new Cs(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -8630,7 +8693,7 @@ var dd = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of uc(n, this.collection)) {
+ for (let e of yc(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -8664,13 +8727,13 @@ var dd = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = uc(t, this.collection);
- return (this.direction === "rtl" ? pc(e)?.key : dc(e)?.key) ?? null;
+ let e = yc(t, this.collection);
+ return (this.direction === "rtl" ? Sc(e)?.key : bc(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = uc(n, this.collection), i = (this.direction === "rtl" ? fc(r, t.index - 1) : fc(r, t.index + 1)) ?? null;
+ let r = yc(n, this.collection), i = (this.direction === "rtl" ? xc(r, t.index - 1) : xc(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -8679,13 +8742,13 @@ var dd = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = uc(t, this.collection);
- return (this.direction === "rtl" ? dc(e)?.key : pc(e)?.key) ?? null;
+ let e = yc(t, this.collection);
+ return (this.direction === "rtl" ? bc(e)?.key : Sc(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = uc(n, this.collection), i = (this.direction === "rtl" ? fc(r, t.index + 1) : fc(r, t.index - 1)) ?? null;
+ let r = yc(n, this.collection), i = (this.direction === "rtl" ? xc(r, t.index + 1) : xc(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -8696,13 +8759,13 @@ var dd = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? dc(uc(e, this.collection))?.key ?? null : null;
+ return e ? bc(yc(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = dc(uc(e, this.collection))?.key ?? null;
+ n = bc(yc(e, this.collection))?.key ?? null;
}
return n;
}
@@ -8712,13 +8775,13 @@ var dd = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? pc(uc(e, this.collection))?.key ?? null : null;
+ return e ? Sc(yc(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = pc(uc(e, this.collection))?.key ?? null;
+ n = Sc(yc(e, this.collection))?.key ?? null;
}
return n;
}
@@ -8754,13 +8817,13 @@ var dd = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? dc(uc(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? bc(yc(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, fd = class {
+}, xd = class {
constructor(e) {
this.layout = e;
}
@@ -8773,16 +8836,16 @@ var dd = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, pd = /* @__PURE__ */ new WeakMap();
+}, Sd = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function md(e, t, n) {
+function Cd(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = yc({
+ let h = Oc({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Hi(), _ = t.selectionManager.disabledBehavior, v = (0, C.useMemo)(() => a || new dd({
+ }), { direction: g } = Xi(), _ = t.selectionManager.disabledBehavior, v = (0, E.useMemo)(() => a || new bd({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -8799,7 +8862,7 @@ function md(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = lc({
+ ]), { collectionProps: y } = vc({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -8807,8 +8870,8 @@ function md(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = br(e.id);
- pd.set(t, {
+ }), b = Or(e.id);
+ Sd.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -8817,48 +8880,48 @@ function md(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = wl({
+ let x = Nl({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = B(e, { labelable: !0 }), w = (0, C.useCallback)((e) => {
+ }), S = V(e, { labelable: !0 }), C = (0, E.useCallback)((e) => {
if (m.isFocused) {
- I(e.currentTarget, L(e)) || m.setFocused(!1);
+ R(e.currentTarget, z(e)) || m.setFocused(!1);
return;
}
- I(e.currentTarget, L(e)) && m.setFocused(!0);
- }, [m]), T = (0, C.useMemo)(() => ({
+ R(e.currentTarget, z(e)) && m.setFocused(!0);
+ }, [m]), w = (0, E.useMemo)(() => ({
onBlur: y.onBlur,
- onFocus: w
- }), [w, y.onBlur]), E = Sl(n, { isDisabled: t.collection.size !== 0 }), D = R(S, {
+ onFocus: C
+ }), [C, y.onBlur]), T = jl(n, { isDisabled: t.collection.size !== 0 }), D = B(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
- }, t.isKeyboardNavigationDisabled ? T : y, t.collection.size === 0 && { tabIndex: E ? -1 : 0 } || void 0, x);
- return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), bl({ getRowText: c }, t), { gridProps: D };
+ }, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
+ return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), kl({ getRowText: c }, t), { gridProps: D };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var hd = /* @__PURE__ */ new WeakMap();
-function gd(e) {
+var wd = /* @__PURE__ */ new WeakMap();
+function Td(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function _d(e, t) {
- let n = hd.get(e);
+function Ed(e, t) {
+ let n = wd.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${gd(t)}`;
+ return `${n}-${Td(t)}`;
}
-function vd(e, t, n) {
- let r = hd.get(e);
+function Dd(e, t, n) {
+ let r = wd.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${gd(t)}-${gd(n)}`;
+ return `${r}-${Td(t)}-${Td(n)}`;
}
-function yd(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => vd(e, t, n)).join(" ");
+function Od(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Dd(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var bd = {};
-bd = {
+var kd = {};
+kd = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -8873,8 +8936,8 @@ bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var xd = {};
-xd = {
+var Ad = {};
+Ad = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -8889,8 +8952,8 @@ xd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Sd = {};
-Sd = {
+var jd = {};
+jd = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -8905,8 +8968,8 @@ Sd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Cd = {};
-Cd = {
+var Md = {};
+Md = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -8921,8 +8984,8 @@ Cd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var wd = {};
-wd = {
+var Nd = {};
+Nd = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -8937,8 +9000,8 @@ wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Td = {};
-Td = {
+var Pd = {};
+Pd = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -8953,8 +9016,8 @@ Td = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Ed = {};
-Ed = {
+var Fd = {};
+Fd = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -8969,8 +9032,8 @@ Ed = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Dd = {};
-Dd = {
+var Id = {};
+Id = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -8985,8 +9048,8 @@ Dd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Od = {};
-Od = {
+var Ld = {};
+Ld = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -9001,8 +9064,8 @@ Od = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var kd = {};
-kd = {
+var Rd = {};
+Rd = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -9017,8 +9080,8 @@ kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Ad = {};
-Ad = {
+var zd = {};
+zd = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -9033,8 +9096,8 @@ Ad = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var jd = {};
-jd = {
+var Bd = {};
+Bd = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -9049,8 +9112,8 @@ jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Md = {};
-Md = {
+var Vd = {};
+Vd = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -9065,8 +9128,8 @@ Md = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Nd = {};
-Nd = {
+var Hd = {};
+Hd = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -9081,8 +9144,8 @@ Nd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Pd = {};
-Pd = {
+var Ud = {};
+Ud = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -9097,8 +9160,8 @@ Pd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Fd = {};
-Fd = {
+var Wd = {};
+Wd = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -9113,8 +9176,8 @@ Fd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Id = {};
-Id = {
+var Gd = {};
+Gd = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -9129,8 +9192,8 @@ Id = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Ld = {};
-Ld = {
+var Kd = {};
+Kd = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -9145,8 +9208,8 @@ Ld = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Rd = {};
-Rd = {
+var qd = {};
+qd = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -9161,8 +9224,8 @@ Rd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var zd = {};
-zd = {
+var Jd = {};
+Jd = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -9177,8 +9240,8 @@ zd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Bd = {};
-Bd = {
+var Yd = {};
+Yd = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -9193,8 +9256,8 @@ Bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Vd = {};
-Vd = {
+var Xd = {};
+Xd = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -9209,8 +9272,8 @@ Vd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Hd = {};
-Hd = {
+var Zd = {};
+Zd = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -9225,8 +9288,8 @@ Hd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Ud = {};
-Ud = {
+var Qd = {};
+Qd = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -9241,8 +9304,8 @@ Ud = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Wd = {};
-Wd = {
+var $d = {};
+$d = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -9257,8 +9320,8 @@ Wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Gd = {};
-Gd = {
+var ef = {};
+ef = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -9273,8 +9336,8 @@ Gd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Kd = {};
-Kd = {
+var tf = {};
+tf = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -9289,8 +9352,8 @@ Kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var qd = {};
-qd = {
+var nf = {};
+nf = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -9305,8 +9368,8 @@ qd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Jd = {};
-Jd = {
+var rf = {};
+rf = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -9321,8 +9384,8 @@ Jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Yd = {};
-Yd = {
+var af = {};
+af = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -9337,8 +9400,8 @@ Yd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Xd = {};
-Xd = {
+var of = {};
+of = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -9353,8 +9416,8 @@ Xd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Zd = {};
-Zd = {
+var sf = {};
+sf = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -9369,8 +9432,8 @@ Zd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Qd = {};
-Qd = {
+var cf = {};
+cf = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -9385,8 +9448,8 @@ Qd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var $d = {};
-$d = {
+var lf = {};
+lf = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -9401,46 +9464,46 @@ $d = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var ef = {};
-ef = {
- "ar-AE": bd,
- "bg-BG": xd,
- "cs-CZ": Sd,
- "da-DK": Cd,
- "de-DE": wd,
- "el-GR": Td,
- "en-US": Ed,
- "es-ES": Dd,
- "et-EE": Od,
- "fi-FI": kd,
- "fr-FR": Ad,
- "he-IL": jd,
- "hr-HR": Md,
- "hu-HU": Nd,
- "it-IT": Pd,
- "ja-JP": Fd,
- "ko-KR": Id,
- "lt-LT": Ld,
- "lv-LV": Rd,
- "nb-NO": zd,
- "nl-NL": Bd,
- "pl-PL": Vd,
- "pt-BR": Hd,
- "pt-PT": Ud,
- "ro-RO": Wd,
- "ru-RU": Gd,
- "sk-SK": Kd,
- "sl-SI": qd,
- "sr-SP": Jd,
- "sv-SE": Yd,
- "tr-TR": Xd,
- "uk-UA": Zd,
- "zh-CN": Qd,
- "zh-TW": $d
+var uf = {};
+uf = {
+ "ar-AE": kd,
+ "bg-BG": Ad,
+ "cs-CZ": jd,
+ "da-DK": Md,
+ "de-DE": Nd,
+ "el-GR": Pd,
+ "en-US": Fd,
+ "es-ES": Id,
+ "et-EE": Ld,
+ "fi-FI": Rd,
+ "fr-FR": zd,
+ "he-IL": Bd,
+ "hr-HR": Vd,
+ "hu-HU": Hd,
+ "it-IT": Ud,
+ "ja-JP": Wd,
+ "ko-KR": Gd,
+ "lt-LT": Kd,
+ "lv-LV": qd,
+ "nb-NO": Jd,
+ "nl-NL": Yd,
+ "pl-PL": Xd,
+ "pt-BR": Zd,
+ "pt-PT": Qd,
+ "ro-RO": $d,
+ "ru-RU": ef,
+ "sk-SK": tf,
+ "sl-SI": nf,
+ "sr-SP": rf,
+ "sv-SE": af,
+ "tr-TR": of,
+ "uk-UA": sf,
+ "zh-CN": cf,
+ "zh-TW": lf
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var tf = class extends dd {
+var df = class extends bd {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -9448,7 +9511,7 @@ var tf = class extends dd {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = dc(uc(n, this.collection));
+ let e = bc(yc(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -9469,13 +9532,13 @@ var tf = class extends dd {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of uc(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of yc(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...uc(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...yc(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -9504,7 +9567,7 @@ var tf = class extends dd {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of uc(o, this.collection)) {
+ for (let r of yc(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -9518,14 +9581,14 @@ var tf = class extends dd {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function nf(e) {
+function ff(e) {
return e && e.__esModule ? e.default : e;
}
-function rf(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = yc({
+function pf(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Oc({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Hi(), l = t.selectionManager.disabledBehavior, u = (0, C.useMemo)(() => r || new tf({
+ }), { direction: c } = Xi(), l = t.selectionManager.disabledBehavior, u = (0, E.useMemo)(() => r || new df({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -9544,43 +9607,43 @@ function rf(e, t, n) {
s,
a,
o
- ]), d = br(e.id);
- hd.set(t, d);
- let { gridProps: f } = md({
+ ]), d = Or(e.id);
+ wd.set(t, d);
+ let { gridProps: f } = Cd({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = na(nf(ef), "@react-aria/table"), g = (0, C.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = ua(ff(uf), "@react-aria/table"), g = (0, E.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = xo(g);
- return fo(() => {
- g && lo(g, "assertive", 500);
- }, [g]), { gridProps: R(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = Ao(g);
+ return xo(() => {
+ g && yo(g, "assertive", 500);
+ }, [g]), { gridProps: B(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function af(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Hi(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = pd.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, C.useRef)(null), h = () => {
+function mf(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Xi(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Sd.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, E.useRef)(null), h = () => {
if (n.current) {
- let e = ro(n.current);
+ let e = po(n.current);
if (p === "child") {
- if (Ht(n.current) && n.current !== Bt(F(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? of(e) : e.firstChild();
+ if (Xt(n.current) && n.current !== Jt(L(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? hf(e) : e.firstChild();
if (r) {
- pr(r);
+ xr(r);
return;
}
}
- (m.current != null && r.key !== m.current || !Ht(n.current)) && pr(n.current);
+ (m.current != null && r.key !== m.current || !Xt(n.current)) && xr(n.current);
}
- }, { itemProps: g, isPressed: _ } = El({
+ }, { itemProps: g, isPressed: _ } = Fl({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -9589,50 +9652,50 @@ function af(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), v = R(g, {
+ }), v = B(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = Bt(F(n.current));
- if (!I(e.currentTarget, L(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = ro(n.current);
+ let i = Jt(L(n.current));
+ if (!R(e.currentTarget, z(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = po(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) pr(t), vo(t, { containingElement: mo(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xr(t), Do(t, { containingElement: Co(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (pr(n.current), vo(n.current, { containingElement: mo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : of(a), t && (pr(t), vo(t, { containingElement: mo(n.current) })));
+ p === "cell" && l === "rtl" ? (xr(n.current), Do(n.current, { containingElement: Co(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : hf(a), t && (xr(t), Do(t, { containingElement: Co(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) pr(t), vo(t, { containingElement: mo(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xr(t), Do(t, { containingElement: Co(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (pr(n.current), vo(n.current, { containingElement: mo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? of(a) : a.firstChild(), t && (pr(t), vo(t, { containingElement: mo(n.current) })));
+ p === "cell" && l === "ltr" ? (xr(n.current), Do(n.current, { containingElement: Co(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? hf(a) : a.firstChild(), t && (xr(t), Do(t, { containingElement: Co(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && I(n.current, L(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && R(n.current, z(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = Bt(F(n.current));
- if (!(!I(e.currentTarget, L(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
- if (f === "tab" && L(e) !== n.current && e.key !== "Tab") {
+ let r = Jt(L(n.current));
+ if (!(!R(e.currentTarget, z(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
+ if (f === "tab" && z(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = ro(n.current, { tabbable: !0 });
+ let t = po(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -9641,12 +9704,12 @@ function af(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, L(e) !== n.current) {
- tr() || t.selectionManager.setFocusedKey(r.key);
+ if (m.current = r.key, z(e) !== n.current) {
+ lr() || t.selectionManager.setFocusedKey(r.key);
return;
}
- p === "child" && e.relatedTarget && I(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && Bt(F(n.current)) === n.current && h();
+ p === "child" && e.relatedTarget && R(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && Jt(L(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -9661,7 +9724,7 @@ function af(e, t, n) {
isPressed: _
};
}
-function of(e) {
+function hf(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -9670,34 +9733,34 @@ function of(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function sf(e, t, n) {
- let { gridCellProps: r, isPressed: i } = af(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = vd(t, e.node.parentKey, a)), {
+function gf(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = mf(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Dd(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function cf(e) {
+function _f(e) {
return e && e.__esModule ? e.default : e;
}
-function lf(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = af({
+function vf(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = mf({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ca({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ma({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Kr({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !gn() && (u = d ? f : "none");
- let p = na(cf(ef), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && gn() && (m = `${m}, ${p.format(f)}`));
- let h = xo(m), g = t.collection.size === 0;
- return (0, C.useEffect)(() => {
+ }), { focusableProps: l } = ei({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !wn() && (u = d ? f : "none");
+ let p = ua(_f(uf), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && wn() && (m = `${m}, ${p.format(f)}`));
+ let h = Ao(m), g = t.collection.size === 0;
+ return (0, E.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
g,
@@ -9705,9 +9768,9 @@ function lf(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...R(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...B(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: _d(t, r.key),
+ id: Ed(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -9716,20 +9779,20 @@ function lf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function uf(e, t, n) {
+function yf(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function df(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = pd.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = El({
+function bf(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Sd.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Fl({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? mr(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? Sr(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -9744,10 +9807,10 @@ function df(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function ff(e) {
+function xf(e) {
return e && e.__esModule ? e.default : e;
}
-var pf = {
+var Sf = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -9757,21 +9820,21 @@ var pf = {
rtl: "ArrowRight"
}
};
-function mf(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = df(e, t, n), { direction: s } = Hi();
+function Cf(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = bf(e, t, n), { direction: s } = Xi();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = na(ff(ef), "@react-aria/table"), u = ji({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ua(xf(uf), "@react-aria/table"), u = zi({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": yd(t, r.key)
+ "aria-labelledby": Od(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = hf(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = hf(t.collection, a);
+ let n = wf(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = wf(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === pf.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === pf.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === Sf.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Sf.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -9789,45 +9852,45 @@ function mf(e, t, n) {
};
}
}
- let p = Tn(r.props), m = o.hasAction ? p : {};
+ let p = Nn(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...R(a, d, m),
- "aria-labelledby": yd(t, r.key)
+ ...B(a, d, m),
+ "aria-labelledby": Od(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function hf(e, t) {
+function wf(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function gf() {
+function Tf() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function _f() {
- return gf();
+function Ef() {
+ return Tf();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function vf(e) {
+function Df(e) {
return e && e.__esModule ? e.default : e;
}
-function yf(e, t) {
- let { key: n } = e, { checkboxProps: r } = Al(e, t);
+function Of(e, t) {
+ let { key: n } = e, { checkboxProps: r } = zl(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${yd(t, n)}`
+ "aria-labelledby": `${r.id} ${Od(t, n)}`
} };
}
-function bf(e) {
+function kf(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": na(vf(ef), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": ua(Df(uf), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -9836,28 +9899,28 @@ function bf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var xf = /* @__PURE__ */ new WeakMap();
-function Sf(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${xf.get(e)}-${n}-${t}`) : "";
+var Af = /* @__PURE__ */ new WeakMap();
+function jf(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Af.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Cf(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 } = El({
+function Mf(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 } = Fl({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = Sf(t, r, "tab"), m = Sf(t, r, "tabpanel"), { tabIndex: h } = d, g = B(u?.props, { labelable: !0 });
+ }), p = jf(t, r, "tab"), m = jf(t, r, "tabpanel"), { tabIndex: h } = d, g = V(u?.props, { labelable: !0 });
delete g.id;
- let _ = En(u?.props), { focusableProps: v } = Kr({
+ let _ = Pn(u?.props), { focusableProps: v } = ei({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: R(g, v, _, d, {
+ tabProps: B(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -9872,7 +9935,7 @@ function Cf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var wf = class {
+var Nf = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -9916,11 +9979,11 @@ var wf = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Tf(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Hi(), { collectionProps: l } = lc({
+function Pf(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Xi(), { collectionProps: l } = vc({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, C.useMemo)(() => new wf(a, c, r, s), [
+ keyboardDelegate: (0, E.useMemo)(() => new Nf(a, c, r, s), [
a,
s,
r,
@@ -9930,9 +9993,9 @@ function Tf(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = br();
- return xf.set(t, u), { tabListProps: {
- ...R(l, ji({
+ }), u = Or();
+ return Af.set(t, u), { tabListProps: {
+ ...B(l, zi({
...e,
id: u
})),
@@ -9943,12 +10006,12 @@ function Tf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Ef(e, t, n) {
- let r = Sl(n) ? void 0 : 0, i = Sf(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: R(ji({
+function Ff(e, t, n) {
+ let r = jl(n) ? void 0 : 0, i = jf(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: B(zi({
...e,
id: i,
- "aria-labelledby": Sf(t, t?.selectedKey, "tab")
+ "aria-labelledby": jf(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -9958,7 +10021,7 @@ function Ef(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Df = /* @__PURE__ */ g(((e) => {
+var If = /* @__PURE__ */ _(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -10157,10 +10220,10 @@ var Df = /* @__PURE__ */ g(((e) => {
}
};
};
-})), Of = /* @__PURE__ */ g(((e, t) => {
- t.exports = Df();
-})), kf = /* @__PURE__ */ g(((e) => {
- var t = Of(), n = b(), r = Qr();
+})), Lf = /* @__PURE__ */ _(((e, t) => {
+ t.exports = If();
+})), Rf = /* @__PURE__ */ _(((e) => {
+ var t = Lf(), n = C(), r = oi();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -10305,13 +10368,13 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
var v = null, y = null;
- function x(e, t, n) {
+ function b(e, t, n) {
return e === n || e === t && (v = e, !0);
}
- function S(e, t, n) {
+ function x(e, t, n) {
return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);
}
- function C(e) {
+ function S(e) {
if (e === null) return null;
do
e = e === null ? null : e.return;
@@ -10330,23 +10393,23 @@ var Df = /* @__PURE__ */ g(((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"), j = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = 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 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"), j = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), ie = Symbol.for("react.legacy_hidden"), ae = Symbol.for("react.memo_cache_sentinel"), oe = Symbol.for("react.view_transition"), se = Symbol.for("react.recoverable"), ce = Symbol.iterator;
+ function le(e) {
+ return typeof e != "object" || !e ? null : (e = ce && e[ce] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var fe = Symbol.for("react.client.reference");
- function pe(e) {
+ var ue = Symbol.for("react.client.reference");
+ function de(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === fe ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === ue ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case k: return "Fragment";
case j: return "Profiler";
case A: return "StrictMode";
- case ne: return "Suspense";
- case N: return "SuspenseList";
- case ae: return "Activity";
- case ce: return "ViewTransition";
+ case N: return "Suspense";
+ case P: return "SuspenseList";
+ case F: return "Activity";
+ case oe: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case O: return "Portal";
@@ -10355,38 +10418,38 @@ var Df = /* @__PURE__ */ g(((e) => {
case te:
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 ? pe(e.type) || "Memo" : t;
- case ie:
+ case ne: return t = e.displayName || null, t === null ? de(e.type) || "Memo" : t;
+ case re:
t = e._payload, e = e._init;
try {
- return pe(e(t));
+ return de(e(t));
} catch {}
}
return null;
}
- var me = Array.isArray, P = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = {
+ var fe = Array.isArray, I = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = {
pending: !1,
data: null,
method: null,
action: null
- }, _e = [], ve = -1;
- function ye(e) {
+ }, he = [], ge = -1;
+ function _e(e) {
return { current: e };
}
- function be(e) {
- 0 > ve || (e.current = _e[ve], _e[ve] = null, ve--);
+ function ve(e) {
+ 0 > ge || (e.current = he[ge], he[ge] = null, ge--);
}
- function xe(e, t) {
- ve++, _e[ve] = e.current, e.current = t;
+ function ye(e, t) {
+ ge++, he[ge] = e.current, e.current = t;
}
- var Se = ye(null), Ce = ye(null), we = ye(null), Te = ye(null);
- function Ee(e, t) {
- switch (xe(we, t), xe(Ce, e), xe(Se, null), t.nodeType) {
+ 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) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? Sp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? bp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = Sp(t), e = Cp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = bp(t), e = xp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -10397,34 +10460,34 @@ var Df = /* @__PURE__ */ g(((e) => {
default: e = 0;
}
}
- be(Se), xe(Se, e);
+ ve(be), ye(be, e);
}
- function De() {
- be(Se), be(Ce), be(we);
+ function Te() {
+ ve(be), ve(xe), ve(Se);
}
- function Oe(e) {
+ function Ee(e) {
var t = e.memoizedState;
- t !== null && (Y._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
- var n = Cp(t, e.type);
- t !== n && (xe(Ce, e), xe(Se, n));
+ t !== null && (fh._currentValue = t.memoizedState, ye(Ce, e)), t = be.current;
+ var n = xp(t, e.type);
+ t !== n && (ye(xe, e), ye(be, n));
}
- function ke(e) {
- Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), Y._currentValue = ge);
+ function De(e) {
+ xe.current === e && (ve(be), ve(xe)), Ce.current === e && (ve(Ce), fh._currentValue = me);
}
- var Ae, je;
- function Me(e) {
- if (Ae === void 0) try {
+ var Oe, ke;
+ function Ae(e) {
+ if (Oe === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- Ae = t && t[1] || "", je = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ Oe = t && t[1] || "", ke = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + Ae + e + je;
+ return "\n" + Oe + e + ke;
}
- var Ne = !1;
- function Pe(e, t) {
- if (!e || Ne) return "";
- Ne = !0;
+ var je = !1;
+ function Me(e, t) {
+ if (!e || je) return "";
+ je = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -10495,50 +10558,50 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
} finally {
- Ne = !1, Error.prepareStackTrace = n;
+ je = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? Me(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? Ae(n) : "";
}
- function Fe(e, t) {
+ function Ne(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return Me(e.type);
- case 16: return Me("Lazy");
- case 13: return e.child !== t && t !== null ? Me("Suspense Fallback") : Me("Suspense");
- case 19: return Me("SuspenseList");
+ 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 0:
- case 15: return Pe(e.type, !1);
- case 11: return Pe(e.type.render, !1);
- case 1: return Pe(e.type, !0);
- case 31: return Me("Activity");
- case 30: return Me("ViewTransition");
+ 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");
default: return "";
}
}
- function Ie(e) {
+ function Pe(e) {
try {
var t = "", n = null;
do
- t += Fe(e, n), n = e, e = e.return;
+ t += Ne(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Le = Object.prototype.hasOwnProperty, Re = t.unstable_scheduleCallback, ze = t.unstable_cancelCallback, Be = t.unstable_shouldYield, Ve = t.unstable_requestPaint, He = t.unstable_now, Ue = t.unstable_getCurrentPriorityLevel, We = t.unstable_ImmediatePriority, Ge = t.unstable_UserBlockingPriority, Ke = t.unstable_NormalPriority, qe = t.unstable_LowPriority, Je = t.unstable_IdlePriority, Ye = t.log, Xe = t.unstable_setDisableYieldValue, Ze = null, Qe = null;
- function $e(e) {
- if (typeof Ye == "function" && Xe(e), Qe && typeof Qe.setStrictMode == "function") try {
- Qe.setStrictMode(Ze, e);
+ 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);
} catch {}
}
- var et = Math.clz32 ? Math.clz32 : rt, tt = Math.log, nt = Math.LN2;
- function rt(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - (tt(e) / nt | 0) | 0;
+ 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 it = 256, at = 262144, ot = 4194304;
- function st(e) {
+ var nt = 256, rt = 262144, it = 4194304;
+ function at(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -10576,27 +10639,27 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return e;
}
}
- function ct(e, t, n) {
+ function ot(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 = st(n))) : i = st(o) : i = st(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = st(n))) : i = st(o)) : i = st(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 = 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;
}
- function lt(e, t) {
+ function st(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function ut(e, t) {
+ function ct(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 - et(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function dt(e, t) {
+ function lt(e, t) {
switch (e) {
case 1:
case 2:
@@ -10632,23 +10695,23 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return -1;
}
}
- function ft() {
- var e = ot;
- return ot <<= 1, !(ot & 62914560) && (ot = 4194304), e;
+ function ut() {
+ var e = it;
+ return it <<= 1, !(it & 62914560) && (it = 4194304), e;
}
- function pt(e) {
+ function dt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function mt(e, t) {
+ function ft(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function ht(e, t, n, r, i, a) {
+ function pt(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 - et(n), d = 1 << u;
+ var u = 31 - Qe(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++) {
@@ -10657,25 +10720,25 @@ var Df = /* @__PURE__ */ g(((e) => {
}
n &= ~d;
}
- r !== 0 && gt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function gt(e, t, n) {
+ function mt(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - et(t);
+ var r = 31 - Qe(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function _t(e, t) {
+ function ht(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - et(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function vt(e, t) {
+ function gt(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : yt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function yt(e) {
+ function _t(e) {
switch (e) {
case 2:
e = 1;
@@ -10713,33 +10776,33 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return e;
}
- function bt(e) {
+ function vt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function xt() {
- var e = he.p;
+ function yt() {
+ var e = pe.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Eh(e.type)) : e;
}
- function St(e, t) {
- var n = he.p;
+ function bt(e, t) {
+ var n = pe.p;
try {
- return he.p = e, t();
+ return pe.p = e, t();
} finally {
- he.p = n;
+ pe.p = n;
}
}
- var Ct = Math.random().toString(36).slice(2), wt = "__reactFiber$" + Ct, Tt = "__reactProps$" + Ct, Et = "__reactContainer$" + Ct, Dt = "__reactEvents$" + Ct, Ot = "__reactListeners$" + Ct, kt = "__reactHandles$" + Ct, At = "__reactResources$" + Ct, F = "__reactMarker$" + Ct, jt = "__reactLoad$" + Ct;
- function Mt(e) {
- delete e[wt], delete e[Tt], delete e[Ot], delete e[kt];
+ var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, Et = "__reactListeners$" + xt, Dt = "__reactHandles$" + xt, Ot = "__reactResources$" + xt, kt = "__reactMarker$" + xt, At = "__reactLoad$" + xt;
+ function jt(e) {
+ delete e[St], delete e[Ct], delete e[Et], delete e[Dt];
}
- function Nt(e) {
+ function Mt(e) {
var t;
- if (t = e[wt]) return t;
+ if (t = e[St]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[Et] || n[wt]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = xm(e); e !== null;) {
- if (n = e[wt]) return n;
- e = xm(e);
+ if (t = n[wt] || n[St]) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = Sm(e); e !== null;) {
+ if (n = e[St]) return n;
+ e = Sm(e);
}
return t;
}
@@ -10747,41 +10810,41 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return null;
}
- function Pt(e) {
- if (e = e[wt] || e[Et]) {
+ function Nt(e) {
+ if (e = e[St] || e[wt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Ft(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 It(e) {
- var t = e[At];
- return t ||= e[At] = {
+ function Ft(e) {
+ var t = e[Ot];
+ return t ||= e[Ot] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
+ function It(e) {
+ e[kt] = !0;
+ }
function Lt(e) {
- e[F] = !0;
+ e[At] = void 0;
}
- function Rt(e) {
- e[jt] = void 0;
+ var Rt = /* @__PURE__ */ new Set(), L = {};
+ function zt(e, t) {
+ Bt(e, t), Bt(e + "Capture", t);
}
- var zt = /* @__PURE__ */ new Set(), I = {};
function Bt(e, t) {
- L(e, t), L(e + "Capture", t);
- }
- function L(e, t) {
- for (I[e] = t, e = 0; e < t.length; e++) zt.add(t[e]);
+ for (L[e] = t, e = 0; e < t.length; e++) Rt.add(t[e]);
}
var Vt = 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]*$"), Ht = {}, Ut = {};
function Wt(e) {
- return Le.call(Ut, e) ? !0 : Le.call(Ht, e) ? !1 : Vt.test(e) ? Ut[e] = !0 : (Ht[e] = !0, !1);
+ return Fe.call(Ut, e) ? !0 : Fe.call(Ht, e) ? !1 : Vt.test(e) ? Ut[e] = !0 : (Ht[e] = !0, !1);
}
var Gt = !1;
function Kt() {
@@ -10809,7 +10872,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
}
- function Jt(e, t, n) {
+ function R(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -10823,7 +10886,7 @@ var Df = /* @__PURE__ */ g(((e) => {
e.setAttribute(t, n);
}
}
- function Yt(e, t, n, r) {
+ function Jt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -10837,7 +10900,7 @@ var Df = /* @__PURE__ */ g(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function Xt(e) {
+ function z(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -10848,11 +10911,11 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return "";
}
}
- function Zt(e) {
+ function Yt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Qt(e, t, n) {
+ function Xt(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;
@@ -10877,48 +10940,48 @@ var Df = /* @__PURE__ */ g(((e) => {
};
}
}
- function $t(e) {
+ function Zt(e) {
if (!e._valueTracker) {
- var t = Zt(e) ? "checked" : "value";
- e._valueTracker = Qt(e, t, "" + e[t]);
+ var t = Yt(e) ? "checked" : "value";
+ e._valueTracker = Xt(e, t, "" + e[t]);
}
}
- function en(e) {
+ function Qt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = Zt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = Yt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var tn = /[\n"\\]/g;
- function nn(e) {
- return e.replace(tn, function(e) {
+ var $t = /[\n"\\]/g;
+ function en(e) {
+ return e.replace($t, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function rn(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 = "" + Xt(t)) : e.value !== "" + Xt(t) && (e.value = "" + Xt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : on(e, Xt(n)) : o === "number" && e.value == t ? on(e, Xt(e.value)) : on(e, Xt(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 = "" + Xt(s) : e.removeAttribute("name");
+ function tn(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 = "" + z(t)) : e.value !== "" + z(t) && (e.value = "" + z(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : rn(e, z(n)) : o === "number" && e.value == t ? rn(e, z(e.value)) : rn(e, z(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 = "" + z(s) : e.removeAttribute("name");
}
- function an(e, t, n, r, i, a, o, s) {
+ function nn(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)) {
- $t(e);
+ Zt(e);
return;
}
- n = n == null ? "" : "" + Xt(n), t = t == null ? n : "" + Xt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + z(n), t = t == null ? n : "" + z(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), $t(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), Zt(e);
}
- function on(e, t) {
+ function rn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function sn(e, t, n, r) {
+ function an(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 = "" + Xt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + z(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -10928,18 +10991,18 @@ var Df = /* @__PURE__ */ g(((e) => {
t !== null && (t.selected = !0);
}
}
- function cn(e, t, n) {
- if (t != null && (t = "" + Xt(t), t !== e.value && (e.value = t), n == null)) {
+ function on(e, t, n) {
+ if (t != null && (t = "" + z(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + Xt(n);
+ e.defaultValue = n == null ? "" : "" + z(n);
}
- function ln(e, t, n, r) {
+ function sn(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (me(r)) {
+ if (fe(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -10947,9 +11010,9 @@ var Df = /* @__PURE__ */ g(((e) => {
}
n ??= "", t = n;
}
- n = Xt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), $t(e);
+ n = z(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Zt(e);
}
- function un(e, t) {
+ function cn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -10959,19 +11022,19 @@ var Df = /* @__PURE__ */ g(((e) => {
}
e.textContent = t;
}
- var dn = 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 fn(e, t, n) {
+ var ln = 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 un(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 || dn.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 || ln.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function pn(e, t, n) {
+ function dn(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] = "", Gt = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (fn(e, a, r), Gt = !0);
- } else for (var o in t) t.hasOwnProperty(o) && fn(e, o, t[o]);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (un(e, a, r), Gt = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && un(e, o, t[o]);
}
- function mn(e) {
+ function fn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -10985,7 +11048,7 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return !0;
}
}
- var hn = /* @__PURE__ */ new Map([
+ var pn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -11065,56 +11128,56 @@ var Df = /* @__PURE__ */ g(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), gn = /^[\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 _n(e) {
- return gn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), mn = /^[\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 hn(e) {
+ return mn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function vn() {}
- var yn = null;
- function bn(e) {
+ function gn() {}
+ var _n = null;
+ function vn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var xn = null, Sn = null;
- function Cn(e) {
- var t = Pt(e);
+ var yn = null, bn = null;
+ function xn(e) {
+ var t = Nt(e);
if (t && (e = t.stateNode)) {
- var n = e[Tt] || null;
+ var n = e[Ct] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if (rn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (tn(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=\"" + nn("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + en("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[Tt] || null;
+ var a = r[Ct] || null;
if (!a) throw Error(i(90));
- rn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ tn(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 && en(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Qt(r);
}
break a;
case "textarea":
- cn(e, n.value, n.defaultValue);
+ on(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && sn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && an(e, !!n.multiple, t, !1);
}
}
}
- var wn = !1;
- function Tn(e, t, n) {
- if (wn) return e(t, n);
- wn = !0;
+ var Sn = !1;
+ function Cn(e, t, n) {
+ if (Sn) return e(t, n);
+ Sn = !0;
try {
return e(t);
} finally {
- if (wn = !1, (xn !== null || Sn !== null) && (qd(), xn && (t = xn, e = Sn, Sn = xn = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);
+ if (Sn = !1, (yn !== null || bn !== null) && (Kd(), yn && (t = yn, e = bn, bn = yn = null, xn(t), e))) for (t = 0; t < e.length; t++) xn(e[t]);
}
}
- function En(e, t) {
+ function wn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[Tt] || null;
+ var r = n[Ct] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -11137,54 +11200,54 @@ var Df = /* @__PURE__ */ g(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var Dn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), On = !1;
- if (Dn) try {
- var kn = {};
- Object.defineProperty(kn, "passive", { get: function() {
- On = !0;
- } }), window.addEventListener("test", kn, kn), window.removeEventListener("test", kn, kn);
+ var Tn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), En = !1;
+ if (Tn) try {
+ var Dn = {};
+ Object.defineProperty(Dn, "passive", { get: function() {
+ En = !0;
+ } }), window.addEventListener("test", Dn, Dn), window.removeEventListener("test", Dn, Dn);
} catch {
- On = !1;
+ En = !1;
}
- var An = null, jn = null, Mn = null;
- function Nn() {
- if (Mn) return Mn;
- var e, t = jn, n = t.length, r, i = "value" in An ? An.value : An.textContent, a = i.length;
+ var On = null, kn = null, An = null;
+ function jn() {
+ if (An) return An;
+ var e, t = kn, n = t.length, r, i = "value" in On ? On.value : On.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 Mn = i.slice(e, 1 < r ? 1 - r : void 0);
+ return An = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function Pn(e) {
+ function Mn(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 Fn() {
+ function Nn() {
return !0;
}
- function In() {
+ function Pn() {
return !1;
}
- function Ln(e) {
+ function Fn(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) ? Fn : In, this.isPropagationStopped = In, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Nn : Pn, this.isPropagationStopped = Pn, 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 = Fn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Nn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Fn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Nn);
},
persist: function() {},
- isPersistent: Fn
+ isPersistent: Nn
}), t;
}
- var Rn = {
+ var In = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -11193,10 +11256,10 @@ var Df = /* @__PURE__ */ g(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, zn = Ln(Rn), Bn = T({}, Rn, {
+ }, Ln = Fn(In), Rn = T({}, In, {
view: 0,
detail: 0
- }), Vn = Ln(Bn), Hn, Un, Wn, Gn = T({}, Bn, {
+ }), zn = Fn(Rn), Bn, Vn, Hn, Un = T({}, Rn, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -11207,25 +11270,25 @@ var Df = /* @__PURE__ */ g(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: nr,
+ getModifierState: er,
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 !== Wn && (Wn && e.type === "mousemove" ? (Hn = e.screenX - Wn.screenX, Un = e.screenY - Wn.screenY) : Un = Hn = 0, Wn = e), Hn);
+ return "movementX" in e ? e.movementX : (e !== Hn && (Hn && e.type === "mousemove" ? (Bn = e.screenX - Hn.screenX, Vn = e.screenY - Hn.screenY) : Vn = Bn = 0, Hn = e), Bn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : Un;
+ return "movementY" in e ? e.movementY : Vn;
}
- }), Kn = Ln(Gn), qn = Ln(T({}, Gn, { dataTransfer: 0 })), Jn = Ln(T({}, Bn, { relatedTarget: 0 })), Yn = Ln(T({}, Rn, {
+ }), Wn = Fn(Un), Gn = Fn(T({}, Un, { dataTransfer: 0 })), Kn = Fn(T({}, Rn, { relatedTarget: 0 })), qn = Fn(T({}, In, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Xn = Ln(T({}, Rn, { clipboardData: function(e) {
+ })), Jn = Fn(T({}, In, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Zn = Ln(T({}, Rn, { data: 0 })), Qn = {
+ } })), Yn = Fn(T({}, In, { data: 0 })), Xn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -11238,7 +11301,7 @@ var Df = /* @__PURE__ */ g(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, $n = {
+ }, Zn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -11275,26 +11338,26 @@ var Df = /* @__PURE__ */ g(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, er = {
+ }, Qn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function tr(e) {
+ function $n(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = er[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Qn[e]) ? !!t[e] : !1;
}
- function nr() {
- return tr;
+ function er() {
+ return $n;
}
- var rr = Ln(T({}, Bn, {
+ var tr = Fn(T({}, Rn, {
key: function(e) {
if (e.key) {
- var t = Qn[e.key] || e.key;
+ var t = Xn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = Pn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? $n[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = Mn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Zn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -11304,17 +11367,17 @@ var Df = /* @__PURE__ */ g(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: nr,
+ getModifierState: er,
charCode: function(e) {
- return e.type === "keypress" ? Pn(e) : 0;
+ return e.type === "keypress" ? Mn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? Pn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? Mn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), ir = Ln(T({}, Gn, {
+ })), nr = Fn(T({}, Un, {
pointerId: 0,
width: 0,
height: 0,
@@ -11325,7 +11388,7 @@ var Df = /* @__PURE__ */ g(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), ar = Ln(T({}, Rn, { submitter: 0 })), or = Ln(T({}, Bn, {
+ })), rr = Fn(T({}, In, { submitter: 0 })), ir = Fn(T({}, Rn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -11333,12 +11396,12 @@ var Df = /* @__PURE__ */ g(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: nr
- })), sr = Ln(T({}, Rn, {
+ getModifierState: er
+ })), ar = Fn(T({}, In, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), cr = Ln(T({}, Gn, {
+ })), or = Fn(T({}, Un, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -11347,21 +11410,21 @@ var Df = /* @__PURE__ */ g(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), lr = Ln(T({}, Rn, {
+ })), sr = Fn(T({}, In, {
newState: 0,
oldState: 0,
source: 0
- })), ur = [
+ })), cr = [
9,
13,
27,
32
- ], dr = Dn && "CompositionEvent" in window, fr = null;
- Dn && "documentMode" in document && (fr = document.documentMode);
- var pr = Dn && "TextEvent" in window && !fr, mr = Dn && (!dr || fr && 8 < fr && 11 >= fr), hr = " ", gr = !1;
- function _r(e, t) {
+ ], lr = Tn && "CompositionEvent" in window, ur = null;
+ Tn && "documentMode" in document && (ur = document.documentMode);
+ var dr = Tn && "TextEvent" in window && !ur, fr = Tn && (!lr || ur && 8 < ur && 11 >= ur), pr = " ", mr = !1;
+ function hr(e, t) {
switch (e) {
- case "keyup": return ur.indexOf(t.keyCode) !== -1;
+ case "keyup": return cr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -11369,20 +11432,20 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return !1;
}
}
- function vr(e) {
+ function gr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var yr = !1;
- function br(e, t) {
+ var _r = !1;
+ function vr(e, t) {
switch (e) {
- case "compositionend": return vr(t);
- case "keypress": return t.which === 32 ? (gr = !0, hr) : null;
- case "textInput": return e = t.data, e === hr && gr ? null : e;
+ case "compositionend": return gr(t);
+ case "keypress": return t.which === 32 ? (mr = !0, pr) : null;
+ case "textInput": return e = t.data, e === pr && mr ? null : e;
default: return null;
}
}
- function xr(e, t) {
- if (yr) return e === "compositionend" || !dr && _r(e, t) ? (e = Nn(), Mn = jn = An = null, yr = !1, e) : null;
+ function yr(e, t) {
+ if (_r) return e === "compositionend" || !lr && hr(e, t) ? (e = jn(), An = kn = On = null, _r = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -11391,11 +11454,11 @@ var Df = /* @__PURE__ */ g(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return mr && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return fr && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var Sr = {
+ var br = {
color: !0,
date: !0,
datetime: !0,
@@ -11412,76 +11475,76 @@ var Df = /* @__PURE__ */ g(((e) => {
url: !0,
week: !0
};
- function Cr(e) {
+ function xr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!Sr[e.type] : t === "textarea";
+ return t === "input" ? !!br[e.type] : t === "textarea";
}
- function wr(e, t, n, r) {
- xn ? Sn ? Sn.push(r) : Sn = [r] : xn = r, t = ap(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
+ function Sr(e, t, n, r) {
+ yn ? bn ? bn.push(r) : bn = [r] : yn = r, t = rp(t, "onChange"), 0 < t.length && (n = new Ln("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var Tr = null, Er = null;
- function R(e) {
- Zf(e, 0);
+ var Cr = null, wr = null;
+ function Tr(e) {
+ Xf(e, 0);
}
- function Dr(e) {
- if (en(Ft(e))) return e;
+ function Er(e) {
+ if (Qt(Pt(e))) return e;
}
- function Or(e, t) {
+ function Dr(e, t) {
if (e === "change") return t;
}
- var kr = !1;
- if (Dn) {
- var Ar;
- if (Dn) {
- var jr = "oninput" in document;
- if (!jr) {
- var Mr = document.createElement("div");
- Mr.setAttribute("oninput", "return;"), jr = typeof Mr.oninput == "function";
+ var Or = !1;
+ if (Tn) {
+ var kr;
+ if (Tn) {
+ var Ar = "oninput" in document;
+ if (!Ar) {
+ var jr = document.createElement("div");
+ jr.setAttribute("oninput", "return;"), Ar = typeof jr.oninput == "function";
}
- Ar = jr;
- } else Ar = !1;
- kr = Ar && (!document.documentMode || 9 < document.documentMode);
+ kr = Ar;
+ } else kr = !1;
+ Or = kr && (!document.documentMode || 9 < document.documentMode);
}
- function Nr() {
- Tr && (Tr.detachEvent("onpropertychange", Pr), Er = Tr = null);
+ function Mr() {
+ Cr && (Cr.detachEvent("onpropertychange", Nr), wr = Cr = null);
}
- function Pr(e) {
- if (e.propertyName === "value" && Dr(Er)) {
+ function Nr(e) {
+ if (e.propertyName === "value" && Er(wr)) {
var t = [];
- wr(t, Er, e, bn(e)), Tn(R, t);
+ Sr(t, wr, e, vn(e)), Cn(Tr, t);
}
}
- function Fr(e, t, n) {
- e === "focusin" ? (Nr(), Tr = t, Er = n, Tr.attachEvent("onpropertychange", Pr)) : e === "focusout" && Nr();
+ function Pr(e, t, n) {
+ e === "focusin" ? (Mr(), Cr = t, wr = n, Cr.attachEvent("onpropertychange", Nr)) : e === "focusout" && Mr();
}
- function Ir(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Dr(Er);
+ function B(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Er(wr);
}
- function Lr(e, t) {
- if (e === "click") return Dr(t);
+ function Fr(e, t) {
+ if (e === "click") return Er(t);
}
- function Rr(e, t) {
- if (e === "input" || e === "change") return Dr(t);
+ function Ir(e, t) {
+ if (e === "input" || e === "change") return Er(t);
}
- function zr(e, t) {
+ function Lr(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Br = typeof Object.is == "function" ? Object.is : zr;
- function Vr(e, t) {
- if (Br(e, t)) return !0;
+ var Rr = typeof Object.is == "function" ? Object.is : Lr;
+ function zr(e, t) {
+ if (Rr(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 (!Le.call(t, i) || !Br(e[i], t[i])) return !1;
+ if (!Fe.call(t, i) || !Rr(e[i], t[i])) return !1;
}
return !0;
}
- function Hr(e) {
+ function Br(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -11489,12 +11552,12 @@ var Df = /* @__PURE__ */ g(((e) => {
return e.body;
}
}
- function Ur(e) {
+ function Vr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Wr(e, t) {
- var n = Ur(e);
+ function Hr(e, t) {
+ var n = Vr(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -11514,15 +11577,15 @@ var Df = /* @__PURE__ */ g(((e) => {
}
n = void 0;
}
- n = Ur(n);
+ n = Vr(n);
}
}
- function Gr(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Gr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
+ function Ur(e, t) {
+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Ur(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
}
- function Kr(e) {
+ function Wr(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Hr(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = Br(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -11530,18 +11593,18 @@ var Df = /* @__PURE__ */ g(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Hr(e.document);
+ t = Br(e.document);
}
return t;
}
- function qr(e) {
+ function Gr(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 Jr = Dn && "documentMode" in document && 11 >= document.documentMode, Yr = null, Xr = null, Zr = null, $r = !1;
- function ei(e, t, n) {
+ var Kr = Tn && "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;
- $r || Yr == null || Yr !== Hr(r) || (r = Yr, "selectionStart" in r && qr(r) ? r = {
+ Xr || qr == null || qr !== Br(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -11549,48 +11612,48 @@ var Df = /* @__PURE__ */ g(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Zr && Vr(Zr, r) || (Zr = r, r = ap(Xr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
+ }), Yr && zr(Yr, r) || (Yr = r, r = rp(Jr, "onSelect"), 0 < r.length && (t = new Ln("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Yr)));
+ }), t.target = qr)));
}
- function ti(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 ni = {
- animationend: ti("Animation", "AnimationEnd"),
- animationiteration: ti("Animation", "AnimationIteration"),
- animationstart: ti("Animation", "AnimationStart"),
- transitionrun: ti("Transition", "TransitionRun"),
- transitionstart: ti("Transition", "TransitionStart"),
- transitioncancel: ti("Transition", "TransitionCancel"),
- transitionend: ti("Transition", "TransitionEnd")
- }, ri = {}, ii = {};
- Dn && (ii = document.createElement("div").style, "AnimationEvent" in window || (delete ni.animationend.animation, delete ni.animationiteration.animation, delete ni.animationstart.animation), "TransitionEvent" in window || delete ni.transitionend.transition);
- function ai(e) {
- if (ri[e]) return ri[e];
- if (!ni[e]) return e;
- var t = ni[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ii) return ri[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 = {};
+ Tn && (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 oi = ai("animationend"), si = ai("animationiteration"), ci = ai("animationstart"), li = ai("transitionrun"), ui = ai("transitionstart"), di = ai("transitioncancel"), fi = ai("transitionend"), pi = /* @__PURE__ */ new Map(), mi = "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(" ");
- mi.push("scrollEnd");
- function hi(e, t) {
- pi.set(e, t), Bt(t, [e]);
+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), si = ni("transitionrun"), ci = ni("transitionstart"), li = ni("transitioncancel"), ui = ni("transitionend"), di = /* @__PURE__ */ new Map(), fi = "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(" ");
+ fi.push("scrollEnd");
+ function pi(e, t) {
+ di.set(e, t), zt(t, [e]);
}
- var gi = 0;
- function _i(e, t) {
+ var mi = 0;
+ function hi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Od.identifierPrefix;
- var n = gi++;
+ e = Dd.identifierPrefix;
+ var n = mi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function vi(e) {
+ function gi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Id;
+ var t = null, n = Fd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -11600,10 +11663,10 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return t ?? e.default;
}
- function yi(e, t) {
- return e = vi(e), t = vi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function _i(e, t) {
+ return e = gi(e), t = gi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var bi = typeof reportError == "function" ? reportError : function(e) {
+ var vi = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -11617,62 +11680,62 @@ var Df = /* @__PURE__ */ g(((e) => {
return;
}
console.error(e);
- }, xi = [], Si = 0, Ci = 0;
- function wi() {
- for (var e = Si, t = Ci = Si = 0; t < e;) {
- var n = xi[t];
- xi[t++] = null;
- var r = xi[t];
- xi[t++] = null;
- var i = xi[t];
- xi[t++] = null;
- var a = xi[t];
- if (xi[t++] = null, r !== null && i !== null) {
+ }, yi = [], bi = 0, xi = 0;
+ function Si() {
+ for (var e = bi, t = xi = bi = 0; t < e;) {
+ var n = yi[t];
+ yi[t++] = null;
+ var r = yi[t];
+ yi[t++] = null;
+ var i = yi[t];
+ yi[t++] = null;
+ var a = yi[t];
+ if (yi[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 && Oi(n, i, a);
+ a !== 0 && Ei(n, i, a);
}
}
- function Ti(e, t, n, r) {
- xi[Si++] = e, xi[Si++] = t, xi[Si++] = n, xi[Si++] = r, Ci |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ function Ci(e, t, n, r) {
+ yi[bi++] = e, yi[bi++] = t, yi[bi++] = n, yi[bi++] = r, xi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
}
- function Ei(e, t, n, r) {
- return Ti(e, t, n, r), ki(e);
+ function wi(e, t, n, r) {
+ return Ci(e, t, n, r), Di(e);
}
- function Di(e, t) {
- return Ti(e, null, null, t), ki(e);
+ function Ti(e, t) {
+ return Ci(e, null, null, t), Di(e);
}
- function Oi(e, t, n) {
+ function Ei(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 - et(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 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function ki(e) {
- if (50 < Ld) throw Ld = 0, Rd = null, Error(i(185));
+ function Di(e) {
+ if (50 < Id) throw Id = 0, Ld = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ai = {};
- function ji(e, t, n, r) {
+ var Oi = {};
+ function ki(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 Mi(e, t, n, r) {
- return new ji(e, t, n, r);
+ function Ai(e, t, n, r) {
+ return new ki(e, t, n, r);
}
- function Ni(e) {
+ function ji(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Pi(e, t) {
+ function Mi(e, t) {
var n = e.alternate;
- return n === null ? (n = Mi(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 = Ai(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 Fi(e, t) {
+ function Ni(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 : {
@@ -11680,21 +11743,21 @@ var Df = /* @__PURE__ */ g(((e) => {
firstContext: t.firstContext
}), e;
}
- function Ii(e, t, n, r, a, o) {
+ function Pi(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") Ni(r) && (s = 1);
- else if (typeof r == "string") s = q(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") ji(r) && (s = 1);
+ else if (typeof r == "string") s = th(e, n, be.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ae: return e = Mi(31, n, t, a), e.elementType = ae, e.lanes = o, e;
- case k: return Li(n.children, a, o, t);
+ case F: return e = Ai(31, n, t, a), e.elementType = F, e.lanes = o, e;
+ case k: return Fi(n.children, a, o, t);
case A:
s = 8, a |= 24;
break;
- case j: return e = Mi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
- case ne: return e = Mi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case N: return e = Mi(19, n, t, a), e.elementType = N, e.lanes = o, e;
- case oe:
- case ce: return e = a | 32, e = Mi(30, n, t, e), e.elementType = ce, e.lanes = o, e.stateNode = {
+ case j: return e = Ai(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
+ case N: return e = Ai(13, n, t, a), e.elementType = N, e.lanes = o, e;
+ case P: return e = Ai(19, n, t, a), e.elementType = P, e.lanes = o, e;
+ case ie:
+ case oe: return e = a | 32, e = Ai(30, n, t, e), e.elementType = oe, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -11711,168 +11774,168 @@ var Df = /* @__PURE__ */ g(((e) => {
case te:
s = 11;
break a;
- case re:
+ case ne:
s = 14;
break a;
- case ie:
+ case re:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Mi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = Ai(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Li(e, t, n, r) {
- return e = Mi(7, e, r, t), e.lanes = n, e;
+ function Fi(e, t, n, r) {
+ return e = Ai(7, e, r, t), e.lanes = n, e;
}
- function Ri(e, t, n) {
- return e = Mi(6, e, null, t), e.lanes = n, e;
+ function Ii(e, t, n) {
+ return e = Ai(6, e, null, t), e.lanes = n, e;
}
- function zi(e) {
- var t = Mi(18, null, null, 0);
+ function Li(e) {
+ var t = Ai(18, null, null, 0);
return t.stateNode = e, t;
}
- function Bi(e, t, n) {
- return t = Mi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Ri(e, t, n) {
+ return t = Ai(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Vi = /* @__PURE__ */ new WeakMap();
- function Hi(e, t) {
+ var zi = /* @__PURE__ */ new WeakMap();
+ function Bi(e, t) {
if (typeof e == "object" && e) {
- var n = Vi.get(e);
+ var n = zi.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Ie(t)
- }, Vi.set(e, t), t) : n;
+ stack: Pe(t)
+ }, zi.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Ie(t)
+ stack: Pe(t)
};
}
- var Ui = [], Wi = 0, Gi = null, Ki = 0, qi = [], Ji = 0, Yi = null, Xi = 1, Zi = "";
- function Qi(e, t) {
- Ui[Wi++] = Ki, Ui[Wi++] = Gi, Gi = e, Ki = t;
+ var Vi = [], Hi = 0, Ui = null, Wi = 0, Gi = [], Ki = 0, qi = null, Ji = 1, Yi = "";
+ function Xi(e, t) {
+ Vi[Hi++] = Wi, Vi[Hi++] = Ui, Ui = e, Wi = t;
}
- function $i(e, t, n) {
- qi[Ji++] = Xi, qi[Ji++] = Zi, qi[Ji++] = Yi, Yi = e;
- var r = Xi;
- e = Zi;
- var i = 32 - et(r) - 1;
+ function Zi(e, t, n) {
+ Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, qi = e;
+ var r = Ji;
+ e = Yi;
+ var i = 32 - Qe(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - et(t) + i;
+ var a = 32 - Qe(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Xi = 1 << 32 - et(t) + i | n << i | r, Zi = a + e;
- } else Xi = 1 << a | n << i | r, Zi = e;
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ji = 1 << 32 - Qe(t) + i | n << i | r, Yi = a + e;
+ } else Ji = 1 << a | n << i | r, Yi = e;
}
- function ea(e) {
- e.return !== null && (Qi(e, 1), $i(e, 1, 0));
+ function Qi(e) {
+ e.return !== null && (Xi(e, 1), Zi(e, 1, 0));
}
- function ta(e) {
- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
- for (; e === Yi;) Yi = qi[--Ji], qi[Ji] = null, Zi = qi[--Ji], qi[Ji] = null, Xi = qi[--Ji], qi[Ji] = null;
+ function $i(e) {
+ for (; e === Ui;) Ui = Vi[--Hi], Vi[Hi] = null, Wi = Vi[--Hi], Vi[Hi] = null;
+ for (; e === qi;) qi = Gi[--Ki], Gi[Ki] = null, Yi = Gi[--Ki], Gi[Ki] = null, Ji = Gi[--Ki], Gi[Ki] = null;
}
- function na(e, t) {
- qi[Ji++] = Xi, qi[Ji++] = Zi, qi[Ji++] = Yi, Xi = t.id, Zi = t.overflow, Yi = e;
+ function ea(e, t) {
+ Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, Ji = t.id, Yi = t.overflow, qi = e;
}
- var ra = null, ia = null, z = !1, aa = null, oa = !1, sa = Error(i(519));
- function B(e) {
- throw pa(Hi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), sa;
+ var ta = null, na = null, ra = !1, ia = null, aa = !1, oa = Error(i(519));
+ function sa(e) {
+ throw pa(Bi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), oa;
}
function ca(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[wt] = e, t[Tt] = r, n) {
+ switch (t[St] = e, t[Ct] = r, n) {
case "dialog":
- Qf("cancel", t), Qf("close", t);
+ U("cancel", t), U("close", t);
break;
case "iframe":
case "object":
case "embed":
- Qf("load", t);
+ U("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Yf.length; n++) Qf(Yf[n], t);
+ for (n = 0; n < Jf.length; n++) U(Jf[n], t);
break;
case "source":
- Qf("error", t);
+ U("error", t);
break;
case "img":
case "image":
case "link":
- Qf("error", t), Qf("load", t);
+ U("error", t), U("load", t);
break;
case "details":
- Qf("toggle", t);
+ U("toggle", t);
break;
case "input":
- Qf("invalid", t), an(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ U("invalid", t), nn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Qf("invalid", t);
+ U("invalid", t);
break;
- case "textarea": Qf("invalid", t), ln(t, r.value, r.defaultValue, r.children);
+ case "textarea": U("invalid", t), sn(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 || dp(t.textContent, n) ? (r.popover != null && (Qf("beforetoggle", t), Qf("toggle", t)), r.onScroll != null && Qf("scroll", t), r.onScrollEnd != null && Qf("scrollend", t), r.onClick != null && (t.onclick = vn), t = !0) : t = !1, t || B(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || lp(t.textContent, n) ? (r.popover != null && (U("beforetoggle", t), U("toggle", t)), r.onScroll != null && U("scroll", t), r.onScrollEnd != null && U("scrollend", t), r.onClick != null && (t.onclick = gn), t = !0) : t = !1, t || sa(e, !0);
}
function la(e) {
- for (ra = e.return; ra;) switch (ra.tag) {
+ for (ta = e.return; ta;) switch (ta.tag) {
case 5:
case 31:
case 13:
- oa = !1;
+ aa = !1;
return;
case 27:
case 3:
- oa = !0;
+ aa = !0;
return;
- default: ra = ra.return;
+ default: ta = ta.return;
}
}
function ua(e) {
- if (e !== ra) return !1;
- if (!z) return la(e), z = !0, !1;
+ if (e !== ta) return !1;
+ if (!ra) return la(e), ra = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Tp(e.type, e.memoizedProps)), n = !n), n && ia && B(e), la(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Cp(e.type, e.memoizedProps)), n = !n), n && na && sa(e), la(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ia = W(e);
+ na = xm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ia = W(e);
- } else t === 27 ? (t = ia, Pp(e.type) ? (e = bm, bm = null, ia = e) : ia = t) : ia = ra ? ym(e.stateNode.nextSibling) : null;
+ na = xm(e);
+ } else t === 27 ? (t = na, Mp(e.type) ? (e = bm, bm = null, na = e) : na = t) : na = ta ? ym(e.stateNode.nextSibling) : null;
return !0;
}
function da() {
- ia = ra = null, z = !1;
+ na = ta = null, ra = !1;
}
function fa() {
- var e = aa;
- return e !== null && (bd === null ? bd = e : bd.push.apply(bd, e), aa = null), e;
+ var e = ia;
+ return e !== null && (yd === null ? yd = e : yd.push.apply(yd, e), ia = null), e;
}
function pa(e) {
- aa === null ? aa = [e] : aa.push(e);
+ ia === null ? ia = [e] : ia.push(e);
}
- var ma = ye(null), ha = null, ga = null;
- function _a(e, t, n) {
- xe(ma, t._currentValue), t._currentValue = n;
+ var ma = _e(null), ha = null, ga = null;
+ function V(e, t, n) {
+ ye(ma, t._currentValue), t._currentValue = n;
}
- function va(e) {
- e._currentValue = ma.current, be(ma);
+ function _a(e) {
+ e._currentValue = ma.current, ve(ma);
}
- function ya(e, t, n) {
+ function va(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 ba(e, t, n, r) {
+ function ya(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -11883,15 +11946,15 @@ var Df = /* @__PURE__ */ g(((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), ya(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), va(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), ya(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), ya(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), va(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), va(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) {
@@ -11907,7 +11970,7 @@ var Df = /* @__PURE__ */ g(((e) => {
a = s;
}
}
- function xa(e, t, n, r) {
+ function ba(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -11919,33 +11982,33 @@ var Df = /* @__PURE__ */ g(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Br(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Rr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === Te.current) {
+ } else if (a === Ce.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [Y] : e.push(Y));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [fh] : e.push(fh));
}
a = a.return;
}
- return e !== null && ba(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && ya(t, e, n, r), t.flags |= 262144, e !== null;
}
- function Sa(e) {
+ function xa(e) {
for (e = e.firstContext; e !== null;) {
- if (!Br(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Rr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function Ca(e) {
+ function Sa(e) {
ha = e, ga = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function wa(e) {
- return Ea(ha, e);
+ function Ca(e) {
+ return Ta(ha, e);
}
- function Ta(e, t) {
- return ha === null && Ca(e), Ea(e, t);
+ function wa(e, t) {
+ return ha === null && Sa(e), Ta(e, t);
}
- function Ea(e, t) {
+ function Ta(e, t) {
var n = t._currentValue;
if (t = {
context: t,
@@ -11960,7 +12023,7 @@ var Df = /* @__PURE__ */ g(((e) => {
} else ga = ga.next = t;
return n;
}
- var Da = typeof AbortController < "u" ? AbortController : function() {
+ var Ea = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -11972,7 +12035,7 @@ var Df = /* @__PURE__ */ g(((e) => {
return e();
});
};
- }, Oa = t.unstable_scheduleCallback, ka = t.unstable_NormalPriority, Aa = {
+ }, Da = t.unstable_scheduleCallback, Oa = t.unstable_NormalPriority, ka = {
$$typeof: ee,
Consumer: null,
Provider: null,
@@ -11980,19 +12043,19 @@ var Df = /* @__PURE__ */ g(((e) => {
_currentValue2: null,
_threadCount: 0
};
- function ja() {
+ function Aa() {
return {
- controller: new Da(),
+ controller: new Ea(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Ma(e) {
- e.refCount--, e.refCount === 0 && Oa(ka, function() {
+ function ja(e) {
+ e.refCount--, e.refCount === 0 && Da(Oa, function() {
e.controller.abort();
});
}
- function Na(e, t) {
+ function Ma(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -12001,16 +12064,16 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
}
- var Pa = null;
- function Fa(e) {
+ var Na = null;
+ function Pa(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Ia = null, La = 0, Ra = 0, za = null;
- function Ba(e, t) {
- if (Ia === null) {
- var n = Ia = [];
- La = 0, Ra = Wf(), za = {
+ var Fa = null, Ia = 0, La = 0, Ra = null;
+ function za(e, t) {
+ if (Fa === null) {
+ var n = Fa = [];
+ Ia = 0, La = Uf(), Ra = {
status: "pending",
value: void 0,
then: function(e) {
@@ -12018,17 +12081,17 @@ var Df = /* @__PURE__ */ g(((e) => {
}
};
}
- return La++, t.then(Va, Va), t;
+ return Ia++, t.then(Ba, Ba), t;
}
- function Va() {
- if (--La === 0 && (Pa = null, Ia !== null)) {
- za !== null && (za.status = "fulfilled");
- var e = Ia;
- Ia = null, Ra = 0, za = null;
+ function Ba() {
+ if (--Ia === 0 && (Na = null, Fa !== null)) {
+ Ra !== null && (Ra.status = "fulfilled");
+ var e = Fa;
+ Fa = null, La = 0, Ra = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Ha(e, t) {
+ function Va(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -12044,48 +12107,48 @@ var Df = /* @__PURE__ */ g(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ua = P.S;
- P.S = function(e, t) {
- if (Cd = He(), typeof t == "object" && t && typeof t.then == "function" && Ba(e, t), Pa !== null) for (var n = Af; n !== null;) Na(n, Pa), n = n.next;
+ var Ha = I.S;
+ I.S = function(e, t) {
+ if (Sd = Be(), typeof t == "object" && t && typeof t.then == "function" && za(e, t), Na !== null) for (var n = Of; n !== null;) Ma(n, Na), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Af; r !== null;) Na(r, n), r = r.next;
- if (Ra !== 0) {
- r = Pa, r === null && (r = Pa = []);
+ for (var r = Of; r !== null;) Ma(r, n), r = r.next;
+ if (La !== 0) {
+ r = Na, r === null && (r = Na = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ua !== null && Ua(e, t);
+ Ha !== null && Ha(e, t);
};
- var Wa = ye(null);
- function Ga() {
- var e = Wa.current;
- return e === null ? id.pooledCache : e;
+ var Ua = _e(null);
+ function Wa() {
+ var e = Ua.current;
+ return e === null ? rd.pooledCache : e;
}
- function Ka(e, t) {
- t === null ? xe(Wa, Wa.current) : xe(Wa, t.pool);
+ function Ga(e, t) {
+ t === null ? ye(Ua, Ua.current) : ye(Ua, t.pool);
}
- function qa() {
- var e = Ga();
+ function Ka() {
+ var e = Wa();
return e === null ? null : {
- parent: Aa._currentValue,
+ parent: ka._currentValue,
pool: e
};
}
- var Ja = Error(i(460)), Ya = Error(i(474)), Xa = Error(i(542)), Za = { then: function() {} };
- function Qa(e) {
+ var qa = Error(i(460)), Ja = Error(i(474)), Ya = Error(i(542)), Xa = { then: function() {} };
+ function Za(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function $a(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(vn, vn), t = n), t.status) {
+ function Qa(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(gn, gn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, ro(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, no(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(vn, vn);
+ if (typeof t.status == "string") t.then(gn, gn);
else {
- if (e = id, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = rd, 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;
@@ -12100,40 +12163,40 @@ var Df = /* @__PURE__ */ g(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, ro(e), e;
+ case "rejected": throw e = t.reason, no(e), e;
}
- throw to = t, Ja;
+ throw eo = t, qa;
}
}
- function eo(e) {
+ function $a(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (to = e, Ja) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (eo = e, qa) : e;
}
}
- var to = null;
- function no() {
- if (to === null) throw Error(i(459));
- var e = to;
- return to = null, e;
+ var eo = null;
+ function to() {
+ if (eo === null) throw Error(i(459));
+ var e = eo;
+ return eo = null, e;
}
- function ro(e) {
- if (e === Ja || e === Xa) throw Error(i(483));
+ function no(e) {
+ if (e === qa || e === Ya) throw Error(i(483));
}
- var io = null, ao = 0;
- function oo(e) {
- var t = ao;
- return ao += 1, io === null && (io = []), $a(io, e, t);
+ var ro = null, io = 0;
+ function ao(e) {
+ var t = io;
+ return io += 1, ro === null && (ro = []), Qa(ro, e, t);
}
- function so(e, t) {
+ function oo(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function co(e, t) {
+ function so(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 lo(e) {
+ function co(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -12150,7 +12213,7 @@ var Df = /* @__PURE__ */ g(((e) => {
return t;
}
function a(e, t) {
- return e = Pi(e, t), e.index = 0, e.sibling = null, e;
+ return e = Mi(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);
@@ -12159,30 +12222,30 @@ var Df = /* @__PURE__ */ g(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Ri(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Ii(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), so(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ie && eo(i) === t.type) ? (t = a(t, n.props), so(t, n), t.return = e, t) : (t = Ii(n.type, n.key, n.props, null, e.mode, r), so(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === re && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), oo(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 = Bi(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 = Ri(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 = Li(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Fi(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 = Ri("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ii("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case D: return n = Ii(t.type, t.key, t.props, null, e.mode, n), so(n, t), n.return = e, n;
- case O: return t = Bi(t, e.mode, n), t.return = e, t;
- case ie: return t = eo(t), f(e, t, n);
+ case D: return n = Pi(t.type, t.key, t.props, null, e.mode, n), oo(n, t), n.return = e, n;
+ case O: return t = Ri(t, e.mode, n), t.return = e, t;
+ case re: return t = $a(t), f(e, t, n);
}
- if (me(t) || de(t)) return t = Li(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, oo(t), n);
- if (t.$$typeof === ee) return f(e, Ta(e, t), n);
- co(e, t);
+ if (fe(t) || le(t)) return t = Fi(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, ao(t), n);
+ if (t.$$typeof === ee) return f(e, wa(e, t), n);
+ so(e, t);
}
return null;
}
@@ -12193,12 +12256,12 @@ var Df = /* @__PURE__ */ g(((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 ie: return n = eo(n), p(e, t, n, r);
+ case re: return n = $a(n), p(e, t, n, r);
}
- if (me(n) || de(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, oo(n), r);
- if (n.$$typeof === ee) return p(e, t, Ta(e, n), r);
- co(e, n);
+ if (fe(n) || le(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, ao(n), r);
+ if (n.$$typeof === ee) return p(e, t, wa(e, n), r);
+ so(e, n);
}
return null;
}
@@ -12208,12 +12271,12 @@ var Df = /* @__PURE__ */ g(((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 ie: return r = eo(r), m(e, t, n, r, i);
+ case re: return r = $a(r), m(e, t, n, r, i);
}
- 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, oo(r), i);
- if (r.$$typeof === ee) return m(e, t, n, Ta(t, r), i);
- co(t, r);
+ if (fe(r) || le(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, ao(r), i);
+ if (r.$$typeof === ee) return m(e, t, n, wa(t, r), i);
+ so(t, r);
}
return null;
}
@@ -12227,15 +12290,15 @@ var Df = /* @__PURE__ */ g(((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), z && Qi(i, h), l;
+ if (h === s.length) return n(i, d), ra && Xi(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 z && Qi(i, h), l;
+ return ra && Xi(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);
- }), z && Qi(i, h), l;
+ }), ra && Xi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -12248,15 +12311,15 @@ var Df = /* @__PURE__ */ g(((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), z && Qi(a, g), u;
+ if (v.done) return n(a, h), ra && Xi(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 z && Qi(a, g), u;
+ return ra && Xi(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);
- }), z && Qi(a, g), u;
+ }), ra && Xi(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) {
@@ -12267,11 +12330,11 @@ var Df = /* @__PURE__ */ g(((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), so(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), oo(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ie && eo(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), so(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === re && $a(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), oo(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -12279,7 +12342,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === k ? (c = Li(o.props.children, e.mode, c, o.key), so(c, o), c.return = e, e = c) : (c = Ii(o.type, o.key, o.props, null, e.mode, c), so(c, o), c.return = e, e = c);
+ o.type === k ? (c = Fi(o.props.children, e.mode, c, o.key), oo(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), oo(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -12295,36 +12358,36 @@ var Df = /* @__PURE__ */ g(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Bi(o, e.mode, c), c.return = e, e = c;
+ c = Ri(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case ie: return o = eo(o), _(e, r, o, c);
+ case re: return o = $a(o), _(e, r, o, c);
}
- if (me(o)) return h(e, r, o, c);
- if (de(o)) {
- if (l = de(o), typeof l != "function") throw Error(i(150));
+ if (fe(o)) return h(e, r, o, c);
+ if (le(o)) {
+ if (l = le(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, oo(o), c);
- if (o.$$typeof === ee) return _(e, r, Ta(e, o), c);
- co(e, o);
+ if (typeof o.then == "function") return _(e, r, ao(o), c);
+ if (o.$$typeof === ee) return _(e, r, wa(e, o), c);
+ so(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 = Ri(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 = Ii(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- ao = 0;
+ io = 0;
var i = _(e, t, n, r);
- return io = null, i;
+ return ro = null, i;
} catch (t) {
- if (t === Ja || t === Xa) throw t;
- var a = Mi(29, t, null, e.mode);
+ if (t === qa || t === Ya) throw t;
+ var a = Ai(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var uo = lo(!0), fo = lo(!1), po = !1;
- function mo(e) {
+ var lo = co(!0), uo = co(!1), fo = !1;
+ function po(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -12337,7 +12400,7 @@ var Df = /* @__PURE__ */ g(((e) => {
callbacks: null
};
}
- function ho(e, t) {
+ function mo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -12346,7 +12409,7 @@ var Df = /* @__PURE__ */ g(((e) => {
callbacks: null
});
}
- function go(e) {
+ function ho(e) {
return {
lane: e,
tag: 0,
@@ -12355,22 +12418,22 @@ var Df = /* @__PURE__ */ g(((e) => {
next: null
};
}
- function _o(e, t, n) {
+ function go(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, rd & 2) {
+ if (r = r.shared, nd & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = ki(e), Oi(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;
}
- return Ti(e, r, t, n), ki(e);
+ return Ci(e, r, t, n), Di(e);
}
- function vo(e, t, n) {
+ function _o(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, _t(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- function yo(e, t) {
+ function vo(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -12398,17 +12461,17 @@ var Df = /* @__PURE__ */ g(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var bo = !1;
- function xo() {
- if (bo) {
- var e = za;
+ var yo = !1;
+ function bo() {
+ if (yo) {
+ var e = Ra;
if (e !== null) throw e;
}
}
- function So(e, t, n, r) {
- bo = !1;
+ function xo(e, t, n, r) {
+ yo = !1;
var i = e.updateQueue;
- po = !1;
+ fo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -12422,8 +12485,8 @@ var Df = /* @__PURE__ */ g(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (od & f) === f : (r & f) === f) {
- f !== 0 && f === Ra && (bo = !0), u !== null && (u = u.next = {
+ if (p ? (ad & f) === f : (r & f) === f) {
+ f !== 0 && f === La && (yo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -12447,7 +12510,7 @@ var Df = /* @__PURE__ */ g(((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: po = !0;
+ case 2: fo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -12463,52 +12526,52 @@ var Df = /* @__PURE__ */ g(((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), md |= 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), pd |= o, e.lanes = o, e.memoizedState = d;
}
}
- function Co(e, t) {
+ function So(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function wo(e, t) {
+ function Co(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Co(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) So(n[e], t);
}
- var To = ye(null), Eo = ye(0);
- function Do(e, t) {
- e = fd, xe(Eo, e), xe(To, t), fd = e | t.baseLanes;
+ var wo = _e(null), To = _e(0);
+ function Eo(e, t) {
+ e = dd, ye(To, e), ye(wo, t), dd = e | t.baseLanes;
+ }
+ function Do() {
+ ye(To, dd), ye(wo, wo.current);
}
function Oo() {
- xe(Eo, fd), xe(To, To.current);
+ dd = To.current, ve(wo), ve(To);
}
- function ko() {
- fd = Eo.current, be(To), be(Eo);
+ var ko = _e(null), Ao = null;
+ function jo(e) {
+ var t = e.alternate;
+ ye(Io, Io.current & 1), ye(ko, e), Ao === null && (t === null || wo.current !== null || t.memoizedState !== null) && (Ao = e);
}
- var Ao = ye(null), jo = null;
function Mo(e) {
- var t = e.alternate;
- xe(Lo, Lo.current & 1), xe(Ao, e), jo === null && (t === null || To.current !== null || t.memoizedState !== null) && (jo = e);
+ ye(Io, Io.current), ye(ko, e), Ao === null && (Ao = e);
}
function No(e) {
- xe(Lo, Lo.current), xe(Ao, e), jo === null && (jo = e);
+ e.tag === 22 ? (ye(Io, Io.current), ye(ko, e), Ao === null && (Ao = e)) : Po();
}
- function Po(e) {
- e.tag === 22 ? (xe(Lo, Lo.current), xe(Ao, e), jo === null && (jo = e)) : Fo();
+ function Po() {
+ ye(Io, Io.current), ye(ko, ko.current);
}
- function Fo() {
- xe(Lo, Lo.current), xe(Ao, Ao.current);
+ function Fo(e) {
+ ve(ko), Ao === e && (Ao = null), ve(Io);
}
- function Io(e) {
- be(Ao), jo === e && (jo = null), be(Lo);
+ var Io = _e(0);
+ function Lo(e, t) {
+ ye(ko, ko.current), ye(Io, t);
}
- var Lo = ye(0);
- function Ro(e, t) {
- xe(Ao, Ao.current), xe(Lo, t);
+ function Ro(e) {
+ ve(Io), ve(ko), Ao === e && (Ao = null);
}
function zo(e) {
- be(Lo), be(Ao), jo === e && (jo = null);
- }
- function Bo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -12528,59 +12591,59 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return null;
}
- var Vo = 0, V = null, Ho = null, Uo = null, Wo = !1, Go = !1, Ko = !1, qo = 0, Jo = 0, Yo = null, Xo = 0;
- function Zo() {
+ var Bo = 0, H = null, Vo = null, Ho = null, Uo = !1, Wo = !1, Go = !1, Ko = 0, qo = 0, Jo = null, Yo = 0;
+ function Xo() {
throw Error(i(321));
}
- function Qo(e, t) {
+ function Zo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Br(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Rr(e[n], t[n])) return !1;
return !0;
}
- function $o(e, t, n, r, i, a) {
- return Vo = a, V = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, P.H = e === null || e.memoizedState === null ? gc : _c, Ko = !1, a = n(r, i), Ko = !1, Go && (a = ts(t, n, r, i)), es(e), a;
+ function Qo(e, t, n, r, i, a) {
+ return Bo = a, H = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, I.H = e === null || e.memoizedState === null ? hc : gc, Go = !1, a = n(r, i), Go = !1, Wo && (a = es(t, n, r, i)), $o(e), a;
}
- function es(e) {
- P.H = hc;
- var t = Ho !== null && Ho.next !== null;
- if (Vo = 0, Uo = Ho = V = null, Wo = !1, Jo = 0, Yo = null, t) throw Error(i(300));
- e === null || Pc || (e = e.dependencies, e !== null && Sa(e) && (Pc = !0));
+ function $o(e) {
+ I.H = mc;
+ var t = Vo !== null && Vo.next !== null;
+ if (Bo = 0, Ho = Vo = H = null, Uo = !1, qo = 0, Jo = null, t) throw Error(i(300));
+ e === null || Nc || (e = e.dependencies, e !== null && xa(e) && (Nc = !0));
}
- function ts(e, t, n, r) {
- V = e;
+ function es(e, t, n, r) {
+ H = e;
var a = 0;
do {
- if (Go && (Yo = null), Jo = 0, Go = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Uo = Ho = null, e.updateQueue != null) {
+ if (Wo && (Jo = null), qo = 0, Wo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Ho = Vo = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- P.H = vc, o = t(n, r);
- } while (Go);
+ I.H = _c, o = t(n, r);
+ } while (Wo);
return o;
}
- function ns() {
- var e = P.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? ls(t) : t, e = e.useState()[0], (Ho === null ? null : Ho.memoizedState) !== e && (V.flags |= 1024), t;
+ function ts() {
+ var e = I.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? cs(t) : t, e = e.useState()[0], (Vo === null ? null : Vo.memoizedState) !== e && (H.flags |= 1024), t;
}
- function rs() {
- var e = qo !== 0;
- return qo = 0, e;
+ function ns() {
+ var e = Ko !== 0;
+ return Ko = 0, e;
}
- function is(e, t, n) {
+ function rs(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function as(e) {
- if (Wo) {
+ function is(e) {
+ if (Uo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Wo = !1;
+ Uo = !1;
}
- Vo = 0, Uo = Ho = V = null, Go = !1, Jo = qo = 0, Yo = null;
+ Bo = 0, Ho = Vo = H = null, Wo = !1, qo = Ko = 0, Jo = null;
}
- function os() {
+ function as() {
var e = {
memoizedState: null,
baseState: null,
@@ -12588,28 +12651,28 @@ var Df = /* @__PURE__ */ g(((e) => {
queue: null,
next: null
};
- return Uo === null ? V.memoizedState = Uo = e : Uo = Uo.next = e, Uo;
+ return Ho === null ? H.memoizedState = Ho = e : Ho = Ho.next = e, Ho;
}
- function ss() {
- if (Ho === null) {
- var e = V.alternate;
+ function os() {
+ if (Vo === null) {
+ var e = H.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Ho.next;
- var t = Uo === null ? V.memoizedState : Uo.next;
- if (t !== null) Uo = t, Ho = e;
+ } else e = Vo.next;
+ var t = Ho === null ? H.memoizedState : Ho.next;
+ if (t !== null) Ho = t, Vo = e;
else {
- if (e === null) throw V.alternate === null ? Error(i(467)) : Error(i(310));
- Ho = e, e = {
- memoizedState: Ho.memoizedState,
- baseState: Ho.baseState,
- baseQueue: Ho.baseQueue,
- queue: Ho.queue,
+ if (e === null) throw H.alternate === null ? Error(i(467)) : Error(i(310));
+ Vo = e, e = {
+ memoizedState: Vo.memoizedState,
+ baseState: Vo.baseState,
+ baseQueue: Vo.baseQueue,
+ queue: Vo.queue,
next: null
- }, Uo === null ? V.memoizedState = Uo = e : Uo = Uo.next = e;
+ }, Ho === null ? H.memoizedState = Ho = e : Ho = Ho.next = e;
}
- return Uo;
+ return Ho;
}
- function cs() {
+ function ss() {
return {
lastEffect: null,
events: null,
@@ -12617,22 +12680,22 @@ var Df = /* @__PURE__ */ g(((e) => {
memoCache: null
};
}
- function ls(e) {
- var t = Jo;
- return Jo += 1, Yo === null && (Yo = []), e = $a(Yo, e, t), t = V, (Uo === null ? t.memoizedState : Uo.next) === null && (t = t.alternate, P.H = t === null || t.memoizedState === null ? gc : _c), e;
+ function cs(e) {
+ var t = qo;
+ return qo += 1, Jo === null && (Jo = []), e = Qa(Jo, e, t), t = H, (Ho === null ? t.memoizedState : Ho.next) === null && (t = t.alternate, I.H = t === null || t.memoizedState === null ? hc : gc), e;
}
- function us(e) {
+ function ls(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return ls(e);
- if (e.$$typeof === le) return;
- if (e.$$typeof === ee) return wa(e);
+ if (typeof e.then == "function") return cs(e);
+ if (e.$$typeof === se) return;
+ if (e.$$typeof === ee) return Ca(e);
}
throw Error(i(438, String(e)));
}
- function ds(e) {
- var t = null, n = V.updateQueue;
+ function us(e) {
+ var t = null, n = H.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = V.alternate;
+ var r = H.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -12643,16 +12706,16 @@ var Df = /* @__PURE__ */ g(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = cs(), V.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;
+ }, n === null && (n = ss(), H.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] = ae;
return t.index++, n;
}
- function fs(e, t) {
+ function ds(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function ps(e) {
- return ms(ss(), Ho, e);
+ function fs(e) {
+ return ps(os(), Vo, e);
}
- function ms(e, t, n) {
+ function ps(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -12670,7 +12733,7 @@ var Df = /* @__PURE__ */ g(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Vo & f) === f : (od & f) === f) {
+ if (f === u.lane ? (Bo & f) === f : (ad & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -12680,9 +12743,9 @@ var Df = /* @__PURE__ */ g(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Ra && (d = !0);
- else if ((Vo & p) === p) {
- u = u.next, p === Ra && (d = !0);
+ }), f === La && (d = !0);
+ else if ((Bo & p) === p) {
+ u = u.next, p === La && (d = !0);
continue;
} else f = {
lane: 0,
@@ -12692,8 +12755,8 @@ var Df = /* @__PURE__ */ g(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, V.lanes |= p, md |= p;
- f = u.action, Ko && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, H.lanes |= p, pd |= p;
+ f = u.action, Go && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -12702,16 +12765,16 @@ var Df = /* @__PURE__ */ g(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, V.lanes |= f, md |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, H.lanes |= f, pd |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Br(o, e.memoizedState) && (Pc = !0, d && (n = za, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Rr(o, e.memoizedState) && (Nc = !0, d && (n = Ra, 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 hs(e) {
- var t = ss(), n = t.queue;
+ function ms(e) {
+ var t = os(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -12721,61 +12784,61 @@ var Df = /* @__PURE__ */ g(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Br(o, t.memoizedState) || (Pc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Rr(o, t.memoizedState) || (Nc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function gs(e, t, n) {
- var r = V, a = ss(), o = z;
+ function hs(e, t, n) {
+ var r = H, a = os(), o = ra;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Br((Ho || a).memoizedState, n);
- if (s && (a.memoizedState = n, Pc = !0), a = a.queue, Vs(ys.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Uo !== null && !!(Uo.memoizedState.tag & 1), Is(e ? 9 : 8, { destroy: void 0 }, vs.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, id === null) throw Error(i(349));
- o || Vo & 127 || _s(r, t, n);
+ var s = !Rr((Vo || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Nc = !0), a = a.queue, Bs(vs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ho !== null && !!(Ho.memoizedState.tag & 1), Fs(e ? 9 : 8, { destroy: void 0 }, _s.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, rd === null) throw Error(i(349));
+ o || Bo & 127 || gs(r, t, n);
}
return n;
}
- function _s(e, t, n) {
+ function gs(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = V.updateQueue, t === null ? (t = cs(), V.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = H.updateQueue, t === null ? (t = ss(), H.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function vs(e, t, n, r) {
- t.value = n, t.getSnapshot = r, bs(t) && xs(e);
+ function _s(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, ys(t) && bs(e);
}
- function ys(e, t, n) {
+ function vs(e, t, n) {
return n(function() {
- bs(t) && xs(e);
+ ys(t) && bs(e);
});
}
- function bs(e) {
+ function ys(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Br(e, n);
+ return !Rr(e, n);
} catch {
return !0;
}
}
- function xs(e) {
- var t = Di(e, 2);
- t !== null && Hd(t, e, 2);
+ function bs(e) {
+ var t = Ti(e, 2);
+ t !== null && Vd(t, e, 2);
}
- function Ss(e) {
- var t = os();
+ function xs(e) {
+ var t = as();
if (typeof e == "function") {
var n = e;
- if (e = n(), Ko) {
- $e(!0);
+ if (e = n(), Go) {
+ Ze(!0);
try {
n();
} finally {
- $e(!1);
+ Ze(!1);
}
}
}
@@ -12783,15 +12846,15 @@ var Df = /* @__PURE__ */ g(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
+ lastRenderedReducer: ds,
lastRenderedState: e
}, t;
}
- function Cs(e, t, n, r) {
- return e.baseState = n, ms(e, Ho, typeof r == "function" ? r : fs);
+ function Ss(e, t, n, r) {
+ return e.baseState = n, ps(e, Vo, typeof r == "function" ? r : ds);
}
- function ws(e, t, n, r, a) {
- if (fc(e)) throw Error(i(485));
+ function Cs(e, t, n, r, a) {
+ if (dc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -12806,65 +12869,65 @@ var Df = /* @__PURE__ */ g(((e) => {
o.listeners.push(e);
}
};
- P.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ts(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ I.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ws(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function Ts(e, t) {
+ function ws(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = P.T, o = {};
- o.types = a === null ? null : a.types, P.T = o;
+ var a = I.T, o = {};
+ o.types = a === null ? null : a.types, I.T = o;
try {
- var s = n(i, r), c = P.S;
- c !== null && c(o, s), Es(e, t, s);
+ var s = n(i, r), c = I.S;
+ c !== null && c(o, s), Ts(e, t, s);
} catch (n) {
- Os(e, t, n);
+ Ds(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), P.T = a;
+ a !== null && o.types !== null && (a.types = o.types), I.T = a;
}
} else try {
- a = n(i, r), Es(e, t, a);
+ a = n(i, r), Ts(e, t, a);
} catch (n) {
- Os(e, t, n);
+ Ds(e, t, n);
}
}
- function Es(e, t, n) {
+ function Ts(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Ds(e, t, n);
+ Es(e, t, n);
}, function(n) {
- return Os(e, t, n);
- }) : Ds(e, t, n);
+ return Ds(e, t, n);
+ }) : Es(e, t, n);
}
- function Ds(e, t, n) {
- t.status = "fulfilled", t.value = n, ks(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ts(e, n)));
+ function Es(e, t, n) {
+ t.status = "fulfilled", t.value = n, Os(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ws(e, n)));
}
- function Os(e, t, n) {
+ function Ds(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, ks(t), t = t.next;
+ t.status = "rejected", t.reason = n, Os(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function ks(e) {
+ function Os(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function As(e, t) {
+ function ks(e, t) {
return t;
}
- function js(e, t) {
- if (z) {
- var n = id.formState;
+ function As(e, t) {
+ if (ra) {
+ var n = rd.formState;
if (n !== null) {
a: {
- var r = V;
- if (z) {
- if (ia) {
+ var r = H;
+ if (ra) {
+ if (na) {
b: {
- for (var i = ia, a = oa; i.nodeType !== 8;) {
+ for (var i = na, a = aa; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
@@ -12877,59 +12940,59 @@ var Df = /* @__PURE__ */ g(((e) => {
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ia = ym(i.nextSibling), r = i.data === "F!";
+ na = ym(i.nextSibling), r = i.data === "F!";
break a;
}
}
- B(r);
+ sa(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = os(), n.memoizedState = n.baseState = t, r = {
+ return n = as(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: As,
+ lastRenderedReducer: ks,
lastRenderedState: t
- }, n.queue = r, n = lc.bind(null, V, r), r.dispatch = n, r = Ss(!1), a = dc.bind(null, V, !1, r.queue), r = os(), i = {
+ }, n.queue = r, n = cc.bind(null, H, r), r.dispatch = n, r = xs(!1), a = uc.bind(null, H, !1, r.queue), r = as(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = ws.bind(null, V, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = Cs.bind(null, H, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ms(e) {
- return Ns(ss(), Ho, e);
+ function js(e) {
+ return Ms(os(), Vo, e);
}
- function Ns(e, t, n) {
- if (t = ms(e, t, As)[0], e = ps(fs)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = ls(t);
+ function Ms(e, t, n) {
+ if (t = ps(e, t, ks)[0], e = fs(ds)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = cs(t);
} catch (e) {
- throw e === Ja ? Xa : e;
+ throw e === qa ? Ya : e;
}
else r = t;
- t = ss();
+ t = os();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (V.flags |= 2048, Is(9, { destroy: void 0 }, Ps.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (H.flags |= 2048, Fs(9, { destroy: void 0 }, Ns.bind(null, i, n), null)), [
r,
a,
e
];
}
- function Ps(e, t) {
+ function Ns(e, t) {
e.action = t;
}
- function Fs(e) {
- var t = ss(), n = Ho;
- if (n !== null) return Ns(t, n, e);
- ss(), t = t.memoizedState, n = ss();
+ function Ps(e) {
+ var t = os(), n = Vo;
+ if (n !== null) return Ms(t, n, e);
+ os(), t = t.memoizedState, n = os();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -12937,60 +13000,60 @@ var Df = /* @__PURE__ */ g(((e) => {
!1
];
}
- function Is(e, t, n, r) {
+ function Fs(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = V.updateQueue, t === null && (t = cs(), V.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;
+ }, t = H.updateQueue, t === null && (t = ss(), H.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 Ls() {
- return ss().memoizedState;
+ function Is() {
+ return os().memoizedState;
+ }
+ function Ls(e, t, n, r) {
+ var i = as();
+ H.flags |= e, i.memoizedState = Fs(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
}
function Rs(e, t, n, r) {
var i = os();
- V.flags |= e, i.memoizedState = Is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
- }
- function zs(e, t, n, r) {
- var i = ss();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Ho !== null && r !== null && Qo(r, Ho.memoizedState.deps) ? i.memoizedState = Is(t, a, n, r) : (V.flags |= e, i.memoizedState = Is(1 | t, a, n, r));
+ Vo !== null && r !== null && Zo(r, Vo.memoizedState.deps) ? i.memoizedState = Fs(t, a, n, r) : (H.flags |= e, i.memoizedState = Fs(1 | t, a, n, r));
}
- function Bs(e, t) {
- Rs(8390656, 8, e, t);
+ function zs(e, t) {
+ Ls(8390656, 8, e, t);
}
- function Vs(e, t) {
- zs(2048, 8, e, t);
+ function Bs(e, t) {
+ Rs(2048, 8, e, t);
}
- function Hs(e) {
- V.flags |= 4;
- var t = V.updateQueue;
- if (t === null) t = cs(), V.updateQueue = t, t.events = [e];
+ function Vs(e) {
+ H.flags |= 4;
+ var t = H.updateQueue;
+ if (t === null) t = ss(), H.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Us(e) {
- var t = ss().memoizedState;
- return Hs({
+ function Hs(e) {
+ var t = os().memoizedState;
+ return Vs({
ref: t,
nextImpl: e
}), function() {
- if (rd & 2) throw Error(i(440));
+ if (nd & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
+ function Us(e, t) {
+ return Rs(4, 2, e, t);
+ }
function Ws(e, t) {
- return zs(4, 2, e, t);
+ return Rs(4, 4, e, t);
}
function Gs(e, t) {
- return zs(4, 4, e, t);
- }
- function Ks(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -13002,76 +13065,76 @@ var Df = /* @__PURE__ */ g(((e) => {
t.current = null;
};
}
- function qs(e, t, n) {
- n = n == null ? null : n.concat([e]), zs(4, 4, Ks.bind(null, t, e), n);
+ function Ks(e, t, n) {
+ n = n == null ? null : n.concat([e]), Rs(4, 4, Gs.bind(null, t, e), n);
}
- function Js() {}
- function Ys(e, t) {
- var n = ss();
+ function qs() {}
+ function Js(e, t) {
+ var n = os();
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 && Zo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Xs(e, t) {
- var n = ss();
+ function Ys(e, t) {
+ var n = os();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Qo(t, r[1])) return r[0];
- if (r = e(), Ko) {
- $e(!0);
+ if (t !== null && Zo(t, r[1])) return r[0];
+ if (r = e(), Go) {
+ Ze(!0);
try {
e();
} finally {
- $e(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Zs(e, t, n) {
- return n === void 0 || Vo & 1073741824 && !(od & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Bd(), V.lanes |= e, md |= e, n);
+ function Xs(e, t, n) {
+ return n === void 0 || Bo & 1073741824 && !(ad & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = zd(), H.lanes |= e, pd |= e, n);
}
- function Qs(e, t, n, r) {
- return Br(n, t) ? n : To.current === null ? !(Vo & 106) || Vo & 1073741824 && !(od & 261930) ? (Pc = !0, e.memoizedState = n) : (e = Bd(), V.lanes |= e, md |= e, t) : (e = Zs(e, n, r), Br(e, t) || (Pc = !0), e);
+ function Zs(e, t, n, r) {
+ return Rr(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(ad & 261930) ? (Nc = !0, e.memoizedState = n) : (e = zd(), H.lanes |= e, pd |= e, t) : (e = Xs(e, n, r), Rr(e, t) || (Nc = !0), e);
}
- function $s(e, t, n, r, i) {
- var a = he.p;
- he.p = a !== 0 && 8 > a ? a : 8;
- var o = P.T, s = {};
- s.types = o === null ? null : o.types, P.T = s, dc(e, !1, t, n);
+ function Qs(e, t, n, r, i) {
+ var a = pe.p;
+ pe.p = a !== 0 && 8 > a ? a : 8;
+ var o = I.T, s = {};
+ s.types = o === null ? null : o.types, I.T = s, uc(e, !1, t, n);
try {
- var c = i(), l = P.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? uc(e, t, Ha(c, r), zd(e)) : uc(e, t, r, zd(e));
+ var c = i(), l = I.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Va(c, r), Rd(e)) : lc(e, t, r, Rd(e));
} catch (n) {
- uc(e, t, {
+ lc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, zd());
+ }, Rd());
} finally {
- he.p = a, o !== null && s.types !== null && (o.types = s.types), P.T = o;
+ pe.p = a, o !== null && s.types !== null && (o.types = s.types), I.T = o;
}
}
- function ec() {}
- function tc(e, t, n, r) {
+ function $s() {}
+ function ec(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = nc(e).queue;
- $s(e, a, t, ge, n === null ? ec : function() {
- return rc(e), n(r);
+ var a = tc(e).queue;
+ Qs(e, a, t, me, n === null ? $s : function() {
+ return nc(e), n(r);
});
}
- function nc(e) {
+ function tc(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: ge,
- baseState: ge,
+ memoizedState: me,
+ baseState: me,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
- lastRenderedState: ge
+ lastRenderedReducer: ds,
+ lastRenderedState: me
},
next: null
};
@@ -13084,41 +13147,41 @@ var Df = /* @__PURE__ */ g(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
+ lastRenderedReducer: ds,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function rc(e) {
- var t = nc(e);
- t.next === null && (t = e.alternate.memoizedState), uc(e, t.next.queue, {}, zd());
+ function nc(e) {
+ var t = tc(e);
+ t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Rd());
+ }
+ function rc() {
+ return Ca(fh);
}
function ic() {
- return wa(Y);
+ return os().memoizedState;
}
function ac() {
- return ss().memoizedState;
- }
- function oc() {
- return ss().memoizedState;
+ return os().memoizedState;
}
- function sc(e) {
+ function oc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = zd();
- e = go(n);
- var r = _o(t, e, n);
- r !== null && (Hd(r, t, n), vo(r, t, n)), t = { cache: ja() }, e.payload = t;
+ var n = Rd();
+ e = ho(n);
+ var r = go(t, e, n);
+ r !== null && (Vd(r, t, n), _o(r, t, n)), t = { cache: Aa() }, e.payload = t;
return;
}
t = t.return;
}
}
- function cc(e, t, n) {
- var r = zd();
+ function sc(e, t, n) {
+ var r = Rd();
n = {
lane: r,
revertLane: 0,
@@ -13127,12 +13190,12 @@ var Df = /* @__PURE__ */ g(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, fc(e) ? pc(t, n) : (n = Ei(e, t, n, r), n !== null && (Hd(n, e, r), mc(n, t, r)));
+ }, dc(e) ? fc(t, n) : (n = wi(e, t, n, r), n !== null && (Vd(n, e, r), pc(n, t, r)));
}
- function lc(e, t, n) {
- uc(e, t, n, zd());
+ function cc(e, t, n) {
+ lc(e, t, n, Rd());
}
- function uc(e, t, n, r) {
+ function lc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -13142,111 +13205,111 @@ var Df = /* @__PURE__ */ g(((e) => {
eagerState: null,
next: null
};
- if (fc(e)) pc(t, i);
+ if (dc(e)) fc(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, Br(s, o)) return Ti(e, t, i, 0), id === null && wi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Rr(s, o)) return Ci(e, t, i, 0), rd === null && Si(), !1;
} catch {}
- if (n = Ei(e, t, i, r), n !== null) return Hd(n, e, r), mc(n, t, r), !0;
+ if (n = wi(e, t, i, r), n !== null) return Vd(n, e, r), pc(n, t, r), !0;
}
return !1;
}
- function dc(e, t, n, r) {
+ function uc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Wf(),
+ revertLane: Uf(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, fc(e)) {
+ }, dc(e)) {
if (t) throw Error(i(479));
- } else t = Ei(e, n, r, 2), t !== null && Hd(t, e, 2);
+ } else t = wi(e, n, r, 2), t !== null && Vd(t, e, 2);
}
- function fc(e) {
+ function dc(e) {
var t = e.alternate;
- return e === V || t !== null && t === V;
+ return e === H || t !== null && t === H;
}
- function pc(e, t) {
- Go = Wo = !0;
+ function fc(e, t) {
+ Wo = Uo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function mc(e, t, n) {
+ function pc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);
- }
- }
- var hc = {
- readContext: wa,
- use: us,
- useCallback: Zo,
- useContext: Zo,
- useEffect: Zo,
- useImperativeHandle: Zo,
- useLayoutEffect: Zo,
- useInsertionEffect: Zo,
- useMemo: Zo,
- useReducer: Zo,
- useRef: Zo,
- useState: Zo,
- useDebugValue: Zo,
- useDeferredValue: Zo,
- useTransition: Zo,
- useSyncExternalStore: Zo,
- useId: Zo,
- useHostTransitionStatus: Zo,
- useFormState: Zo,
- useActionState: Zo,
- useOptimistic: Zo,
- useMemoCache: Zo,
- useCacheRefresh: Zo,
- useEffectEvent: Zo
- }, gc = {
- readContext: wa,
- use: us,
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
+ }
+ }
+ var mc = {
+ readContext: Ca,
+ use: ls,
+ useCallback: Xo,
+ useContext: Xo,
+ useEffect: Xo,
+ useImperativeHandle: Xo,
+ useLayoutEffect: Xo,
+ useInsertionEffect: Xo,
+ useMemo: Xo,
+ useReducer: Xo,
+ useRef: Xo,
+ useState: Xo,
+ useDebugValue: Xo,
+ useDeferredValue: Xo,
+ useTransition: Xo,
+ useSyncExternalStore: Xo,
+ useId: Xo,
+ useHostTransitionStatus: Xo,
+ useFormState: Xo,
+ useActionState: Xo,
+ useOptimistic: Xo,
+ useMemoCache: Xo,
+ useCacheRefresh: Xo,
+ useEffectEvent: Xo
+ }, hc = {
+ readContext: Ca,
+ use: ls,
useCallback: function(e, t) {
- return os().memoizedState = [e, t === void 0 ? null : t], e;
+ return as().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: wa,
- useEffect: Bs,
+ useContext: Ca,
+ useEffect: zs,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Rs(4194308, 4, Ks.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ls(4194308, 4, Gs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Rs(4194308, 4, e, t);
+ return Ls(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Rs(4, 2, e, t);
+ Ls(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = os();
+ var n = as();
t = t === void 0 ? null : t;
var r = e();
- if (Ko) {
- $e(!0);
+ if (Go) {
+ Ze(!0);
try {
e();
} finally {
- $e(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = os();
+ var r = as();
if (n !== void 0) {
var i = n(t);
- if (Ko) {
- $e(!0);
+ if (Go) {
+ Ze(!0);
try {
n(t);
} finally {
- $e(!1);
+ Ze(!1);
}
}
} else i = t;
@@ -13256,54 +13319,54 @@ var Df = /* @__PURE__ */ g(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = cc.bind(null, V, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = sc.bind(null, H, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = os();
+ var t = as();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = Ss(e);
- var t = e.queue, n = lc.bind(null, V, t);
+ e = xs(e);
+ var t = e.queue, n = cc.bind(null, H, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- return Zs(os(), e, t);
+ return Xs(as(), e, t);
},
useTransition: function() {
- var e = Ss(!1);
- return e = $s.bind(null, V, e.queue, !0, !1), os().memoizedState = e, [!1, e];
+ var e = xs(!1);
+ return e = Qs.bind(null, H, e.queue, !0, !1), as().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = V, a = os();
- if (z) {
+ var r = H, a = as();
+ if (ra) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), id === null) throw Error(i(349));
- od & 127 || _s(r, t, n);
+ if (n = t(), rd === null) throw Error(i(349));
+ ad & 127 || gs(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Bs(ys.bind(null, r, o, e), [e]), r.flags |= 2048, Is(9, { destroy: void 0 }, vs.bind(null, r, o, n, t), null), n;
+ return a.queue = o, zs(vs.bind(null, r, o, e), [e]), r.flags |= 2048, Fs(9, { destroy: void 0 }, _s.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = os(), t = id.identifierPrefix;
- if (z) {
- var n = Zi, r = Xi;
- n = (r & ~(1 << 32 - et(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = qo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Xo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = as(), t = rd.identifierPrefix;
+ if (ra) {
+ var n = Yi, r = Ji;
+ n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ko++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Yo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: ic,
- useFormState: js,
- useActionState: js,
+ useHostTransitionStatus: rc,
+ useFormState: As,
+ useActionState: As,
useOptimistic: function(e) {
- var t = os();
+ var t = as();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -13312,132 +13375,132 @@ var Df = /* @__PURE__ */ g(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = dc.bind(null, V, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = uc.bind(null, H, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: ds,
+ useMemoCache: us,
useCacheRefresh: function() {
- return os().memoizedState = sc.bind(null, V);
+ return as().memoizedState = oc.bind(null, H);
},
useEffectEvent: function(e) {
- var t = os(), n = { impl: e };
+ var t = as(), n = { impl: e };
return t.memoizedState = n, function() {
- if (rd & 2) throw Error(i(440));
+ if (nd & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, _c = {
- readContext: wa,
- use: us,
- useCallback: Ys,
- useContext: wa,
- useEffect: Vs,
- useImperativeHandle: qs,
- useInsertionEffect: Ws,
- useLayoutEffect: Gs,
- useMemo: Xs,
- useReducer: ps,
- useRef: Ls,
+ }, gc = {
+ readContext: Ca,
+ use: ls,
+ useCallback: Js,
+ useContext: Ca,
+ useEffect: Bs,
+ useImperativeHandle: Ks,
+ useInsertionEffect: Us,
+ useLayoutEffect: Ws,
+ useMemo: Ys,
+ useReducer: fs,
+ useRef: Is,
useState: function() {
- return ps(fs);
+ return fs(ds);
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- return Qs(ss(), Ho.memoizedState, e, t);
+ return Zs(os(), Vo.memoizedState, e, t);
},
useTransition: function() {
- var e = ps(fs)[0], t = ss().memoizedState;
- return [typeof e == "boolean" ? e : ls(e), t];
+ var e = fs(ds)[0], t = os().memoizedState;
+ return [typeof e == "boolean" ? e : cs(e), t];
},
- useSyncExternalStore: gs,
- useId: ac,
- useHostTransitionStatus: ic,
- useFormState: Ms,
- useActionState: Ms,
+ useSyncExternalStore: hs,
+ useId: ic,
+ useHostTransitionStatus: rc,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e, t) {
- return Cs(ss(), Ho, e, t);
+ return Ss(os(), Vo, e, t);
},
- useMemoCache: ds,
- useCacheRefresh: oc,
- useEffectEvent: Us
- }, vc = {
- readContext: wa,
- use: us,
- useCallback: Ys,
- useContext: wa,
- useEffect: Vs,
- useImperativeHandle: qs,
- useInsertionEffect: Ws,
- useLayoutEffect: Gs,
- useMemo: Xs,
- useReducer: hs,
- useRef: Ls,
+ useMemoCache: us,
+ useCacheRefresh: ac,
+ useEffectEvent: Hs
+ }, _c = {
+ readContext: Ca,
+ use: ls,
+ useCallback: Js,
+ useContext: Ca,
+ useEffect: Bs,
+ useImperativeHandle: Ks,
+ useInsertionEffect: Us,
+ useLayoutEffect: Ws,
+ useMemo: Ys,
+ useReducer: ms,
+ useRef: Is,
useState: function() {
- return hs(fs);
+ return ms(ds);
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- var n = ss();
- return Ho === null ? Zs(n, e, t) : Qs(n, Ho.memoizedState, e, t);
+ var n = os();
+ return Vo === null ? Xs(n, e, t) : Zs(n, Vo.memoizedState, e, t);
},
useTransition: function() {
- var e = hs(fs)[0], t = ss().memoizedState;
- return [typeof e == "boolean" ? e : ls(e), t];
+ var e = ms(ds)[0], t = os().memoizedState;
+ return [typeof e == "boolean" ? e : cs(e), t];
},
- useSyncExternalStore: gs,
- useId: ac,
- useHostTransitionStatus: ic,
- useFormState: Fs,
- useActionState: Fs,
+ useSyncExternalStore: hs,
+ useId: ic,
+ useHostTransitionStatus: rc,
+ useFormState: Ps,
+ useActionState: Ps,
useOptimistic: function(e, t) {
- var n = ss();
- return Ho === null ? (n.baseState = e, [e, n.queue.dispatch]) : Cs(n, Ho, e, t);
+ var n = os();
+ return Vo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Ss(n, Vo, e, t);
},
- useMemoCache: ds,
- useCacheRefresh: oc,
- useEffectEvent: Us
+ useMemoCache: us,
+ useCacheRefresh: ac,
+ useEffectEvent: Hs
};
- function yc(e, t, n, r) {
+ function vc(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 bc = {
+ var yc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = zd(), i = go(r);
- i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));
+ var r = Rd(), i = ho(r);
+ i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Vd(t, e, r), _o(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = zd(), i = go(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));
+ var r = Rd(), i = ho(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Vd(t, e, r), _o(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = zd(), r = go(n);
- r.tag = 2, t != null && (r.callback = t), t = _o(e, r, n), t !== null && (Hd(t, e, n), vo(t, e, n));
+ var n = Rd(), r = ho(n);
+ r.tag = 2, t != null && (r.callback = t), t = go(e, r, n), t !== null && (Vd(t, e, n), _o(t, e, n));
}
};
- function xc(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 ? !Vr(n, r) || !Vr(i, a) : !0;
+ function bc(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 ? !zr(n, r) || !zr(i, a) : !0;
}
- function Sc(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 && bc.enqueueReplaceState(t, t.state, null);
+ function xc(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 && yc.enqueueReplaceState(t, t.state, null);
}
- function Cc(e, t) {
+ function Sc(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 wc(e) {
- bi(e);
+ function Cc(e) {
+ vi(e);
}
- function Tc(e) {
+ function wc(e) {
console.error(e);
}
- function Ec(e) {
- bi(e);
+ function Tc(e) {
+ vi(e);
}
- function Dc(e, t) {
+ function Ec(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -13447,7 +13510,7 @@ var Df = /* @__PURE__ */ g(((e) => {
});
}
}
- function Oc(e, t, n) {
+ function Dc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -13460,57 +13523,57 @@ var Df = /* @__PURE__ */ g(((e) => {
});
}
}
- function kc(e, t, n) {
- return n = go(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Dc(e, t);
+ function Oc(e, t, n) {
+ return n = ho(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Ec(e, t);
}, n;
}
- function Ac(e) {
- return e = go(e), e.tag = 3, e;
+ function kc(e) {
+ return e = ho(e), e.tag = 3, e;
}
- function jc(e, t, n, r) {
+ function Ac(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() {
- Oc(t, n, r);
+ Dc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Oc(t, n, r), typeof i != "function" && (Ed === null ? Ed = /* @__PURE__ */ new Set([this]) : Ed.add(this));
+ Dc(t, n, r), typeof i != "function" && (Td === null ? Td = /* @__PURE__ */ new Set([this]) : Td.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Mc(e, t, n, r, a) {
+ function jc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && xa(t, n, a, !0), n = Ao.current, n !== null) {
+ if (t = n.alternate, t !== null && ba(t, n, a, !0), n = ko.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return jo === null ? ef() : n.alternate === null && pd === 0 && (pd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Za ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Cf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Za ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Ao === null ? $d() : n.alternate === null && fd === 0 && (fd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Sf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Xa ? 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)), Cf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), Sf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return Cf(e, r, a), ef(), !1;
+ return Sf(e, r, a), $d(), !1;
}
- if (z) return t = Ao.current, t === null ? (r !== sa && (t = Error(i(423), { cause: r }), pa(Hi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Hi(r, n), a = kc(e.stateNode, r, a), yo(e, a), pd !== 4 && (pd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== sa && (e = Error(i(422), { cause: r }), pa(Hi(e, n)))), !1;
+ if (ra) return t = ko.current, t === null ? (r !== oa && (t = Error(i(423), { cause: r }), pa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Oc(e.stateNode, r, a), vo(e, a), fd !== 4 && (fd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== oa && (e = Error(i(422), { cause: r }), pa(Bi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Hi(o, n), yd === null ? yd = [o] : yd.push(o), pd !== 4 && (pd = 2), t === null) return !0;
- r = Hi(r, n), n = t;
+ if (o = Bi(o, n), vd === null ? vd = [o] : vd.push(o), fd !== 4 && (fd = 2), t === null) return !0;
+ r = Bi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = kc(n.stateNode, r, e), yo(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Oc(n.stateNode, r, e), vo(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" && (Ed === null || !Ed.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ac(a), jc(a, e, n, r), yo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Td === null || !Td.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), vo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -13518,41 +13581,41 @@ var Df = /* @__PURE__ */ g(((e) => {
} while (n !== null);
return !1;
}
- var Nc = Error(i(461)), Pc = !1;
- function Fc(e, t, n, r) {
- t.child = e === null ? fo(t, null, n, r) : uo(t, e.child, n, r);
+ var Mc = Error(i(461)), Nc = !1;
+ function Pc(e, t, n, r) {
+ t.child = e === null ? uo(t, null, n, r) : lo(t, e.child, n, r);
}
- function Ic(e, t, n, r, i) {
+ function Fc(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 Ca(t), r = $o(e, t, n, o, a, i), s = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (z && s && ea(t), t.flags |= 1, Fc(e, t, r, i), t.child);
+ return Sa(t), r = Qo(e, t, n, o, a, i), s = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ra && s && Qi(t), t.flags |= 1, Pc(e, t, r, i), t.child);
}
- function Lc(e, t, n, r, i) {
+ function Ic(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !Ni(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Rc(e, t, a, r, i)) : (e = Ii(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Lc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !dl(e, i)) {
+ if (a = e.child, !ul(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Vr : n, n(o, r) && e.ref === t.ref) return ul(e, t, i);
+ if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ll(e, t, i);
}
- return t.flags |= 1, e = Pi(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = Mi(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Rc(e, t, n, r, i) {
+ function Lc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Vr(a, r) && e.ref === t.ref) {
- if (Pc = !1, t.pendingProps = r = a, dl(e, i)) e.flags & 131072 && (Pc = !0);
- else return t.lanes = e.lanes, ul(e, t, i);
+ if (zr(a, r) && e.ref === t.ref) {
+ if (Nc = !1, t.pendingProps = r = a, ul(e, i)) e.flags & 131072 && (Nc = !0);
+ else return t.lanes = e.lanes, ll(e, t, i);
}
}
- return Kc(e, t, n, r, i);
+ return Gc(e, t, n, r, i);
}
- function zc(e, t, n, r) {
+ function Rc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -13565,17 +13628,17 @@ var Df = /* @__PURE__ */ g(((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 Vc(e, t, a, n, r);
+ return Bc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ka(t, a === null ? null : a.cachePool), a === null ? Oo() : Do(t, a), Po(t);
- else return r = t.lanes = 536870912, Vc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ka(t, null), Oo(), Fo()) : (Ka(t, a.cachePool), Do(t, a), Fo(), t.memoizedState = null);
- return Fc(e, t, i, n), t.child;
+ }, e !== null && Ga(t, a === null ? null : a.cachePool), a === null ? Do() : Eo(t, a), No(t);
+ else return r = t.lanes = 536870912, Bc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ga(t, null), Do(), Po()) : (Ga(t, a.cachePool), Eo(t, a), Po(), t.memoizedState = null);
+ return Pc(e, t, i, n), t.child;
}
- function Bc(e, t) {
+ function zc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -13583,68 +13646,68 @@ var Df = /* @__PURE__ */ g(((e) => {
_transitions: null
}), t.sibling;
}
- function Vc(e, t, n, r, i) {
- var a = Ga();
+ function Bc(e, t, n, r, i) {
+ var a = Wa();
return a = a === null ? null : {
- parent: Aa._currentValue,
+ parent: ka._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ka(t, null), Oo(), Po(t), e !== null && xa(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ga(t, null), Do(), No(t), e !== null && ba(e, t, r, !0), t.childLanes = i, null;
}
- function Hc(e, t) {
- return t = tl({
+ function Vc(e, t) {
+ return t = el({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Uc(e, t, n) {
- return uo(t, e.child, null, n), e = Hc(t, t.pendingProps), e.flags |= 2, Io(t), t.memoizedState = null, e;
+ function Hc(e, t, n) {
+ return lo(t, e.child, null, n), e = Vc(t, t.pendingProps), e.flags |= 2, Fo(t), t.memoizedState = null, e;
}
- function Wc(e, t, n) {
+ function Uc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (z) {
- if (r.mode === "hidden") return e = Hc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (ra) {
+ if (r.mode === "hidden") return e = Vc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Bc(null, e);
- if (No(t), (e = ia) ? (e = hm(e, oa), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, zc(null, e);
+ if (Mo(t), (e = na) ? (e = hm(e, aa), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Yi === null ? null : {
- id: Xi,
- overflow: Zi
+ treeContext: qi === null ? null : {
+ id: Ji,
+ overflow: Yi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = zi(e), n.return = t, t.child = n, ra = t, ia = null)) : e = null, e === null) throw B(t);
+ }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);
return t.lanes = 536870912, null;
}
- return Hc(t, r);
+ return Vc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (No(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Uc(e, t, n);
+ if (Mo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Hc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (Pc || xa(e, t, n, !1), a = (n & e.childLanes) !== 0, Pc || a) {
- if (To.current === null) {
- if (r = id, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Di(e, s), Hd(r, e, s), Nc;
- ef();
+ } else if (Nc || ba(e, t, n, !1), a = (n & e.childLanes) !== 0, Nc || a) {
+ if (wo.current === null) {
+ if (r = rd, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Vd(r, e, s), Mc;
+ $d();
}
- t = Uc(e, t, n);
- } else e = o.treeContext, ia = ym(s.nextSibling), ra = t, z = !0, aa = null, oa = !1, e !== null && na(t, e), t = Hc(t, r), t.flags |= 134221824;
+ t = Hc(e, t, n);
+ } else e = o.treeContext, na = ym(s.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = Vc(t, r), t.flags |= 134221824;
return t;
}
- return e = Pi(e.child, {
+ return e = Mi(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Gc(e, t) {
+ function Wc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -13652,135 +13715,135 @@ var Df = /* @__PURE__ */ g(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Kc(e, t, n, r, i) {
- return Ca(t), n = $o(e, t, n, r, void 0, i), r = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (z && r && ea(t), t.flags |= 1, Fc(e, t, n, i), t.child);
+ function Gc(e, t, n, r, i) {
+ return Sa(t), n = Qo(e, t, n, r, void 0, i), r = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ra && r && Qi(t), t.flags |= 1, Pc(e, t, n, i), t.child);
}
- function qc(e, t, n, r, i, a) {
- return Ca(t), t.updateQueue = null, n = ts(t, r, n, i), es(e), r = rs(), e !== null && !Pc ? (is(e, t, a), ul(e, t, a)) : (z && r && ea(t), t.flags |= 1, Fc(e, t, n, a), t.child);
+ function Kc(e, t, n, r, i, a) {
+ return Sa(t), t.updateQueue = null, n = es(t, r, n, i), $o(e), r = ns(), e !== null && !Nc ? (rs(e, t, a), ll(e, t, a)) : (ra && r && Qi(t), t.flags |= 1, Pc(e, t, n, a), t.child);
}
- function Jc(e, t, n, r, i) {
- if (Ca(t), t.stateNode === null) {
- var a = Ai, o = n.contextType;
- typeof o == "object" && o && (a = wa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = bc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, mo(t), o = n.contextType, a.context = typeof o == "object" && o ? wa(o) : Ai, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (yc(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 && bc.enqueueReplaceState(a, a.state, null), So(t, r, a, i), xo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function qc(e, t, n, r, i) {
+ if (Sa(t), t.stateNode === null) {
+ var a = Oi, o = n.contextType;
+ typeof o == "object" && o && (a = Ca(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = yc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, po(t), o = n.contextType, a.context = typeof o == "object" && o ? Ca(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (vc(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 && yc.enqueueReplaceState(a, a.state, null), xo(t, r, a, i), bo(), 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 = Cc(n, s);
+ var s = t.memoizedProps, c = Sc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ai, typeof u == "object" && u && (o = wa(u));
+ o = Oi, typeof u == "object" && u && (o = Ca(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) && Sc(t, a, r, o), po = !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) && xc(t, a, r, o), fo = !1;
var f = t.memoizedState;
- a.state = f, So(t, r, a, i), xo(), l = t.memoizedState, s || f !== l || po ? (typeof d == "function" && (yc(t, n, d, r), l = t.memoizedState), (c = po || xc(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, xo(t, r, a, i), bo(), l = t.memoizedState, s || f !== l || fo ? (typeof d == "function" && (vc(t, n, d, r), l = t.memoizedState), (c = fo || bc(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, ho(e, t), o = t.memoizedProps, u = Cc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ai, typeof l == "object" && l && (c = wa(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) && Sc(t, a, r, c), po = !1, f = t.memoizedState, a.state = f, So(t, r, a, i), xo();
+ a = t.stateNode, mo(e, t), o = t.memoizedProps, u = Sc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = Ca(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) && xc(t, a, r, c), fo = !1, f = t.memoizedState, a.state = f, xo(t, r, a, i), bo();
var p = t.memoizedState;
- o !== d || f !== p || po || e !== null && e.dependencies !== null && Sa(e.dependencies) ? (typeof s == "function" && (yc(t, n, s, r), p = t.memoizedState), (u = po || xc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Sa(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 || fo || e !== null && e.dependencies !== null && xa(e.dependencies) ? (typeof s == "function" && (vc(t, n, s, r), p = t.memoizedState), (u = fo || bc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && xa(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, Gc(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 = uo(t, e.child, null, i), t.child = uo(t, null, n, i)) : Fc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ul(e, t, i), e;
+ return a = r, Wc(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 = lo(t, e.child, null, i), t.child = lo(t, null, n, i)) : Pc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ll(e, t, i), e;
}
- function Yc(e, t, n, r) {
- return da(), t.flags |= 256, Fc(e, t, n, r), t.child;
+ function Jc(e, t, n, r) {
+ return da(), t.flags |= 256, Pc(e, t, n, r), t.child;
}
- var Xc = {
+ var Yc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Zc(e) {
+ function Xc(e) {
return {
baseLanes: e,
- cachePool: qa()
+ cachePool: Ka()
};
}
- function Qc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= _d), e;
+ function Zc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= gd), e;
}
- function $c(e, t, n) {
+ function Qc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Lo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (z) {
- if (i ? Mo(t) : Fo(), (e = ia) ? (e = hm(e, oa), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Io.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (ra) {
+ if (i ? jo(t) : Po(), (e = na) ? (e = hm(e, aa), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Yi === null ? null : {
- id: Xi,
- overflow: Zi
+ treeContext: qi === null ? null : {
+ id: Ji,
+ overflow: Yi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = zi(e), n.return = t, t.child = n, ra = t, ia = null)) : e = null, e === null) throw B(t);
+ }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);
return t.lanes = _m(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Fo(), i = t.mode, a = tl({
+ return a = r.children, r = r.fallback, i ? (Po(), i = t.mode, a = el({
mode: "hidden",
children: a
- }, i), r = Li(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Zc(n), r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(null, r)) : (Mo(t), el(t, a));
+ }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Xc(n), r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(null, r)) : (jo(t), $c(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return rl(e, t, a, o, r, c, s, n);
+ if (c !== null) return nl(e, t, a, o, r, c, s, n);
}
- return i ? (Fo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Pi(s, {
+ return i ? (Po(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Li(i, a, n, null), i.flags |= 2) : i = Pi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Bc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Zc(n) : (a = i.cachePool, a === null ? a = qa() : (s = Aa._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, zc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Xc(n) : (a = i.cachePool, a === null ? a = Ka() : (s = ka._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 = Xc, Bc(e.child, r)) : (Mo(t), n = e.child, e = n.sibling, n = Pi(n, {
+ }), r.memoizedState = i, r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(e.child, r)) : (jo(t), n = e.child, e = n.sibling, n = Mi(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 el(e, t) {
- return t = tl({
+ function $c(e, t) {
+ return t = el({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function tl(e, t) {
- return e = Mi(22, e, null, t), e.lanes = 0, e;
+ function el(e, t) {
+ return e = Ai(22, e, null, t), e.lanes = 0, e;
}
- function nl(e, t, n) {
- return uo(t, e.child, null, n), e = el(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function tl(e, t, n) {
+ return lo(t, e.child, null, n), e = $c(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function rl(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Mo(t), t.flags &= -257, nl(e, t, c)) : t.memoizedState === null ? (Fo(), o = a.fallback, s = t.mode, a = tl({
+ function nl(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (jo(t), t.flags &= -257, tl(e, t, c)) : t.memoizedState === null ? (Po(), o = a.fallback, s = t.mode, a = el({
mode: "visible",
children: a.children
- }, s), o = Li(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, uo(t, e.child, null, c), a = t.child, a.memoizedState = Zc(c), a.childLanes = Qc(e, r, c), t.memoizedState = Xc, Bc(null, a)) : (Fo(), t.child = e.child, t.flags |= 128, null);
- if (Mo(t), _m(o)) {
+ }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, lo(t, e.child, null, c), a = t.child, a.memoizedState = Xc(c), a.childLanes = Zc(e, r, c), t.memoizedState = Yc, zc(null, a)) : (Po(), t.child = e.child, t.flags |= 128, null);
+ if (jo(t), _m(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, pa({
value: a,
source: null,
stack: null
- })), nl(e, t, c);
+ })), tl(e, t, c);
}
- if (Pc || xa(e, t, c, !1), r = (c & e.childLanes) !== 0, Pc || r) {
- if (To.current !== null) return nl(e, t, c);
- if (r = id, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Di(e, a), Hd(r, e, a), Nc;
- return gm(o) || ef(), nl(e, t, c);
+ if (Nc || ba(e, t, c, !1), r = (c & e.childLanes) !== 0, Nc || r) {
+ if (wo.current !== null) return tl(e, t, c);
+ if (r = rd, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Vd(r, e, a), Mc;
+ return gm(o) || $d(), tl(e, t, c);
}
- return gm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ia = ym(o.nextSibling), ra = t, z = !0, aa = null, oa = !1, e !== null && na(t, e), t = el(t, a.children), t.flags |= 134221824, t);
+ return gm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, na = ym(o.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = $c(t, a.children), t.flags |= 134221824, t);
}
- function il(e, t, n) {
+ function rl(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), ya(e.return, t, n);
+ r !== null && (r.lanes |= t), va(e.return, t, n);
}
- function al(e) {
+ function il(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Bo(n) === null && (t = e), e = e.sibling;
+ n !== null && zo(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function ol(e, t, n, r, i, a) {
+ function al(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -13792,22 +13855,22 @@ var Df = /* @__PURE__ */ g(((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 sl(e) {
+ function ol(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 cl(e, t, n) {
+ function sl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Lo.current;
- if (t.flags & 128) return Ro(t, o), null;
+ var o = Io.current;
+ if (t.flags & 128) return Lo(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Ro(t, o), i === "backwards" && e !== null ? (sl(e), Fc(e, t, r, n), sl(e)) : Fc(e, t, r, n), r = z ? Ki : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && il(e, n, t);
- else if (e.tag === 19) il(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Lo(t, o), i === "backwards" && e !== null ? (ol(e), Pc(e, t, r, n), ol(e)) : Pc(e, t, r, n), r = ra ? Wi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && rl(e, n, t);
+ else if (e.tag === 19) rl(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -13821,142 +13884,142 @@ var Df = /* @__PURE__ */ g(((e) => {
}
switch (i) {
case "backwards":
- n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, sl(t)), ol(t, !0, i, null, a, r);
+ n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, ol(t)), al(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 && Bo(e) === null) {
+ if (e = i.alternate, e !== null && zo(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- ol(t, !0, n, null, a, r);
+ al(t, !0, n, null, a, r);
break;
case "together":
- ol(t, !1, null, null, void 0, r);
+ al(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), ol(t, !1, i, n, a, r);
+ default: n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), al(t, !1, i, n, a, r);
}
return t.child;
}
- function ll(e, t, n) {
+ function cl(e, t, n) {
var r = t.pendingProps;
- return _a(t, t.type, r.value), Fc(e, t, r.children, n), t.child;
+ return V(t, t.type, r.value), Pc(e, t, r.children, n), t.child;
}
- function ul(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), md |= t.lanes, (n & t.childLanes) === 0) {
+ function ll(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), pd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (xa(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ba(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 = Pi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Pi(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = Mi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Mi(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function dl(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && Sa(e)));
+ function ul(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && xa(e)));
}
- function fl(e, t, n) {
+ function dl(e, t, n) {
switch (t.tag) {
case 3:
- Ee(t, t.stateNode.containerInfo), _a(t, Aa, e.memoizedState.cache), da();
+ we(t, t.stateNode.containerInfo), V(t, ka, e.memoizedState.cache), da();
break;
case 27:
case 5:
- Oe(t);
+ Ee(t);
break;
case 4:
- Ee(t, t.stateNode.containerInfo);
+ we(t, t.stateNode.containerInfo);
break;
case 10:
- _a(t, t.type, t.memoizedProps.value);
+ V(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, No(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Mo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Mo(t), t.flags |= 128, null;
- r = xa(e, t, n, !1);
+ if (r.dehydrated !== null) return jo(t), t.flags |= 128, null;
+ r = ba(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? $c(e, t, n) : (Mo(t), e = ul(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Qc(e, t, n) : (jo(t), e = ll(e, t, n), e === null ? null : e.sibling);
}
- Mo(t);
+ jo(t);
break;
case 19:
- if (t.flags & 128) return cl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (xa(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return cl(e, t, n);
+ if (t.flags & 128) return sl(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ba(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return sl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Ro(t, Lo.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Lo(t, Io.current), r) break;
return null;
- case 22: return t.lanes = 0, zc(e, t, n, t.pendingProps);
- case 24: _a(t, Aa, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Rc(e, t, n, t.pendingProps);
+ case 24: V(t, ka, e.memoizedState.cache);
}
- return ul(e, t, n);
+ return ll(e, t, n);
}
- function pl(e, t, n) {
+ function fl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) Pc = !0;
+ if (e.memoizedProps !== t.pendingProps) Nc = !0;
else {
- if (!dl(e, n) && !(t.flags & 128)) return Pc = !1, fl(e, t, n);
- Pc = !!(e.flags & 131072);
+ if (!ul(e, n) && !(t.flags & 128)) return Nc = !1, dl(e, t, n);
+ Nc = !!(e.flags & 131072);
}
- } else Pc = !1, z && t.flags & 1048576 && $i(t, Ki, t.index);
+ } else Nc = !1, ra && t.flags & 1048576 && Zi(t, Wi, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = eo(t.elementType), t.type = e, typeof e == "function") Ni(e) ? (r = Cc(e, r), t.tag = 1, t = Jc(null, t, e, r, n)) : (t.tag = 0, t = Kc(null, t, e, r, n));
+ if (e = $a(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = Sc(e, r), t.tag = 1, t = qc(null, t, e, r, n)) : (t.tag = 0, t = Gc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === te) {
- t.tag = 11, t = Ic(null, t, e, r, n);
+ t.tag = 11, t = Fc(null, t, e, r, n);
break a;
}
- if (a === re) {
- t.tag = 14, t = Lc(null, t, e, r, n);
+ if (a === ne) {
+ t.tag = 14, t = Ic(null, t, e, r, n);
break a;
}
if (a === ee) {
- t.tag = 10, t.type = e, t = ll(null, t, n);
+ t.tag = 10, t.type = e, t = cl(null, t, n);
break a;
}
}
- throw t = pe(e) || e, Error(i(306, t, ""));
+ throw t = de(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Kc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = Cc(r, t.pendingProps), Jc(e, t, r, a, n);
+ case 0: return Gc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = Sc(r, t.pendingProps), qc(e, t, r, a, n);
case 3:
a: {
- if (Ee(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (we(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, ho(e, t), So(t, r, null, n);
+ a = o.element, mo(e, t), xo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, _a(t, Aa, r), r !== o.cache && ba(t, [Aa], n, !0), xo(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, V(t, ka, r), r !== o.cache && ya(t, [ka], n, !0), bo(), 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 = Yc(e, t, r, n);
+ t = Jc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Hi(Error(i(424)), t), pa(a), t = Yc(e, t, r, n);
+ a = Bi(Error(i(424)), t), pa(a), t = Jc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -13965,76 +14028,76 @@ var Df = /* @__PURE__ */ g(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ia = ym(e.firstChild), ra = t, z = !0, aa = null, oa = !0, n = fo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (na = ym(e.firstChild), ta = t, ra = !0, ia = null, aa = !0, n = uo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (da(), r === a) {
- t = ul(e, t, n);
+ t = ll(e, t, n);
break a;
}
- Fc(e, t, r, n);
+ Pc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Gc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : z || (t.stateNode = wp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Oe(t), e === null && z && (r = t.stateNode = wm(t.type, t.pendingProps, we.current), ra = t, oa = !0, a = ia, Pp(t.type) ? (bm = a, ia = ym(r.firstChild)) : ia = a), Fc(e, t, t.pendingProps.children, n), Gc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && z && ((a = r = ia) && (r = U(r, t.type, t.pendingProps, oa), r === null ? a = !1 : (t.stateNode = r, ra = t, ia = ym(r.firstChild), oa = !1, a = !0)), a || B(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Tp(a, o) ? r = null : s !== null && Tp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = $o(e, t, ns, null, null, n), Y._currentValue = a), Gc(e, t), Fc(e, t, r, n), t.child;
- case 6: return e === null && z && ((e = n = ia) && (n = mm(n, t.pendingProps, oa), n === null ? e = !1 : (t.stateNode = n, ra = t, ia = null, e = !0)), e || B(t)), null;
- case 13: return $c(e, t, n);
- case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = uo(t, null, r, n) : Fc(e, t, r, n), t.child;
- case 11: return Ic(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Gc(e, t), Fc(e, t, r, n), t.child;
- case 8: return Fc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Fc(e, t, t.pendingProps.children, n), t.child;
- case 10: return ll(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, Ca(t), a = wa(a), r = r(a), t.flags |= 1, Fc(e, t, r, n), t.child;
- case 14: return Lc(e, t, t.type, t.pendingProps, n);
- case 15: return Rc(e, t, t.type, t.pendingProps, n);
- case 19: return cl(e, t, n);
- case 31: return Wc(e, t, n);
- case 22: return zc(e, t, n, t.pendingProps);
- case 24: return Ca(t), r = wa(Aa), e === null ? (a = Ga(), a === null && (a = id, o = ja(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Wc(e, t), e === null ? (n = Vm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ra || (t.stateNode = Sp(t.type, t.pendingProps, Se.current, t)) : t.memoizedState = Vm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Ee(t), e === null && ra && (r = t.stateNode = wm(t.type, t.pendingProps, Se.current), ta = t, aa = !0, a = na, Mp(t.type) ? (bm = a, na = ym(r.firstChild)) : na = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && ra && ((a = r = na) && (r = pm(r, t.type, t.pendingProps, aa), r === null ? a = !1 : (t.stateNode = r, ta = t, na = ym(r.firstChild), aa = !1, a = !0)), a || sa(t)), Ee(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Cp(a, o) ? r = null : s !== null && Cp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Qo(e, t, ts, null, null, n), fh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;
+ case 6: return e === null && ra && ((e = n = na) && (n = mm(n, t.pendingProps, aa), n === null ? e = !1 : (t.stateNode = n, ta = t, na = null, e = !0)), e || sa(t)), null;
+ case 13: return Qc(e, t, n);
+ case 4: return we(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = lo(t, null, r, n) : Pc(e, t, r, n), t.child;
+ case 11: return Fc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Wc(e, t), Pc(e, t, r, n), t.child;
+ case 8: return Pc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return Pc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return cl(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, Sa(t), a = Ca(a), r = r(a), t.flags |= 1, Pc(e, t, r, n), t.child;
+ case 14: return Ic(e, t, t.type, t.pendingProps, n);
+ case 15: return Lc(e, t, t.type, t.pendingProps, n);
+ case 19: return sl(e, t, n);
+ case 31: return Uc(e, t, n);
+ case 22: return Rc(e, t, n, t.pendingProps);
+ case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a = rd, o = Aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, mo(t), _a(t, Aa, a)) : ((e.lanes & n) !== 0 && (ho(e, t), So(t, null, null, n), xo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, _a(t, Aa, r), r !== a.cache && ba(t, [Aa], n, !0)) : (a = {
+ }, po(t), V(t, ka, a)) : ((e.lanes & n) !== 0 && (mo(e, t), xo(t, null, null, n), bo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, V(t, ka, r), r !== a.cache && ya(t, [ka], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), _a(t, Aa, r))), Fc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), V(t, ka, r))), Pc(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 : z && ea(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Gc(e, t), Fc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ra && Qi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Wc(e, t), Pc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ml(e) {
+ function pl(e) {
e.flags |= 4;
}
- function hl(e, t, n, r, i) {
+ function ml(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? eh(t, r) : eh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? nh(t, r) : nh(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 (Zd()) e.flags |= 8192;
- else throw to = Za, Ya;
+ else if (Xd()) e.flags |= 8192;
+ else throw eo = Xa, Ja;
}
} else e.flags &= -16777217;
}
- function gl(e, t) {
+ function hl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !J(t)) {
- if (Zd()) e.flags |= 8192;
- else throw to = Za, Ya;
+ else if (e.flags |= 16777216, !rh(t)) {
+ if (Xd()) e.flags |= 8192;
+ else throw eo = Xa, Ja;
}
}
- function _l(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, vd |= t);
+ function gl(e, t) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, _d |= t);
}
- function vl(e, t) {
- if (!z) switch (e.tailMode) {
+ function _l(e, t) {
+ if (!ra) 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;
@@ -14045,15 +14108,15 @@ var Df = /* @__PURE__ */ g(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function yl(e) {
+ function vl(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 bl(e, t, n) {
+ function yl(e, t, n) {
var r = t.pendingProps;
- switch (ta(t), t.tag) {
+ switch ($i(t), t.tag) {
case 16:
case 15:
case 0:
@@ -14062,32 +14125,32 @@ var Df = /* @__PURE__ */ g(((e) => {
case 8:
case 12:
case 9:
- case 14: return yl(t), null;
- case 1: return yl(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), va(Aa), De(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ua(t) ? ml(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, fa())), yl(t), null;
+ case 14: return vl(t), null;
+ case 1: return vl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), _a(ka), Te(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ua(t) ? pl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, fa())), vl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ml(t), o === null ? (yl(t), hl(t, a, null, r, n)) : (yl(t), gl(t, o))) : o ? o === e.memoizedState ? (yl(t), t.flags &= -16777217) : (ml(t), yl(t), gl(t, o)) : (e = e.memoizedProps, e !== r && ml(t), yl(t), hl(t, a, e, r, n)), null;
+ return e === null ? (pl(t), o === null ? (vl(t), ml(t, a, null, r, n)) : (vl(t), hl(t, o))) : o ? o === e.memoizedState ? (vl(t), t.flags &= -16777217) : (pl(t), vl(t), hl(t, o)) : (e = e.memoizedProps, e !== r && pl(t), vl(t), ml(t, a, e, r, n)), null;
case 27:
- if (ke(t), n = we.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (De(t), n = Se.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
}
- e = Se.current, ua(t) ? ca(t, e) : (e = wm(a, r, n), t.stateNode = e, ml(t));
+ e = be.current, ua(t) ? ca(t, e) : (e = wm(a, r, n), t.stateNode = e, pl(t));
}
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (ke(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (De(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = Se.current, ua(t)) ca(t, o);
+ if (o = be.current, ua(t)) ca(t, o);
else {
- var s = xp(we.current);
+ var s = yp(Se.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -14111,7 +14174,7 @@ var Df = /* @__PURE__ */ g(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[wt] = t, o[Tt] = r;
+ o[St] = t, o[Ct] = 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) {
@@ -14126,7 +14189,7 @@ var Df = /* @__PURE__ */ g(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (mp(o, a, r), a) {
+ a: switch (fp(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -14138,71 +14201,71 @@ var Df = /* @__PURE__ */ g(((e) => {
break a;
default: r = !1;
}
- r && ml(t);
+ r && pl(t);
}
}
- return yl(t), t.subtreeFlags &= -33554433, hl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return vl(t), t.subtreeFlags &= -33554433, ml(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = we.current, ua(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = ra, a !== null) switch (a.tag) {
+ if (e = Se.current, ua(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = ta, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || dp(e.nodeValue, n)), e || B(t, !0);
- } else e = xp(e).createTextNode(r), e[wt] = t, t.stateNode = e;
+ e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || lp(e.nodeValue, n)), e || sa(t, !0);
+ } else e = yp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
- return yl(t), null;
+ return vl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
if (r = ua(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[wt] = t;
+ e[St] = t;
} else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- yl(t), e = !1;
+ vl(t), e = !1;
} else n = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Io(t), t) : (Io(t), null);
+ if (!e) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return yl(t), null;
+ return vl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
if (a = ua(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[wt] = t;
+ a[St] = t;
} else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- yl(t), a = !1;
+ vl(t), a = !1;
} else a = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Io(t), t) : (Io(t), null);
+ if (!a) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
}
- return Io(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), _l(t, t.updateQueue), yl(t), null);
- case 4: return De(), e === null && tp(t.stateNode.containerInfo), t.flags |= 67108864, yl(t), null;
- case 10: return va(t.type), yl(t), null;
+ return Fo(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), gl(t, t.updateQueue), vl(t), null);
+ case 4: return Te(), e === null && $f(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;
+ case 10: return _a(t.type), vl(t), null;
case 19:
- if (zo(t), r = t.memoizedState, r === null) return yl(t), null;
+ if (Ro(t), r = t.memoizedState, r === null) return vl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) vl(r, !1);
+ if (a) _l(r, !1);
else {
- if (pd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Bo(e), o !== null) {
- for (t.flags |= 128, vl(r, !1), e = o.updateQueue, t.updateQueue = e, _l(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Fi(n, e), n = n.sibling;
- return Ro(t, Lo.current & 1 | 2), z && Qi(t, r.treeForkCount), t.child;
+ if (fd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = zo(e), o !== null) {
+ for (t.flags |= 128, _l(r, !1), e = o.updateQueue, t.updateQueue = e, gl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;
+ return Lo(t, Io.current & 1 | 2), ra && Xi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && He() > wd && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Be() > Cd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Bo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, _l(t, e), vl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !z) return yl(t), null;
- } else 2 * He() - r.renderingStartTime > wd && n !== 536870912 && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);
+ if (e = zo(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, gl(t, e), _l(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ra) return vl(t), null;
+ } else 2 * Be() - r.renderingStartTime > Cd && n !== 536870912 && (t.flags |= 128, a = !0, _l(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);
}
@@ -14218,79 +14281,79 @@ var Df = /* @__PURE__ */ g(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = He(), e.sibling = null, o = Lo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || z ? Ro(t, o) : (n = o, xe(Ao, t), xe(Lo, n), jo === null && (jo = t)), z && Qi(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Io.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ra ? Lo(t, o) : (n = o, ye(ko, t), ye(Io, n), Ao === null && (Ao = t)), ra && Xi(t, r.treeForkCount), e;
}
- return yl(t), null;
+ return vl(t), null;
case 22:
- case 23: return Io(t), ko(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (yl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : yl(t), n = t.updateQueue, n !== null && _l(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 && be(Wa), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), va(Aa), yl(t), null;
+ case 23: return Fo(t), Oo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (vl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : vl(t), n = t.updateQueue, n !== null && gl(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(Ua), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), _a(ka), vl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, yl(t), null;
+ case 30: return t.flags |= 33554432, vl(t), null;
}
throw Error(i(156, t.tag));
}
- function xl(e, t) {
- switch (ta(t), t.tag) {
+ function bl(e, t) {
+ switch ($i(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return va(Aa), De(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return _a(ka), Te(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return ke(t), null;
+ case 5: return De(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Io(t), t.alternate === null) throw Error(i(340));
+ if (Fo(t), t.alternate === null) throw Error(i(340));
da();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Io(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Fo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
da();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return zo(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 De(), null;
- case 10: return va(t.type), null;
+ case 19: return Ro(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 _a(t.type), null;
case 22:
- case 23: return Io(t), ko(), e !== null && be(Wa), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return va(Aa), null;
+ case 23: return Fo(t), Oo(), e !== null && ve(Ua), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return _a(ka), null;
case 25: return null;
default: return null;
}
}
- function Sl(e, t) {
- switch (ta(t), t.tag) {
+ function xl(e, t) {
+ switch ($i(t), t.tag) {
case 3:
- va(Aa), De();
+ _a(ka), Te();
break;
case 26:
case 27:
case 5:
- ke(t);
+ De(t);
break;
case 4:
- De();
+ Te();
break;
case 31:
- t.memoizedState !== null && Io(t);
+ t.memoizedState !== null && Fo(t);
break;
case 13:
- Io(t);
+ Fo(t);
break;
case 19:
- zo(t);
+ Ro(t);
break;
case 10:
- va(t.type);
+ _a(t.type);
break;
case 22:
case 23:
- Io(t), ko(), e !== null && be(Wa);
+ Fo(t), Oo(), e !== null && ve(Ua);
break;
- case 24: va(Aa);
+ case 24: _a(ka);
}
}
- function Cl(e, t) {
+ function Sl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -14306,10 +14369,10 @@ var Df = /* @__PURE__ */ g(((e) => {
} while (n !== i);
}
} catch (e) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
}
- function wl(e, t, n) {
+ function Cl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -14324,7 +14387,7 @@ var Df = /* @__PURE__ */ g(((e) => {
try {
l();
} catch (e) {
- Sf(i, c, e);
+ xf(i, c, e);
}
}
}
@@ -14332,29 +14395,29 @@ var Df = /* @__PURE__ */ g(((e) => {
} while (r !== a);
}
} catch (e) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
}
- function Tl(e) {
+ function wl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- wo(t, n);
+ Co(t, n);
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
}
- function El(e, t, n) {
- n.props = Cc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function Tl(e, t, n) {
+ n.props = Sc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- Sf(e, t, n);
+ xf(e, t, n);
}
}
- function Dl(e, t) {
+ function El(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -14365,13 +14428,13 @@ var Df = /* @__PURE__ */ g(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = _i(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Kp(a)), r = i.ref;
+ var i = e.stateNode, a = hi(e.memoizedProps, i);
+ (i.ref === null || i.ref.name !== a) && (i.ref = Wp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new qp(e);
- f(e.child, !1, lm, o, void 0, void 0), e.stateNode = o;
+ var o = new Gp(e);
+ f(e.child, !1, cm, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -14380,43 +14443,43 @@ var Df = /* @__PURE__ */ g(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- Sf(e, t, n);
+ xf(e, t, n);
}
}
- function Ol(e, t) {
+ function Dl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- Sf(e, t, n);
+ xf(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) {
- Sf(e, t, n);
+ xf(e, t, n);
}
else n.current = null;
}
}
- function kl(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++) dm(e.stateNode, t[n]);
+ function Ol(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++) um(e.stateNode, t[n]);
+ }
+ function kl(e) {
+ for (var t = e.return; t !== null && (Ml(t) && um(e.stateNode, t.stateNode), !jl(t));) t = t.return;
}
function Al(e) {
- for (var t = e.return; t !== null && (Nl(t) && dm(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
+ for (var t = e.return; t !== null && (Ml(t) && dm(e.stateNode, t.stateNode), !jl(t));) t = t.return;
}
function jl(e) {
- for (var t = e.return; t !== null && (Nl(t) && fm(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
- }
- function Ml(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
- function Nl(e) {
+ function Ml(e) {
return e && e.tag === 7 && e.stateNode !== null;
}
- function Pl(e) {
+ function Nl(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -14429,103 +14492,103 @@ var Df = /* @__PURE__ */ g(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
- function Fl(e, t, n) {
+ function Pl(e, t, n) {
try {
var r = e.stateNode;
- gp(r, e.type, n, t), r[Tt] = t;
+ mp(r, e.type, n, t), r[Ct] = t;
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
- function Il(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Pp(e.type) || e.tag === 4;
+ function Fl(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Mp(e.type) || e.tag === 4;
}
- function Ll(e) {
+ function Il(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Il(e.return)) return null;
+ if (e.return === null || Fl(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 && Pp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Mp(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 Rl(e, t, n, r) {
+ function Ll(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 = vn)), kl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (kl(e, r), r = null, Pp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(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 = gn)), Ol(e, r), Gt = !0;
+ else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Mp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;
}
- function zl(e, t, n, r) {
+ function Rl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), kl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (kl(e, r), r = null, Pp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Ol(e, r), Gt = !0;
+ else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Mp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;
}
- function Bl(e) {
+ function zl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- mp(t, r, n), t[wt] = e, t[Tt] = n;
+ fp(t, r, n), t[St] = e, t[Ct] = n;
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
- var Vl = !1, Hl = null;
- function Ul(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Vl = !0);
+ var Bl = !1, Vl = null;
+ function Hl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Bl = !0);
}
- var Wl = null;
- function Gl() {
- var e = Wl;
- return Wl = null, e;
+ var Ul = null;
+ function Wl() {
+ var e = Ul;
+ return Ul = null, e;
}
- var Kl = 0;
- function ql(e, t, n, r, i) {
- return Kl = 0, Jl(e.child, t, n, r, i);
+ var Gl = 0;
+ function Kl(e, t, n, r, i) {
+ return Gl = 0, ql(e.child, t, n, r, i);
}
- function Jl(e, t, n, r, i) {
+ function ql(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Bp(o);
+ var s = Rp(o);
r.push(s), s.view && (a = !0);
- } else a || Bp(o).view && (a = !0);
- Vl = !0, Lp(o, Kl === 0 ? t : t + "_" + Kl, n), Kl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Jl(e.child, t, n, r, i) && (a = !0));
+ } else a || Rp(o).view && (a = !0);
+ Bl = !0, Fp(o, Gl === 0 ? t : t + "_" + Gl, n), Gl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || ql(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Yl(e, t) {
- for (; e !== null;) e.tag === 5 ? Rp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Yl(e.child, t)), e = e.sibling;
+ function Jl(e, t) {
+ for (; e !== null;) e.tag === 5 ? Ip(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Jl(e.child, t)), e = e.sibling;
}
- function Xl(e) {
+ function Yl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Xl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Yl(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 = yi(t.default, t.share), t !== "none" && (ql(e, n, t, null, !1) || Yl(e.child, !1));
+ t = _i(t.default, t.share), t !== "none" && (Kl(e, n, t, null, !1) || Jl(e.child, !1));
}
e = e.sibling;
}
}
- function Zl(e, t) {
+ function Xl(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = _i(r, n), a = yi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Xl(e) : ql(e, i, a, null, !1) ? (Xl(e), n.paired || t || Vd(e, r.onEnter)) : Yl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e, t), e = e.sibling;
- else Xl(e);
- }
- function Ql(e) {
- if (Hl !== null && Hl.size !== 0) {
- var t = Hl;
+ var n = e.stateNode, r = e.memoizedProps, i = hi(r, n), a = _i(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Yl(e) : Kl(e, i, a, null, !1) ? (Yl(e), n.paired || t || Bd(e, r.onEnter)) : Jl(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;
+ else Yl(e);
+ }
+ function Zl(e) {
+ if (Vl !== null && Vl.size !== 0) {
+ var t = Vl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -14533,59 +14596,59 @@ var Df = /* @__PURE__ */ g(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = yi(n.default, n.share);
- if (a !== "none" && (ql(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Vd(e, n.onShare)) : Yl(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = _i(n.default, n.share);
+ if (a !== "none" && (Kl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Bd(e, n.onShare)) : Jl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- Ql(e);
+ Zl(e);
}
e = e.sibling;
}
}
}
- function $l(e) {
+ function Ql(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = _i(t, e.stateNode), r = Hl === null ? void 0 : Hl.get(n), i = yi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (ql(e, n, i, null, !1) ? r === void 0 ? Vd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), Vd(e, t.onShare)) : Yl(e.child, !1)), Hl !== null && Ql(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) $l(e), e = e.sibling;
- else Hl !== null && Ql(e);
+ var t = e.memoizedProps, n = hi(t, e.stateNode), r = Vl === null ? void 0 : Vl.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Kl(e, n, i, null, !1) ? r === void 0 ? Bd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Vl.delete(n), Bd(e, t.onShare)) : Jl(e.child, !1)), Vl !== null && Zl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
+ else Vl !== null && Zl(e);
}
- function eu(e) {
+ function $l(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = _i(t, e.stateNode);
- t = yi(t.default, t.update), e.flags &= -5, t !== "none" && ql(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && eu(e);
+ var t = e.memoizedProps, n = hi(t, e.stateNode);
+ t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Kl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && $l(e);
e = e.sibling;
}
}
- function tu(e) {
+ function eu(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, Yl(e.child, !1));
+ t.paired !== null && (t.paired = null, Jl(e.child, !1));
}
- tu(e);
+ eu(e);
}
e = e.sibling;
}
}
- function nu(e) {
- if (e.tag === 30) e.stateNode.paired = null, Yl(e.child, !1), tu(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) nu(e), e = e.sibling;
- else tu(e);
+ function tu(e) {
+ if (e.tag === 30) e.stateNode.paired = null, Jl(e.child, !1), eu(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;
+ else eu(e);
}
- function ru(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Yl(e.child, !1) : e.subtreeFlags & 33554432 && ru(e), e = e.sibling;
+ function nu(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Jl(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;
}
- function iu(e, t, n, r, i, a, o) {
+ function ru(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Kl < a.length) {
- var l = a[Kl], u = Bp(c);
+ if (a !== null && Gl < a.length) {
+ var l = a[Gl], u = Rp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -14598,30 +14661,30 @@ var Df = /* @__PURE__ */ g(((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 && Lp(c, Kl === 0 ? n : n + "_" + Kl, i), s && e.flags & 4 || (Wl === null && (Wl = []), Wl.push(c, Kl === 0 ? r : r + "_" + Kl, t.memoizedProps)), Kl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : iu(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Fp(c, Gl === 0 ? n : n + "_" + Gl, i), s && e.flags & 4 || (Ul === null && (Ul = []), Ul.push(c, Gl === 0 ? r : r + "_" + Gl, t.memoizedProps)), Gl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : ru(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function au(e, t) {
+ function iu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = _i(n, r), a = yi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Vp);
+ var o = r === null ? null : r.map(zp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Kl = 0, i = iu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Vd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && au(e, t);
+ Gl = 0, i = ru(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Bd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && iu(e, t);
e = e.sibling;
}
}
- var ou = !1, su = !1, cu = !1, lu = !1, uu = typeof WeakSet == "function" ? WeakSet : Set, du = null, fu = !1, pu = !1, mu = !1, hu = !1;
- function gu(e, t, n) {
- if (e = e.containerInfo, yp = yh, e = Kr(e), qr(e)) {
+ var au = !1, ou = !1, su = !1, cu = !1, lu = typeof WeakSet == "function" ? WeakSet : Set, uu = null, du = !1, fu = !1, pu = !1, mu = !1;
+ function hu(e, t, n) {
+ if (e = e.containerInfo, _p = xh, e = Wr(e), Gr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -14660,31 +14723,31 @@ var Df = /* @__PURE__ */ g(((e) => {
end: 0
};
} else r = null;
- for (bp = {
+ for (vp = {
focusedElem: e,
selectionRange: r
- }, yh = !1, n = (n & 335544064) === n, du = t, t = n ? 9270 : 1024; du !== null;) {
- if (e = du, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && $l(r[a]);
- if (e.alternate === null && e.flags & 2) n && Ul(e), _u(n);
+ }, xh = !1, n = (n & 335544064) === n, uu = t, t = n ? 9270 : 1024; uu !== null;) {
+ if (e = uu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Ql(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Hl(e), gu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && $l(r), _u(n);
+ r !== null && r.memoizedState === null && n && Ql(r), gu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Ul(e), _u(n);
+ n && Hl(e), gu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, du = r) : (n && eu(e), _u(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, uu = r) : (n && $l(e), gu(n));
}
}
- Hl = null;
+ Vl = null;
}
- function _u(e) {
- for (; du !== null;) {
- var t = du, n = e, r = t.alternate, a = t.flags;
+ function gu(e) {
+ for (; uu !== null;) {
+ var t = uu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -14694,21 +14757,21 @@ var Df = /* @__PURE__ */ g(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = Cc(t.type, a);
+ var s = Sc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) pm(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) fm(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- pm(r);
+ fm(r);
break;
default: r.textContent = "";
}
@@ -14721,46 +14784,46 @@ var Df = /* @__PURE__ */ g(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = _i(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = yi(a.default, a.update), a !== "none" && ql(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Kl(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, du = r;
+ r.return = t.return, uu = r;
break;
}
- du = t.return;
+ uu = t.return;
}
}
- function vu(e, t, n) {
+ function _u(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Ru(e, n), r & 4 && Cl(5, n);
+ Lu(e, n), r & 4 && Sl(5, n);
break;
case 1:
- if (Ru(e, n), r & 4) {
+ if (Lu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- Sf(n, n.return, e);
+ xf(n, n.return, e);
}
else {
- var i = Cc(n.type, t.memoizedProps);
+ var i = Sc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- Sf(n, n.return, e);
+ xf(n, n.return, e);
}
}
}
- r & 64 && Tl(n), r & 512 && Dl(n, n.return);
+ r & 64 && wl(n), r & 512 && El(n, n.return);
break;
case 3:
- if (Ru(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Lu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -14769,43 +14832,43 @@ var Df = /* @__PURE__ */ g(((e) => {
case 1: t = n.child.stateNode;
}
try {
- wo(e, t);
+ Co(e, t);
} catch (e) {
- Sf(n, n.return, e);
+ xf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Bl(n);
+ case 27: t === null && r & 4 && zl(n);
case 26:
case 5:
- Ru(e, n), t === null && r & 4 && Pl(n), r & 512 && Dl(n, n.return);
+ Lu(e, n), t === null && r & 4 && Nl(n), r & 512 && El(n, n.return);
break;
case 12:
- Ru(e, n);
+ Lu(e, n);
break;
case 31:
- Ru(e, n), r & 4 && Du(e, n);
+ Lu(e, n), r & 4 && Eu(e, n);
break;
case 13:
- Ru(e, n), r & 4 && Ou(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Ef.bind(null, n), vm(e, n))));
+ Lu(e, n), r & 4 && Du(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Tf.bind(null, n), vm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || ou, !r) {
- var a = t !== null && t.memoizedState !== null || su;
- t = ou, i = su, ou = r, (su = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Bu(e, n, r)) : Ru(e, n), ou = t, su = i;
+ if (r = n.memoizedState !== null || au, !r) {
+ var a = t !== null && t.memoizedState !== null || ou;
+ t = au, i = ou, au = r, (ou = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), zu(e, n, r)) : Lu(e, n), au = t, ou = i;
}
break;
case 30:
- Ru(e, n), r & 512 && Dl(n, n.return);
+ Lu(e, n), r & 512 && El(n, n.return);
break;
- case 7: r & 512 && Dl(n, n.return);
- default: Ru(e, n);
+ case 7: r & 512 && El(n, n.return);
+ default: Lu(e, n);
}
}
- function yu(e, t) {
- for (e = e.child; e !== null;) bu(e, t), e = e.sibling;
+ function vu(e, t) {
+ for (e = e.child; e !== null;) yu(e, t), e = e.sibling;
}
- function bu(e, t) {
+ function yu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -14819,182 +14882,182 @@ var Df = /* @__PURE__ */ g(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
- xu(e, t);
+ bu(e, t);
break;
case 6:
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, Gt = !0;
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Ip(s, !0) : Ip(e.stateNode, !1);
+ t ? Pp(s, !0) : Pp(e.stateNode, !1);
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && yu(e, t);
+ e.memoizedState === null && vu(e, t);
break;
- default: yu(e, t);
+ default: vu(e, t);
}
}
- function xu(e, t) {
+ function bu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- bu(n, r);
+ yu(n, r);
break a;
case 22:
- n.memoizedState === null && xu(n, r);
+ n.memoizedState === null && bu(n, r);
break a;
- default: xu(n, r);
+ default: bu(n, r);
}
}
e = e.sibling;
}
}
- function Su(e) {
+ function xu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, Su(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Mt(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;
+ t !== null && (e.alternate = null, xu(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 Cu = null, wu = !1;
- function Tu(e, t, n) {
- for (n = n.child; n !== null;) Eu(e, t, n), n = n.sibling;
+ var Su = null, Cu = !1;
+ function wu(e, t, n) {
+ for (n = n.child; n !== null;) Tu(e, t, n), n = n.sibling;
}
- function Eu(e, t, n) {
- if (Qe && typeof Qe.onCommitFiberUnmount == "function") try {
- Qe.onCommitFiberUnmount(Ze, n);
+ function Tu(e, t, n) {
+ if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
+ Xe.onCommitFiberUnmount(Ye, n);
} catch {}
switch (n.tag) {
case 26:
- su || Ol(n, t), Tu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !su && (n = n.stateNode, n.parentNode.removeChild(n));
+ ou || Dl(n, t), wu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ou && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- su || Ol(n, t), jl(n);
- var r = Cu, i = wu;
- Pp(n.type) && (Cu = n.stateNode, wu = !1), Tu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Cu = r, wu = i;
+ ou || Dl(n, t), Al(n);
+ var r = Su, i = Cu;
+ Mp(n.type) && (Su = n.stateNode, Cu = !1), wu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Su = r, Cu = i;
break;
- case 5: su || Ol(n, t), jl(n);
+ case 5: ou || Dl(n, t), Al(n);
case 6:
- if (n.tag === 6 && jl(n), r = Cu, i = wu, Cu = null, Tu(e, t, n), Cu = r, wu = i, Cu !== null) {
- if (wu) try {
- (Cu.nodeType === 9 ? Cu.body : Cu.nodeName === "HTML" ? Cu.ownerDocument.body : Cu).removeChild(n.stateNode), Gt = !0;
+ if (n.tag === 6 && Al(n), r = Su, i = Cu, Su = null, wu(e, t, n), Su = r, Cu = i, Su !== null) {
+ if (Cu) try {
+ (Su.nodeType === 9 ? Su.body : Su.nodeName === "HTML" ? Su.ownerDocument.body : Su).removeChild(n.stateNode), Gt = !0;
} catch (e) {
- Sf(n, t, e);
+ xf(n, t, e);
}
else try {
- Cu.removeChild(n.stateNode), Gt = !0;
+ Su.removeChild(n.stateNode), Gt = !0;
} catch (e) {
- Sf(n, t, e);
+ xf(n, t, e);
}
}
break;
case 18:
- Cu !== null && (wu ? (e = Cu, Fp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Gh(e)) : Fp(Cu, n.stateNode));
+ Su !== null && (Cu ? (e = Su, Np(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Gh(e)) : Np(Su, n.stateNode));
break;
case 4:
- r = Cu, i = wu, Cu = n.stateNode.containerInfo, wu = !0, Tu(e, t, n), Cu = r, wu = i;
+ r = Su, i = Cu, Su = n.stateNode.containerInfo, Cu = !0, wu(e, t, n), Su = r, Cu = i;
break;
case 0:
case 11:
case 14:
case 15:
- wl(2, n, t), su || wl(4, n, t), Tu(e, t, n);
+ Cl(2, n, t), ou || Cl(4, n, t), wu(e, t, n);
break;
case 1:
- su || (Ol(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && El(n, t, r)), Tu(e, t, n);
+ ou || (Dl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Tl(n, t, r)), wu(e, t, n);
break;
case 21:
- Tu(e, t, n);
+ wu(e, t, n);
break;
case 22:
- su = (r = su) || n.memoizedState !== null, Tu(e, t, n), su = r;
+ ou = (r = ou) || n.memoizedState !== null, wu(e, t, n), ou = r;
break;
case 30:
- Ol(n, t), Tu(e, t, n);
+ Dl(n, t), wu(e, t, n);
break;
case 7:
- su || Ol(n, t), Tu(e, t, n);
+ ou || Dl(n, t), wu(e, t, n);
break;
- default: Tu(e, t, n);
+ default: wu(e, t, n);
}
}
- function Du(e, t) {
+ function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
Gh(e);
} catch (e) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
}
}
- function Ou(e, t) {
+ function Du(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Gh(e);
} catch (e) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
}
- function ku(e) {
+ function Ou(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new uu()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new uu()), t;
+ return t === null && (t = e.stateNode = new lu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new lu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Au(e, t) {
- var n = ku(e);
+ function ku(e, t) {
+ var n = Ou(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = Df.bind(null, e, t);
+ var r = Ef.bind(null, e, t);
t.then(r, r);
}
});
}
- function ju(e, t, n) {
+ function Au(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 (Pp(l.type)) {
- Cu = l.stateNode, wu = !1;
+ if (Mp(l.type)) {
+ Su = l.stateNode, Cu = !1;
break a;
}
break;
case 5:
- Cu = l.stateNode, wu = !1;
+ Su = l.stateNode, Cu = !1;
break a;
case 3:
case 4:
- Cu = l.stateNode.containerInfo, wu = !0;
+ Su = l.stateNode.containerInfo, Cu = !0;
break a;
}
l = l.return;
}
- if (Cu === null) throw Error(i(160));
- Eu(s, c, o), Cu = null, wu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (Su === null) throw Error(i(160));
+ Tu(s, c, o), Su = null, Cu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Nu(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Mu(t, e, n), t = t.sibling;
}
- var Mu = null;
- function Nu(e, t, n) {
+ var ju = null;
+ function Mu(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -15005,120 +15068,120 @@ var Df = /* @__PURE__ */ g(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- ju(t, e, n), Pu(e), a & 4 && (wl(3, e, e.return), Cl(3, e), wl(5, e, e.return));
+ Au(t, e, n), Nu(e), a & 4 && (Cl(3, e, e.return), Sl(3, e), Cl(5, e, e.return));
break;
case 1:
- ju(t, e, n), Pu(e), a & 512 && (su || r === null || Ol(r, r.return)), a & 64 && ou && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Dl(r, r.return)), a & 64 && au && (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 = Mu, ju(t, e, n), Pu(e), a & 512 && (su || r === null || Ol(r, r.return)), a & 4) {
+ if (o = ju, Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Dl(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 (ou) e.stateNode = wp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (au) e.stateNode = Sp(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[F] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), mp(r, t, n), r[wt] = e, Lt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[kt] || 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"))), fp(r, t, n), r[St] = e, It(r), t = r;
break a;
case "link":
- if (o = Qm("link", "href", a).get(t + (n.href || ""))) {
+ if (o = $m("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), mp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Qm("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = $m("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), mp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
- r[wt] = e, Lt(r), t = r;
+ r[St] = e, It(r), t = r;
}
e.stateNode = t;
}
- } else ou || $m(o, e.type, e.stateNode);
+ } else au || eh(o, e.type, e.stateNode);
} else e.stateNode = Jm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || su || t.parentNode.removeChild(t)) : a.count--, n === null ? ou || $m(o, e.type, e.stateNode) : Jm(o, n, e.memoizedProps));
+ } else a === n ? n === null && e.stateNode !== null && Pl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ou || t.parentNode.removeChild(t)) : a.count--, n === null ? au || eh(o, e.type, e.stateNode) : Jm(o, n, e.memoizedProps));
}
break;
case 27:
- ju(t, e, n), Pu(e), a & 512 && (su || r === null || Ol(r, r.return)), r !== null && a & 4 && Fl(e, e.memoizedProps, r.memoizedProps);
+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Dl(r, r.return)), r !== null && a & 4 && Pl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = cu, cu = !1, ju(t, e, n), cu = o, Pu(e), a & 512 && (su || r === null || Ol(r, r.return)), e.flags & 32) {
+ if (o = su, su = !1, Au(t, e, n), su = o, Nu(e), a & 512 && (ou || r === null || Dl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- un(t, ""), Gt = !0;
+ cn(t, ""), Gt = !0;
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Fl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (lu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Pl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (cu = !0);
break;
case 6:
- if (ju(t, e, n), Pu(e), a & 4) {
+ if (Au(t, e, n), Nu(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
n.nodeValue = t, Gt = !0;
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
}
break;
case 3:
- if (Gt = !1, Zm = null, o = Mu, Mu = km(t.containerInfo), ju(t, e, n), Mu = o, Pu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Gt = !1, Qm = null, o = ju, ju = km(t.containerInfo), Au(t, e, n), ju = o, Nu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Gh(t.containerInfo);
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
- lu && (lu = !1, Fu(e)), Gt = !1;
+ cu && (cu = !1, Pu(e)), Gt = !1;
break;
case 4:
- a = cu, cu = ou, r = Kt(), o = Mu, Mu = km(e.stateNode.containerInfo), ju(t, e, n), Pu(e), Mu = o, Gt && pu && (mu = !0), Gt = r, cu = a;
+ a = su, su = au, r = Kt(), o = ju, ju = km(e.stateNode.containerInfo), Au(t, e, n), Nu(e), ju = o, Gt && fu && (pu = !0), Gt = r, su = a;
break;
case 12:
- ju(t, e, n), Pu(e);
+ Au(t, e, n), Nu(e);
break;
case 31:
- ju(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Au(e, t)));
+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 13:
- ju(t, e, n), Pu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (Sd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Au(e, t)));
+ Au(t, e, n), Nu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (xd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = ou, l = su, u = cu;
- ou = c || o, cu = u || o, su = l || s, ju(t, e, n), su = l, cu = u, ou = c, Pu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || ou || su || (t = s || su, n = ou, r = su, ou = o || ou, su = t, zu(e, 2), ou = n, su = r), !o && cu || yu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Au(e, n))));
+ var c = au, l = ou, u = su;
+ au = c || o, su = u || o, ou = l || s, Au(t, e, n), ou = l, su = u, au = c, Nu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || au || ou || (t = s || ou, n = au, r = ou, au = o || au, ou = t, Ru(e, 2), au = n, ou = r), !o && su || vu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, ku(e, n))));
break;
case 19:
- ju(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Au(e, t)));
+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 30:
- a & 512 && (su || r === null || Ol(r, r.return)), a = Kt(), o = pu, s = (n & 335544064) === n, c = e.memoizedProps, pu = s && yi(c.default, c.update) !== "none", ju(t, e, n), Pu(e), s && r !== null && Gt && (e.flags |= 4), pu = o, Gt = a;
+ a & 512 && (ou || r === null || Dl(r, r.return)), a = Kt(), o = fu, s = (n & 335544064) === n, c = e.memoizedProps, fu = s && _i(c.default, c.update) !== "none", Au(t, e, n), Nu(e), s && r !== null && Gt && (e.flags |= 4), fu = o, Gt = a;
break;
case 21: break;
- case 7: a & 512 && (su || r === null || Ol(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: ju(t, e, n), Pu(e);
+ case 7: a & 512 && (ou || r === null || Dl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Au(t, e, n), Nu(e);
}
}
- function Pu(e) {
+ function Nu(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Il(r)) {
+ if (Fl(r)) {
n = r;
break;
}
@@ -15126,11 +15189,11 @@ var Df = /* @__PURE__ */ g(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Nl(a)) {
+ if (Ml(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Ml(a)) break;
+ if (jl(a)) break;
a = a.return;
}
var s = r;
@@ -15138,46 +15201,46 @@ var Df = /* @__PURE__ */ g(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- zl(e, Ll(e), c, s);
+ Rl(e, Il(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (un(l, ""), n.flags &= -33), zl(e, Ll(e), l, s);
+ n.flags & 32 && (cn(l, ""), n.flags &= -33), Rl(e, Il(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Rl(e, Ll(e), u, s);
+ Ll(e, Il(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- Sf(e, e.return, t);
+ xf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function Fu(e) {
+ function Pu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Fu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, yh = !0, t.reset(), yh = !1), e = e.sibling;
+ Pu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, xh = !0, t.reset(), xh = !1), e = e.sibling;
}
}
- function Iu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Lu(t, e), t = t.sibling;
- else au(t, !1);
+ function Fu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Iu(t, e), t = t.sibling;
+ else iu(t, !1);
}
- function Lu(e, t) {
+ function Iu(e, t) {
var n = e.alternate;
- if (n === null) Zl(e, !1);
+ if (n === null) Xl(e, !1);
else switch (e.tag) {
case 3:
- if (hu = fu = !1, Gl(), Iu(t, e), !fu && !mu) {
- if (e = Wl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (mu = du = !1, Wl(), Fu(t, e), !du && !pu) {
+ if (e = Ul, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Rp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Ip(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -15200,33 +15263,33 @@ var Df = /* @__PURE__ */ g(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), hu = !0;
+ })), mu = !0;
}
- Wl = null;
+ Ul = null;
break;
case 5:
- Iu(t, e);
+ Fu(t, e);
break;
case 4:
- r = fu, fu = !1, Iu(t, e), fu && (mu = !0), fu = r;
+ r = du, du = !1, Fu(t, e), du && (pu = !0), du = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Iu(t, e) : Zl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Fu(t, e) : Xl(e, !1));
break;
case 30:
- r = fu, i = Gl(), fu = !1, Iu(t, e), fu && (e.flags |= 4);
+ r = du, i = Wl(), du = !1, Fu(t, e), du && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = _i(a, o), o = _i(n.memoizedProps, o);
- var s = yi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Kl = 0, t = iu(e, n, t, o, s, a, !0), Kl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Vd(e, e.memoizedProps.onUpdate), Wl = i) : i !== null && (i.push.apply(i, Wl), Wl = i), fu = e.flags & 32 ? !0 : r;
+ t = hi(a, o), o = hi(n.memoizedProps, o);
+ var s = _i(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Gl = 0, t = ru(e, n, t, o, s, a, !0), Gl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Bd(e, e.memoizedProps.onUpdate), Ul = i) : i !== null && (i.push.apply(i, Ul), Ul = i), du = e.flags & 32 ? !0 : r;
break;
- default: Iu(t, e);
+ default: Fu(t, e);
}
}
- function Ru(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) vu(e, t.alternate, t), t = t.sibling;
+ function Lu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) _u(e, t.alternate, t), t = t.sibling;
}
- function zu(e, t) {
+ function Ru(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -15234,218 +15297,218 @@ var Df = /* @__PURE__ */ g(((e) => {
case 11:
case 14:
case 15:
- wl(4, n, n.return), zu(n, r);
+ Cl(4, n, n.return), Ru(n, r);
break;
case 1:
- Ol(n, n.return);
+ Dl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && El(n, n.return, i), zu(n, r);
+ typeof i.componentWillUnmount == "function" && Tl(n, n.return, i), Ru(n, r);
break;
case 27: r & 2 && Tm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Ol(n, n.return), n.tag !== 5 && n.tag !== 27 || jl(n), zu(n, r);
+ Dl(n, n.return), n.tag !== 5 && n.tag !== 27 || Al(n), Ru(n, r);
break;
case 6:
- jl(n);
+ Al(n);
break;
case 26:
- Ol(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || su || i.parentNode.removeChild(i), zu(n, r);
+ Dl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ou || i.parentNode.removeChild(i), Ru(n, r);
break;
case 22:
- n.memoizedState === null && zu(n, r);
+ n.memoizedState === null && Ru(n, r);
break;
case 30:
- Ol(n, n.return), zu(n, r);
+ Dl(n, n.return), Ru(n, r);
break;
- case 7: Ol(n, n.return);
- default: zu(n, r);
+ case 7: Dl(n, n.return);
+ default: Ru(n, r);
}
e = e.sibling;
}
}
- function Bu(e, t, n) {
+ function zu(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:
- Bu(i, a, n), Cl(4, a);
+ zu(i, a, n), Sl(4, a);
break;
case 1:
- if (Bu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (zu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- Sf(r, r.return, e);
+ xf(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++) Co(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) So(l[i], c);
} catch (e) {
- Sf(r, r.return, e);
+ xf(r, r.return, e);
}
}
- s && o & 64 && Tl(a), Dl(a, a.return);
+ s && o & 64 && wl(a), El(a, a.return);
break;
- case 27: n & 2 && Bl(a);
+ case 27: n & 2 && zl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Al(a), Bu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || kl(a), zu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
break;
case 6:
- Al(a);
+ kl(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || ou || $m(km(c.ownerDocument), a.type, c), Bu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || au || eh(km(c.ownerDocument), a.type, c), zu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
break;
case 12:
- Bu(i, a, n);
+ zu(i, a, n);
break;
case 31:
- Bu(i, a, n), s && o & 4 && Du(i, a);
+ zu(i, a, n), s && o & 4 && Eu(i, a);
break;
case 13:
- Bu(i, a, n), s && o & 4 && Ou(i, a);
+ zu(i, a, n), s && o & 4 && Du(i, a);
break;
case 22:
- a.memoizedState === null && Bu(i, a, n), Dl(a, a.return);
+ a.memoizedState === null && zu(i, a, n), El(a, a.return);
break;
case 30:
- Bu(i, a, n), Dl(a, a.return);
+ zu(i, a, n), El(a, a.return);
break;
- case 7: Dl(a, a.return);
- default: Bu(i, a, n);
+ case 7: El(a, a.return);
+ default: zu(i, a, n);
}
t = t.sibling;
}
}
- function Vu(e, t) {
+ function Bu(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 && Ma(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 && ja(n));
}
- function Hu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ma(e));
+ function Vu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ja(e));
}
- function Uu(e, t, n, r) {
+ function Hu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Wu(e, t, n, r), t = t.sibling;
- else i && ru(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Uu(e, t, n, r), t = t.sibling;
+ else i && nu(t);
}
- function Wu(e, t, n, r) {
+ function Uu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && nu(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && tu(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Uu(e, t, n, r), a & 2048 && Cl(9, t);
+ Hu(e, t, n, r), a & 2048 && Sl(9, t);
break;
case 1:
- Uu(e, t, n, r);
+ Hu(e, t, n, r);
break;
case 3:
- Uu(e, t, n, r), i && hu && (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 && Ma(a)));
+ Hu(e, t, n, r), i && mu && (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 && ja(a)));
break;
case 12:
if (a & 2048) {
- Uu(e, t, n, r), a = t.stateNode;
+ Hu(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) {
- Sf(t, t.return, e);
+ xf(t, t.return, e);
}
- } else Uu(e, t, n, r);
+ } else Hu(e, t, n, r);
break;
case 31:
- Uu(e, t, n, r);
+ Hu(e, t, n, r);
break;
case 13:
- Uu(e, t, n, r);
+ Hu(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 && nu(t), o._visibility & 2 ? Uu(e, t, n, r) : (o._visibility |= 2, Gu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && nu(s), o._visibility & 2 ? Uu(e, t, n, r) : Ku(e, t)), a & 2048 && Vu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && tu(t), o._visibility & 2 ? Hu(e, t, n, r) : (o._visibility |= 2, Wu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && tu(s), o._visibility & 2 ? Hu(e, t, n, r) : Gu(e, t)), a & 2048 && Bu(s, t);
break;
case 24:
- Uu(e, t, n, r), a & 2048 && Hu(t.alternate, t);
+ Hu(e, t, n, r), a & 2048 && Vu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Yl(a.child, !0), Yl(t.child, !0))), Uu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Jl(a.child, !0), Jl(t.child, !0))), Hu(e, t, n, r);
break;
- default: Uu(e, t, n, r);
+ default: Hu(e, t, n, r);
}
}
- function Gu(e, t, n, r, i) {
+ function Wu(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:
- Gu(a, o, s, c, i), Cl(8, o);
+ Wu(a, o, s, c, i), Sl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Gu(a, o, s, c, i)) : u._visibility & 2 ? Gu(a, o, s, c, i) : Ku(a, o), i && l & 2048 && Vu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Wu(a, o, s, c, i)) : u._visibility & 2 ? Wu(a, o, s, c, i) : Gu(a, o), i && l & 2048 && Bu(o.alternate, o);
break;
case 24:
- Gu(a, o, s, c, i), i && l & 2048 && Hu(o.alternate, o);
+ Wu(a, o, s, c, i), i && l & 2048 && Vu(o.alternate, o);
break;
- default: Gu(a, o, s, c, i);
+ default: Wu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Ku(e, t) {
+ function Gu(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:
- Ku(n, r), i & 2048 && Vu(r.alternate, r);
+ Gu(n, r), i & 2048 && Bu(r.alternate, r);
break;
case 24:
- Ku(n, r), i & 2048 && Hu(r.alternate, r);
+ Gu(n, r), i & 2048 && Vu(r.alternate, r);
break;
- default: Ku(n, r);
+ default: Gu(n, r);
}
t = t.sibling;
}
}
- var qu = 8192;
- function Ju(e, t, n) {
- if (e.subtreeFlags & qu) for (e = e.child; e !== null;) Yu(e, t, n), e = e.sibling;
+ var Ku = 8192;
+ function qu(e, t, n) {
+ if (e.subtreeFlags & Ku) for (e = e.child; e !== null;) Ju(e, t, n), e = e.sibling;
}
- function Yu(e, t, n) {
+ function Ju(e, t, n) {
switch (e.tag) {
case 26:
- Ju(e, t, n), e.flags & qu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && nh(n, e)) : rh(n, Mu, e.memoizedState, e.memoizedProps));
+ qu(e, t, n), e.flags & Ku && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && ah(n, e)) : oh(n, ju, e.memoizedState, e.memoizedProps));
break;
case 5:
- Ju(e, t, n), e.flags & qu && (e = e.stateNode, (t & 335544128) === t && nh(n, e));
+ qu(e, t, n), e.flags & Ku && (e = e.stateNode, (t & 335544128) === t && ah(n, e));
break;
case 3:
case 4:
- var r = Mu;
- Mu = km(e.stateNode.containerInfo), Ju(e, t, n), Mu = r;
+ var r = ju;
+ ju = km(e.stateNode.containerInfo), qu(e, t, n), ju = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = qu, qu = 16777216, Ju(e, t, n), qu = r) : Ju(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Ku, Ku = 16777216, qu(e, t, n), Ku = r) : qu(e, t, n));
break;
case 30:
- if ((e.flags & qu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Ku) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Hl === null && (Hl = /* @__PURE__ */ new Map()), Hl.set(r, i);
+ i.paired = null, Vl === null && (Vl = /* @__PURE__ */ new Map()), Vl.set(r, i);
}
- Ju(e, t, n);
+ qu(e, t, n);
break;
- default: Ju(e, t, n);
+ default: qu(e, t, n);
}
}
- function Xu(e) {
+ function Yu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -15454,69 +15517,69 @@ var Df = /* @__PURE__ */ g(((e) => {
while (e !== null);
}
}
- function Zu(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];
- du = r, ed(r, e);
+ uu = r, $u(r, e);
}
- Xu(e);
+ Yu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Qu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Zu(e), e = e.sibling;
}
- function Qu(e) {
+ function Zu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Zu(e), e.flags & 2048 && wl(9, e, e.return);
+ Xu(e), e.flags & 2048 && Cl(9, e, e.return);
break;
case 3:
- Zu(e);
+ Xu(e);
break;
case 12:
- Zu(e);
+ Xu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, $u(e)) : Zu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Qu(e)) : Xu(e);
break;
- default: Zu(e);
+ default: Xu(e);
}
}
- function $u(e) {
+ function Qu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- du = r, ed(r, e);
+ uu = r, $u(r, e);
}
- Xu(e);
+ Yu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- wl(8, t, t.return), $u(t);
+ Cl(8, t, t.return), Qu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, $u(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Qu(t));
break;
- default: $u(t);
+ default: Qu(t);
}
e = e.sibling;
}
}
- function ed(e, t) {
- for (; du !== null;) {
- var n = du;
+ function $u(e, t) {
+ for (; uu !== null;) {
+ var n = uu;
switch (n.tag) {
case 0:
case 11:
case 15:
- wl(8, n, t);
+ Cl(8, n, t);
break;
case 23:
case 22:
@@ -15525,64 +15588,64 @@ var Df = /* @__PURE__ */ g(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Ma(n.memoizedState.cache);
+ case 24: ja(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, du = r;
- else a: for (n = e; du !== null;) {
- r = du;
+ if (r = n.child, r !== null) r.return = n, uu = r;
+ else a: for (n = e; uu !== null;) {
+ r = uu;
var i = r.sibling, a = r.return;
- if (Su(r), r === n) {
- du = null;
+ if (xu(r), r === n) {
+ uu = null;
break a;
}
if (i !== null) {
- i.return = a, du = i;
+ i.return = a, uu = i;
break a;
}
- du = a;
+ uu = a;
}
}
}
- var td = {
+ var ed = {
getCacheForType: function(e) {
- var t = wa(Aa), n = t.data.get(e);
+ var t = Ca(ka), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return wa(Aa).controller.signal;
+ return Ca(ka).controller.signal;
}
- }, nd = typeof WeakMap == "function" ? WeakMap : Map, rd = 0, id = null, ad = null, od = 0, sd = 0, cd = null, ld = !1, ud = !1, dd = !1, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = 0, yd = null, bd = null, xd = !1, Sd = 0, Cd = 0, wd = Infinity, Td = null, Ed = null, Dd = 0, Od = null, kd = null, Ad = 0, jd = 0, Md = null, Nd = null, Pd = null, Fd = null, Id = null, Ld = 0, Rd = null;
- function zd() {
- return rd & 2 && od !== 0 ? od & -od : P.T === null ? xt() : Wf();
+ }, td = typeof WeakMap == "function" ? WeakMap : Map, nd = 0, rd = null, id = null, ad = 0, od = 0, sd = null, cd = !1, ld = !1, ud = !1, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = null, yd = null, bd = !1, xd = 0, Sd = 0, Cd = Infinity, wd = null, Td = null, Ed = 0, Dd = null, Od = null, kd = 0, Ad = 0, jd = null, Md = null, Nd = null, Pd = null, Fd = null, Id = 0, Ld = null;
+ function Rd() {
+ return nd & 2 && ad !== 0 ? ad & -ad : I.T === null ? yt() : Uf();
}
- function Bd() {
- if (_d === 0) {
- if (!(od & 536870912) || z) {
- var e = at;
- at <<= 1, !(at & 3932160) && (at = 262144), _d = e;
- } else _d = 536870912;
+ function zd() {
+ if (gd === 0) {
+ if (!(ad & 536870912) || ra) {
+ var e = rt;
+ rt <<= 1, !(rt & 3932160) && (rt = 262144), gd = e;
+ } else gd = 536870912;
}
- return e = Ao.current, e !== null && (e.flags |= 32), _d;
+ return e = ko.current, e !== null && (e.flags |= 32), gd;
}
- function Vd(e, t) {
+ function Bd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Kp(_i(e.memoizedProps, n))), Fd === null && (Fd = []), Fd.push(t.bind(null, r));
+ r === null && (r = n.ref = Wp(hi(e.memoizedProps, n))), Pd === null && (Pd = []), Pd.push(t.bind(null, r));
}
}
- function Hd(e, t, n) {
- (e === id && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) && (Yd(e, 0), Kd(e, od, _d, !1)), mt(e, n), (!(rd & 2) || e !== id) && (e === id && (!(rd & 2) && (hd |= n), pd === 4 && Kd(e, od, _d, !1)), If(e));
+ function Vd(e, t, n) {
+ (e === rd && (od === 2 || od === 9) || e.cancelPendingCommit !== null) && (Jd(e, 0), Gd(e, ad, gd, !1)), ft(e, n), (!(nd & 2) || e !== rd) && (e === rd && (!(nd & 2) && (md |= n), fd === 4 && Gd(e, ad, gd, !1)), Pf(e));
}
- function Ud(e, t, n) {
- if (rd & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? rf(e, t) : tf(e, t, !0), o = r;
+ function Hd(e, t, n) {
+ if (nd & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? nf(e, t) : ef(e, t, !0), o = r;
do {
if (a === 0) {
- ud && !r && Kd(e, t, 0, !1);
+ ld && !r && Gd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Gd(n)) {
- a = tf(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Wd(n)) {
+ a = ef(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -15592,14 +15655,14 @@ var Df = /* @__PURE__ */ g(((e) => {
t = s;
a: {
var c = e;
- a = yd;
+ a = vd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Yd(c, s).flags |= 256), s = tf(c, s, !1), s !== 2 && s !== 6) {
- if (dd && !l) {
- c.errorRecoveryDisabledLanes |= o, hd |= o, a = 4;
+ if (l && (Jd(c, s).flags |= 256), s = ef(c, s, !1), s !== 2 && s !== 6) {
+ if (ud && !l) {
+ c.errorRecoveryDisabledLanes |= o, md |= o, a = 4;
break a;
}
- o = bd, bd = a, o !== null && (bd === null ? bd = o : bd.push.apply(bd, o));
+ o = yd, yd = a, o !== null && (yd === null ? yd = o : yd.push.apply(yd, o));
}
a = s;
}
@@ -15607,7 +15670,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
if (a === 1) {
- Yd(e, 0), Kd(e, t, 0, !0);
+ Jd(e, 0), Gd(e, t, 0, !0);
break;
}
a: {
@@ -15616,27 +15679,27 @@ var Df = /* @__PURE__ */ g(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Kd(r, t, _d, !ld);
+ Gd(r, t, gd, !cd);
break a;
case 2:
- bd = null;
+ yd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = Sd + 300 - He(), 10 < a)) {
- if (Kd(r, t, _d, !ld), ct(r, 0, !0) !== 0) break a;
- Ad = t, r.timeoutHandle = Op(Wd.bind(null, r, n, bd, Td, xd, t, _d, hd, vd, ld, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = xd + 300 - Be(), 10 < a)) {
+ if (Gd(r, t, gd, !cd), ot(r, 0, !0) !== 0) break a;
+ kd = t, r.timeoutHandle = Ep(Ud.bind(null, r, n, yd, wd, bd, t, gd, md, _d, cd, o, "Throttled", -0, 0), a);
break a;
}
- Wd(r, n, bd, Td, xd, t, _d, hd, vd, ld, o, null, -0, 0);
+ Ud(r, n, yd, wd, bd, t, gd, md, _d, cd, o, null, -0, 0);
}
break;
} while (1);
- If(e);
+ Pf(e);
}
- function Wd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Ud(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 = {
@@ -15647,21 +15710,21 @@ var Df = /* @__PURE__ */ g(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: vn
- }, Hl = null, Yu(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 = sh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? Sd - He() : (a & 4194048) === a ? Cd - He() : 0, m = ah(d, m), m !== null)) {
- Ad = a, e.cancelPendingCommit = m(df.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Kd(e, a, o, !l);
+ unsuspend: gn
+ }, Vl = null, Ju(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 = lh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? xd - Be() : (a & 4194048) === a ? Sd - Be() : 0, m = sh(d, m), m !== null)) {
+ kd = a, e.cancelPendingCommit = m(uf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Gd(e, a, o, !l);
return;
}
- df(e, t, a, n, r, i, o, s, c, l, u, d);
+ uf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Gd(e) {
+ function Wd(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 (!Br(a(), i)) return !1;
+ if (!Rr(a(), i)) return !1;
} catch {
return !1;
}
@@ -15678,281 +15741,281 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return !0;
}
- function Kd(e, t, n, r) {
- t = ut(e, t), t &= ~gd, t &= ~hd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Gd(e, t, n, r) {
+ t = ct(e, t), t &= ~hd, t &= ~md, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - et(i), o = 1 << a;
+ var a = 31 - Qe(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && gt(e, n, t);
+ n !== 0 && mt(e, n, t);
}
- function qd() {
- return rd & 6 ? !0 : (Lf(0, !1), !1);
+ function Kd() {
+ return nd & 6 ? !0 : (Ff(0, !1), !1);
}
- function Jd() {
- if (ad !== null) {
- if (sd === 0) var e = ad.return;
- else e = ad, ga = ha = null, as(e), io = null, ao = 0, e = ad;
- for (; e !== null;) Sl(e.alternate, e), e = e.return;
- ad = null;
+ function qd() {
+ if (id !== null) {
+ if (od === 0) var e = id.return;
+ else e = id, ga = ha = null, is(e), ro = null, io = 0, e = id;
+ for (; e !== null;) xl(e.alternate, e), e = e.return;
+ id = null;
}
}
- function Yd(e, t) {
+ function Jd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, kp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Ad = 0, Jd(), id = e, ad = n = Pi(e.current, null), od = t, sd = 0, cd = null, ld = !1, ud = lt(e, t), dd = !1, vd = _d = gd = hd = md = pd = 0, bd = yd = null, xd = !1, fd = ut(e, t), wi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Dp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), kd = 0, qd(), rd = e, id = n = Mi(e.current, null), ad = t, od = 0, sd = null, cd = !1, ld = st(e, t), ud = !1, _d = gd = hd = md = pd = fd = 0, yd = vd = null, bd = !1, dd = ct(e, t), Si(), n;
+ }
+ function Yd(e, t) {
+ H = null, I.H = mc, t === qa || t === Ya ? (t = to(), od = 3) : t === Ja ? (t = to(), od = 4) : od = t === Mc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, sd = t, id === null && (fd = 1, Ec(e, Bi(t, e.current)));
}
- function Xd(e, t) {
- V = null, P.H = hc, t === Ja || t === Xa ? (t = no(), sd = 3) : t === Ya ? (t = no(), sd = 4) : sd = t === Nc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, cd = t, ad === null && (pd = 1, Dc(e, Hi(t, e.current)));
+ function Xd() {
+ var e = ko.current;
+ return e === null ? !0 : (ad & 4194048) === ad ? Ao === null : (ad & 62914560) === ad || ad & 536870912 ? e === Ao : !1;
}
function Zd() {
- var e = Ao.current;
- return e === null ? !0 : (od & 4194048) === od ? jo === null : (od & 62914560) === od || od & 536870912 ? e === jo : !1;
+ var e = I.H;
+ return I.H = mc, e === null ? mc : e;
}
function Qd() {
- var e = P.H;
- return P.H = hc, e === null ? hc : e;
+ var e = I.A;
+ return I.A = ed, e;
}
function $d() {
- var e = P.A;
- return P.A = td, e;
- }
- function ef() {
- pd = 4, ld || (od & 4194048) !== od && Ao.current !== null || (ud = !0), !(md & 134217727) && !(hd & 134217727) || id === null || Kd(id, od, _d, !1);
- }
- function tf(e, t, n) {
- var r = rd;
- rd |= 2;
- var i = Qd(), a = $d();
- (id !== e || od !== t) && (Td = null, Yd(e, t)), t = !1;
- var o = pd;
+ fd = 4, cd || (ad & 4194048) !== ad && ko.current !== null || (ld = !0), !(pd & 134217727) && !(md & 134217727) || rd === null || Gd(rd, ad, gd, !1);
+ }
+ function ef(e, t, n) {
+ var r = nd;
+ nd |= 2;
+ var i = Zd(), a = Qd();
+ (rd !== e || ad !== t) && (wd = null, Jd(e, t)), t = !1;
+ var o = fd;
a: do
try {
- if (sd !== 0 && ad !== null) {
- var s = ad, c = cd;
- switch (sd) {
+ if (od !== 0 && id !== null) {
+ var s = id, c = sd;
+ switch (od) {
case 8:
- Jd(), o = 6;
+ qd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- Ao.current === null && (t = !0);
- var l = sd;
- if (sd = 0, cd = null, cf(e, s, c, l), n && ud) {
+ ko.current === null && (t = !0);
+ var l = od;
+ if (od = 0, sd = null, sf(e, s, c, l), n && ld) {
o = 0;
break a;
}
break;
- default: l = sd, sd = 0, cd = null, cf(e, s, c, l);
+ default: l = od, od = 0, sd = null, sf(e, s, c, l);
}
}
- nf(), o = pd;
+ tf(), o = fd;
break;
} catch (t) {
- Xd(e, t);
+ Yd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ga = ha = null, rd = r, P.H = i, P.A = a, ad === null && (id = null, od = 0, wi()), o;
+ return t && e.shellSuspendCounter++, ga = ha = null, nd = r, I.H = i, I.A = a, id === null && (rd = null, ad = 0, Si()), o;
}
- function nf() {
- for (; ad !== null;) of(ad);
+ function tf() {
+ for (; id !== null;) af(id);
}
- function rf(e, t) {
- var n = rd;
- rd |= 2;
- var r = Qd(), a = $d();
- id !== e || od !== t ? (Td = null, wd = He() + 500, Yd(e, t)) : ud = lt(e, t);
+ function nf(e, t) {
+ var n = nd;
+ nd |= 2;
+ var r = Zd(), a = Qd();
+ rd !== e || ad !== t ? (wd = null, Cd = Be() + 500, Jd(e, t)) : ld = st(e, t);
a: do
try {
- if (sd !== 0 && ad !== null) {
- t = ad;
- var o = cd;
- b: switch (sd) {
+ if (od !== 0 && id !== null) {
+ t = id;
+ var o = sd;
+ b: switch (od) {
case 1:
- sd = 0, cd = null, cf(e, t, o, 1);
+ od = 0, sd = null, sf(e, t, o, 1);
break;
case 2:
case 9:
- if (Qa(o)) {
- sd = 0, cd = null, sf(t);
+ if (Za(o)) {
+ od = 0, sd = null, of(t);
break;
}
t = function() {
- sd !== 2 && sd !== 9 || id !== e || (sd = 7), If(e);
+ od !== 2 && od !== 9 || rd !== e || (od = 7), Pf(e);
}, o.then(t, t);
break a;
case 3:
- sd = 7;
+ od = 7;
break a;
case 4:
- sd = 5;
+ od = 5;
break a;
case 7:
- Qa(o) ? (sd = 0, cd = null, sf(t)) : (sd = 0, cd = null, cf(e, t, o, 7));
+ Za(o) ? (od = 0, sd = null, of(t)) : (od = 0, sd = null, sf(e, t, o, 7));
break;
case 5:
var s = null;
- switch (ad.tag) {
- case 26: s = ad.memoizedState;
+ switch (id.tag) {
+ case 26: s = id.memoizedState;
case 5:
case 27:
- var c = ad;
- if (s ? J(s) : c.stateNode.complete) {
- sd = 0, cd = null;
+ var c = id;
+ if (s ? rh(s) : c.stateNode.complete) {
+ od = 0, sd = null;
var l = c.sibling;
- if (l !== null) ad = l;
+ if (l !== null) id = l;
else {
var u = c.return;
- u === null ? ad = null : (ad = u, lf(u));
+ u === null ? id = null : (id = u, cf(u));
}
break b;
}
}
- sd = 0, cd = null, cf(e, t, o, 5);
+ od = 0, sd = null, sf(e, t, o, 5);
break;
case 6:
- sd = 0, cd = null, cf(e, t, o, 6);
+ od = 0, sd = null, sf(e, t, o, 6);
break;
case 8:
- Jd(), pd = 6;
+ qd(), fd = 6;
break a;
default: throw Error(i(462));
}
}
- af();
+ rf();
break;
} catch (t) {
- Xd(e, t);
+ Yd(e, t);
}
while (1);
- return ga = ha = null, P.H = r, P.A = a, rd = n, ad === null ? (id = null, od = 0, wi(), pd) : 0;
+ return ga = ha = null, I.H = r, I.A = a, nd = n, id === null ? (rd = null, ad = 0, Si(), fd) : 0;
}
- function af() {
- for (; ad !== null && !Be();) of(ad);
+ function rf() {
+ for (; id !== null && !Re();) af(id);
}
- function of(e) {
- var t = pl(e.alternate, e, fd);
- e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;
+ function af(e) {
+ var t = fl(e.alternate, e, dd);
+ e.memoizedProps = e.pendingProps, t === null ? cf(e) : id = t;
}
- function sf(e) {
+ function of(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = qc(n, t, t.pendingProps, t.type, void 0, od);
+ t = Kc(n, t, t.pendingProps, t.type, void 0, ad);
break;
case 11:
- t = qc(n, t, t.pendingProps, t.type.render, t.ref, od);
+ t = Kc(n, t, t.pendingProps, t.type.render, t.ref, ad);
break;
case 5:
- as(t);
+ is(t);
var r = t;
- r === ra && (z ? (la(r), r.tag === 5 && r.stateNode != null && (ia = r.stateNode)) : (la(r), z = !0));
- default: Sl(n, t), t = ad = Fi(t, fd), t = pl(n, t, fd);
+ r === ta && (ra ? (la(r), r.tag === 5 && r.stateNode != null && (na = r.stateNode)) : (la(r), ra = !0));
+ default: xl(n, t), t = id = Ni(t, dd), t = fl(n, t, dd);
}
- e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;
+ e.memoizedProps = e.pendingProps, t === null ? cf(e) : id = t;
}
- function cf(e, t, n, r) {
- ga = ha = null, as(t), io = null, ao = 0;
+ function sf(e, t, n, r) {
+ ga = ha = null, is(t), ro = null, io = 0;
var i = t.return;
try {
- if (Mc(e, i, t, n, od)) {
- pd = 1, Dc(e, Hi(n, e.current)), ad = null;
+ if (jc(e, i, t, n, ad)) {
+ fd = 1, Ec(e, Bi(n, e.current)), id = null;
return;
}
} catch (t) {
- if (i !== null) throw ad = i, t;
- pd = 1, Dc(e, Hi(n, e.current)), ad = null;
+ if (i !== null) throw id = i, t;
+ fd = 1, Ec(e, Bi(n, e.current)), id = null;
return;
}
- t.flags & 32768 ? (z || r === 1 ? e = !0 : ud || od & 536870912 ? e = !1 : (ld = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Ao.current, r !== null && r.tag === 13 && (r.flags |= 16384))), uf(t, e)) : lf(t);
+ t.flags & 32768 ? (ra || r === 1 ? e = !0 : ld || ad & 536870912 ? e = !1 : (cd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = ko.current, r !== null && r.tag === 13 && (r.flags |= 16384))), lf(t, e)) : cf(t);
}
- function lf(e) {
+ function cf(e) {
var t = e;
do {
if (t.flags & 32768) {
- uf(t, ld);
+ lf(t, cd);
return;
}
e = t.return;
- var n = bl(t.alternate, t, fd);
+ var n = yl(t.alternate, t, dd);
if (n !== null) {
- ad = n;
+ id = n;
return;
}
if (t = t.sibling, t !== null) {
- ad = t;
+ id = t;
return;
}
- ad = t = e;
+ id = t = e;
} while (t !== null);
- pd === 0 && (pd = 5);
+ fd === 0 && (fd = 5);
}
- function uf(e, t) {
+ function lf(e, t) {
do {
- var n = xl(e.alternate, e);
+ var n = bl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, ad = n;
+ n.flags &= 32767, id = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- ad = e;
+ id = e;
return;
}
- ad = e = n;
+ id = e = n;
} while (e !== null);
- pd = 6, ad = null;
+ fd = 6, id = null;
}
- function df(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function uf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- yf();
- while (Dd !== 0);
- if (rd & 6) throw Error(i(327));
+ vf();
+ while (Ed !== 0);
+ if (nd & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === id && (ad = id = null, od = 0), kd = t, Od = e, Ad = n, Md = a, Nd = r, ff(e, t, n, s, c, l, f);
+ e === rd && (id = rd = null, ad = 0), Od = t, Dd = e, kd = n, jd = a, Md = r, df(e, t, n, s, c, l, f);
}
}
- function ff(e, t, n, r, i, a, o) {
+ function df(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (jd = s, s |= Ci, ht(e, n, s, r, i, a), Fd = null, (n & 335544064) === n ? (Id = Fa(e), r = 10262) : (Id = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, kf(Ke, function() {
- return bf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Vl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = P.T, P.T = null, i = he.p, he.p = 2, a = rd, rd |= 4;
+ if (Ad = s, s |= xi, pt(e, n, s, r, i, a), Pd = null, (n & 335544064) === n ? (Fd = Pa(e), r = 10262) : (Fd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Df(We, function() {
+ return yf(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Bl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = I.T, I.T = null, i = pe.p, pe.p = 2, a = nd, nd |= 4;
try {
- gu(e, t, n);
+ hu(e, t, n);
} finally {
- rd = a, he.p = i, P.T = r;
+ nd = a, pe.p = i, I.T = r;
}
}
- Dd = 1, Vl ? Pd = Wp(o, e.containerInfo, Id, hf, gf, mf, _f, bf, pf, null, null) : (hf(), gf(), _f());
+ Ed = 1, Bl ? Nd = Hp(o, e.containerInfo, Fd, mf, hf, pf, gf, yf, ff, null, null) : (mf(), hf(), gf());
}
- function pf(e) {
- if (Dd !== 0) {
- var t = Od.onRecoverableError;
+ function ff(e) {
+ if (Ed !== 0) {
+ var t = Dd.onRecoverableError;
t(e, { componentStack: null });
}
}
- function mf() {
- Dd === 3 && (Dd = 0, Lu(kd, Od), Dd = 4);
+ function pf() {
+ Ed === 3 && (Ed = 0, Iu(Od, Dd), Ed = 4);
}
- function hf() {
- if (Dd === 1) {
- Dd = 0;
- var e = Od, t = kd, n = Ad, r = !!(t.flags & 13878);
+ function mf() {
+ if (Ed === 1) {
+ Ed = 0;
+ var e = Dd, t = Od, n = kd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = P.T, P.T = null;
- var i = he.p;
- he.p = 2;
- var a = rd;
- rd |= 4;
+ r = I.T, I.T = null;
+ var i = pe.p;
+ pe.p = 2;
+ var a = nd;
+ nd |= 4;
try {
- pu = mu = !1, Nu(t, e, n), n = bp;
- var o = Kr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Gr(s.ownerDocument.documentElement, s)) {
- if (c !== null && qr(s)) {
+ fu = pu = !1, Mu(t, e, n), n = vp;
+ var o = Wr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
+ if (o !== s && s && s.ownerDocument && Ur(s.ownerDocument.documentElement, s)) {
+ if (c !== null && Gr(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);
else {
@@ -15960,7 +16023,7 @@ var Df = /* @__PURE__ */ g(((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 _ = Wr(s, h), v = Wr(s, g);
+ var _ = Hr(s, h), v = Hr(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));
@@ -15978,122 +16041,122 @@ var Df = /* @__PURE__ */ g(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- yh = !!yp, bp = yp = null;
+ xh = !!_p, vp = _p = null;
} finally {
- rd = a, he.p = i, P.T = r;
+ nd = a, pe.p = i, I.T = r;
}
}
- e.current = t, Dd = 2;
+ e.current = t, Ed = 2;
}
}
- function gf() {
- if (Dd === 2) {
- Dd = 0;
- var e = Od, t = kd, n = !!(t.flags & 8772);
+ function hf() {
+ if (Ed === 2) {
+ Ed = 0;
+ var e = Dd, t = Od, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = P.T, P.T = null;
- var r = he.p;
- he.p = 2;
- var i = rd;
- rd |= 4;
+ n = I.T, I.T = null;
+ var r = pe.p;
+ pe.p = 2;
+ var i = nd;
+ nd |= 4;
try {
- vu(e, t.alternate, t);
+ _u(e, t.alternate, t);
} finally {
- rd = i, he.p = r, P.T = n;
+ nd = i, pe.p = r, I.T = n;
}
}
- Dd = 3;
+ Ed = 3;
}
}
- function _f() {
- if (Dd === 4 || Dd === 3) {
- Dd = 0;
- var e = Pd;
- Pd = null, Ve();
- var t = Od, n = kd, r = Ad, i = Nd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Dd = 5 : (Dd = 0, kd = Od = null, vf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Ed = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
- Qe.onCommitFiberRoot(Ze, n, void 0, (n.current.flags & 128) == 128);
+ function gf() {
+ if (Ed === 4 || Ed === 3) {
+ Ed = 0;
+ var e = Nd;
+ Nd = null, ze();
+ var t = Dd, n = Od, r = kd, i = Md, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Ed = 5 : (Ed = 0, Od = Dd = null, _f(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Td = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
+ Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = P.T, a = he.p, he.p = 2, P.T = null;
+ n = I.T, a = pe.p, pe.p = 2, I.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 {
- P.T = n, he.p = a;
+ I.T = n, pe.p = a;
}
}
- if (i = Fd, o = Id, Id = null, i !== null && (Fd = 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);
- Ad & 3 && yf(), If(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Rd ? Ld++ : (Ld = 0, Rd = t) : (Ld = 0, Rd = null), Lf(0, !1);
+ if (i = Pd, o = Fd, Fd = null, i !== null && (Pd = 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);
+ kd & 3 && vf(), Pf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Ld ? Id++ : (Id = 0, Ld = t) : (Id = 0, Ld = null), Ff(0, !1);
}
}
- function vf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ma(t)));
+ function _f(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ja(t)));
}
- function yf() {
- return Pd !== null && (Pd.skipTransition(), Pd = null), hf(), gf(), _f(), bf();
+ function vf() {
+ return Nd !== null && (Nd.skipTransition(), Nd = null), mf(), hf(), gf(), yf();
}
- function bf() {
- if (Dd !== 5) return !1;
- var e = Od, t = jd;
- jd = 0;
- var n = bt(Ad), r = P.T, a = he.p;
+ function yf() {
+ if (Ed !== 5) return !1;
+ var e = Dd, t = Ad;
+ Ad = 0;
+ var n = vt(kd), r = I.T, a = pe.p;
try {
- he.p = 32 > n ? 32 : n, P.T = null, n = Md, Md = null;
- var o = Od, s = Ad;
- if (Dd = 0, kd = Od = null, Ad = 0, rd & 6) throw Error(i(331));
- var c = rd;
- if (rd |= 4, Qu(o.current), Wu(o, o.current, s, n), rd = c, Lf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
- Qe.onPostCommitFiberRoot(Ze, o);
+ pe.p = 32 > n ? 32 : n, I.T = null, n = jd, jd = null;
+ var o = Dd, s = kd;
+ if (Ed = 0, Od = Dd = null, kd = 0, nd & 6) throw Error(i(331));
+ var c = nd;
+ if (nd |= 4, Zu(o.current), Uu(o, o.current, s, n), nd = c, Ff(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
+ Xe.onPostCommitFiberRoot(Ye, o);
} catch {}
return !0;
} finally {
- he.p = a, P.T = r, vf(e, t);
+ pe.p = a, I.T = r, _f(e, t);
}
}
- function xf(e, t, n) {
- t = Hi(n, t), t = kc(e.stateNode, t, 2), e = _o(e, t, 2), e !== null && (mt(e, 2), If(e));
+ function bf(e, t, n) {
+ t = Bi(n, t), t = Oc(e.stateNode, t, 2), e = go(e, t, 2), e !== null && (ft(e, 2), Pf(e));
}
- function Sf(e, t, n) {
- if (e.tag === 3) xf(e, e, n);
+ function xf(e, t, n) {
+ if (e.tag === 3) bf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- xf(t, e, n);
+ bf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Ed === null || !Ed.has(r))) {
- e = Hi(n, e), n = Ac(2), r = _o(t, n, 2), r !== null && (jc(n, r, t, e), mt(r, 2), If(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Td === null || !Td.has(r))) {
+ e = Bi(n, e), n = kc(2), r = go(t, n, 2), r !== null && (Ac(n, r, t, e), ft(r, 2), Pf(r));
break;
}
}
t = t.return;
}
}
- function Cf(e, t, n) {
+ function Sf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new nd();
+ r = e.pingCache = new td();
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) || (dd = !0, i.add(n), e = wf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ud = !0, i.add(n), e = Cf.bind(null, e, t, n), t.then(e, e));
}
- function wf(e, t, n) {
+ function Cf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, id === e && (od & n) === n && (pd === 4 || pd === 3 && (od & 62914560) === od && 300 > He() - Sd ? rd & 2 ? gd |= n : Yd(e, 0) : gd |= n, vd === od && (vd = 0)), If(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, rd === e && (ad & n) === n && (fd === 4 || fd === 3 && (ad & 62914560) === ad && 300 > Be() - xd ? nd & 2 ? hd |= n : Jd(e, 0) : hd |= n, _d === ad && (_d = 0)), Pf(e);
}
- function Tf(e, t) {
- t === 0 && (t = ft()), e = Di(e, t), e !== null && (mt(e, t), If(e));
+ function wf(e, t) {
+ t === 0 && (t = ut()), e = Ti(e, t), e !== null && (ft(e, t), Pf(e));
}
- function Ef(e) {
+ function Tf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), Tf(e, n);
+ t !== null && (n = t.retryLane), wf(e, n);
}
- function Df(e, t) {
+ function Ef(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -16109,122 +16172,122 @@ var Df = /* @__PURE__ */ g(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), Tf(e, n);
+ r !== null && r.delete(t), wf(e, n);
}
- function kf(e, t) {
- return Re(e, t);
+ function Df(e, t) {
+ return Ie(e, t);
}
- var Af = null, jf = null, Mf = !1, Nf = !1, Pf = !1, Ff = 0;
- function If(e) {
- e !== jf && e.next === null && (jf === null ? Af = jf = e : jf = jf.next = e), Nf = !0, Mf || (Mf = !0, Uf());
+ var Of = null, kf = null, Af = !1, jf = !1, Mf = !1, Nf = 0;
+ function Pf(e) {
+ e !== kf && e.next === null && (kf === null ? Of = kf = e : kf = kf.next = e), jf = !0, Af || (Af = !0, Hf());
}
- function Lf(e, t) {
- if (!Pf && Nf) {
- Pf = !0;
+ function Ff(e, t) {
+ if (!Mf && jf) {
+ Mf = !0;
do
- for (var n = !1, r = Af; r !== null;) {
+ for (var n = !1, r = Of; 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 - et(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - Qe(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, Hf(r, a));
- } else a = od, a = ct(r, r === id ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, Hf(r, a));
+ a !== 0 && (n = !0, Vf(r, a));
+ } else a = ad, a = ot(r, r === rd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Vf(r, a));
}
r = r.next;
}
while (n);
- Pf = !1;
+ Mf = !1;
}
}
- function Rf() {
- zf();
+ function If() {
+ Rf();
}
- function zf() {
- Nf = Mf = !1;
+ function Rf() {
+ jf = Af = !1;
var e = 0;
- Ff !== 0 && Dp() && (e = Ff);
- for (var t = He(), n = null, r = Af; r !== null;) {
- var i = r.next, a = Bf(r, t);
- a === 0 ? (r.next = null, n === null ? Af = i : n.next = i, i === null && (jf = n)) : (n = r, (e !== 0 || a & 3) && (Nf = !0)), r = i;
+ Nf !== 0 && Tp() && (e = Nf);
+ for (var t = Be(), n = null, r = Of; r !== null;) {
+ var i = r.next, a = zf(r, t);
+ a === 0 ? (r.next = null, n === null ? Of = i : n.next = i, i === null && (kf = n)) : (n = r, (e !== 0 || a & 3) && (jf = !0)), r = i;
}
- Dd !== 0 && Dd !== 5 || Lf(e, !1), Ff !== 0 && (Ff = 0);
+ Ed !== 0 && Ed !== 5 || Ff(e, !1), Nf !== 0 && (Nf = 0);
}
- function Bf(e, t) {
+ function zf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- var o = 31 - et(a), s = 1 << o, c = i[o];
- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = dt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
+ 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;
}
- if (t = id, n = od, n = ct(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || lt(e, n)) {
+ if (t = rd, n = ad, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (od === 2 || od === 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 = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && ze(r), bt(n)) {
+ switch (r !== null && Le(r), vt(n)) {
case 2:
case 8:
- n = Ge;
+ n = Ue;
break;
case 32:
- n = Ke;
+ n = We;
break;
case 268435456:
- n = Je;
+ n = Ke;
break;
- default: n = Ke;
+ default: n = We;
}
- return r = Vf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Bf.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Vf(e, t) {
- if (Dd !== 0 && Dd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Bf(e, t) {
+ if (Ed !== 0 && Ed !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (yf() && e.callbackNode !== n) return null;
- var r = od;
- return r = ct(e, e === id ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Ud(e, r, t), Bf(e, He()), e.callbackNode != null && e.callbackNode === n ? Vf.bind(null, e) : null);
+ if (vf() && e.callbackNode !== n) return null;
+ var r = ad;
+ return r = ot(e, e === rd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Hd(e, r, t), zf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Bf.bind(null, e) : null);
}
- function Hf(e, t) {
- if (yf()) return null;
- Ud(e, t, !0);
+ function Vf(e, t) {
+ if (vf()) return null;
+ Hd(e, t, !0);
}
- function Uf() {
- Mp(function() {
- rd & 6 ? Re(We, Rf) : zf();
+ function Hf() {
+ Ap(function() {
+ nd & 6 ? Ie(He, If) : Rf();
});
}
- function Wf() {
- if (Ff === 0) {
- var e = Ra;
- e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), Ff = e;
+ function Uf() {
+ if (Nf === 0) {
+ var e = La;
+ e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Nf = e;
}
- return Ff;
+ return Nf;
}
- function Gf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : _n(e);
+ function Wf(e) {
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : hn(e);
}
- function Kf(e, t, n, r, i) {
+ function Gf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Gf((i[Tt] || null).action), o = r.submitter;
- o && (t = (t = o[Tt] || null) ? Gf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new zn("action", "action", null, r, i);
+ var a = Wf((i[Ct] || null).action), o = r.submitter;
+ o && (t = (t = o[Ct] || null) ? Wf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new Ln("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Ff !== 0) {
+ if (Nf !== 0) {
var e = new FormData(i, o);
- tc(n, {
+ ec(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), tc(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), ec(n, {
pending: !0,
data: e,
method: i.method,
@@ -16236,18 +16299,18 @@ var Df = /* @__PURE__ */ g(((e) => {
});
}
}
- for (var qf = 0; qf < mi.length; qf++) {
- var Jf = mi[qf];
- hi(Jf.toLowerCase(), "on" + (Jf[0].toUpperCase() + Jf.slice(1)));
+ for (var Kf = 0; Kf < fi.length; Kf++) {
+ var qf = fi[Kf];
+ pi(qf.toLowerCase(), "on" + (qf[0].toUpperCase() + qf.slice(1)));
}
- hi(oi, "onAnimationEnd"), hi(si, "onAnimationIteration"), hi(ci, "onAnimationStart"), hi("dblclick", "onDoubleClick"), hi("focusin", "onFocus"), hi("focusout", "onBlur"), hi(li, "onTransitionRun"), hi(ui, "onTransitionStart"), hi(di, "onTransitionCancel"), hi(fi, "onTransitionEnd"), L("onMouseEnter", ["mouseout", "mouseover"]), L("onMouseLeave", ["mouseout", "mouseover"]), L("onPointerEnter", ["pointerout", "pointerover"]), L("onPointerLeave", ["pointerout", "pointerover"]), Bt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Bt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Bt("onBeforeInput", [
+ pi(ri, "onAnimationEnd"), pi(ii, "onAnimationIteration"), pi(ai, "onAnimationStart"), pi("dblclick", "onDoubleClick"), pi("focusin", "onFocus"), pi("focusout", "onBlur"), pi(si, "onTransitionRun"), pi(ci, "onTransitionStart"), pi(li, "onTransitionCancel"), pi(ui, "onTransitionEnd"), Bt("onMouseEnter", ["mouseout", "mouseover"]), Bt("onMouseLeave", ["mouseout", "mouseover"]), Bt("onPointerEnter", ["pointerout", "pointerover"]), Bt("onPointerLeave", ["pointerout", "pointerover"]), zt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), zt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), zt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Bt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Bt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Bt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Yf = "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(" "), Xf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yf));
- function Zf(e, t) {
+ ]), zt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ var Jf = "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(" "), Yf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jf));
+ function Xf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -16261,7 +16324,7 @@ var Df = /* @__PURE__ */ g(((e) => {
try {
a(i);
} catch (e) {
- bi(e);
+ vi(e);
}
i.currentTarget = null, a = c;
}
@@ -16271,49 +16334,49 @@ var Df = /* @__PURE__ */ g(((e) => {
try {
a(i);
} catch (e) {
- bi(e);
+ vi(e);
}
i.currentTarget = null, a = c;
}
}
}
}
- function Qf(e, t) {
- var n = t[Dt];
- n === void 0 && (n = t[Dt] = /* @__PURE__ */ new Set());
+ function U(e, t) {
+ var n = t[Tt];
+ n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || (np(t, e, 2, !1), n.add(r));
+ n.has(r) || (ep(t, e, 2, !1), n.add(r));
}
- function $f(e, t, n) {
+ function Zf(e, t, n) {
var r = 0;
- t && (r |= 4), np(n, e, r, t);
+ t && (r |= 4), ep(n, e, r, t);
}
- var ep = "_reactListening" + Math.random().toString(36).slice(2);
- function tp(e) {
- if (!e[ep]) {
- e[ep] = !0, zt.forEach(function(t) {
- t !== "selectionchange" && (Xf.has(t) || $f(t, !1, e), $f(t, !0, e));
+ var Qf = "_reactListening" + Math.random().toString(36).slice(2);
+ function $f(e) {
+ if (!e[Qf]) {
+ e[Qf] = !0, Rt.forEach(function(t) {
+ t !== "selectionchange" && (Yf.has(t) || Zf(t, !1, e), Zf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[ep] || (t[ep] = !0, $f("selectionchange", !1, t));
+ t === null || t[Qf] || (t[Qf] = !0, Zf("selectionchange", !1, t));
}
}
- function np(e, t, n, r) {
+ function ep(e, t, n, r) {
switch (Eh(t)) {
case 2:
- var i = bh;
+ var i = Y;
break;
case 8:
- i = xh;
+ i = Sh;
break;
- default: i = Sh;
+ default: i = Ch;
}
- n = i.bind(null, t, n, e), i = void 0, !On || 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, !En || 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 });
}
- function rp(e, t, n, r, i) {
+ function tp(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -16327,7 +16390,7 @@ var Df = /* @__PURE__ */ g(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = Nt(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;
@@ -16337,27 +16400,27 @@ var Df = /* @__PURE__ */ g(((e) => {
}
r = r.return;
}
- Tn(function() {
- var r = a, i = bn(n), s = [];
+ Cn(function() {
+ var r = a, i = vn(n), s = [];
a: {
- var c = pi.get(e);
+ var c = di.get(e);
if (c !== void 0) {
- var l = zn, u = e;
+ var l = Ln, u = e;
switch (e) {
- case "keypress": if (Pn(n) === 0) break a;
+ case "keypress": if (Mn(n) === 0) break a;
case "keydown":
case "keyup":
- l = rr;
+ l = tr;
break;
case "focusin":
- u = "focus", l = Jn;
+ u = "focus", l = Kn;
break;
case "focusout":
- u = "blur", l = Jn;
+ u = "blur", l = Kn;
break;
case "beforeblur":
case "afterblur":
- l = Jn;
+ l = Kn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -16368,7 +16431,7 @@ var Df = /* @__PURE__ */ g(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Kn;
+ l = Wn;
break;
case "drag":
case "dragend":
@@ -16378,33 +16441,33 @@ var Df = /* @__PURE__ */ g(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = qn;
+ l = Gn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = or;
+ l = ir;
break;
- case oi:
- case si:
- case ci:
- l = Yn;
+ case ri:
+ case ii:
+ case ai:
+ l = qn;
break;
- case fi:
- l = sr;
+ case ui:
+ l = ar;
break;
case "scroll":
case "scrollend":
- l = Vn;
+ l = zn;
break;
case "wheel":
- l = cr;
+ l = or;
break;
case "copy":
case "cut":
case "paste":
- l = Xn;
+ l = Jn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -16414,19 +16477,19 @@ var Df = /* @__PURE__ */ g(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = ir;
+ l = nr;
break;
case "submit":
- l = ar;
+ l = rr;
break;
case "toggle":
- case "beforetoggle": l = lr;
+ case "beforetoggle": l = sr;
}
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 = En(m, p), g != null && d.push(ip(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = wn(m, p), g != null && d.push(np(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -16437,45 +16500,45 @@ var Df = /* @__PURE__ */ g(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (Nt(u) || u[Et])) 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 ? Nt(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 = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Ft(c), h = l == null ? u : Ft(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Nt(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, op) : null, c !== null && sp(s, u, c, d, !1), l !== null && f !== null && sp(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== _n && (u = n.relatedTarget || n.fromElement) && (Mt(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 ? 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 = Wn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = nr, 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, ip) : null, c !== null && ap(s, u, c, d, !1), l !== null && f !== null && ap(s, f, l, d, !0)));
}
a: {
- if (c = r ? Ft(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Or;
- else if (Cr(c)) {
- if (kr) _ = Rr;
+ if (c = r ? Pt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Dr;
+ else if (xr(c)) {
+ if (Or) _ = Ir;
else {
- _ = Ir;
- var v = Fr;
+ _ = B;
+ var v = Pr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && mn(r.elementType) && (_ = Or) : _ = Lr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && fn(r.elementType) && (_ = Dr) : _ = Fr;
if (_ &&= _(e, r)) {
- wr(s, _, n, i);
+ Sr(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Ft(r) : window, e) {
+ switch (v = r ? Pt(r) : window, e) {
case "focusin":
- (Cr(v) || v.contentEditable === "true") && (Yr = v, Xr = r, Zr = null);
+ (xr(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
break;
case "focusout":
- Zr = Xr = Yr = null;
+ Yr = Jr = qr = null;
break;
case "mousedown":
- $r = !0;
+ Xr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- $r = !1, ei(s, n, i);
+ Xr = !1, Zr(s, n, i);
break;
- case "selectionchange": if (Jr) break;
+ case "selectionchange": if (Kr) break;
case "keydown":
- case "keyup": ei(s, n, i);
+ case "keyup": Zr(s, n, i);
}
var y;
- if (dr) b: {
+ if (lr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -16489,83 +16552,83 @@ var Df = /* @__PURE__ */ g(((e) => {
}
b = void 0;
}
- else yr ? _r(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (mr && n.locale !== "ko" && (yr || b !== "onCompositionStart" ? b === "onCompositionEnd" && yr && (y = Nn()) : (An = i, jn = "value" in An ? An.value : An.textContent, yr = !0)), v = ap(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
+ else _r ? hr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (fr && n.locale !== "ko" && (_r || b !== "onCompositionStart" ? b === "onCompositionEnd" && _r && (y = jn()) : (On = i, kn = "value" in On ? On.value : On.textContent, _r = !0)), v = rp(r, b), 0 < v.length && (b = new Yn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = vr(n), y !== null && (b.data = y)))), (y = pr ? br(e, n) : xr(e, n)) && (b = ap(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? vr(e, n) : yr(e, n)) && (b = rp(r, "onBeforeInput"), 0 < b.length && (v = new Yn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Kf(s, e, r, n, i);
+ }), v.data = y)), Gf(s, e, r, n, i);
}
- Zf(s, t);
+ Xf(s, t);
});
}
- function ip(e, t, n) {
+ function np(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function ap(e, t) {
+ function rp(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 = En(e, n), i != null && r.unshift(ip(e, i, a)), i = En(e, t), i != null && r.push(ip(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = wn(e, n), i != null && r.unshift(np(e, i, a)), i = wn(e, t), i != null && r.push(np(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function op(e) {
+ function ip(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function sp(e, t, n, r, i) {
+ function ap(e, t, n, r, i) {
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 = En(n, a), l != null && o.unshift(ip(n, l, c))) : i || (l = En(n, a), l != null && o.push(ip(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = wn(n, a), l != null && o.unshift(np(n, l, c))) : i || (l = wn(n, a), l != null && o.push(np(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var cp = /\r\n?/g, lp = /\u0000|\uFFFD/g;
- function up(e) {
- return (typeof e == "string" ? e : "" + e).replace(cp, "\n").replace(lp, "");
+ var op = /\r\n?/g, sp = /\u0000|\uFFFD/g;
+ function cp(e) {
+ return (typeof e == "string" ? e : "" + e).replace(op, "\n").replace(sp, "");
}
- function dp(e, t) {
- return t = up(t), up(e) === t;
+ function lp(e, t) {
+ return t = cp(t), cp(e) === t;
}
- function fp(e, t, n, r, a, o) {
+ function up(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && un(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || cn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && cn(e, "" + r);
else return;
break;
case "className":
- Jt(e, "class", r);
+ R(e, "class", r);
break;
case "tabIndex":
- Jt(e, "tabindex", r);
+ R(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Jt(e, n, r);
+ R(e, n, r);
break;
case "style":
- pn(e, r, o);
+ dn(e, r, o);
return;
case "data": if (t !== "object") {
- Jt(e, "data", r);
+ R(e, "data", r);
break;
}
case "src":
@@ -16578,7 +16641,7 @@ var Df = /* @__PURE__ */ g(((e) => {
e.removeAttribute(n);
break;
}
- r = _n(r), e.setAttribute(n, r);
+ r = hn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -16586,20 +16649,20 @@ var Df = /* @__PURE__ */ g(((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" && fp(e, t, "name", a.name, a, null), fp(e, t, "formEncType", a.formEncType, a, null), fp(e, t, "formMethod", a.formMethod, a, null), fp(e, t, "formTarget", a.formTarget, a, null)) : (fp(e, t, "encType", a.encType, a, null), fp(e, t, "method", a.method, a, null), fp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && up(e, t, "name", a.name, a, null), up(e, t, "formEncType", a.formEncType, a, null), up(e, t, "formMethod", a.formMethod, a, null), up(e, t, "formTarget", a.formTarget, a, null)) : (up(e, t, "encType", a.encType, a, null), up(e, t, "method", a.method, a, null), up(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
- r = _n(r), e.setAttribute(n, r);
+ r = hn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = vn);
+ r != null && (e.onclick = gn);
return;
case "onScroll":
- r != null && Qf("scroll", e);
+ r != null && U("scroll", e);
return;
case "onScrollEnd":
- r != null && Qf("scrollend", e);
+ r != null && U("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -16628,7 +16691,7 @@ var Df = /* @__PURE__ */ g(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = _n(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = hn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -16681,49 +16744,49 @@ var Df = /* @__PURE__ */ g(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Qf("beforetoggle", e), Qf("toggle", e), qt(e, "popover", r);
+ U("beforetoggle", e), U("toggle", e), qt(e, "popover", r);
break;
case "xlinkActuate":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Jt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ Jt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ Jt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ Jt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
qt(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 = hn.get(n) || n, qt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = pn.get(n) || n, qt(e, n, r);
else return;
}
Gt = !0;
}
- function pp(e, t, n, r, a, o) {
+ function dp(e, t, n, r, a, o) {
switch (n) {
case "style":
- pn(e, r, o);
+ dn(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -16735,18 +16798,18 @@ var Df = /* @__PURE__ */ g(((e) => {
}
break;
case "children":
- if (typeof r == "string") un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") un(e, "" + r);
+ if (typeof r == "string") cn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") cn(e, "" + r);
else return;
break;
case "onScroll":
- r != null && Qf("scroll", e);
+ r != null && U("scroll", e);
return;
case "onScrollEnd":
- r != null && Qf("scrollend", e);
+ r != null && U("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = vn);
+ r != null && (e.onclick = gn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -16755,8 +16818,8 @@ var Df = /* @__PURE__ */ g(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!I.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[Tt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!L.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")) {
typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
break a;
}
@@ -16766,7 +16829,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
Gt = !0;
}
- function mp(e, t, n) {
+ function fp(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -16777,7 +16840,7 @@ var Df = /* @__PURE__ */ g(((e) => {
case "p":
case "li": break;
case "img":
- Qf("error", e), Qf("load", e);
+ U("error", e), U("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -16790,13 +16853,13 @@ var Df = /* @__PURE__ */ g(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: fp(e, t, o, s, n, null);
+ default: up(e, t, o, s, n, null);
}
}
- a && fp(e, t, "srcSet", n.srcSet, n, null), r && fp(e, t, "src", n.src, n, null);
+ a && up(e, t, "srcSet", n.srcSet, n, null), r && up(e, t, "src", n.src, n, null);
return;
case "input":
- Qf("invalid", e);
+ U("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -16823,13 +16886,13 @@ var Df = /* @__PURE__ */ g(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: fp(e, t, r, d, n, null);
+ default: up(e, t, r, d, n, null);
}
}
- an(e, o, c, l, u, s, a, !1);
+ nn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Qf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in U("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -16837,12 +16900,12 @@ var Df = /* @__PURE__ */ g(((e) => {
s = c;
break;
case "multiple": r = c;
- default: fp(e, t, a, c, n, null);
+ default: up(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && sn(e, !!r, n, !0) : sn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && an(e, !!r, n, !0) : an(e, !!r, t, !1);
return;
case "textarea":
- for (s in Qf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in U("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -16855,38 +16918,38 @@ var Df = /* @__PURE__ */ g(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: fp(e, t, s, c, n, null);
+ default: up(e, t, s, c, n, null);
}
- ln(e, r, a, o);
+ sn(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: fp(e, t, l, r, n, null);
+ default: up(e, t, l, r, n, null);
}
return;
case "dialog":
- Qf("beforetoggle", e), Qf("toggle", e), Qf("cancel", e), Qf("close", e);
+ U("beforetoggle", e), U("toggle", e), U("cancel", e), U("close", e);
break;
case "iframe":
case "object":
- Qf("load", e);
+ U("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Yf.length; r++) Qf(Yf[r], e);
+ for (r = 0; r < Jf.length; r++) U(Jf[r], e);
break;
case "image":
- Qf("error", e), Qf("load", e);
+ U("error", e), U("load", e);
break;
case "details":
- Qf("toggle", e);
+ U("toggle", e);
break;
case "embed":
case "source":
- case "link": Qf("error", e), Qf("load", e);
+ case "link": U("error", e), U("load", e);
case "area":
case "base":
case "br":
@@ -16901,18 +16964,18 @@ var Df = /* @__PURE__ */ g(((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: fp(e, t, u, r, n, null);
+ default: up(e, t, u, r, n, null);
}
return;
- default: if (mn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && pp(e, t, d, r, n, void 0));
+ default: if (fn(t)) {
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && dp(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && fp(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && up(e, t, c, r, n, null));
}
- var hp = {};
- function gp(e, t, n, r) {
+ var pp = {};
+ function mp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -16930,7 +16993,7 @@ var Df = /* @__PURE__ */ g(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || fp(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || up(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -16958,16 +17021,16 @@ var Df = /* @__PURE__ */ g(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && fp(e, t, p, m, r, f);
+ default: m !== f && up(e, t, p, m, r, f);
}
}
- rn(e, s, c, l, u, d, o, a);
+ tn(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) || fp(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || up(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":
@@ -16977,15 +17040,15 @@ var Df = /* @__PURE__ */ g(((e) => {
o !== l && (Gt = !0), c = o;
break;
case "multiple": o !== l && (Gt = !0), s = o;
- default: o !== l && fp(e, t, a, o, r, l);
+ default: o !== l && up(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? sn(e, !!n, n ? [] : "", !1) : sn(e, !!n, t, !0)) : sn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? an(e, !!n, n ? [] : "", !1) : an(e, !!n, t, !0)) : an(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: fp(e, t, c, null, r, a);
+ default: up(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":
@@ -16998,22 +17061,22 @@ var Df = /* @__PURE__ */ g(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && fp(e, t, s, a, r, o);
+ default: a !== o && up(e, t, s, a, r, o);
}
- cn(e, p, m);
+ on(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: fp(e, t, h, null, r, p);
+ default: up(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 && (Gt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: fp(e, t, l, p, r, m);
+ default: up(e, t, l, p, r, m);
}
return;
case "img":
@@ -17031,25 +17094,25 @@ var Df = /* @__PURE__ */ g(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && fp(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && up(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: fp(e, t, u, p, r, m);
+ default: up(e, t, u, p, r, m);
}
return;
- default: if (mn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && pp(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 || pp(e, t, d, p, r, m);
+ default: if (fn(t)) {
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && dp(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 || dp(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && fp(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 || fp(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && up(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 || up(e, t, f, p, r, m);
}
- function _p(e) {
+ function hp(e) {
switch (e) {
case "css":
case "script":
@@ -17061,16 +17124,16 @@ var Df = /* @__PURE__ */ g(((e) => {
default: return !1;
}
}
- function vp() {
+ function gp() {
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 && _p(o)) {
+ if (a && s && hp(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 && _p(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && hp(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;
}
@@ -17079,18 +17142,18 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var yp = null, bp = null;
- function xp(e) {
+ var _p = null, vp = null;
+ function yp(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function Sp(e) {
+ function bp(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 Cp(e, t) {
+ function xp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -17098,29 +17161,29 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function wp(e, t, n, r) {
- return n = xp(n).createElement(e), n[wt] = r, n[Tt] = t, mp(n, e, t), Lt(n), n;
+ function Sp(e, t, n, r) {
+ return n = yp(n).createElement(e), n[St] = r, n[Ct] = t, fp(n, e, t), It(n), n;
}
- function Tp(e, t) {
+ function Cp(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 Ep = null;
- function Dp() {
+ var wp = null;
+ function Tp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== Ep && (Ep = e, !0) : (Ep = null, !1);
+ return e && e.type === "popstate" ? e !== wp && (wp = e, !0) : (wp = null, !1);
}
- var Op = typeof setTimeout == "function" ? setTimeout : void 0, kp = typeof clearTimeout == "function" ? clearTimeout : void 0, Ap = typeof Promise == "function" ? Promise : void 0, jp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Op, Mp = typeof queueMicrotask == "function" ? queueMicrotask : Ap === void 0 ? Op : function(e) {
- return Ap.resolve(null).then(e).catch(Np);
+ var Ep = typeof setTimeout == "function" ? setTimeout : void 0, Dp = typeof clearTimeout == "function" ? clearTimeout : void 0, Op = typeof Promise == "function" ? Promise : void 0, kp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Ep, Ap = typeof queueMicrotask == "function" ? queueMicrotask : Op === void 0 ? Ep : function(e) {
+ return Op.resolve(null).then(e).catch(jp);
};
- function Np(e) {
+ function jp(e) {
setTimeout(function() {
throw e;
});
}
- function Pp(e) {
+ function Mp(e) {
return e === "head";
}
- function Fp(e, t) {
+ function Np(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
@@ -17137,7 +17200,7 @@ var Df = /* @__PURE__ */ g(((e) => {
n = e.ownerDocument.head, Em(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[F] || 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" && Em(e.ownerDocument.body);
}
@@ -17145,7 +17208,7 @@ var Df = /* @__PURE__ */ g(((e) => {
} while (n);
Gh(t);
}
- function Ip(e, t) {
+ function Pp(e, t) {
var n = e;
e = 0;
do {
@@ -17159,7 +17222,7 @@ var Df = /* @__PURE__ */ g(((e) => {
n = r;
} while (n);
}
- function Lp(e, t, n) {
+ function Fp(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++) {
@@ -17169,12 +17232,12 @@ var Df = /* @__PURE__ */ g(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Rp(e, t) {
+ function Ip(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 zp(e, t, n) {
+ function Lp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -17182,22 +17245,22 @@ var Df = /* @__PURE__ */ g(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Bp(e) {
- return zp(e.getBoundingClientRect(), getComputedStyle(e), e);
+ function Rp(e) {
+ return Lp(e.getBoundingClientRect(), getComputedStyle(e), e);
}
- function Vp(e) {
+ function zp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return zp(t, n, e);
+ return Lp(t, n, e);
}
- function Hp(e) {
+ function Bp(e) {
return e.documentElement.clientHeight;
}
- function Up(e) {
+ function Vp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Wp(e, t, n, r, i, a, o, s, c) {
+ function Hp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -17205,16 +17268,16 @@ var Df = /* @__PURE__ */ g(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (Hp(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" && (Bp(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 += th(f), u > ih) {
+ if (u += ih(f), u > K) {
s.length = o;
break;
}
- f = new Promise(Up.bind(f)), s.push(f);
+ f = new Promise(Vp.bind(f)), s.push(f);
}
}
}
@@ -17269,86 +17332,86 @@ var Df = /* @__PURE__ */ g(((e) => {
return r(), i(), o(), null;
}
}
- function Gp(e, t) {
+ function Up(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Gp.prototype.animate = function(e, t) {
+ Up.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : T({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Gp.prototype.getAnimations = function() {
+ }, Up.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;
- }, Gp.prototype.getComputedStyle = function() {
+ }, Up.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Kp(e) {
+ function Wp(e) {
return {
name: e,
- group: new Gp("group", e),
- imagePair: new Gp("image-pair", e),
- old: new Gp("old", e),
- new: new Gp("new", e)
+ group: new Up("group", e),
+ imagePair: new Up("image-pair", e),
+ old: new Up("old", e),
+ new: new Up("new", e)
};
}
- function qp(e) {
+ function Gp(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- qp.prototype.addEventListener = function(e, t, n) {
+ Gp.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 (Qp(a, e, t, n) === -1) {
+ if (Xp(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 = Xp(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 = Jp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Jp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Kp, e, s, r);
}
this._eventListeners = a;
}
};
- function Jp(e, t, n, r) {
+ function Kp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- qp.prototype.removeEventListener = function(e, t, n) {
+ Gp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Qp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Xp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = Xp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Yp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Jp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, qp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Yp(e, t, n, r) {
+ function qp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function Xp(e) {
+ function Jp(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 Yp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Qp(e, t, n, r) {
+ function Xp(e, t, n, r) {
if (e.length === 0) return -1;
- r = Zp(r);
+ r = Yp(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 && Yp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- qp.prototype.dispatchEvent = function(e) {
+ Gp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -17357,74 +17420,74 @@ var Df = /* @__PURE__ */ g(((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, Xp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Jp(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, Xp(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, Jp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, qp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, $p, e, void 0, void 0);
+ }, Gp.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Zp, e, void 0, void 0);
};
- function $p(e, t) {
- return e.tag !== 6 && (e = _(e), Sm(e, t));
+ function Zp(e, t) {
+ return e.tag !== 6 && (e = _(e), W(e, t));
}
- qp.prototype.focusLast = function(e) {
+ Gp.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, em, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !$p(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Qp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Zp(t[n], e); n--);
};
- function em(e, t) {
+ function Qp(e, t) {
return t.push(e), !1;
}
- qp.prototype.blur = function() {
+ Gp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = xp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, tm, e, void 0, void 0));
+ e !== null && (e = _(e), e = yp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, $p, e, void 0, void 0));
};
- function tm(e, t) {
+ function $p(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- qp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, nm, e, void 0, void 0);
+ Gp.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);
};
- function nm(e, t) {
+ function em(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- qp.prototype.unobserveUsing = function(e) {
+ Gp.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, H, e, void 0, void 0);
- for (var n = t = 0; n < rm.length; n++) {
- var r = rm[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : rm[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, tm, e, void 0, void 0);
+ for (var n = t = 0; n < nm.length; n++) {
+ var r = nm[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : nm[t++] = r;
}
- rm.length = t;
+ nm.length = t;
}
};
- function H(e, t) {
+ function tm(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var rm = [], im = !1;
- function am(e, t, n) {
- rm.push({
+ var nm = [], rm = !1;
+ function im(e, t, n) {
+ nm.push({
fragmentInstance: e,
observer: t,
instance: n
- }), im || (im = !0, Cm(function() {
- im = !1;
- var e = rm;
- rm = [];
+ }), rm || (rm = !0, Cm(function() {
+ rm = !1;
+ var e = nm;
+ nm = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- qp.prototype.getClientRects = function() {
+ Gp.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, om, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, am, e, void 0, void 0), e;
};
- function om(e, t) {
+ function am(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -17432,14 +17495,14 @@ var Df = /* @__PURE__ */ g(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- qp.prototype.getRootNode = function(e) {
+ Gp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, qp.prototype.compareDocumentPosition = function(e) {
+ }, Gp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, em, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -17465,10 +17528,10 @@ var Df = /* @__PURE__ */ g(((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 || sm(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 || om(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function sm(e, t, n, r, i) {
- var a = Nt(i);
+ function om(e, t, n, r, i) {
+ var a = Mt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -17496,22 +17559,22 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return a;
}
- 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 = v, v = 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 = v, y = v = null, t = a !== null)), t) : !1;
+ return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
}
- function cm(e, t) {
+ function sm(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);
}
- qp.prototype.scrollIntoView = function(e) {
+ Gp.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, em, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, 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), cm(e, n);
+ e = _(r), sm(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -17524,40 +17587,40 @@ var Df = /* @__PURE__ */ g(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), cm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), sm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function lm(e, t) {
- return e = _(e), um(e, t), !1;
+ function cm(e, t) {
+ return e = _(e), lm(e, t), !1;
}
- function um(e, t) {
+ function lm(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
}
- function dm(e, t) {
+ function um(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, Xp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < rm.length; i++) {
- var a = rm[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (rm[r++] = a);
+ for (var r = 0, i = 0; i < nm.length; i++) {
+ var a = nm[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (nm[r++] = a);
}
- rm.length = r, n.observe(e);
- }), um(e, t));
+ nm.length = r, n.observe(e);
+ }), lm(e, t));
}
- function fm(e, t) {
+ function dm(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, Xp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? am(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? im(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function pm(e) {
+ function fm(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -17565,7 +17628,7 @@ var Df = /* @__PURE__ */ g(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- pm(n), Mt(n);
+ fm(n), jt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -17574,7 +17637,7 @@ var Df = /* @__PURE__ */ g(((e) => {
e.removeChild(n);
}
}
- function U(e, t, n, r) {
+ function pm(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -17584,7 +17647,7 @@ var Df = /* @__PURE__ */ g(((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[F]) switch (t) {
+ } else if (!e[kt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -17641,7 +17704,7 @@ var Df = /* @__PURE__ */ g(((e) => {
return e;
}
var bm = null;
- function W(e) {
+ function xm(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -17655,7 +17718,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return null;
}
- function xm(e) {
+ function Sm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -17669,7 +17732,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return null;
}
- function Sm(e, t) {
+ function W(e, t) {
function n() {
r = !0;
}
@@ -17683,14 +17746,14 @@ var Df = /* @__PURE__ */ g(((e) => {
return r;
}
function Cm(e) {
- jp(function() {
- jp(function(t) {
+ kp(function() {
+ kp(function(t) {
return e(t);
});
});
}
function wm(e, t, n) {
- switch (t = xp(n), e) {
+ switch (t = yp(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -17706,13 +17769,13 @@ var Df = /* @__PURE__ */ g(((e) => {
function Tm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && fp(e, t, r, null, hp, i);
+ n.hasOwnProperty(r) && i != null && up(e, t, r, null, pp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), Mt(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === gn && (e.onclick = null), jt(e);
}
function Em(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- Mt(e);
+ jt(e);
}
var Dm = /* @__PURE__ */ new Map(), Om = /* @__PURE__ */ new Set();
function km(e) {
@@ -17722,81 +17785,81 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Am = he.d;
- he.d = {
- f: jm,
- r: Mm,
- D: Fm,
- C: Im,
- L: Lm,
- m: Rm,
- X: Bm,
- S: zm,
- M: Vm
+ var G = pe.d;
+ pe.d = {
+ f: Am,
+ r: jm,
+ D: Pm,
+ C: Fm,
+ L: Im,
+ m: Lm,
+ X: zm,
+ S: Rm,
+ M: Bm
};
- function jm() {
- var e = Am.f(), t = qd();
+ function Am() {
+ var e = G.f(), t = Kd();
return e || t;
}
- function Mm(e) {
- var t = Pt(e);
- t !== null && t.tag === 5 && t.type === "form" ? rc(t) : Am.r(e);
+ function jm(e) {
+ var t = Nt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? nc(t) : G.r(e);
}
- var Nm = typeof document > "u" ? null : document;
- function Pm(e, t, n) {
- var r = Nm;
+ var Mm = typeof document > "u" ? null : document;
+ function Nm(e, t, n) {
+ var r = Mm;
if (r && typeof t == "string" && t) {
- var i = nn(t);
+ var i = en(t);
i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Om.has(i) || (Om.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), mp(t, "link", e), Lt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), fp(t, "link", e), It(t), r.head.appendChild(t)));
}
}
- function Fm(e) {
- Am.D(e), Pm("dns-prefetch", e, null);
+ function Pm(e) {
+ G.D(e), Nm("dns-prefetch", e, null);
}
- function Im(e, t) {
- Am.C(e, t), Pm("preconnect", e, t);
+ function Fm(e, t) {
+ G.C(e, t), Nm("preconnect", e, t);
}
- function Lm(e, t, n) {
- Am.L(e, t, n);
- var r = Nm;
+ function Im(e, t, n) {
+ G.L(e, t, n);
+ var r = Mm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + nn(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + nn(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + nn(n.imageSizes) + "\"]")) : i += "[href=\"" + nn(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + en(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + en(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + en(n.imageSizes) + "\"]")) : i += "[href=\"" + en(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Um(e);
+ a = Hm(e);
break;
- case "script": a = G(e);
+ case "script": a = Km(e);
}
if (!(Dm.has(a) || (e = T({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Wm(a)) || t === "script" && r.querySelector(qm(a))))) {
+ }, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Um(a)) || t === "script" && r.querySelector(qm(a))))) {
var o = r.createElement("link");
- mp(o, "link", e), t === "style" && (o[jt] = !0, o.onload = o.onerror = function() {
- Rt(o);
- }), Lt(o), r.head.appendChild(o);
+ fp(o, "link", e), t === "style" && (o[At] = !0, o.onload = o.onerror = function() {
+ Lt(o);
+ }), It(o), r.head.appendChild(o);
}
}
}
- function Rm(e, t) {
- Am.m(e, t);
- var n = Nm;
+ function Lm(e, t) {
+ G.m(e, t);
+ var n = Mm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + nn(r) + "\"][href=\"" + nn(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + en(r) + "\"][href=\"" + en(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = G(e);
+ case "script": a = Km(e);
}
if (!Dm.has(a) && (e = T({
rel: "modulepreload",
@@ -17810,15 +17873,15 @@ var Df = /* @__PURE__ */ g(((e) => {
case "worker":
case "script": if (n.querySelector(qm(a))) return;
}
- r = n.createElement("link"), mp(r, "link", e), Lt(r), n.head.appendChild(r);
+ r = n.createElement("link"), fp(r, "link", e), It(r), n.head.appendChild(r);
}
}
}
- function zm(e, t, n) {
- Am.S(e, t, n);
- var r = Nm;
+ function Rm(e, t, n) {
+ G.S(e, t, n);
+ var r = Mm;
if (r && e) {
- var i = It(r).hoistableStyles, a = Um(e);
+ var i = Ft(r).hoistableStyles, a = Hm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -17826,7 +17889,7 @@ var Df = /* @__PURE__ */ g(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Wm(a))) s.loading = 5;
+ if (o = r.querySelector(Um(a))) s.loading = 5;
else {
e = T({
rel: "stylesheet",
@@ -17834,7 +17897,7 @@ var Df = /* @__PURE__ */ g(((e) => {
"data-precedence": t
}, n), (n = Dm.get(a)) && Xm(e, n);
var c = o = r.createElement("link");
- Lt(c), mp(c, "link", e), c._p = new Promise(function(e, t) {
+ It(c), fp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
@@ -17851,15 +17914,15 @@ var Df = /* @__PURE__ */ g(((e) => {
}
}
}
- function Bm(e, t) {
- Am.X(e, t);
- var n = Nm;
+ function zm(e, t) {
+ G.X(e, t);
+ var n = Mm;
if (n && e) {
- var r = It(n).hoistableScripts, i = G(e), a = r.get(i);
+ var r = Ft(n).hoistableScripts, i = Km(e), a = r.get(i);
a || (a = n.querySelector(qm(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = Dm.get(i)) && K(e, t), a = n.createElement("script"), Lt(a), mp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Dm.get(i)) && Zm(e, t), a = n.createElement("script"), It(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17867,16 +17930,16 @@ var Df = /* @__PURE__ */ g(((e) => {
}, r.set(i, a));
}
}
- function Vm(e, t) {
- Am.M(e, t);
- var n = Nm;
+ function Bm(e, t) {
+ G.M(e, t);
+ var n = Mm;
if (n && e) {
- var r = It(n).hoistableScripts, i = G(e), a = r.get(i);
+ var r = Ft(n).hoistableScripts, i = Km(e), a = r.get(i);
a || (a = n.querySelector(qm(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = Dm.get(i)) && K(e, t), a = n.createElement("script"), Lt(a), mp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Dm.get(i)) && Zm(e, t), a = n.createElement("script"), It(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17884,13 +17947,13 @@ var Df = /* @__PURE__ */ g(((e) => {
}, r.set(i, a));
}
}
- function Hm(e, t, n, r) {
- var a = (a = we.current) ? km(a) : null;
+ function Vm(e, t, n, r) {
+ var a = (a = Se.current) ? km(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 = Um(n.href), t = It(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Hm(n.href), t = Ft(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -17903,8 +17966,8 @@ var Df = /* @__PURE__ */ g(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Um(n.href);
- var o = It(a).hoistableStyles, s = o.get(e);
+ e = Hm(n.href);
+ var o = Ft(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -17913,7 +17976,7 @@ var Df = /* @__PURE__ */ g(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Wm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Dm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Um(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Dm.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -17922,12 +17985,12 @@ var Df = /* @__PURE__ */ g(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, Dm.set(e, o)), Km(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, Dm.set(e, o)), Gm(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 = G(n), t = It(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 = Km(n), t = Ft(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -17941,33 +18004,33 @@ var Df = /* @__PURE__ */ g(((e) => {
default: throw Error(i(444, e));
}
}
- function Um(e) {
- return "href=\"" + nn(e) + "\"";
+ function Hm(e) {
+ return "href=\"" + en(e) + "\"";
}
- function Wm(e) {
+ function Um(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Gm(e) {
+ function Wm(e) {
return T({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Km(e, t, n, r) {
+ function Gm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[jt]) {
+ if (!0 !== t[At]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[jt] = !0, t.onload = t.onerror = Rt.bind(null, t), mp(t, "link", n), Lt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[At] = !0, t.onload = t.onerror = Lt.bind(null, t), fp(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 G(e) {
- return "[src=\"" + nn(e) + "\"]";
+ function Km(e) {
+ return "[src=\"" + en(e) + "\"]";
}
function qm(e) {
return "script[async]" + e;
@@ -17975,25 +18038,25 @@ var Df = /* @__PURE__ */ g(((e) => {
function Jm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + nn(n.href) + "\"]");
- if (r) return t.instance = r, Lt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + en(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"), Lt(r), mp(r, "style", a), Ym(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), It(r), fp(r, "style", a), Ym(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Um(n.href);
- var o = e.querySelector(Wm(a));
- if (o) return t.state.loading |= 4, t.instance = o, Lt(o), o;
- r = Gm(n), (a = Dm.get(a)) && Xm(r, a), o = (e.ownerDocument || e).createElement("link"), Lt(o);
+ a = Hm(n.href);
+ var o = e.querySelector(Um(a));
+ if (o) return t.state.loading |= 4, t.instance = o, It(o), o;
+ r = Wm(n), (a = Dm.get(a)) && Xm(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;
- }), mp(o, "link", r), t.state.loading |= 4, Ym(o, n.precedence, e), t.instance = o;
- case "script": return o = G(n.src), (a = e.querySelector(qm(o))) ? (t.instance = a, Lt(a), a) : (r = n, (a = Dm.get(o)) && (r = T({}, n), K(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Lt(a), mp(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), fp(o, "link", r), t.state.loading |= 4, Ym(o, n.precedence, e), t.instance = o;
+ case "script": return o = Km(n.src), (a = e.querySelector(qm(o))) ? (t.instance = a, It(a), a) : (r = n, (a = Dm.get(o)) && (r = T({}, n), Zm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), It(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -18011,19 +18074,19 @@ var Df = /* @__PURE__ */ g(((e) => {
function Xm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function K(e, t) {
+ function Zm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Zm = null;
- function Qm(e, t, n) {
- if (Zm === null) {
- var r = /* @__PURE__ */ new Map(), i = Zm = /* @__PURE__ */ new Map();
+ var Qm = null;
+ function $m(e, t, n) {
+ if (Qm === null) {
+ var r = /* @__PURE__ */ new Map(), i = Qm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Zm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Qm, 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[F] || a[wt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[kt] || a[St] || 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);
@@ -18032,10 +18095,10 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return r;
}
- function $m(e, t, n) {
+ function eh(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function q(e, t, n) {
+ function th(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -18053,196 +18116,196 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return !1;
}
- function eh(e, t) {
+ function nh(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function J(e) {
+ function rh(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function th(e) {
+ function ih(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function nh(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += th(t), e.suspenseyImages.push(t)), e = ch.bind(e), t.decode().then(e, e));
+ function ah(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += ih(t), e.suspenseyImages.push(t)), e = q.bind(e), t.decode().then(e, e));
}
- function rh(e, t, n, r) {
+ function oh(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 = Um(r.href), a = t.querySelector(Wm(i));
+ var i = Hm(r.href), a = t.querySelector(Um(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = sh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Lt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = lh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, It(a);
return;
}
- a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Xm(r, i), a = a.createElement("link"), Lt(a);
+ a = t.ownerDocument || t, r = Wm(r), (i = Dm.get(i)) && Xm(r, i), a = a.createElement("link"), It(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), mp(a, "link", r), n.instance = a;
+ }), fp(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 = sh.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 = lh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var ih = 0;
- function ah(e, t) {
- return e.stylesheets && e.count === 0 && uh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var K = 0;
+ function sh(e, t) {
+ return e.stylesheets && e.count === 0 && J(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && uh(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && J(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && ih === 0 && (ih = 62500 * vp());
+ 0 < e.imgBytes && K === 0 && (K = 62500 * gp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && uh(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && J(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > ih ? 50 : 800) + t);
+ }, (e.imgBytes > K ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function oh(e) {
+ function ch(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) uh(e, e.stylesheets);
+ if (e.stylesheets) J(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
- function sh() {
- this.count--, oh(this);
+ function lh() {
+ this.count--, ch(this);
}
- function ch() {
- this.imgCount--, oh(this);
+ function q() {
+ this.imgCount--, ch(this);
}
- var lh = null;
- function uh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, lh = /* @__PURE__ */ new Map(), t.forEach(dh, e), lh = null, sh.call(e));
+ var uh = null;
+ function J(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, uh = /* @__PURE__ */ new Map(), t.forEach(dh, e), uh = null, lh.call(e));
}
function dh(e, t) {
if (!(t.state.loading & 4)) {
- var n = lh.get(e);
+ var n = uh.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), lh.set(e, n);
+ n = /* @__PURE__ */ new Map(), uh.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 = sh.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 = lh.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 Y = {
+ var fh = {
$$typeof: ee,
Provider: null,
Consumer: null,
- _currentValue: ge,
- _currentValue2: ge,
+ _currentValue: me,
+ _currentValue2: me,
_threadCount: 0
};
- function fh(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 = pt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = pt(0), this.hiddenUpdates = pt(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 ph(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 ph(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new fh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Mi(3, null, null, t), e.current = a, a.stateNode = e, t = ja(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function mh(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new ph(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = Aa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, mo(a), e;
+ }, po(a), e;
}
- function mh(e) {
- return e ? (e = Ai, e) : Ai;
+ function hh(e) {
+ return e ? (e = Oi, e) : Oi;
}
- function X(e, t, n, r, i, a) {
- i = mh(i), r.context === null ? r.context = i : r.pendingContext = i, r = go(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = _o(e, r, t), n !== null && (Hd(n, e, t), vo(n, e, t));
+ function gh(e, t, n, r, i, a) {
+ i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = ho(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = go(e, r, t), n !== null && (Vd(n, e, t), _o(n, e, t));
}
- function hh(e, t) {
+ function _h(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function gh(e, t) {
- hh(e, t), (e = e.alternate) && hh(e, t);
+ function vh(e, t) {
+ _h(e, t), (e = e.alternate) && _h(e, t);
}
- function _h(e) {
+ function yh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Di(e, 67108864);
- t !== null && Hd(t, e, 67108864), gh(e, 67108864);
+ var t = Ti(e, 67108864);
+ t !== null && Vd(t, e, 67108864), vh(e, 67108864);
}
}
- function vh(e) {
+ function bh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = zd();
- t = yt(t);
- var n = Di(e, t);
- n !== null && Hd(n, e, t), gh(e, t);
+ var t = Rd();
+ t = _t(t);
+ var n = Ti(e, t);
+ n !== null && Vd(n, e, t), vh(e, t);
}
}
- var yh = !0;
- function bh(e, t, n, r) {
- var i = P.T;
- P.T = null;
- var a = he.p;
+ var xh = !0;
+ function Y(e, t, n, r) {
+ var i = I.T;
+ I.T = null;
+ var a = pe.p;
try {
- he.p = 2, Sh(e, t, n, r);
+ pe.p = 2, Ch(e, t, n, r);
} finally {
- he.p = a, P.T = i;
+ pe.p = a, I.T = i;
}
}
- function xh(e, t, n, r) {
- var i = P.T;
- P.T = null;
- var a = he.p;
+ function Sh(e, t, n, r) {
+ var i = I.T;
+ I.T = null;
+ var a = pe.p;
try {
- he.p = 8, Sh(e, t, n, r);
+ pe.p = 8, Ch(e, t, n, r);
} finally {
- he.p = a, P.T = i;
+ pe.p = a, I.T = i;
}
}
- function Sh(e, t, n, r) {
- if (yh) {
- var i = Ch(r);
- if (i === null) rp(e, t, r, wh, n), Fh(e, r);
+ function Ch(e, t, n, r) {
+ if (xh) {
+ var i = wh(r);
+ if (i === null) tp(e, t, r, X, n), Fh(e, r);
else if (Lh(i, e, t, n, r)) r.stopPropagation();
else if (Fh(e, r), t & 4 && -1 < Ph.indexOf(e)) {
for (; i !== null;) {
- var a = Pt(i);
+ var a = Nt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = st(a.pendingLanes);
+ var o = at(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - et(o);
+ var c = 1 << 31 - Qe(o);
s.entanglements[1] |= c, o &= ~c;
}
- If(a), !(rd & 6) && (wd = He() + 500, Lf(0, !1));
+ Pf(a), !(nd & 6) && (Cd = Be() + 500, Ff(0, !1));
}
}
break;
case 31:
- case 13: s = Di(a, 2), s !== null && Hd(s, a, 2), qd(), gh(a, 2);
+ case 13: s = Ti(a, 2), s !== null && Vd(s, a, 2), Kd(), vh(a, 2);
}
- if (a = Ch(r), a === null && rp(e, t, r, wh, n), a === i) break;
+ if (a = wh(r), a === null && tp(e, t, r, X, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else rp(e, t, r, null, n);
+ } else tp(e, t, r, null, n);
}
}
- function Ch(e) {
- return e = bn(e), Th(e);
+ function wh(e) {
+ return e = vn(e), Th(e);
}
- var wh = null;
+ var X = null;
function Th(e) {
- if (wh = null, e = Nt(e), e !== null) {
+ if (X = null, e = Mt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -18259,7 +18322,7 @@ var Df = /* @__PURE__ */ g(((e) => {
} else t !== e && (e = null);
}
}
- return wh = e, null;
+ return X = e, null;
}
function Eh(e) {
switch (e) {
@@ -18335,12 +18398,12 @@ var Df = /* @__PURE__ */ g(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Ue()) {
- case We: return 2;
- case Ge: return 8;
- case Ke:
- case qe: return 32;
- case Je: return 268435456;
+ case "message": switch (Ve()) {
+ case He: return 2;
+ case Ue: return 8;
+ case We:
+ case Ge: return 32;
+ case Ke: return 268435456;
default: return 32;
}
default: return 32;
@@ -18376,7 +18439,7 @@ var Df = /* @__PURE__ */ g(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Pt(t), t !== null && _h(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 && yh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
function Lh(e, t, n, r, i) {
switch (t) {
@@ -18391,21 +18454,21 @@ var Df = /* @__PURE__ */ g(((e) => {
return !1;
}
function Rh(e) {
- var t = Nt(e.target);
+ 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, St(e.priority, function() {
- vh(n);
+ e.blockedOn = t, bt(e.priority, function() {
+ bh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, St(e.priority, function() {
- vh(n);
+ e.blockedOn = t, bt(e.priority, function() {
+ bh(n);
});
return;
}
@@ -18420,12 +18483,12 @@ var Df = /* @__PURE__ */ g(((e) => {
function zh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = Ch(e.nativeEvent);
+ var n = wh(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- yn = r, n.target.dispatchEvent(r), yn = null;
- } else return t = Pt(n), t !== null && _h(t), e.blockedOn = n, !1;
+ _n = r, n.target.dispatchEvent(r), _n = null;
+ } else return t = Nt(n), t !== null && yh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -18449,8 +18512,8 @@ var Df = /* @__PURE__ */ g(((e) => {
if (Th(r || n) === null) continue;
break;
}
- var a = Pt(n);
- a !== null && (e.splice(t, 3), t -= 3, tc(a, {
+ var a = Nt(n);
+ a !== null && (e.splice(t, 3), t -= 3, ec(a, {
pending: !0,
data: i,
method: n.method,
@@ -18470,12 +18533,12 @@ var Df = /* @__PURE__ */ g(((e) => {
}
for (; 0 < Nh.length && (n = Nh[0], n.blockedOn === null);) Rh(n), n.blockedOn === null && Nh.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[Tt] || null;
+ var i = n[r], a = n[r + 1], o = i[Ct] || null;
if (typeof a == "function") o || Wh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[Tt] || null) s = o.formAction;
+ if (i = a, o = a[Ct] || null) s = o.formAction;
else if (Th(i) !== null) continue;
} else s = o.action;
typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Wh(n);
@@ -18521,13 +18584,13 @@ var Df = /* @__PURE__ */ g(((e) => {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- X(n, zd(), e, t, null, null);
+ gh(n, Rd(), e, t, null, null);
}, Jh.prototype.unmount = qh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- X(e.current, 2, null, e, null, null), qd(), t[Et] = null;
+ gh(e.current, 2, null, e, null, null), Kd(), t[wt] = null;
}
};
function Jh(e) {
@@ -18535,7 +18598,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
Jh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = xt();
+ var t = yt();
e = {
blockedOn: null,
target: e,
@@ -18547,7 +18610,7 @@ var Df = /* @__PURE__ */ g(((e) => {
};
var Yh = n.version;
if (Yh !== "19.3.0") throw Error(i(527, Yh, "19.3.0"));
- he.findDOMNode = function(e) {
+ pe.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;
@@ -18556,21 +18619,21 @@ var Df = /* @__PURE__ */ g(((e) => {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: P,
+ currentDispatcherRef: I,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var Zh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!Zh.isDisabled && Zh.supportsFiber) try {
- Ze = Zh.inject(Xh), Qe = Zh;
+ Ye = Zh.inject(Xh), Xe = Zh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = wc, s = Tc, c = Ec;
- 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 = ph(e, 1, !1, null, null, n, r, null, o, s, c, Kh), e[Et] = t.current, tp(e), new qh(t);
+ var n = !1, r = "", o = Cc, s = wc, c = Tc;
+ 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 = mh(e, 1, !1, null, null, n, r, null, o, s, c, Kh), e[wt] = t.current, $f(e), new qh(t);
};
-})), Af = (/* @__PURE__ */ g(((e, t) => {
+})), zf = (/* @__PURE__ */ _(((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);
@@ -18578,8 +18641,8 @@ var Df = /* @__PURE__ */ g(((e) => {
console.error(e);
}
}
- n(), t.exports = kf();
-})))(), jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+ n(), t.exports = Rf();
+})))(), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18587,7 +18650,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Mf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18595,7 +18658,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), Nf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18603,7 +18666,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Pf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18611,7 +18674,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Ff = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18619,7 +18682,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), If = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18627,7 +18690,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Lf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18635,7 +18698,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Rf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18643,7 +18706,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18651,7 +18714,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18659,7 +18722,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18667,7 +18730,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), U = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18675,7 +18738,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18683,7 +18746,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18691,7 +18754,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18699,7 +18762,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18707,7 +18770,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18715,7 +18778,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18723,7 +18786,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18731,7 +18794,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18739,7 +18802,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18747,7 +18810,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18755,7 +18818,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18763,7 +18826,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18771,7 +18834,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18779,7 +18842,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), up = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18787,7 +18850,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), dp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18795,7 +18858,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), fp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18803,7 +18866,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), pp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18811,7 +18874,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), mp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18819,7 +18882,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), hp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18827,7 +18890,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), gp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18835,7 +18898,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), _p = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18843,7 +18906,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), up = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), vp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18851,7 +18914,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), dp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), yp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18859,7 +18922,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), fp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), bp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18867,7 +18930,7 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), pp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
+}, E.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" })), xp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => E.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18875,100 +18938,100 @@ var Df = /* @__PURE__ */ g(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, C.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" })), mp = (e, t) => {
+}, E.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" })), Sp = (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;
-}, hp = (e, t) => ({
+}, Cp = (e, t) => ({
classGroupId: e,
validator: t
-}), gp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), wp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), _p = "-", vp = [], yp = "arbitrary..", bp = (e) => {
- let t = Cp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), Tp = "-", Ep = [], Dp = "arbitrary..", Op = (e) => {
+ let t = jp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Sp(e);
- let n = e.split(_p);
- return xp(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Ap(e);
+ let n = e.split(Tp);
+ return kp(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? mp(i, t) : t : i || vp;
+ return t ? i ? Sp(i, t) : t : i || Ep;
}
- return n[e] || vp;
+ return n[e] || Ep;
}
};
-}, xp = (e, t, n) => {
+}, kp = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = xp(e, t + 1, i);
+ let n = kp(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(_p) : e.slice(t).join(_p), s = a.length;
+ let o = t === 0 ? e.join(Tp) : e.slice(t).join(Tp), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Sp = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Ap = (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 ? yp + r : void 0;
-})(), Cp = (e) => {
+ return r ? Dp + r : void 0;
+})(), jp = (e) => {
let { theme: t, classGroups: n } = e;
- return wp(n, t);
-}, wp = (e, t) => {
- let n = gp();
+ return Mp(n, t);
+}, Mp = (e, t) => {
+ let n = wp();
for (let r in e) {
let i = e[r];
- Tp(i, n, r, t);
+ Np(i, n, r, t);
}
return n;
-}, Tp = (e, t, n, r) => {
+}, Np = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Ep(i, t, n, r);
+ Pp(i, t, n, r);
}
-}, Ep = (e, t, n, r) => {
+}, Pp = (e, t, n, r) => {
if (typeof e == "string") {
- Dp(e, t, n);
+ Fp(e, t, n);
return;
}
if (typeof e == "function") {
- Op(e, t, n, r);
+ Ip(e, t, n, r);
return;
}
- kp(e, t, n, r);
-}, Dp = (e, t, n) => {
- let r = e === "" ? t : Ap(t, e);
+ Lp(e, t, n, r);
+}, Fp = (e, t, n) => {
+ let r = e === "" ? t : Rp(t, e);
r.classGroupId = n;
-}, Op = (e, t, n, r) => {
- if (jp(e)) {
- Tp(e(r), t, n, r);
+}, Ip = (e, t, n, r) => {
+ if (zp(e)) {
+ Np(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(hp(n, e));
-}, kp = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(Cp(n, e));
+}, Lp = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Tp(o, Ap(t, a), n, r);
+ Np(o, Rp(t, a), n, r);
}
-}, Ap = (e, t) => {
- let n = e, r = t.split(_p), i = r.length;
+}, Rp = (e, t) => {
+ let n = e, r = t.split(Tp), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = gp(), n.nextPart.set(t, i)), n = i;
+ i || (i = wp(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, jp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Mp = (e) => {
+}, zp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Bp = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -18986,19 +19049,19 @@ var Df = /* @__PURE__ */ g(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, Np = "!", Pp = ":", Fp = [], Ip = (e, t, n, r, i) => ({
+}, Vp = "!", Hp = ":", Up = [], Wp = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Lp = (e) => {
+}), Gp = (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 === Pp) {
+ if (o === Hp) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -19010,13 +19073,13 @@ var Df = /* @__PURE__ */ g(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(Np) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Np) && (c = s.slice(1), l = !0);
+ s.endsWith(Vp) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Vp) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Ip(t, l, c, u);
+ return Wp(t, l, c, u);
};
if (t) {
- let e = t + Pp, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Ip(Fp, !1, t, void 0, !0);
+ let e = t + Hp, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Wp(Up, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -19026,7 +19089,7 @@ var Df = /* @__PURE__ */ g(((e) => {
});
}
return r;
-}, Rp = (e) => {
+}, Kp = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -19038,18 +19101,18 @@ var Df = /* @__PURE__ */ g(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, zp = (e) => ({
- cache: Mp(e.cacheSize),
- parseClassName: Lp(e),
- sortModifiers: Rp(e),
- postfixLookupClassGroupIds: Bp(e),
- ...bp(e)
-}), Bp = (e) => {
+}, qp = (e) => ({
+ cache: Bp(e.cacheSize),
+ parseClassName: Gp(e),
+ sortModifiers: Kp(e),
+ postfixLookupClassGroupIds: Jp(e),
+ ...Op(e)
+}), Jp = (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;
-}, Vp = /\s+/, Hp = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Vp), l = "";
+}, Yp = /\s+/, Xp = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Yp), 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) {
@@ -19073,7 +19136,7 @@ var Df = /* @__PURE__ */ g(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Np : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Vp : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -19084,34 +19147,34 @@ var Df = /* @__PURE__ */ g(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Up = (...e) => {
+}, Zp = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Wp(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Qp(n)) && (i && (i += " "), i += r);
return i;
-}, Wp = (e) => {
+}, Qp = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Wp(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Qp(e[r])) && (n && (n += " "), n += t);
return n;
-}, Gp = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = zp(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, $p = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = qp(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 = Hp(e, n);
+ let a = Xp(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Up(...e));
-}, Kp = [], qp = (e) => {
- let t = (t) => t[e] || Kp;
+ return a = o, (...e) => a(Zp(...e));
+}, em = [], tm = (e) => {
+ let t = (t) => t[e] || em;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Jp = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Xp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Zp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Qp = /\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$/, $p = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, em = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, nm = (e) => Xp.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), rm = (e) => !!e && Number.isInteger(Number(e)), im = (e) => e.endsWith("%") && H(e.slice(0, -1)), am = (e) => Zp.test(e), om = () => !0, sm = (e) => Qp.test(e) && !$p.test(e), cm = () => !1, lm = (e) => em.test(e), um = (e) => tm.test(e), dm = (e) => !U(e) && !W(e), fm = (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)), pm = (e) => Om(e, Mm, cm), U = (e) => Jp.test(e), mm = (e) => Om(e, Nm, sm), hm = (e) => Om(e, Pm, H), gm = (e) => Om(e, Im, om), _m = (e) => Om(e, Fm, cm), vm = (e) => Om(e, Am, cm), ym = (e) => Om(e, jm, um), bm = (e) => Om(e, Lm, lm), W = (e) => Yp.test(e), xm = (e) => km(e, Nm), Sm = (e) => km(e, Fm), Cm = (e) => km(e, Am), wm = (e) => km(e, Mm), Tm = (e) => km(e, jm), Em = (e) => km(e, Lm, !0), Dm = (e) => km(e, Im, !0), Om = (e, t, n) => {
- let r = Jp.exec(e);
+}, nm = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, rm = /^\((?:(\w[\w-]*):)?(.+)\)$/i, im = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, am = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, om = /\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$/, sm = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, cm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, um = (e) => im.test(e), dm = (e) => !!e && !Number.isNaN(Number(e)), fm = (e) => !!e && Number.isInteger(Number(e)), pm = (e) => e.endsWith("%") && dm(e.slice(0, -1)), mm = (e) => am.test(e), hm = () => !0, gm = (e) => om.test(e) && !sm.test(e), _m = () => !1, vm = (e) => cm.test(e), ym = (e) => lm.test(e), bm = (e) => !W(e) && !G(e), xm = (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)), Sm = (e) => Lm(e, Vm, _m), W = (e) => nm.test(e), Cm = (e) => Lm(e, Hm, gm), wm = (e) => Lm(e, Um, dm), Tm = (e) => Lm(e, Gm, hm), Em = (e) => Lm(e, Wm, _m), Dm = (e) => Lm(e, zm, _m), Om = (e) => Lm(e, Bm, ym), km = (e) => Lm(e, Km, vm), G = (e) => rm.test(e), Am = (e) => Rm(e, Hm), jm = (e) => Rm(e, Wm), Mm = (e) => Rm(e, zm), Nm = (e) => Rm(e, Vm), Pm = (e) => Rm(e, Bm), Fm = (e) => Rm(e, Km, !0), Im = (e) => Rm(e, Gm, !0), Lm = (e, t, n) => {
+ let r = nm.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, km = (e, t, n = !1) => {
- let r = Yp.exec(e);
+}, Rm = (e, t, n = !1) => {
+ let r = rm.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Am = (e) => e === "position" || e === "percentage", jm = (e) => e === "image" || e === "url", Mm = (e) => e === "length" || e === "size" || e === "bg-size", Nm = (e) => e === "length", Pm = (e) => e === "number", Fm = (e) => e === "family-name", Im = (e) => e === "number" || e === "weight", Lm = (e) => e === "shadow", Rm = () => {
- let e = qp("color"), t = qp("font"), n = qp("text"), r = qp("font-weight"), i = qp("tracking"), a = qp("leading"), o = qp("breakpoint"), s = qp("container"), c = qp("spacing"), l = qp("radius"), u = qp("shadow"), d = qp("inset-shadow"), f = qp("text-shadow"), p = qp("drop-shadow"), m = qp("blur"), h = qp("perspective"), g = qp("aspect"), _ = qp("ease"), v = qp("animate"), y = () => [
+}, zm = (e) => e === "position" || e === "percentage", Bm = (e) => e === "image" || e === "url", Vm = (e) => e === "length" || e === "size" || e === "bg-size", Hm = (e) => e === "length", Um = (e) => e === "number", Wm = (e) => e === "family-name", Gm = (e) => e === "number" || e === "weight", Km = (e) => e === "shadow", qm = () => {
+ let e = tm("color"), t = tm("font"), n = tm("text"), r = tm("font-weight"), i = tm("tracking"), a = tm("leading"), o = tm("breakpoint"), s = tm("container"), c = tm("spacing"), l = tm("radius"), u = tm("shadow"), d = tm("inset-shadow"), f = tm("text-shadow"), p = tm("drop-shadow"), m = tm("blur"), h = tm("perspective"), g = tm("aspect"), _ = tm("ease"), v = tm("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -19136,8 +19199,8 @@ var Df = /* @__PURE__ */ g(((e) => {
"left-bottom"
], x = () => [
...b(),
- W,
- U
+ G,
+ W
], S = () => [
"auto",
"hidden",
@@ -19149,43 +19212,43 @@ var Df = /* @__PURE__ */ g(((e) => {
"contain",
"none"
], w = () => [
+ G,
W,
- U,
c
], T = () => [
- nm,
+ um,
"full",
"auto",
...w()
], E = () => [
- rm,
+ fm,
"none",
"subgrid",
- W,
- U
+ G,
+ W
], D = () => [
"auto",
{ span: [
"full",
- rm,
- W,
- U
+ fm,
+ G,
+ W
] },
- rm,
- W,
- U
+ fm,
+ G,
+ W
], O = () => [
- rm,
+ fm,
"auto",
- W,
- U
+ G,
+ W
], k = () => [
"auto",
"min",
"max",
"fr",
- W,
- U
+ G,
+ W
], A = () => [
"start",
"end",
@@ -19205,7 +19268,7 @@ var Df = /* @__PURE__ */ g(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- nm,
+ um,
"auto",
"full",
"dvw",
@@ -19220,7 +19283,7 @@ var Df = /* @__PURE__ */ g(((e) => {
...w()
], te = () => [
s,
- nm,
+ um,
"screen",
"full",
"dvw",
@@ -19230,8 +19293,8 @@ var Df = /* @__PURE__ */ g(((e) => {
"max",
"fit",
...w()
- ], ne = () => [
- nm,
+ ], N = () => [
+ um,
"screen",
"full",
"lh",
@@ -19242,50 +19305,50 @@ var Df = /* @__PURE__ */ g(((e) => {
"max",
"fit",
...w()
- ], N = () => [
+ ], P = () => [
e,
- W,
- U
- ], re = () => [
+ G,
+ W
+ ], ne = () => [
...b(),
- Cm,
- vm,
- { position: [W, U] }
- ], ie = () => ["no-repeat", { repeat: [
+ Mm,
+ Dm,
+ { position: [G, W] }
+ ], re = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], ae = () => [
+ ] }], F = () => [
"auto",
"cover",
"contain",
- wm,
+ Nm,
+ Sm,
+ { size: [G, W] }
+ ], ie = () => [
pm,
- { size: [W, U] }
- ], oe = () => [
- im,
- xm,
- mm
- ], se = () => [
+ Am,
+ Cm
+ ], ae = () => [
"",
"none",
"full",
l,
- W,
- U
- ], ce = () => [
+ G,
+ W
+ ], oe = () => [
"",
- H,
- xm,
- mm
- ], le = () => [
+ dm,
+ Am,
+ Cm
+ ], se = () => [
"solid",
"dashed",
"dotted",
"double"
- ], ue = () => [
+ ], ce = () => [
"normal",
"multiply",
"screen",
@@ -19302,33 +19365,33 @@ var Df = /* @__PURE__ */ g(((e) => {
"saturation",
"color",
"luminosity"
- ], de = () => [
- H,
- im,
- Cm,
- vm
- ], fe = () => [
+ ], le = () => [
+ dm,
+ pm,
+ Mm,
+ Dm
+ ], ue = () => [
"",
"none",
m,
- W,
- U
- ], pe = () => [
+ G,
+ W
+ ], de = () => [
"none",
- H,
- W,
- U
- ], me = () => [
+ dm,
+ G,
+ W
+ ], fe = () => [
"none",
- H,
- W,
- U
- ], P = () => [
- H,
- W,
- U
- ], he = () => [
- nm,
+ dm,
+ G,
+ W
+ ], I = () => [
+ dm,
+ G,
+ W
+ ], pe = () => [
+ um,
"full",
...w()
];
@@ -19342,17 +19405,17 @@ var Df = /* @__PURE__ */ g(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [am],
- breakpoint: [am],
- color: [om],
- container: [am],
- "drop-shadow": [am],
+ blur: [mm],
+ breakpoint: [mm],
+ color: [hm],
+ container: [mm],
+ "drop-shadow": [mm],
ease: [
"in",
"out",
"in-out"
],
- font: [dm],
+ font: [bm],
"font-weight": [
"thin",
"extralight",
@@ -19364,7 +19427,7 @@ var Df = /* @__PURE__ */ g(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [am],
+ "inset-shadow": [mm],
leading: [
"none",
"tight",
@@ -19381,11 +19444,11 @@ var Df = /* @__PURE__ */ g(((e) => {
"distant",
"none"
],
- radius: [am],
- shadow: [am],
- spacing: ["px", H],
- text: [am],
- "text-shadow": [am],
+ radius: [mm],
+ shadow: [mm],
+ spacing: ["px", dm],
+ text: [mm],
+ "text-shadow": [mm],
tracking: [
"tighter",
"tight",
@@ -19399,9 +19462,9 @@ var Df = /* @__PURE__ */ g(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- nm,
- U,
+ um,
W,
+ G,
g
] }],
container: ["container"],
@@ -19409,15 +19472,15 @@ var Df = /* @__PURE__ */ g(((e) => {
"",
"normal",
"size",
- W,
- U
+ G,
+ W
] }],
- "container-named": [fm],
+ "container-named": [xm],
columns: [{ columns: [
- H,
+ dm,
"auto",
- U,
W,
+ G,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -19514,13 +19577,13 @@ var Df = /* @__PURE__ */ g(((e) => {
"collapse"
],
z: [{ z: [
- rm,
+ fm,
"auto",
- W,
- U
+ G,
+ W
] }],
basis: [{ basis: [
- nm,
+ um,
"full",
"auto",
s,
@@ -19538,32 +19601,32 @@ var Df = /* @__PURE__ */ g(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- H,
- nm,
+ dm,
+ um,
"auto",
"initial",
"none",
- U
+ W
] }],
grow: [{ grow: [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
shrink: [{ shrink: [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
order: [{ order: [
- rm,
+ fm,
"first",
"last",
"none",
- W,
- U
+ G,
+ W
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -19628,9 +19691,9 @@ var Df = /* @__PURE__ */ g(((e) => {
"inline-size": [{ inline: ["auto", ...te()] }],
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
- "block-size": [{ block: ["auto", ...ne()] }],
- "min-block-size": [{ "min-block": ["auto", ...ne()] }],
- "max-block-size": [{ "max-block": ["none", ...ne()] }],
+ "block-size": [{ block: ["auto", ...N()] }],
+ "min-block-size": [{ "min-block": ["auto", ...N()] }],
+ "max-block-size": [{ "max-block": ["none", ...N()] }],
w: [{ w: [
s,
"screen",
@@ -19670,15 +19733,15 @@ var Df = /* @__PURE__ */ g(((e) => {
"font-size": [{ text: [
"base",
n,
- xm,
- mm
+ Am,
+ Cm
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Dm,
- gm
+ Im,
+ Tm
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -19690,15 +19753,15 @@ var Df = /* @__PURE__ */ g(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- im,
- U
+ pm,
+ W
] }],
"font-family": [{ font: [
- Sm,
- _m,
+ jm,
+ Em,
t
] }],
- "font-features": [{ "font-features": [U] }],
+ "font-features": [{ "font-features": [W] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -19707,14 +19770,14 @@ var Df = /* @__PURE__ */ g(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- W,
- U
+ G,
+ W
] }],
"line-clamp": [{ "line-clamp": [
- H,
+ dm,
"none",
- W,
- hm
+ G,
+ wm
] }],
leading: [{ leading: [
"none",
@@ -19723,16 +19786,16 @@ var Df = /* @__PURE__ */ g(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- W,
- U
+ G,
+ W
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- W,
- U
+ G,
+ W
] }],
"text-alignment": [{ text: [
"left",
@@ -19742,28 +19805,28 @@ var Df = /* @__PURE__ */ g(((e) => {
"start",
"end"
] }],
- "placeholder-color": [{ placeholder: N() }],
- "text-color": [{ text: N() }],
+ "placeholder-color": [{ placeholder: P() }],
+ "text-color": [{ text: P() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...le(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- H,
+ dm,
"from-font",
"auto",
- W,
- mm
+ G,
+ Cm
] }],
- "text-decoration-color": [{ decoration: N() }],
+ "text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- H,
+ dm,
"auto",
- W,
- U
+ G,
+ W
] }],
"text-transform": [
"uppercase",
@@ -19784,9 +19847,9 @@ var Df = /* @__PURE__ */ g(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- rm,
- W,
- U
+ fm,
+ G,
+ W
] }],
"vertical-align": [{ align: [
"baseline",
@@ -19797,8 +19860,8 @@ var Df = /* @__PURE__ */ g(((e) => {
"text-bottom",
"sub",
"super",
- W,
- U
+ G,
+ W
] }],
whitespace: [{ whitespace: [
"normal",
@@ -19826,8 +19889,8 @@ var Df = /* @__PURE__ */ g(((e) => {
] }],
content: [{ content: [
"none",
- W,
- U
+ G,
+ W
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -19845,9 +19908,9 @@ var Df = /* @__PURE__ */ g(((e) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: re() }],
- "bg-repeat": [{ bg: ie() }],
- "bg-size": [{ bg: ae() }],
+ "bg-position": [{ bg: ne() }],
+ "bg-repeat": [{ bg: re() }],
+ "bg-size": [{ bg: F() }],
"bg-image": [{ bg: [
"none",
{
@@ -19862,142 +19925,142 @@ var Df = /* @__PURE__ */ g(((e) => {
"l",
"tl"
] },
- rm,
- W,
- U
+ fm,
+ G,
+ W
],
radial: [
"",
- W,
- U
+ G,
+ W
],
conic: [
"",
- rm,
- W,
- U
+ fm,
+ G,
+ W
]
},
- Tm,
- ym
+ Pm,
+ Om
] }],
- "bg-color": [{ bg: N() }],
- "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: 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() }],
+ "bg-color": [{ bg: P() }],
+ "gradient-from-pos": [{ from: ie() }],
+ "gradient-via-pos": [{ via: ie() }],
+ "gradient-to-pos": [{ to: ie() }],
+ "gradient-from": [{ from: P() }],
+ "gradient-via": [{ via: P() }],
+ "gradient-to": [{ to: P() }],
+ rounded: [{ rounded: ae() }],
+ "rounded-s": [{ "rounded-s": ae() }],
+ "rounded-e": [{ "rounded-e": ae() }],
+ "rounded-t": [{ "rounded-t": ae() }],
+ "rounded-r": [{ "rounded-r": ae() }],
+ "rounded-b": [{ "rounded-b": ae() }],
+ "rounded-l": [{ "rounded-l": ae() }],
+ "rounded-ss": [{ "rounded-ss": ae() }],
+ "rounded-se": [{ "rounded-se": ae() }],
+ "rounded-ee": [{ "rounded-ee": ae() }],
+ "rounded-es": [{ "rounded-es": ae() }],
+ "rounded-tl": [{ "rounded-tl": ae() }],
+ "rounded-tr": [{ "rounded-tr": ae() }],
+ "rounded-br": [{ "rounded-br": ae() }],
+ "rounded-bl": [{ "rounded-bl": ae() }],
+ "border-w": [{ border: oe() }],
+ "border-w-x": [{ "border-x": oe() }],
+ "border-w-y": [{ "border-y": oe() }],
+ "border-w-s": [{ "border-s": oe() }],
+ "border-w-e": [{ "border-e": oe() }],
+ "border-w-bs": [{ "border-bs": oe() }],
+ "border-w-be": [{ "border-be": oe() }],
+ "border-w-t": [{ "border-t": oe() }],
+ "border-w-r": [{ "border-r": oe() }],
+ "border-w-b": [{ "border-b": oe() }],
+ "border-w-l": [{ "border-l": oe() }],
+ "divide-x": [{ "divide-x": oe() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": ce() }],
+ "divide-y": [{ "divide-y": oe() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...le(),
+ ...se(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...le(),
+ ...se(),
"hidden",
"none"
] }],
- "border-color": [{ border: N() }],
- "border-color-x": [{ "border-x": N() }],
- "border-color-y": [{ "border-y": N() }],
- "border-color-s": [{ "border-s": N() }],
- "border-color-e": [{ "border-e": N() }],
- "border-color-bs": [{ "border-bs": N() }],
- "border-color-be": [{ "border-be": N() }],
- "border-color-t": [{ "border-t": N() }],
- "border-color-r": [{ "border-r": N() }],
- "border-color-b": [{ "border-b": N() }],
- "border-color-l": [{ "border-l": N() }],
- "divide-color": [{ divide: N() }],
+ "border-color": [{ border: P() }],
+ "border-color-x": [{ "border-x": P() }],
+ "border-color-y": [{ "border-y": P() }],
+ "border-color-s": [{ "border-s": P() }],
+ "border-color-e": [{ "border-e": P() }],
+ "border-color-bs": [{ "border-bs": P() }],
+ "border-color-be": [{ "border-be": P() }],
+ "border-color-t": [{ "border-t": P() }],
+ "border-color-r": [{ "border-r": P() }],
+ "border-color-b": [{ "border-b": P() }],
+ "border-color-l": [{ "border-l": P() }],
+ "divide-color": [{ divide: P() }],
"outline-style": [{ outline: [
- ...le(),
+ ...se(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"outline-w": [{ outline: [
"",
- H,
- xm,
- mm
+ dm,
+ Am,
+ Cm
] }],
- "outline-color": [{ outline: N() }],
+ "outline-color": [{ outline: P() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
- Em,
- bm
+ Fm,
+ km
] }],
- "shadow-color": [{ shadow: N() }],
+ "shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Em,
- bm
+ Fm,
+ km
] }],
- "inset-shadow-color": [{ "inset-shadow": N() }],
- "ring-w": [{ ring: ce() }],
+ "inset-shadow-color": [{ "inset-shadow": P() }],
+ "ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
- "ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [H, mm] }],
- "ring-offset-color": [{ "ring-offset": N() }],
- "inset-ring-w": [{ "inset-ring": ce() }],
- "inset-ring-color": [{ "inset-ring": N() }],
+ "ring-color": [{ ring: P() }],
+ "ring-offset-w": [{ "ring-offset": [dm, Cm] }],
+ "ring-offset-color": [{ "ring-offset": P() }],
+ "inset-ring-w": [{ "inset-ring": oe() }],
+ "inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Em,
- bm
+ Fm,
+ km
] }],
- "text-shadow-color": [{ "text-shadow": N() }],
+ "text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"mix-blend": [{ "mix-blend": [
- ...ue(),
+ ...ce(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": ue() }],
+ "bg-blend": [{ "bg-blend": ce() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -20012,51 +20075,51 @@ var Df = /* @__PURE__ */ g(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [H] }],
- "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": 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": 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": 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": 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": 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": 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": [W, U] }],
- "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-linear-pos": [{ "mask-linear": [dm] }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
+ "mask-image-linear-from-color": [{ "mask-linear-from": P() }],
+ "mask-image-linear-to-color": [{ "mask-linear-to": P() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": le() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": le() }],
+ "mask-image-t-from-color": [{ "mask-t-from": P() }],
+ "mask-image-t-to-color": [{ "mask-t-to": P() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": le() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": le() }],
+ "mask-image-r-from-color": [{ "mask-r-from": P() }],
+ "mask-image-r-to-color": [{ "mask-r-to": P() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": le() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": le() }],
+ "mask-image-b-from-color": [{ "mask-b-from": P() }],
+ "mask-image-b-to-color": [{ "mask-b-to": P() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": le() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": le() }],
+ "mask-image-l-from-color": [{ "mask-l-from": P() }],
+ "mask-image-l-to-color": [{ "mask-l-to": P() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": le() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": le() }],
+ "mask-image-x-from-color": [{ "mask-x-from": P() }],
+ "mask-image-x-to-color": [{ "mask-x-to": P() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": le() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": le() }],
+ "mask-image-y-from-color": [{ "mask-y-from": P() }],
+ "mask-image-y-to-color": [{ "mask-y-to": P() }],
+ "mask-image-radial": [{ "mask-radial": [G, W] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
+ "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
+ "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"mask-image-radial-size": [{ "mask-radial": [{
closest: ["side", "corner"],
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [H] }],
- "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-image-conic-pos": [{ "mask-conic": [dm] }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
+ "mask-image-conic-from-color": [{ "mask-conic-from": P() }],
+ "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
@@ -20070,117 +20133,117 @@ var Df = /* @__PURE__ */ g(((e) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: re() }],
- "mask-repeat": [{ mask: ie() }],
- "mask-size": [{ mask: ae() }],
+ "mask-position": [{ mask: ne() }],
+ "mask-repeat": [{ mask: re() }],
+ "mask-size": [{ mask: F() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- W,
- U
+ G,
+ W
] }],
filter: [{ filter: [
"",
"none",
- W,
- U
+ G,
+ W
] }],
- blur: [{ blur: fe() }],
+ blur: [{ blur: ue() }],
brightness: [{ brightness: [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
contrast: [{ contrast: [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Em,
- bm
+ Fm,
+ km
] }],
- "drop-shadow-color": [{ "drop-shadow": N() }],
+ "drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"hue-rotate": [{ "hue-rotate": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
invert: [{ invert: [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
saturate: [{ saturate: [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
sepia: [{ sepia: [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- W,
- U
+ G,
+ W
] }],
- "backdrop-blur": [{ "backdrop-blur": fe() }],
+ "backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -20196,56 +20259,56 @@ var Df = /* @__PURE__ */ g(((e) => {
"shadow",
"transform",
"none",
- W,
- U
+ G,
+ W
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- H,
+ dm,
"initial",
- W,
- U
+ G,
+ W
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- W,
- U
+ G,
+ W
] }],
delay: [{ delay: [
- H,
- W,
- U
+ dm,
+ G,
+ W
] }],
animate: [{ animate: [
"none",
v,
- W,
- U
+ G,
+ W
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- W,
- U
+ G,
+ W
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- 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() }],
+ rotate: [{ rotate: de() }],
+ "rotate-x": [{ "rotate-x": de() }],
+ "rotate-y": [{ "rotate-y": de() }],
+ "rotate-z": [{ "rotate-z": de() }],
+ scale: [{ scale: fe() }],
+ "scale-x": [{ "scale-x": fe() }],
+ "scale-y": [{ "scale-y": fe() }],
+ "scale-z": [{ "scale-z": fe() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: P() }],
- "skew-x": [{ "skew-x": P() }],
- "skew-y": [{ "skew-y": P() }],
+ skew: [{ skew: I() }],
+ "skew-x": [{ "skew-x": I() }],
+ "skew-y": [{ "skew-y": I() }],
transform: [{ transform: [
+ G,
W,
- U,
"",
"none",
"gpu",
@@ -20253,19 +20316,19 @@ var Df = /* @__PURE__ */ g(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: he() }],
- "translate-x": [{ "translate-x": he() }],
- "translate-y": [{ "translate-y": he() }],
- "translate-z": [{ "translate-z": he() }],
+ translate: [{ translate: pe() }],
+ "translate-x": [{ "translate-x": pe() }],
+ "translate-y": [{ "translate-y": pe() }],
+ "translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- rm,
- W,
- U
+ fm,
+ G,
+ W
] }],
- accent: [{ accent: N() }],
+ accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
- "caret-color": [{ caret: N() }],
+ "caret-color": [{ caret: P() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
@@ -20311,8 +20374,8 @@ var Df = /* @__PURE__ */ g(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- W,
- U
+ G,
+ W
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -20323,8 +20386,8 @@ var Df = /* @__PURE__ */ g(((e) => {
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
- "scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
- "scrollbar-track-color": [{ "scrollbar-track": N() }],
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
+ "scrollbar-track-color": [{ "scrollbar-track": P() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
@@ -20398,17 +20461,17 @@ var Df = /* @__PURE__ */ g(((e) => {
"scroll",
"contents",
"transform",
- W,
- U
+ G,
+ W
] }],
- fill: [{ fill: ["none", ...N()] }],
+ fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- H,
- xm,
- mm,
- hm
+ dm,
+ Am,
+ Cm,
+ wm
] }],
- stroke: [{ stroke: ["none", ...N()] }],
+ stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
@@ -20664,16 +20727,16 @@ var Df = /* @__PURE__ */ g(((e) => {
"selection"
]
};
-}, zm = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Bm(e, "cacheSize", t), Bm(e, "prefix", n), Bm(e, "experimentalParseClassName", r), Vm(e.theme, a.theme), Vm(e.classGroups, a.classGroups), Vm(e.conflictingClassGroups, a.conflictingClassGroups), Vm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Bm(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Bm(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Hm(e.theme, i.theme), Hm(e.classGroups, i.classGroups), Hm(e.conflictingClassGroups, i.conflictingClassGroups), Hm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Um(e, i, "postfixLookupClassGroups"), Um(e, i, "orderSensitiveModifiers"), e), Bm = (e, t, n) => {
+}, Jm = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Ym(e, "cacheSize", t), Ym(e, "prefix", n), Ym(e, "experimentalParseClassName", r), Xm(e.theme, a.theme), Xm(e.classGroups, a.classGroups), Xm(e.conflictingClassGroups, a.conflictingClassGroups), Xm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Ym(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Ym(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Zm(e.theme, i.theme), Zm(e.classGroups, i.classGroups), Zm(e.conflictingClassGroups, i.conflictingClassGroups), Zm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Qm(e, i, "postfixLookupClassGroups"), Qm(e, i, "orderSensitiveModifiers"), e), Ym = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Vm = (e, t) => {
- if (t) for (let n in t) Bm(e, n, t[n]);
-}, Hm = (e, t) => {
- if (t) for (let n in t) Um(e, t, n);
-}, Um = (e, t, n) => {
+}, Xm = (e, t) => {
+ if (t) for (let n in t) Ym(e, n, t[n]);
+}, Zm = (e, t) => {
+ if (t) for (let n in t) Qm(e, t, n);
+}, Qm = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Wm = (e, ...t) => typeof e == "function" ? Gp(Rm, e, ...t) : Gp(() => zm(Rm(), e), ...t), Gm = [
+}, $m = (e, ...t) => typeof e == "function" ? $p(qm, e, ...t) : $p(() => Jm(qm(), e), ...t), eh = [
"large-title",
"display-1",
"display-2",
@@ -20687,18 +20750,18 @@ var Df = /* @__PURE__ */ g(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Km = [
+], th = [
"regular",
"medium",
"semibold",
"bold"
-], G = Wm({ extend: { classGroups: { "font-size": [{ text: Gm.flatMap((e) => Km.map((t) => `${e}-${t}`)) }] } } });
-function qm(e) {
+], nh = $m({ extend: { classGroups: { "font-size": [{ text: eh.flatMap((e) => th.map((t) => `${e}-${t}`)) }] } } });
+function rh(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Jm = qm({
+var ih = rh({
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",
@@ -20717,16 +20780,16 @@ var Jm = qm({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Ym({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, w.jsx)("span", {
+function ah({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, D.jsx)("span", {
ref: r,
- className: G(Jm.base, Jm.variant[e], Jm.color[t], n),
+ className: nh(ih.base, ih.variant[e], ih.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Xm = qm({
+var oh = rh({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -20782,43 +20845,43 @@ var Xm = qm({
}
});
function K({ 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, w.jsxs)("button", {
+ return /* @__PURE__ */ (0, D.jsxs)("button", {
ref: c,
type: s,
- className: G(Xm.base, Xm.size[t], Xm.variant[e], n && Xm.iconOnlySize[t], o),
+ className: nh(oh.base, oh.size[t], oh.variant[e], n && oh.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, w.jsx)(r, {
- className: Xm.icon[t],
+ r ? /* @__PURE__ */ (0, D.jsx)(r, {
+ className: oh.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, w.jsx)("span", {
- className: Xm.label[t],
+ !n && a != null && /* @__PURE__ */ (0, D.jsx)("span", {
+ className: oh.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, w.jsx)(i, {
- className: Xm.icon[t],
+ !n && i ? /* @__PURE__ */ (0, D.jsx)(i, {
+ className: oh.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Zm({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
- return /* @__PURE__ */ (0, w.jsxs)("a", {
+function sh({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+ return /* @__PURE__ */ (0, D.jsxs)("a", {
ref: s,
- className: G(Xm.base, Xm.size[t], Xm.variant[e], n && Xm.iconOnlySize[t], o),
+ className: nh(oh.base, oh.size[t], oh.variant[e], n && oh.iconOnlySize[t], o),
...c,
children: [
- r ? /* @__PURE__ */ (0, w.jsx)(r, {
- className: Xm.icon[t],
+ r ? /* @__PURE__ */ (0, D.jsx)(r, {
+ className: oh.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, w.jsx)("span", {
- className: Xm.label[t],
+ !n && a != null && /* @__PURE__ */ (0, D.jsx)("span", {
+ className: oh.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, w.jsx)(i, {
- className: Xm.icon[t],
+ !n && i ? /* @__PURE__ */ (0, D.jsx)(i, {
+ className: oh.icon[t],
"aria-hidden": !0
}) : null
]
@@ -20826,13 +20889,13 @@ function Zm({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/api.ts
-var Qm = class extends Error {
+var ch = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(i(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, $m = (e) => {
+}, lh = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -20845,7 +20908,7 @@ var Qm = class extends Error {
}
return "";
}, q = (e) => i(e);
-async function eh(e, t) {
+async function uh(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -20854,7 +20917,7 @@ async function eh(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Qm($m(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new ch(lh(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function J(e, t, n = "POST", r) {
@@ -20871,63 +20934,63 @@ async function J(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Qm($m(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new ch(lh(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var th = "min-w-0", nh = {
+var dh = "min-w-0", fh = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, rh = {
+}, ph = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface"
-}, ih = {
+}, mh = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, ah = {
+}, hh = {
none: "",
default: "p-5"
-}, oh = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", sh = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
-function ch(e = {}) {
+}, gh = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", _h = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
+function vh(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- th,
- nh[t],
- rh[s],
- ah[n],
- a ? ih[a] : "",
- r ? oh : "",
- i ? sh : "",
+ dh,
+ fh[t],
+ ph[s],
+ hh[n],
+ a ? mh[a] : "",
+ r ? gh : "",
+ i ? _h : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var lh = {
+var yh = {
page: "rounded-2xl border border-separator-border px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function uh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: `flex flex-col items-center gap-2 text-center ${lh[i]}`,
+function bh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: `flex flex-col items-center gap-2 text-center ${yh[i]}`,
children: [
- /* @__PURE__ */ (0, w.jsx)(e, {
+ /* @__PURE__ */ (0, D.jsx)(e, {
"aria-hidden": !0,
className: "size-6 text-text-tertiary"
}),
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-headline-medium text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "max-w-prose text-body-2-regular text-text-secondary",
children: r
}),
- n ? /* @__PURE__ */ (0, w.jsx)("div", {
+ n ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "mt-2 flex flex-wrap justify-center gap-2",
children: n
}) : null
@@ -20936,17 +20999,17 @@ function uh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function dh({ label: e }) {
- return /* @__PURE__ */ (0, w.jsxs)("p", {
+function xh({ label: e }) {
+ return /* @__PURE__ */ (0, D.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, D.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, D.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, D.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
}), e]
});
@@ -20954,41 +21017,41 @@ function dh({ label: e }) {
//#endregion
//#region src/react/components/note.tsx
function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
- let a = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ let a = /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-0.5",
- children: [t ? /* @__PURE__ */ (0, w.jsx)("p", {
+ children: [t ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-medium",
children: t
- }) : null, /* @__PURE__ */ (0, w.jsx)("p", {
+ }) : null, /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular",
children: i
})]
}), n]
}), r] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, w.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, D.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
children: a
});
- case "success": return /* @__PURE__ */ (0, w.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, D.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
children: a
});
- case "warning": return /* @__PURE__ */ (0, w.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, D.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
children: a
});
- case "error": return /* @__PURE__ */ (0, w.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, D.jsx)("div", {
role: "alert",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
children: a
});
- default: return /* @__PURE__ */ (0, w.jsx)("div", {
+ default: return /* @__PURE__ */ (0, D.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
children: a
@@ -20997,17 +21060,17 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function fh({ children: e }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
+function Sh({ children: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
});
}
//#endregion
//#region src/react/components/progress.tsx
-function ph({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function Ch({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
- return /* @__PURE__ */ (0, w.jsxs)("svg", {
+ return /* @__PURE__ */ (0, D.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
@@ -21017,17 +21080,17 @@ function ph({ label: e, value: t, max: n = 100, stops: r = [] }) {
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, w.jsx)("rect", {
+ /* @__PURE__ */ (0, D.jsx)("rect", {
width: n,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, w.jsx)("rect", {
+ /* @__PURE__ */ (0, D.jsx)("rect", {
width: i,
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, w.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, D.jsx)("rect", {
x: e,
width: .4,
height: 1,
@@ -21038,9 +21101,9 @@ function ph({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function mh(e = "") {
- let t = (0, C.useRef)(null), [n, r] = (0, C.useState)(""), [i, a] = (0, C.useState)(e);
- (0, C.useEffect)(() => () => t.current?.abort(), []);
+function wh(e = "") {
+ let t = (0, E.useRef)(null), [n, r] = (0, E.useState)(""), [i, a] = (0, E.useState)(e);
+ (0, E.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -21070,17 +21133,17 @@ function X(e) {
}
//#endregion
//#region src/react/query.ts
-var hh = new et({ defaultOptions: { queries: {
+var Th = new tt({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), gh = "/api/tasks", _h = ["tasks"], vh = (e, t) => eh(`${gh}?${new URLSearchParams({
+} } }), Eh = "/api/tasks", Dh = ["tasks"], Oh = (e, t) => uh(`${Eh}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function yh(...e) {
+function kh(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -21088,26 +21151,26 @@ function yh(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var bh = 2e3, xh = 1e4, Sh = (e) => e?.running.length ? bh : xh, Ch = (e) => eh(gh, e);
-async function wh(e) {
- await hh.fetchQuery({
- queryKey: _h,
- queryFn: () => Ch(e)
+var Ah = 2e3, jh = 1e4, Mh = (e) => e?.running.length ? Ah : jh, Nh = (e) => uh(Eh, e);
+async function Ph(e) {
+ await Th.fetchQuery({
+ queryKey: Dh,
+ queryFn: () => Nh(e)
});
}
-var Th = {
+var Fh = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Eh = {
+}, Ih = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Dh = (e) => Eh[e] || e, Oh = {
+}, Lh = (e) => Ih[e] || e, Rh = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -21137,7 +21200,7 @@ var Th = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function kh(e) {
+function zh(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -21146,7 +21209,7 @@ function kh(e) {
}
return t;
}
-function Ah(e, t) {
+function Bh(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -21168,19 +21231,19 @@ function Ah(e, t) {
}
return n;
}
-var jh = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Mh = (e) => e.status === "pending" || e.status === "running";
-function Nh(e) {
+var Vh = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Hh = (e) => e.status === "pending" || e.status === "running";
+function Uh(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || Lh(e.result_summary) || (Mh(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || qh(e.result_summary) || (Hh(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function Ph(e) {
+function Wh(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 Fh(e) {
+function Gh(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -21190,7 +21253,7 @@ function Fh(e) {
minute: "2-digit"
});
}
-var Ih = /* @__PURE__ */ new Set([
+var Kh = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -21199,39 +21262,39 @@ var Ih = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function Lh(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Ih.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Oh[e] || e} ${t}`).join(" · ");
+function qh(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Kh.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Rh[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Rh = {
+var Jh = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function zh({ status: e }) {
- return /* @__PURE__ */ (0, w.jsx)(Ym, {
- color: Rh[e] ?? "neutral",
- children: Dh(e)
+function Yh({ status: e }) {
+ return /* @__PURE__ */ (0, D.jsx)(ah, {
+ color: Jh[e] ?? "neutral",
+ children: Lh(e)
});
}
-function Bh({ rows: e }) {
- return /* @__PURE__ */ (0, w.jsx)("ul", {
+function Xh({ rows: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Nh(e);
- return /* @__PURE__ */ (0, w.jsxs)("li", {
+ let t = Uh(e);
+ return /* @__PURE__ */ (0, D.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-t border-separator-border px-5 py-2.5",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, w.jsx)(zh, { status: e.status }),
- t ? /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)(Yh, { status: e.status }),
+ t ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
}) : null
@@ -21240,38 +21303,38 @@ function Bh({ rows: e }) {
})
});
}
-function Vh({ run: e, meta: t, children: n, footer: r, followups: i }) {
- return /* @__PURE__ */ (0, w.jsxs)("li", {
+function Zh({ run: e, meta: t, children: n, footer: r, followups: i }) {
+ return /* @__PURE__ */ (0, D.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: ch({
+ className: vh({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
}),
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, D.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, w.jsx)(zh, { status: e.status })]
+ }), /* @__PURE__ */ (0, D.jsx)(Yh, { status: e.status })]
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
n
]
}),
- i?.length ? /* @__PURE__ */ (0, w.jsx)(Bh, { rows: i }) : null,
- r ? /* @__PURE__ */ (0, w.jsx)("div", {
+ i?.length ? /* @__PURE__ */ (0, D.jsx)(Xh, { rows: i }) : null,
+ r ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
- children: /* @__PURE__ */ (0, w.jsx)("p", {
+ children: /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
})
@@ -21279,19 +21342,19 @@ function Vh({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Hh({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Ph(e.elapsed_seconds), o = [Th[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, w.jsx)(Vh, {
+function Qh({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Wh(e.elapsed_seconds), o = [Fh[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, D.jsx)(Zh, {
run: e,
meta: o,
followups: t,
- children: n > 0 ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: n > 0 ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(ph, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Ch, {
label: i,
value: r,
max: n
- }), /* @__PURE__ */ (0, w.jsxs)("p", {
+ }), /* @__PURE__ */ (0, D.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
i,
@@ -21302,130 +21365,130 @@ function Hh({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: i })
+ }) : /* @__PURE__ */ (0, D.jsx)(xh, { label: i })
});
}
-function Uh({ run: e, followups: t, runs: n }) {
- let r = Lh(e.result_summary), i = Ph(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- Th[e.trigger] || e.trigger,
+function $h({ run: e, followups: t, runs: n }) {
+ let r = qh(e.result_summary), i = Wh(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ Fh[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${Fh(a.finished_at)} – ${Fh(e.finished_at)}`
+ `${Gh(a.finished_at)} – ${Gh(e.finished_at)}`
] : [
- Th[e.trigger] || e.trigger,
- Fh(e.finished_at),
+ Fh[e.trigger] || e.trigger,
+ Gh(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, w.jsx)(Vh, {
+ return /* @__PURE__ */ (0, D.jsx)(Zh, {
run: e,
meta: o,
footer: e.error,
followups: t,
- children: r ? /* @__PURE__ */ (0, w.jsx)("p", {
+ children: r ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
}) : null
});
}
-function Wh({ title: e, children: t }) {
- let n = (0, C.useId)();
- return /* @__PURE__ */ (0, w.jsxs)("section", {
+function eg({ title: e, children: t }) {
+ let n = (0, E.useId)();
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
id: n,
className: "text-title-2-semibold text-text-primary",
children: e
}), t]
});
}
-function Gh({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, w.jsx)("ul", {
+function tg({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, D.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Kh(e) {
- let t = pt({
- queryKey: _h,
- queryFn: ({ signal: e }) => Ch(e),
- refetchInterval: (e) => Sh(e.state.data)
- }), n = t.data, r = n?.finished, [i, a] = (0, C.useState)([]), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)(r);
- r !== c && (l(r), i.length && c && a(yh(i, c)));
- let u = mt({
- mutationFn: ({ oldest: e }) => vh(e),
+function ng(e) {
+ let t = mt({
+ queryKey: Dh,
+ queryFn: ({ signal: e }) => Nh(e),
+ refetchInterval: (e) => Mh(e.state.data)
+ }), n = t.data, r = n?.finished, [i, a] = (0, E.useState)([]), [o, s] = (0, E.useState)(!1), [c, l] = (0, E.useState)(r);
+ r !== c && (l(r), i.length && c && a(kh(i, c)));
+ let u = ht({
+ mutationFn: ({ oldest: e }) => Oh(e),
onSuccess: (e, { shown: t }) => {
- a((n) => yh(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => kh(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? q(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = yh(n.finished || [], i), p = [
+ let f = kh(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = kh(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = zh(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(Mh)), S = g(n.running || []), T = g(n.skipped || []), E = _.filter((e) => !x.includes(e) && !T.some((t) => t.id === e.id)), D = Ah(E, (e) => jh(e) && !m.get(e.id)?.length), O = !S.length && !x.length && !T.length && !E.length;
- return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [
- d ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ }, x = _.filter((e) => m.get(e.id)?.some(Hh)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Bh(w, (e) => Vh(e) && !m.get(e.id)?.length), O = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [
+ d ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: d
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ n.available === !1 ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- O ? /* @__PURE__ */ (0, w.jsx)(uh, {
+ O ? /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: Xf,
+ icon: ip,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsx)(Wh, {
+ }) : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsx)(eg, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, w.jsxs)(Gh, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, D.jsxs)(tg, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, w.jsx)(Hh, {
+ children: [S.map((e) => /* @__PURE__ */ (0, D.jsx)(Qh, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, w.jsx)(Uh, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, D.jsx)($h, {
run: e,
followups: m.get(e.id)
}, e.id))]
- }) : /* @__PURE__ */ (0, w.jsx)(Y, {
+ }) : /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "neutral",
children: "没有任务在跑。"
})
}),
- T.length ? /* @__PURE__ */ (0, w.jsx)(Wh, {
+ C.length ? /* @__PURE__ */ (0, D.jsx)(eg, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, w.jsx)(Gh, { children: T.map((e) => /* @__PURE__ */ (0, w.jsx)(Uh, {
+ children: /* @__PURE__ */ (0, D.jsx)(tg, { children: C.map((e) => /* @__PURE__ */ (0, D.jsx)($h, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- E.length || y ? /* @__PURE__ */ (0, w.jsxs)(Wh, {
+ w.length || y ? /* @__PURE__ */ (0, D.jsxs)(eg, {
title: "最近完成",
children: [
- E.length ? /* @__PURE__ */ (0, w.jsx)(Gh, { children: D.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, w.jsx)(Uh, {
+ w.length ? /* @__PURE__ */ (0, D.jsx)(tg, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, D.jsx)($h, {
run: e,
runs: t,
followups: m.get(e.id)
}, e.id)) }) : null,
- u.error ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ u.error ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: q(u.error)
}) : null,
- y ? /* @__PURE__ */ (0, w.jsx)(K, {
+ y ? /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Nf,
+ leadingIcon: Hf,
className: "self-start",
...X(u.isPending),
onClick: b,
@@ -21438,14 +21501,14 @@ function Kh(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var qh = Symbol("default");
-function Jh({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ C.createElement(n.Provider, { value: r }, t);
+var rg = Symbol("default");
+function ig({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ E.createElement(n.Provider, { value: r }, t);
return t;
}
-function Yh(e) {
+function ag(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, C.useMemo)(() => {
+ return (0, E.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -21477,11 +21540,11 @@ function Yh(e) {
c
]);
}
-function Xh(e, t) {
- let n = (0, C.useContext)(e);
+function og(e, t) {
+ let n = (0, E.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || qh;
+ let e = t || rg;
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}.`);
@@ -21490,8 +21553,8 @@ function Xh(e, t) {
}
return n;
}
-function Zh(e, t, n) {
- let { ref: r, ...i } = Xh(n, e.slot) || {}, a = Hr((0, C.useMemo)(() => Cr(t, r), [t, r])), o = R(i, e);
+function sg(e, t, n) {
+ let { ref: r, ...i } = og(n, e.slot) || {}, a = Xr((0, E.useMemo)(() => jr(t, r), [t, r])), o = B(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,
@@ -21509,56 +21572,56 @@ function Zh(e, t, n) {
...e.style
}), [o, a];
}
-function Qh(e = !0) {
- let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {
+function cg(e = !0) {
+ let [t, n] = (0, E.useState)(e), r = (0, E.useRef)(!1), i = (0, E.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return $t(() => {
+ return cn(() => {
r.current || n(!1);
}, []), [i, t];
}
-function $h(e) {
+function lg(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function eg(e, t, n) {
- let { render: r, ...i } = t, a = (0, C.useRef)(null), o = (0, C.useMemo)(() => Cr(n, a), [n, a]);
- $t(() => {}, [e, r]);
+function ug(e, t, n) {
+ let { render: r, ...i } = t, a = (0, E.useRef)(null), o = (0, E.useMemo)(() => jr(n, a), [n, a]);
+ cn(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ C.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ E.createElement(e, s);
}
-var tg = {}, Z = new Proxy({}, { get(e, t) {
+var dg = {}, Z = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = tg[t];
- return n || (n = /*#__PURE__*/ (0, C.forwardRef)(eg.bind(null, t)), tg[t] = n), n;
-} }), ng = /*#__PURE__*/ (0, C.createContext)(null), rg = /*#__PURE__*/ (0, C.createContext)(null), ig = /*#__PURE__*/ (0, C.createContext)(null), ag = {
+ let n = dg[t];
+ return n || (n = /*#__PURE__*/ (0, E.forwardRef)(ug.bind(null, t)), dg[t] = n), n;
+} }), fg = /*#__PURE__*/ (0, E.createContext)(null), pg = /*#__PURE__*/ (0, E.createContext)(null), mg = /*#__PURE__*/ (0, E.createContext)(null), hg = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return og(e, null, t);
+ return gg(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return og(e, t, n);
+ return gg(e, t, n);
}
};
-function og(e, t, n) {
- return wt({
+function gg(e, t, n) {
+ return Mt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ C.createElement(C.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ E.createElement(E.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ C.createElement(C.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ E.createElement(E.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, sg(e, t, n));
+ }), r, _g(e, t, n));
}
});
}
-function sg(e, t, n) {
+function _g(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);
@@ -21572,30 +21635,30 @@ function sg(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, C.isValidElement)(t) && s.push(/*#__PURE__*/ (0, C.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, E.isValidElement)(t) && s.push(/*#__PURE__*/ (0, E.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var cg = /*#__PURE__*/ (0, C.createContext)(ag);
-function lg(e) {
- return (0, C.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
+var vg = /*#__PURE__*/ (0, E.createContext)(hg);
+function yg(e) {
+ return (0, E.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var ug = /*#__PURE__*/ (0, C.createContext)({}), dg = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, ug);
+var bg = /*#__PURE__*/ (0, E.createContext)({}), xg = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, bg);
let { elementType: n = "label", ...r } = e, i = Z[n];
- return /*#__PURE__*/ C.createElement(i, {
+ return /*#__PURE__*/ E.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), fg = /*#__PURE__*/ (0, C.createContext)(null), pg = /*#__PURE__*/ (0, C.createContext)({}), mg = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, pg);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ja(e, t);
- i = gg(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Oc(e), { hoverProps: l, isHovered: u } = Fc({
+}), Sg = /*#__PURE__*/ (0, E.createContext)(null), Cg = /*#__PURE__*/ (0, E.createContext)({}), wg = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, Cg);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ba(e, t);
+ i = Eg(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = Lc(e), { hoverProps: l, isHovered: u } = Wc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -21605,25 +21668,25 @@ var ug = /*#__PURE__*/ (0, C.createContext)({}), dg = /*#__PURE__*/ Yr(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Yh({
+ }, f = ag({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = br(i.id), m = br(), h = i["aria-labelledby"];
+ }), p = Or(i.id), m = Or(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, C.useRef)(r);
- (0, C.useEffect)(() => {
+ let g = (0, E.useRef)(r);
+ (0, E.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && lo(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && yo(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = B(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ C.createElement(Z.button, {
- ...R(_, f, i, o, l),
+ let _ = V(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ E.createElement(Z.button, {
+ ...B(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -21636,62 +21699,62 @@ var ug = /*#__PURE__*/ (0, C.createContext)({}), dg = /*#__PURE__*/ Yr(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ C.createElement(fg.Provider, { value: { id: m } }, f.children));
-}), hg = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function gg(e, t) {
+ }, /*#__PURE__*/ E.createElement(Sg.Provider, { value: { id: m } }, f.children));
+}), Tg = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Eg(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !hg.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Tg.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 _g = /*#__PURE__*/ (0, C.createContext)({}), vg = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, _g);
+var Dg = /*#__PURE__*/ (0, E.createContext)({}), Og = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, Dg);
let { children: n, level: r = 3, className: i, ...a } = e, o = Z[`h${r}`];
- return /*#__PURE__*/ C.createElement(o, {
+ return /*#__PURE__*/ E.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), yg = /*#__PURE__*/ (0, C.createContext)({}), bg = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, yg);
+}), kg = /*#__PURE__*/ (0, E.createContext)({}), Ag = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, kg);
let { elementType: n = "span", ...r } = e, i = Z[n];
- return /*#__PURE__*/ C.createElement(i, {
+ return /*#__PURE__*/ E.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), xg = /*#__PURE__*/ (0, C.createContext)(null), Sg = /*#__PURE__*/ (0, C.createContext)(null), Cg = /*#__PURE__*/ (0, C.createContext)(null), wg = /*#__PURE__*/ (0, C.createContext)(null), Tg = /*#__PURE__*/ (0, C.createContext)(null), Eg = /*#__PURE__*/ (0, C.createContext)(null);
-function Dg(e, t) {
- let { validationBehavior: n } = Xh(Sg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useContext)(Tg), a = Hr((0, C.useMemo)(() => Cr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...$h(e),
+}), jg = /*#__PURE__*/ (0, E.createContext)(null), Mg = /*#__PURE__*/ (0, E.createContext)(null), Ng = /*#__PURE__*/ (0, E.createContext)(null), Pg = /*#__PURE__*/ (0, E.createContext)(null), Fg = /*#__PURE__*/ (0, E.createContext)(null), Ig = /*#__PURE__*/ (0, E.createContext)(null);
+function Lg(e, t) {
+ let { validationBehavior: n } = og(Mg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, E.useContext)(Fg), a = Xr((0, E.useMemo)(() => jr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...lg(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Jo(o, i, a) : Vo(o, qo(e), a), a];
+ return [i ? rs(o, i, a) : Yo(o, ns(e), a), a];
}
-var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+var Rg = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Zh(r, t, Cg);
- let [i, a] = Dg(e, n);
- return /*#__PURE__*/ C.createElement(Eg.Provider, { value: {
+ [e, t] = sg(r, t, Ng);
+ let [i, a] = Lg(e, n);
+ return /*#__PURE__*/ E.createElement(Ig.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ C.createElement(kg, {
+ } }, /*#__PURE__*/ E.createElement(zg, {
...e,
ref: t
}));
-}), kg = /*#__PURE__*/ (0, C.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, C.useContext)(Eg), { isFocused: p, isFocusVisible: m, focusProps: h } = Oc(), g = a || o, { hoverProps: _, isHovered: v } = Fc({
+}), zg = /*#__PURE__*/ (0, E.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, E.useContext)(Ig), { isFocused: p, isFocusVisible: m, focusProps: h } = Lc(), g = a || o, { hoverProps: _, isHovered: v } = Wc({
...e,
isDisabled: g
- }), y = Yh({
+ }), y = ag({
...e,
defaultClassName: u,
values: {
@@ -21706,9 +21769,9 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = B(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(Z.label, {
- ...R(b, n, _, y),
+ }), b = V(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ E.createElement(Z.label, {
+ ...B(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -21721,20 +21784,20 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ C.createElement(Qo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
- ...R(r, h),
+ }, /*#__PURE__*/ E.createElement(ss, { elementType: "span" }, /*#__PURE__*/ E.createElement("input", {
+ ...B(r, h),
ref: l
})), y.children);
-}), Ag = /*#__PURE__*/ (0, C.createContext)({}), jg = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, Ag);
+}), Bg = /*#__PURE__*/ (0, E.createContext)({}), Vg = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, Bg);
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 } = Fc({
+ let { hoverProps: l, isHovered: u } = Wc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Oc({ within: !0 }), m = Yh({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Lc({ within: !0 }), m = ag({
...e,
values: {
isHovered: u,
@@ -21745,8 +21808,8 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ C.createElement(Z.div, {
- ...R(c, p, l),
+ return /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -21758,18 +21821,18 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Mg = /*#__PURE__*/ (0, C.createContext)({}), Ng = (e) => {
+}), Hg = /*#__PURE__*/ (0, E.createContext)({}), Ug = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Pg = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, Mg);
- let { hoverProps: n, isHovered: r } = Fc({
+}, Wg = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, Hg);
+ let { hoverProps: n, isHovered: r } = Wc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Oc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = Lc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Yh({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ag({
...e,
values: {
isHovered: r,
@@ -21780,8 +21843,8 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ C.createElement(Z.input, {
- ...R(Ng(e), o, n),
+ return /*#__PURE__*/ E.createElement(Z.input, {
+ ...B(Ug(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -21790,8 +21853,8 @@ var Og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Fg = {};
-Fg = {
+}), Gg = {};
+Gg = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -21799,8 +21862,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var Ig = {};
-Ig = {
+var Kg = {};
+Kg = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -21808,8 +21871,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var Lg = {};
-Lg = {
+var qg = {};
+qg = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -21817,8 +21880,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var Rg = {};
-Rg = {
+var Jg = {};
+Jg = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -21826,8 +21889,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var zg = {};
-zg = {
+var Yg = {};
+Yg = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -21835,8 +21898,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Bg = {};
-Bg = {
+var Xg = {};
+Xg = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -21844,8 +21907,8 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Vg = {};
-Vg = {
+var Zg = {};
+Zg = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -21853,8 +21916,8 @@ Vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Hg = {};
-Hg = {
+var Qg = {};
+Qg = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -21862,8 +21925,8 @@ Hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Ug = {};
-Ug = {
+var $g = {};
+$g = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -21871,8 +21934,8 @@ Ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Wg = {};
-Wg = {
+var e_ = {};
+e_ = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -21880,8 +21943,8 @@ Wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Gg = {};
-Gg = {
+var t_ = {};
+t_ = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -21889,8 +21952,8 @@ Gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Kg = {};
-Kg = {
+var n_ = {};
+n_ = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -21898,8 +21961,8 @@ Kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var qg = {};
-qg = {
+var r_ = {};
+r_ = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -21907,8 +21970,8 @@ qg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Jg = {};
-Jg = {
+var i_ = {};
+i_ = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -21916,8 +21979,8 @@ Jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Yg = {};
-Yg = {
+var a_ = {};
+a_ = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -21925,8 +21988,8 @@ Yg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Xg = {};
-Xg = {
+var o_ = {};
+o_ = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -21934,8 +21997,8 @@ Xg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Zg = {};
-Zg = {
+var s_ = {};
+s_ = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -21943,8 +22006,8 @@ Zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Qg = {};
-Qg = {
+var c_ = {};
+c_ = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -21952,8 +22015,8 @@ Qg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var $g = {};
-$g = {
+var l_ = {};
+l_ = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -21961,8 +22024,8 @@ $g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var e_ = {};
-e_ = {
+var u_ = {};
+u_ = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -21970,8 +22033,8 @@ e_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var t_ = {};
-t_ = {
+var d_ = {};
+d_ = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -21979,8 +22042,8 @@ t_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var n_ = {};
-n_ = {
+var f_ = {};
+f_ = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -21988,8 +22051,8 @@ n_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var r_ = {};
-r_ = {
+var p_ = {};
+p_ = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -21997,8 +22060,8 @@ r_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var i_ = {};
-i_ = {
+var m_ = {};
+m_ = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -22006,8 +22069,8 @@ i_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var a_ = {};
-a_ = {
+var h_ = {};
+h_ = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -22015,8 +22078,8 @@ a_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var o_ = {};
-o_ = {
+var g_ = {};
+g_ = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -22024,8 +22087,8 @@ o_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var s_ = {};
-s_ = {
+var __ = {};
+__ = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -22033,8 +22096,8 @@ s_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var c_ = {};
-c_ = {
+var v_ = {};
+v_ = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -22042,8 +22105,8 @@ c_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var l_ = {};
-l_ = {
+var y_ = {};
+y_ = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -22051,8 +22114,8 @@ l_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var u_ = {};
-u_ = {
+var b_ = {};
+b_ = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -22060,8 +22123,8 @@ u_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var d_ = {};
-d_ = {
+var x_ = {};
+x_ = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -22069,8 +22132,8 @@ d_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var f_ = {};
-f_ = {
+var S_ = {};
+S_ = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -22078,8 +22141,8 @@ f_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var p_ = {};
-p_ = {
+var C_ = {};
+C_ = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -22087,8 +22150,8 @@ p_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var m_ = {};
-m_ = {
+var w_ = {};
+w_ = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -22096,52 +22159,52 @@ m_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var h_ = {};
-h_ = {
- "ar-AE": Fg,
- "bg-BG": Ig,
- "cs-CZ": Lg,
- "da-DK": Rg,
- "de-DE": zg,
- "el-GR": Bg,
- "en-US": Vg,
- "es-ES": Hg,
- "et-EE": Ug,
- "fi-FI": Wg,
- "fr-FR": Gg,
- "he-IL": Kg,
- "hr-HR": qg,
- "hu-HU": Jg,
- "it-IT": Yg,
- "ja-JP": Xg,
- "ko-KR": Zg,
- "lt-LT": Qg,
- "lv-LV": $g,
- "nb-NO": e_,
- "nl-NL": t_,
- "pl-PL": n_,
- "pt-BR": r_,
- "pt-PT": i_,
- "ro-RO": a_,
- "ru-RU": o_,
- "sk-SK": s_,
- "sl-SI": c_,
- "sr-SP": l_,
- "sv-SE": u_,
- "tr-TR": d_,
- "uk-UA": f_,
- "zh-CN": p_,
- "zh-TW": m_
+var T_ = {};
+T_ = {
+ "ar-AE": Gg,
+ "bg-BG": Kg,
+ "cs-CZ": qg,
+ "da-DK": Jg,
+ "de-DE": Yg,
+ "el-GR": Xg,
+ "en-US": Zg,
+ "es-ES": Qg,
+ "et-EE": $g,
+ "fi-FI": e_,
+ "fr-FR": t_,
+ "he-IL": n_,
+ "hr-HR": r_,
+ "hu-HU": i_,
+ "it-IT": a_,
+ "ja-JP": o_,
+ "ko-KR": s_,
+ "lt-LT": c_,
+ "lv-LV": l_,
+ "nb-NO": u_,
+ "nl-NL": d_,
+ "pl-PL": f_,
+ "pt-BR": p_,
+ "pt-PT": m_,
+ "ro-RO": h_,
+ "ru-RU": g_,
+ "sk-SK": __,
+ "sl-SI": v_,
+ "sr-SP": y_,
+ "sv-SE": b_,
+ "tr-TR": x_,
+ "uk-UA": S_,
+ "zh-CN": C_,
+ "zh-TW": w_
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var g_ = /*#__PURE__*/ (0, C.createContext)({}), __ = /*#__PURE__*/ (0, C.createContext)(null), v_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { render: n } = (0, C.useContext)(__);
- return /*#__PURE__*/ C.createElement(C.Fragment, null, n(e, t));
+var E_ = /*#__PURE__*/ (0, E.createContext)({}), D_ = /*#__PURE__*/ (0, E.createContext)(null), O_ = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { render: n } = (0, E.useContext)(D_);
+ return /*#__PURE__*/ E.createElement(E.Fragment, null, n(e, t));
});
-function y_(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, C.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ C.createElement(v_, { target: e });
+function k_(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, E.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ E.createElement(O_, { target: e });
}, [
t?.target,
r,
@@ -22149,7 +22212,7 @@ function y_(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function b_(e, t, n) {
+function A_(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;
@@ -22168,19 +22231,19 @@ function b_(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, C.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, E.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var x_ = /*#__PURE__*/ (0, C.createContext)({}), S_ = /*#__PURE__*/ (0, C.createContext)(null);
-function C_(e) {
- let t = (0, C.useRef)({});
- return /*#__PURE__*/ C.createElement(S_.Provider, { value: t }, e.children);
+var j_ = /*#__PURE__*/ (0, E.createContext)({}), M_ = /*#__PURE__*/ (0, E.createContext)(null);
+function N_(e) {
+ let t = (0, E.useRef)({});
+ return /*#__PURE__*/ E.createElement(M_.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var w_ = /*#__PURE__*/ (0, C.createContext)({ isSelected: !1 }), T_ = /*#__PURE__*/ (0, C.createContext)({});
-(class extends ht {
+var P_ = /*#__PURE__*/ (0, E.createContext)({ isSelected: !1 }), F_ = /*#__PURE__*/ (0, E.createContext)({});
+(class extends Ct {
static {
this.type = "separator";
}
@@ -22195,13 +22258,13 @@ var w_ = /*#__PURE__*/ (0, C.createContext)({ isSelected: !1 }), T_ = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function E_(e) {
- let t = C.version.split(".");
+function I_(e) {
+ let t = E.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 D_ = class {
+var L_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -22245,23 +22308,23 @@ var D_ = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, O_ = class e extends Set {
+}, R_ = 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 k_(e, t) {
+function z_(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function A_(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, C.useRef)(!1), [, s] = (0, C.useState)(!1), c = (0, C.useRef)(null), l = (0, C.useRef)(null), [, u] = (0, C.useState)(null), [d, f] = Ko((0, C.useMemo)(() => j_(e.selectedKeys), [e.selectedKeys]), (0, C.useMemo)(() => j_(e.defaultSelectedKeys, new O_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, C.useState)(i);
+function B_(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, E.useRef)(!1), [, s] = (0, E.useState)(!1), c = (0, E.useRef)(null), l = (0, E.useRef)(null), [, u] = (0, E.useState)(null), [d, f] = ts((0, E.useMemo)(() => V_(e.selectedKeys), [e.selectedKeys]), (0, E.useMemo)(() => V_(e.defaultSelectedKeys, new R_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, E.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, E.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, C.useRef)(i);
- return (0, C.useEffect)(() => {
+ let g = (0, E.useRef)(i);
+ return (0, E.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -22285,18 +22348,18 @@ function A_(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !k_(e, d)) && f(e);
+ (r || !z_(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function j_(e, t) {
- return e ? e === "all" ? "all" : new O_(e) : t;
+function V_(e, t) {
+ return e ? e === "all" ? "all" : new R_(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var M_ = class e {
+var H_ = 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;
}
@@ -22352,7 +22415,7 @@ var M_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && mc(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Cc(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -22360,7 +22423,7 @@ var M_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && mc(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Cc(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -22379,10 +22442,10 @@ var M_ = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new O_([t], t, t);
+ if (this.state.selectedKeys === "all") n = new R_([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new O_(e, r, t);
+ n = new R_(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);
}
@@ -22390,7 +22453,7 @@ var M_ = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? mc(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Cc(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);
@@ -22416,19 +22479,19 @@ var M_ = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new O_(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new R_(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 O_([t], t, t) : new O_();
+ let n = this.canSelectItem(t) ? new R_([t], t, t) : new R_();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new O_();
+ let t = new R_();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -22440,7 +22503,7 @@ var M_ = 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(dc(uc(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(bc(yc(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -22451,7 +22514,7 @@ var M_ = 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 O_());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new R_());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -22492,13 +22555,13 @@ var M_ = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, N_ = class {
+}, U_ = class {
build(e, t) {
- return this.context = t, P_(() => this.iterateCollection(e));
+ return this.context = t, W_(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (C.isValidElement(t) && t.type === C.Fragment) yield* this.iterateCollection({
+ if (E.isValidElement(t) && t.type === E.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -22511,7 +22574,7 @@ var M_ = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- C.Children.forEach(t, (t) => {
+ E.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -22539,9 +22602,9 @@ var M_ = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (C.isValidElement(e.element) && e.element.type === C.Fragment) {
+ if (E.isValidElement(e.element) && e.element.type === E.Fragment) {
let i = [];
- C.Children.forEach(e.element.props.children, (e) => {
+ E.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -22560,7 +22623,7 @@ var M_ = class e {
}
i = t.renderer(e.value);
}
- if (C.isValidElement(i)) {
+ if (E.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -22576,10 +22639,10 @@ var M_ = class e {
...a,
key: l,
index: s,
- wrapper: F_(e.wrapper, a.wrapper)
+ wrapper: G_(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 <${I_(t.type)}> in <${I_(r?.type ?? "unknown parent type")}>. Only <${I_(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 <${K_(t.type)}> in <${K_(r?.type ?? "unknown parent type")}>. Only <${K_(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -22601,7 +22664,7 @@ var M_ = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: P_(function* () {
+ childNodes: W_(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -22620,7 +22683,7 @@ var M_ = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function P_(e) {
+function W_(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -22628,19 +22691,19 @@ function P_(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function F_(e, t) {
+function G_(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function I_(e) {
+function K_(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function L_(e, t, n) {
- let r = (0, C.useMemo)(() => new N_(), []), { children: i, items: a, collection: o } = e;
- return (0, C.useMemo)(() => o || t(r.build({
+function q_(e, t, n) {
+ let r = (0, E.useMemo)(() => new U_(), []), { children: i, items: a, collection: o } = e;
+ return (0, E.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -22654,29 +22717,29 @@ function L_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function R_(e) {
- let { filter: t, layoutDelegate: n } = e, r = A_(e), i = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = L_(e, (0, C.useCallback)((e) => t ? new D_(t(e)) : new D_(e), [t]), (0, C.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, C.useMemo)(() => new M_(a, r, { layoutDelegate: n }), [
+function J_(e) {
+ let { filter: t, layoutDelegate: n } = e, r = B_(e), i = (0, E.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = q_(e, (0, E.useCallback)((e) => t ? new L_(t(e)) : new L_(e), [t]), (0, E.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, E.useMemo)(() => new H_(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return B_(a, o), {
+ return X_(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function z_(e, t) {
- let n = (0, C.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return B_(n, r), {
+function Y_(e, t) {
+ let n = (0, E.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return X_(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function B_(e, t) {
- let n = (0, C.useRef)(null);
- (0, C.useEffect)(() => {
+function X_(e, t) {
+ let n = (0, E.useRef)(null);
+ (0, E.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -22702,15 +22765,15 @@ function B_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function V_(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, C.useRef)(null), s = ki((e) => {
+function Z_(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, E.useRef)(null), s = Li((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- $t(() => {
+ cn(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: mo(t?.current),
+ root: Co(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -22726,42 +22789,42 @@ function V_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var H_ = /*#__PURE__*/ (0, C.createContext)(null), U_ = /*#__PURE__*/ (0, C.createContext)(null), W_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, H_);
- let n = (0, C.useContext)(U_);
- return n ? /*#__PURE__*/ C.createElement(K_, {
+var Q_ = /*#__PURE__*/ (0, E.createContext)(null), $_ = /*#__PURE__*/ (0, E.createContext)(null), ev = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, Q_);
+ let n = (0, E.useContext)($_);
+ return n ? /*#__PURE__*/ E.createElement(nv, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ C.createElement(ai, { content: /*#__PURE__*/ C.createElement(_i, e) }, (n) => /*#__PURE__*/ C.createElement(G_, {
+ }) : /*#__PURE__*/ E.createElement(pi, { content: /*#__PURE__*/ E.createElement(Ti, e) }, (n) => /*#__PURE__*/ E.createElement(tv, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function G_({ props: e, listBoxRef: t, collection: n }) {
+function tv({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, C.useContext)(cg), i = R_({
+ let { layoutDelegate: r } = (0, E.useContext)(vg), i = J_({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ C.createElement(K_, {
+ return /*#__PURE__*/ E.createElement(nv, {
state: i,
props: e,
listBoxRef: t
});
}
-function K_({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Zh(t, n, ng);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = z_(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Hi(), { disabledBehavior: p, disabledKeys: m } = l, h = yc({
+function nv({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = sg(t, n, fg);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Y_(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Xi(), { disabledBehavior: p, disabledKeys: m } = l, h = Oc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, C.useContext)(cg), b = (0, C.useMemo)(() => t.keyboardDelegate || new hs({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, E.useContext)(vg), b = (0, E.useMemo)(() => t.keyboardDelegate || new ws({
collection: c,
collator: h,
ref: n,
@@ -22782,14 +22845,14 @@ function K_({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = jl({
+ ]), { listBoxProps: x } = Bl({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
isVirtualized: g
}, s, n);
- (0, C.useRef)(u), (0, C.useRef)(d), (0, C.useEffect)(() => {}, [u, d]);
- let S, w, T, E = !1, D = null, O = (0, C.useRef)(null);
+ (0, E.useRef)(u), (0, E.useRef)(d), (0, E.useEffect)(() => {}, [u, d]);
+ let S, C, w, T = !1, D = null, O = (0, E.useRef)(null);
if (u && r) {
S = r.useDraggableCollectionState({
collection: c,
@@ -22797,10 +22860,10 @@ function K_({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? O : void 0
}), r.useDraggableCollection({}, S, n);
let e = r.DragPreview;
- D = r.renderDragPreview ? /*#__PURE__*/ C.createElement(e, { ref: O }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ E.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
- w = r.useDroppableCollectionState({
+ C = r.useDroppableCollectionState({
collection: c,
selectionManager: l
});
@@ -22809,95 +22872,95 @@ function K_({ state: e, props: t, listBoxRef: n }) {
layout: i,
direction: f
});
- T = r.useDroppableCollection({
+ w = r.useDroppableCollection({
keyboardDelegate: b,
dropTargetDelegate: e
- }, w, n), E = w.isDropTarget({ type: "root" });
+ }, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = Oc(), M = s.collection.size === 0, ee = {
- isDropTarget: E,
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = Lc(), M = s.collection.size === 0, ee = {
+ isDropTarget: T,
isEmpty: M,
isFocused: A,
isFocusVisible: j,
layout: t.layout || "stack",
orientation: a,
state: s
- }, te = Yh({
+ }, te = ag({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
values: ee
- }), ne = null;
- M && t.renderEmptyState && (ne = /*#__PURE__*/ C.createElement("div", {
+ }), N = null;
+ M && t.renderEmptyState && (N = /*#__PURE__*/ E.createElement("div", {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(ee)));
- let N = B(t, { global: !0 });
- return /*#__PURE__*/ C.createElement(La, null, /*#__PURE__*/ C.createElement(Z.div, {
- ...R(N, te, x, k, T?.collectionProps),
+ let P = V(t, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Ka, null, /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(P, te, x, k, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
- "data-drop-target": E || void 0,
+ "data-drop-target": T || void 0,
"data-empty": M || void 0,
"data-focused": A || void 0,
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ C.createElement(Jh, { values: [
- [H_, t],
- [U_, s],
- [g_, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [
+ [Q_, t],
+ [$_, s],
+ [E_, {
dragAndDropHooks: r,
dragState: S,
- dropState: w
+ dropState: C
}],
- [T_, { elementType: "div" }],
- [__, { render: Y_ }],
- [ig, {
+ [F_, { elementType: "div" }],
+ [D_, { render: av }],
+ [mg, {
name: "ListBoxSection",
- render: q_
+ render: rv
}]
- ] }, /*#__PURE__*/ C.createElement(C_, null, /*#__PURE__*/ C.createElement(y, {
+ ] }, /*#__PURE__*/ E.createElement(N_, null, /*#__PURE__*/ E.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: b_(l, r, w),
- renderDropIndicator: y_(r, w)
- }))), ne, D));
+ persistedKeys: A_(l, r, C),
+ renderDropIndicator: k_(r, C)
+ }))), N, D));
}
-function q_(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, C.useContext)(U_), { dragAndDropHooks: a, dropState: o } = (0, C.useContext)(g_), { CollectionBranch: s } = (0, C.useContext)(cg), [c, l] = Qh(), { headingProps: u, groupProps: d } = Ml({
+function rv(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, E.useContext)($_), { dragAndDropHooks: a, dropState: o } = (0, E.useContext)(E_), { CollectionBranch: s } = (0, E.useContext)(vg), [c, l] = cg(), { headingProps: u, groupProps: d } = Vl({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Yh({
+ }), f = ag({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = B(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ C.createElement(Z.section, {
- ...R(p, f, d),
+ }), p = V(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ E.createElement(Z.section, {
+ ...B(p, f, d),
ref: t
- }, /*#__PURE__*/ C.createElement(x_.Provider, { value: {
+ }, /*#__PURE__*/ E.createElement(j_.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ C.createElement(s, {
+ } }, /*#__PURE__*/ E.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: y_(a, o)
+ renderDropIndicator: k_(a, o)
})));
}
-var J_ = /*#__PURE__*/ pi(vt, function(e, t, n) {
- let r = Hr(t), i = (0, C.useContext)(U_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, C.useContext)(g_), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Nl({
+var iv = /*#__PURE__*/ xi(Et, function(e, t, n) {
+ let r = Xr(t), i = (0, E.useContext)($_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, E.useContext)(E_), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Hl({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = Fc({
+ }, 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 } = Vr(e), { focusProps: g } = Dr(e), _ = null;
+ }), { keyboardProps: h } = Yr(e), { focusProps: g } = Fr(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -22908,7 +22971,7 @@ var J_ = /*#__PURE__*/ pi(vt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Yh({
+ let y = o && o.isDragging(n.key), b = ag({
...e,
id: void 0,
children: e.children,
@@ -22923,12 +22986,12 @@ var J_ = /*#__PURE__*/ pi(vt, function(e, t, n) {
isDropTarget: v?.isDropTarget
}
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Z.a : Z.div, S = B(e, { global: !0 });
- return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ C.createElement(x, {
- ...R(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ let x = e.href ? Z.a : Z.div, S = V(e, { global: !0 });
+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ E.createElement(x, {
+ ...B(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -22940,29 +23003,29 @@ var J_ = /*#__PURE__*/ pi(vt, 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__*/ C.createElement(Jh, { values: [[yg, { slots: {
- [qh]: u,
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[kg, { slots: {
+ [rg]: u,
label: u,
description: d
- } }], [w_, { isSelected: f.isSelected }]] }, b.children));
+ } }], [P_, { isSelected: f.isSelected }]] }, b.children));
});
-function Y_(e, t) {
- t = Hr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, C.useContext)(g_), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ C.createElement(Z_, {
+function av(e, t) {
+ t = Xr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, E.useContext)(E_), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ E.createElement(sv, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function X_(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Yh({
+function ov(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ag({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Z.div, {
+ return /*#__PURE__*/ E.createElement(E.Fragment, null, /*#__PURE__*/ E.createElement(Z.div, {
...n,
...a,
role: "option",
@@ -22970,10 +23033,10 @@ function X_(e, t) {
"data-drop-target": r || void 0
}));
}
-var Z_ = /*#__PURE__*/ (0, C.forwardRef)(X_);
-pi(_t, function(e, t, n) {
- let r = (0, C.useContext)(U_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, C.useRef)(null);
- V_((0, C.useMemo)(() => ({
+var sv = /*#__PURE__*/ (0, E.forwardRef)(ov);
+xi(Tt, function(e, t, n) {
+ let r = (0, E.useContext)($_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, E.useRef)(null);
+ Z_((0, E.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -22983,21 +23046,21 @@ pi(_t, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Yh({
+ let l = ag({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement("div", {
+ return /*#__PURE__*/ E.createElement(E.Fragment, null, /*#__PURE__*/ E.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: E_(!0)
- }, /*#__PURE__*/ C.createElement("div", {
+ inert: I_(!0)
+ }, /*#__PURE__*/ E.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -23005,8 +23068,8 @@ pi(_t, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Z.div, {
- ...R(B(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ E.createElement(E.Fragment, null, /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(V(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -23014,21 +23077,21 @@ pi(_t, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Q_ = /*#__PURE__*/ (0, C.createContext)({ placement: "bottom" });
+var cv = /*#__PURE__*/ (0, E.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function $_(e) {
- let [t, n] = Ko(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, C.useState)(null);
+function lv(e) {
+ let [t, n] = ts(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, E.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, C.useCallback)(() => {
+ open: (0, E.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, C.useCallback)(() => {
+ close: (0, E.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, C.useCallback)(() => {
+ toggle: (0, E.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -23037,14 +23100,14 @@ function $_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function ev(e, t = !0) {
- let [n, r] = (0, C.useState)(!0), i = n && t;
- return $t(() => {
+function uv(e, t = !0) {
+ let [n, r] = (0, E.useState)(!0), i = n && t;
+ return cn(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), nv(e, i, (0, C.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), fv(e, i, (0, E.useCallback)(() => r(!1), [])), i;
}
-function tv(e, t) {
- let [n, r] = (0, C.useState)(t ? "open" : "closed");
+function dv(e, t) {
+ let [n, r] = (0, E.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -23053,12 +23116,12 @@ function tv(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return nv(e, i, (0, C.useCallback)(() => {
+ return fv(e, i, (0, E.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function nv(e, t, n) {
- $t(() => {
+function fv(e, t, n) {
+ cn(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -23071,7 +23134,7 @@ function nv(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, ti.flushSync)(() => {
+ r || (0, li.flushSync)(() => {
n();
});
}), () => {
@@ -23086,9 +23149,9 @@ function nv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var rv = /*#__PURE__*/ (0, C.createContext)(null), iv = /*#__PURE__*/ (0, C.createContext)(null), av = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, rv);
- let n = (0, C.useContext)(cv), r = $_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = tv(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Xr(), { direction: c } = Hi();
+var pv = /*#__PURE__*/ (0, E.createContext)(null), mv = /*#__PURE__*/ (0, E.createContext)(null), hv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, pv);
+ let n = (0, E.useContext)(vv), r = lv(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = dv(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ii(), { direction: c } = Xi();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -23097,9 +23160,9 @@ var rv = /*#__PURE__*/ (0, C.createContext)(null), iv = /*#__PURE__*/ (0, C.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ C.createElement(C.Fragment, null, t);
+ })), /*#__PURE__*/ E.createElement(E.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ C.createElement(ov, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ E.createElement(gv, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -23108,13 +23171,13 @@ var rv = /*#__PURE__*/ (0, C.createContext)(null), iv = /*#__PURE__*/ (0, C.crea
dir: c
});
});
-function ov({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useContext)(iv), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = nd({
+function gv({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, E.useRef)(null), o = (0, E.useRef)(null), s = (0, E.useContext)(mv), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = dd({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = ev(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Yh({
+ }, e), m = i.popoverRef, h = uv(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ag({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -23123,34 +23186,34 @@ function ov({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, C.useState)(i.trigger === "PreviewTrigger");
- $t(() => {
+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, E.useState)(i.trigger === "PreviewTrigger");
+ cn(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
- }, [m, v]), (0, C.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || nr() !== "pointer") && m.current && !Ht(m.current) && pr(m.current);
+ }, [m, v]), (0, E.useEffect)(() => {
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || ur() !== "pointer") && m.current && !Xt(m.current) && xr(m.current);
}, [
y,
m,
i.trigger
]);
- let x = (0, C.useMemo)(() => {
+ let x = (0, E.useMemo)(() => {
let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ C.createElement(t.Provider, { value: null }, e);
+ if (r) for (let t of r) e = /*#__PURE__*/ E.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [S, w] = (0, C.useState)(null), T = (0, C.useCallback)(() => {
- i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
+ }, [_.children, r]), [S, C] = (0, E.useState)(null), w = (0, E.useCallback)(() => {
+ i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- $t(T, [T]), Fl({
+ cn(w, [w]), Wl({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
- onResize: T
+ onResize: w
});
- let E = {
+ let T = {
...l.style,
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, D = /*#__PURE__*/ C.createElement(Z.div, {
- ...R(B(i, { global: !0 }), l),
+ }, D = /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(V(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -23159,118 +23222,118 @@ function ov({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"aria-labelledby": i["aria-labelledby"],
ref: m,
slot: i.slot || void 0,
- style: E,
+ style: T,
dir: i.dir,
"data-trigger": i.trigger,
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ C.createElement(vu, { onDismiss: e.close }), /*#__PURE__*/ C.createElement(Q_.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ E.createElement(Du, { onDismiss: e.close }), /*#__PURE__*/ E.createElement(cv.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ C.createElement(vu, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ C.createElement(Tc, {
+ } }, x), /*#__PURE__*/ E.createElement(Du, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ E.createElement(Pc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ C.createElement(Tc, {
+ }, D) : /*#__PURE__*/ E.createElement(Pc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ C.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ E.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ C.createElement("div", {
+ }), /*#__PURE__*/ E.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ C.createElement(iv.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ E.createElement(mv.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var sv = /*#__PURE__*/ (0, C.createContext)(null), cv = /*#__PURE__*/ (0, C.createContext)(null), lv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+var _v = /*#__PURE__*/ (0, E.createContext)(null), vv = /*#__PURE__*/ (0, E.createContext)(null), yv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Zh(e, t, sv);
- let { dialogProps: r, titleProps: i, contentProps: a } = Dc({
+ [e, t] = sg(e, t, _v);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Ic({
...e,
"aria-labelledby": n
- }, t), o = (0, C.useContext)(cv);
+ }, t), o = (0, E.useContext)(vv);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Yh({
+ let s = ag({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Z.section, {
- ...R(c, s, r),
+ }), c = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Z.section, {
+ ...B(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [
- [_g, { slots: {
- [qh]: {},
+ }, /*#__PURE__*/ E.createElement(ig, { values: [
+ [Dg, { slots: {
+ [rg]: {},
title: {
...i,
level: 2
}
} }],
- [yg, { slots: {
- [qh]: {},
+ [kg, { slots: {
+ [rg]: {},
description: a
} }],
- [pg, { slots: {
- [qh]: {},
+ [Cg, { slots: {
+ [rg]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), uv = typeof document < "u" && window.visualViewport;
-function dv() {
- let e = Rn(), [t, n] = (0, C.useState)(() => e ? {
+}), bv = typeof document < "u" && window.visualViewport;
+function xv() {
+ let e = Kn(), [t, n] = (0, E.useState)(() => e ? {
width: 0,
height: 0
- } : fv());
- return (0, C.useEffect)(() => {
+ } : Sv());
+ return (0, E.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- uv && uv.scale > 1 || e(fv());
+ bv && bv.scale > 1 || e(Sv());
}, r, i = (t) => {
- uv && uv.scale > 1 || Di(L(t)) && (r = requestAnimationFrame(() => {
- let t = Bt();
- (!t || !Di(t)) && e({
+ bv && bv.scale > 1 || Fi(z(t)) && (r = requestAnimationFrame(() => {
+ let t = Jt();
+ (!t || !Fi(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(fv()), fn() && mn() && window.addEventListener("blur", i, !0), uv ? uv.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), fn() && mn() && window.removeEventListener("blur", i, !0), uv ? uv.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(Sv()), bn() && Sn() && window.addEventListener("blur", i, !0), bv ? bv.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), bn() && Sn() && window.removeEventListener("blur", i, !0), bv ? bv.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function fv() {
+function Sv() {
return {
- width: uv ? Math.min(uv.width * uv.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: uv ? uv.height * uv.scale : document.documentElement.clientHeight
+ width: bv ? Math.min(bv.width * bv.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: bv ? bv.height * bv.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var pv = /*#__PURE__*/ (0, C.createContext)(null), mv = /*#__PURE__*/ (0, C.createContext)(null), hv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- if ((0, C.useContext)(mv)) return /*#__PURE__*/ C.createElement(yv, {
+var Cv = /*#__PURE__*/ (0, E.createContext)(null), wv = /*#__PURE__*/ (0, E.createContext)(null), Tv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ if ((0, E.useContext)(wv)) return /*#__PURE__*/ E.createElement(kv, {
...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__*/ C.createElement(_v, {
+ return /*#__PURE__*/ E.createElement(Dv, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -23280,15 +23343,15 @@ var pv = /*#__PURE__*/ (0, C.createContext)(null), mv = /*#__PURE__*/ (0, C.crea
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ C.createElement(yv, {
+ }, /*#__PURE__*/ E.createElement(kv, {
...f,
modalRef: t
}, s));
});
-function gv(e, t) {
- [e, t] = Zh(e, t, pv);
- let n = (0, C.useContext)(cv), r = $_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Hr(t), o = (0, C.useRef)(null), s = tv(a, i.isOpen), c = tv(o, i.isOpen), l = s || c || e.isExiting || !1, u = Rn();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ C.createElement(vv, {
+function Ev(e, t) {
+ [e, t] = sg(e, t, Cv);
+ let n = (0, E.useContext)(vv), r = lv(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Xr(t), o = (0, E.useRef)(null), s = dv(a, i.isOpen), c = dv(o, i.isOpen), l = s || c || e.isExiting || !1, u = Kn();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ E.createElement(Ov, {
...e,
state: i,
isExiting: l,
@@ -23296,9 +23359,9 @@ function gv(e, t) {
modalRef: o
});
}
-var _v = /*#__PURE__*/ (0, C.forwardRef)(gv);
-function vv({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = ku(t, r, n), o = ev(t.overlayRef) || t.isEntering || !1, s = Yh({
+var Dv = /*#__PURE__*/ (0, E.forwardRef)(Ev);
+function Ov({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ru(t, r, n), o = uv(t.overlayRef) || t.isEntering || !1, s = ag({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -23306,9 +23369,9 @@ function vv({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = dv(), l, u;
+ }), c = xv(), l, u;
if (typeof document < "u") {
- let e = po(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = So(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 = {
@@ -23318,25 +23381,25 @@ function vv({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ C.createElement(Tc, {
+ return /*#__PURE__*/ E.createElement(Pc, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ C.createElement(Z.div, {
- ...R(B(t, { global: !0 }), a),
+ }, /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(V(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [[mv, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[wv, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [cv, r]] }, s.children)));
+ }], [vv, r]] }, s.children)));
}
-function yv(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, C.useContext)(mv), a = (0, C.useContext)(cv), o = Hr((0, C.useMemo)(() => Cr(e.modalRef, n), [e.modalRef, n])), s = ev(o), c = Yh({
+function kv(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, E.useContext)(wv), a = (0, E.useContext)(vv), o = Xr((0, E.useMemo)(() => jr(e.modalRef, n), [e.modalRef, n])), s = uv(o), c = ag({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -23345,19 +23408,19 @@ function yv(e) {
state: a
}
});
- return /*#__PURE__*/ C.createElement(Z.div, {
- ...R(B(e, { global: !0 }), t),
+ return /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(V(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ C.createElement(vu, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ E.createElement(Du, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var bv = Math.round(Math.random() * 1e10), xv = 0;
-function Sv(e) {
- let t = (0, C.useMemo)(() => e.name || `radio-group-${bv}-${++xv}`, [e.name]), [n, r] = Ko(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, C.useState)(n), [a, o] = (0, C.useState)(null), s = Po({
+var Av = Math.round(Math.random() * 1e10), jv = 0;
+function Mv(e) {
+ let t = (0, E.useMemo)(() => e.name || `radio-group-${Av}-${++jv}`, [e.name]), [n, r] = ts(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, E.useState)(n), [a, o] = (0, E.useState)(null), s = Ho({
...e,
value: n
}), c = (t) => {
@@ -23380,16 +23443,16 @@ function Sv(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Cv = /*#__PURE__*/ (0, C.createContext)(null), wv = /*#__PURE__*/ (0, C.createContext)(null), Tv = /*#__PURE__*/ (0, C.createContext)(null), Ev = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, Cv);
- let { validationBehavior: n } = Xh(Sg) || {}, r = e.validationBehavior ?? n ?? "native", i = Sv({
+var Nv = /*#__PURE__*/ (0, E.createContext)(null), Pv = /*#__PURE__*/ (0, E.createContext)(null), Fv = /*#__PURE__*/ (0, E.createContext)(null), Iv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, Nv);
+ let { validationBehavior: n } = og(Mg) || {}, r = e.validationBehavior ?? n ?? "native", i = Mv({
...e,
validationBehavior: r
- }), [a, o] = Qh(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ad({
+ }), [a, o] = cg(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = md({
...e,
label: o,
validationBehavior: r
- }, i), f = Yh({
+ }, i), f = ag({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -23400,9 +23463,9 @@ var Cv = /*#__PURE__*/ (0, C.createContext)(null), wv = /*#__PURE__*/ (0, C.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Z.div, {
- ...R(p, f, s),
+ }), p = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -23410,39 +23473,39 @@ var Cv = /*#__PURE__*/ (0, C.createContext)(null), wv = /*#__PURE__*/ (0, C.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [
- [Tv, i],
- [ug, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [
+ [Fv, i],
+ [bg, {
...c,
ref: a,
elementType: "span"
}],
- [yg, { slots: {
+ [kg, { slots: {
description: l,
errorMessage: u
} }],
- [xg, d]
- ] }, /*#__PURE__*/ C.createElement(C_, null, f.children)));
-}), Dv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [jg, d]
+ ] }, /*#__PURE__*/ E.createElement(N_, null, f.children)));
+}), Lv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Zh(r, t, wv);
- let i = C.useContext(Tv), a = Hr((0, C.useMemo)(() => Cr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = id({
- ...$h(e),
+ [e, t] = sg(r, t, Pv);
+ let i = E.useContext(Fv), a = Xr((0, E.useMemo)(() => jr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = pd({
+ ...lg(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ C.createElement(Ov.Provider, { value: {
+ return /*#__PURE__*/ E.createElement(Rv.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ C.createElement(kv, {
+ } }, /*#__PURE__*/ E.createElement(zv, {
...e,
ref: t
}));
-}), Ov = /*#__PURE__*/ (0, C.createContext)(null), kv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, C.useContext)(Ov), l = C.useContext(Tv), { isFocused: u, isFocusVisible: d, focusProps: f } = Oc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Fc({
+}), Rv = /*#__PURE__*/ (0, E.createContext)(null), zv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, E.useContext)(Rv), l = E.useContext(Fv), { isFocused: u, isFocusVisible: d, focusProps: f } = Lc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Wc({
...e,
isDisabled: p
- }), g = Yh({
+ }), g = ag({
...e,
defaultClassName: s,
values: {
@@ -23456,9 +23519,9 @@ var Cv = /*#__PURE__*/ (0, C.createContext)(null), wv = /*#__PURE__*/ (0, C.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = B(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ C.createElement(Z.label, {
- ...R(_, n, m, g),
+ }), _ = V(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ E.createElement(Z.label, {
+ ...B(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -23469,19 +23532,19 @@ var Cv = /*#__PURE__*/ (0, C.createContext)(null), wv = /*#__PURE__*/ (0, C.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ C.createElement(Qo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
- ...R(r, f),
+ }, /*#__PURE__*/ E.createElement(ss, { elementType: "span" }, /*#__PURE__*/ E.createElement("input", {
+ ...B(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Av(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = $_(e), [i, a] = (0, C.useState)(null), o = (0, C.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Bv(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = lv(e), [i, a] = (0, E.useState)(null), o = (0, E.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Ko((0, C.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = ts((0, E.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -23493,12 +23556,12 @@ function Av(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = R_({
+ }, d = J_({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, C.useMemo)(() => jv(l), [l]),
+ selectedKeys: (0, E.useMemo)(() => Vv(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -23508,10 +23571,10 @@ function Av(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, C.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Po({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, E.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Ho({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, C.useState)(!1), [_] = (0, C.useState)(l);
+ }), [h, g] = (0, E.useState)(!1), [_] = (0, E.useState)(l);
return {
...m,
...d,
@@ -23535,17 +23598,17 @@ function Av(e) {
setFocused: g
};
}
-function jv(e) {
+function Vv(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 Mv(e) {
+function Hv(e) {
return e && e.__esModule ? e.default : e;
}
-var Nv = /*#__PURE__*/ (0, C.createContext)(null), Pv = /*#__PURE__*/ (0, C.createContext)(null), Fv = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, Nv);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, C.useMemo)(() => typeof n == "function" ? n({
+var Uv = /*#__PURE__*/ (0, E.createContext)(null), Wv = /*#__PURE__*/ (0, E.createContext)(null), Gv = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, Uv);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, E.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -23559,27 +23622,27 @@ var Nv = /*#__PURE__*/ (0, C.createContext)(null), Pv = /*#__PURE__*/ (0, C.crea
i,
a
]);
- return /*#__PURE__*/ C.createElement(ai, { content: o }, (n) => /*#__PURE__*/ C.createElement(Lv, {
+ return /*#__PURE__*/ E.createElement(pi, { content: o }, (n) => /*#__PURE__*/ E.createElement(qv, {
props: e,
collection: n,
selectRef: t
}));
-}), Iv = [
- ug,
- pg,
- yg
+}), Kv = [
+ bg,
+ Cg,
+ kg
];
-function Lv({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Xh(Sg) || {}, i = e.validationBehavior ?? r ?? "native", a = Av({
+function qv({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = og(Mg) || {}, i = e.validationBehavior ?? r ?? "native", a = Bv({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Oc({ within: !0 }), c = (0, C.useRef)(null), [l, u] = Qh(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = sd({
- ...$h(e),
+ }), { isFocusVisible: o, focusProps: s } = Lc({ within: !0 }), c = (0, E.useRef)(null), [l, u] = cg(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = gd({
+ ...lg(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, C.useMemo)(() => ({
+ }, a, c), y = (0, E.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -23593,49 +23656,49 @@ function Lv({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Yh({
+ ]), b = ag({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = B(e, { global: !0 });
+ }), x = V(e, { global: !0 });
delete x.id;
- let S = (0, C.useRef)(null);
- return /*#__PURE__*/ C.createElement(Jh, { values: [
- [Nv, e],
- [Pv, a],
- [Rv, p],
- [ug, {
+ let S = (0, E.useRef)(null);
+ return /*#__PURE__*/ E.createElement(ig, { values: [
+ [Uv, e],
+ [Wv, a],
+ [Jv, p],
+ [bg, {
...d,
ref: l,
elementType: "span"
}],
- [pg, {
+ [Cg, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [cv, a],
- [rv, {
+ [vv, a],
+ [pv, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Iv
+ clearContexts: Kv
}],
- [H_, {
+ [Q_, {
...m,
ref: S
}],
- [U_, a],
- [yg, { slots: {
+ [$_, a],
+ [kg, { slots: {
description: h,
errorMessage: g
} }],
- [xg, v]
- ] }, /*#__PURE__*/ C.createElement(Z.div, {
- ...R(x, b, s),
+ [jg, v]
+ ] }, /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -23644,14 +23707,14 @@ function Lv({ 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__*/ C.createElement(ld, {
+ }, b.children, /*#__PURE__*/ E.createElement(vd, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, Rv);
- let n = (0, C.useContext)(Pv), { placeholder: r } = Xh(Nv), i = n.selectedItems.map((e) => {
+for (var Jv = /*#__PURE__*/ (0, E.createContext)(null), Yv = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, Jv);
+ let n = (0, E.useContext)(Wv), { placeholder: r } = og(Uv), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -23663,59 +23726,59 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = kc(), o = (0, C.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, C.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Rc(), o = (0, E.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, E.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, C.useMemo)(() => {
+ ]), l = (0, E.useMemo)(() => {
if (s === "single") return i[0];
let e = a.formatToParts(o);
if (e.length === 0) return null;
let t = 0;
- return e.map((e) => e.type === "element" ? /*#__PURE__*/ C.createElement(C.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ E.createElement(E.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = na(Mv(h_), "react-aria-components"), d = Yh({
+ ]), u = ua(Hv(T_), "react-aria-components"), d = ag({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, C.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, E.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Z.span, {
+ }), f = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Z.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ C.createElement(yg.Provider, { value: void 0 }, d.children));
-}), Bv = /*#__PURE__*/ (0, C.createContext)(null), Vv = /*#__PURE__*/ (0, C.createContext)(null), Hv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ E.createElement(kg.Provider, { value: void 0 }, d.children));
+}), Xv = /*#__PURE__*/ (0, E.createContext)(null), Zv = /*#__PURE__*/ (0, E.createContext)(null), Qv = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Zh(r, t, Bv);
- let i = Hr((0, C.useMemo)(() => Cr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = qo(e), o = ud({
- ...$h(e),
+ [e, t] = sg(r, t, Xv);
+ let i = Xr((0, E.useMemo)(() => jr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ns(e), o = yd({
+ ...lg(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ C.createElement(Jh, { values: [[Vv, a], [Uv, {
+ return /*#__PURE__*/ E.createElement(ig, { values: [[Zv, a], [$v, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ C.createElement(Wv, {
+ }]] }, /*#__PURE__*/ E.createElement(ey, {
...e,
ref: t
}));
-}), Uv = /*#__PURE__*/ (0, C.createContext)(null), Wv = /*#__PURE__*/ (0, C.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, C.useContext)(Uv), { isFocused: f, isFocusVisible: p, focusProps: m } = Oc(), h = a || o, g = (0, C.useContext)(Vv), { hoverProps: _, isHovered: v } = Fc({
+}), $v = /*#__PURE__*/ (0, E.createContext)(null), ey = /*#__PURE__*/ (0, E.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, E.useContext)($v), { isFocused: f, isFocusVisible: p, focusProps: m } = Lc(), h = a || o, g = (0, E.useContext)(Zv), { hoverProps: _, isHovered: v } = Wc({
...e,
isDisabled: h
- }), y = Yh({
+ }), y = ag({
...e,
defaultClassName: u,
values: {
@@ -23730,9 +23793,9 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
isRequired: d || !1,
state: g
}
- }), b = B(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(Z.label, {
- ...R(b, n, _, y),
+ }), b = V(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ E.createElement(Z.label, {
+ ...B(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -23744,11 +23807,11 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ C.createElement(Qo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
- ...R(r, m),
+ }, /*#__PURE__*/ E.createElement(ss, { elementType: "span" }, /*#__PURE__*/ E.createElement("input", {
+ ...B(r, m),
ref: l
})), y.children);
-}), Gv = 10, Kv = 5, qv = class {
+}), ty = 10, ny = 5, ry = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -23758,7 +23821,7 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Kv && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Gv && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > ny && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > ty && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -23837,11 +23900,11 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Kv && i) {
+ if (Math.abs(r - c.lastSwitchY) > ny && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > Gv && a) {
+ if (l > ty && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -23856,7 +23919,7 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
boundaryContext: null
};
}
-}, Jv = class {
+}, iy = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -23926,8 +23989,8 @@ for (var Rv = /*#__PURE__*/ (0, C.createContext)(null), zv = /*#__PURE__*/ Yr(fu
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Yv = "row-header-column-" + Math.random().toString(36).slice(2), Xv = "row-header-column-" + Math.random().toString(36).slice(2); Yv === Xv;) Xv = "row-header-column-" + Math.random().toString(36).slice(2);
-function Zv(e, t) {
+}, ay = "row-header-column-" + Math.random().toString(36).slice(2), oy = "row-header-column-" + Math.random().toString(36).slice(2); ay === oy;) oy = "row-header-column-" + Math.random().toString(36).slice(2);
+function sy(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -24011,13 +24074,13 @@ function Zv(e, t) {
textValue: ""
}));
}
-var Qv = class extends Jv {
+var cy = class extends iy {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Yv,
+ key: ay,
value: null,
textValue: "",
level: 0,
@@ -24032,7 +24095,7 @@ var Qv = class extends Jv {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Xv,
+ key: oy,
value: null,
textValue: "",
level: 0,
@@ -24059,7 +24122,7 @@ var Qv = class extends Jv {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Zv(s, a);
+ let l = sy(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -24085,10 +24148,10 @@ var Qv = class extends Jv {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return dc(this.body.childNodes)?.key ?? null;
+ return bc(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return pc(this.body.childNodes)?.key ?? null;
+ return Sc(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -24120,20 +24183,20 @@ var Qv = class extends Jv {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function $v(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || A_(e), i = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function ly(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || B_(e), i = (0, E.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = uc(n, t);
- e = r === "last" ? pc(i)?.key ?? null : dc(i)?.key ?? null;
+ let i = yc(n, t);
+ e = r === "last" ? Sc(i)?.key ?? null : bc(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, C.useMemo)(() => new M_(t, r), [t, r]), s = (0, C.useRef)(null);
- return (0, C.useEffect)(() => {
+ let o = (0, E.useMemo)(() => new H_(t, r), [t, r]), s = (0, E.useRef)(null);
+ return (0, E.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
if (!n) {
@@ -24152,7 +24215,7 @@ function $v(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...uc(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...yc(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -24171,12 +24234,12 @@ function $v(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var ey = {
+var uy = {
ascending: "descending",
descending: "ascending"
};
-function ty(e) {
- let [t, n] = (0, C.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, C.useMemo)(() => ({
+function dy(e) {
+ let [t, n] = (0, E.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, E.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
selectionMode: r,
@@ -24186,11 +24249,11 @@ function ty(e) {
i,
r,
a
- ]), c = L_(e, (0, C.useCallback)((e) => new Qv(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $v({
+ ]), c = q_(e, (0, E.useCallback)((e) => new cy(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = ly({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = Ko(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = ts(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -24202,7 +24265,7 @@ function ty(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? ey[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? uy[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -24215,8 +24278,8 @@ function ty(e) {
treeColumn: o
};
}
-function ny(e, t) {
- let n = (0, C.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+function fy(e, t) {
+ let n = (0, E.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
collection: n,
@@ -24225,7 +24288,7 @@ function ny(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var ry = class extends yt {
+var py = class extends Dt {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -24240,7 +24303,7 @@ var ry = class extends yt {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Sy(-2);
+ return new My(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -24266,7 +24329,7 @@ var ry = class extends yt {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Zv(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = sy(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -24347,11 +24410,11 @@ var ry = class extends yt {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new py(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Cy(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, iy = /*#__PURE__*/ (0, C.createContext)(null), ay = /*#__PURE__*/ (0, C.createContext)(null), oy = /*#__PURE__*/ (0, C.createContext)(null), sy = /*#__PURE__*/ (0, C.createContext)(null), cy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, ay);
- let n = A_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, C.useMemo)(() => ({
+}, my = /*#__PURE__*/ (0, E.createContext)(null), hy = /*#__PURE__*/ (0, E.createContext)(null), gy = /*#__PURE__*/ (0, E.createContext)(null), _y = /*#__PURE__*/ (0, E.createContext)(null), vy = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, hy);
+ let n = B_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, E.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -24361,26 +24424,26 @@ var ry = class extends yt {
i,
a,
o
- ]), c = /*#__PURE__*/ C.createElement(fy.Provider, { value: s }, /*#__PURE__*/ C.createElement(_i, e));
- return /*#__PURE__*/ C.createElement(ai, {
+ ]), c = /*#__PURE__*/ E.createElement(Sy.Provider, { value: s }, /*#__PURE__*/ E.createElement(Ti, e));
+ return /*#__PURE__*/ E.createElement(pi, {
content: c,
- createCollection: () => new ry()
- }, (r) => /*#__PURE__*/ C.createElement(dy, {
+ createCollection: () => new py()
+ }, (r) => /*#__PURE__*/ E.createElement(xy, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), ly = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}), yy = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.table, {
+ }) : /*#__PURE__*/ E.createElement(Z.table, {
...e,
ref: t
});
-}), uy = {
+}), by = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -24390,26 +24453,26 @@ var ry = class extends yt {
rtl: "ArrowRight"
}
};
-function dy({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = Zh(e, t, ng);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, C.useContext)(iy);
- t = Hr((0, C.useMemo)(() => Cr(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = Ko(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
- r = (0, C.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = ty({
+function xy({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = sg(e, t, fg);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, E.useContext)(my);
+ t = Xr((0, E.useMemo)(() => jr(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = ts(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ r = (0, E.useMemo)(() => r.withExpandedKeys(l), [r, l]);
+ let d = dy({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = ny(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, C.useContext)(cg), { dragAndDropHooks: _ } = e, { gridProps: v } = rf({
+ }), f = fy(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, E.useContext)(vg), { dragAndDropHooks: _ } = e, { gridProps: v } = pf({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
- (0, C.useRef)(b), (0, C.useRef)(x), (0, C.useEffect)(() => {}, [b, x]);
- let S, w, T, E = !1, D = null, O = (0, C.useRef)(null), { direction: k } = Hi(), [A] = (0, C.useState)(() => new qv());
+ (0, E.useRef)(b), (0, E.useRef)(x), (0, E.useEffect)(() => {}, [b, x]);
+ let S, C, w, T = !1, D = null, O = (0, E.useRef)(null), { direction: k } = Xi(), [A] = (0, E.useState)(() => new ry());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -24417,21 +24480,21 @@ function dy({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
preview: _.renderDragPreview ? O : void 0
}), _.useDraggableCollection({}, S, t);
let e = _.DragPreview;
- D = _.renderDragPreview ? /*#__PURE__*/ C.createElement(e, { ref: O }, _.renderDragPreview) : null;
+ D = _.renderDragPreview ? /*#__PURE__*/ E.createElement(e, { ref: O }, _.renderDragPreview) : null;
}
if (x && _) {
- w = _.useDroppableCollectionState({
+ C = _.useDroppableCollectionState({
collection: f.collection,
selectionManager: y
});
- let e = new hs({
+ let e = new ws({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
ref: t,
layoutDelegate: m
}), n = _.dropTargetDelegate || h || new _.ListDropTargetDelegate(r.rows, t);
- A.setup(n, d, k), T = _.useDroppableCollection({
+ A.setup(n, d, k), w = _.useDroppableCollection({
keyboardDelegate: e,
dropTargetDelegate: A,
onDropActivate: (e) => {
@@ -24441,144 +24504,144 @@ function dy({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}
},
onKeyDown: (e) => {
- let t = w?.target;
+ let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === uy.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === uy.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === by.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === by.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
- }, w, t), E = w.isDropTarget({ type: "root" });
+ }, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: ee } = Oc(), te = Yh({
+ let { focusProps: j, isFocused: M, isFocusVisible: ee } = Lc(), te = ag({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
values: {
- isDropTarget: E,
+ isDropTarget: T,
isFocused: M,
isFocusVisible: ee,
state: f
}
- }), ne = !!(b && !S?.isDisabled), N = te.style, re = null;
- c && (re = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (N = {
- ...N,
+ }), N = !!(b && !S?.isDisabled), P = te.style, ne = null;
+ c && (ne = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (P = {
+ ...P,
tableLayout: "fixed",
width: "min-content"
}));
- let ie = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Jh, { values: [
- [oy, f],
- [sy, re],
- [g_, {
+ let re = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(ig, { values: [
+ [gy, f],
+ [_y, ne],
+ [E_, {
dragAndDropHooks: _,
dragState: S,
- dropState: w
+ dropState: C
}],
- [__, { render: My }],
- [ng, null],
- [rg, null]
- ] }, /*#__PURE__*/ C.createElement(La, null, /*#__PURE__*/ C.createElement(ly, {
- ...R(ie, te, v, j, T?.collectionProps),
- style: N,
+ [D_, { render: Hy }],
+ [fg, null],
+ [pg, null]
+ ] }, /*#__PURE__*/ E.createElement(Ka, null, /*#__PURE__*/ E.createElement(yy, {
+ ...B(re, te, v, j, w?.collectionProps),
+ style: P,
ref: t,
slot: e.slot || void 0,
onScroll: e.onScroll,
- "data-allows-dragging": ne || void 0,
- "data-drop-target": E || void 0,
+ "data-allows-dragging": N || void 0,
+ "data-drop-target": T || void 0,
"data-focused": M || void 0,
"data-focus-visible": ee || void 0
- }, /*#__PURE__*/ C.createElement(C_, null, /*#__PURE__*/ C.createElement(g, {
+ }, /*#__PURE__*/ E.createElement(N_, null, /*#__PURE__*/ E.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: b_(y, _, w)
+ persistedKeys: A_(y, _, C)
})))), D);
}
-var fy = /*#__PURE__*/ (0, C.createContext)(null), py = class extends ht {
+var Sy = /*#__PURE__*/ (0, E.createContext)(null), Cy = class extends Ct {
static {
this.type = "tableheader";
}
-}, my = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}, wy = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.thead, {
+ }) : /*#__PURE__*/ E.createElement(Z.thead, {
...e,
ref: t
});
-}), hy = /*#__PURE__*/ mi(py, (e, t) => {
- let n = (0, C.useContext)(oy).collection, r = wt({
+}), Ty = /*#__PURE__*/ Si(Cy, (e, t) => {
+ let n = (0, E.useContext)(gy).collection, r = Mt({
items: n.headerRows,
- children: (0, C.useCallback)((e) => {
+ children: (0, E.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ C.createElement(_y, { item: e });
+ case "headerrow": return /*#__PURE__*/ E.createElement(Dy, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = _f(), { hoverProps: a, isHovered: o } = Fc({
+ }), { rowGroupProps: i } = Ef(), { hoverProps: a, isHovered: o } = Wc({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = Yh({
+ }), s = ag({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ C.createElement(my, {
- ...R(B(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ E.createElement(wy, {
+ ...B(V(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ C.createElement(_i, {
+}, (e) => /*#__PURE__*/ E.createElement(Ti, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), gy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement("div", {
+}, e.children)), Ey = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement("div", {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement("tr", {
+ }) : /*#__PURE__*/ E.createElement("tr", {
...e,
ref: t
});
});
-function _y({ item: e }) {
- let t = (0, C.useRef)(null), n = (0, C.useContext)(oy), { isVirtualized: r, CollectionBranch: i } = (0, C.useContext)(cg), { rowProps: a } = uf({
+function Dy({ item: e }) {
+ let t = (0, E.useRef)(null), n = (0, E.useContext)(gy), { isVirtualized: r, CollectionBranch: i } = (0, E.useContext)(vg), { rowProps: a } = yf({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = bf(n);
- return /*#__PURE__*/ C.createElement(gy, {
+ }, n, t), { checkboxProps: o } = kf(n);
+ return /*#__PURE__*/ E.createElement(Ey, {
...a,
ref: t
- }, /*#__PURE__*/ C.createElement(Jh, { values: [[Cg, { slots: { selection: o } }], [wg, { slots: { selection: o } }]] }, /*#__PURE__*/ C.createElement(i, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[Ng, { slots: { selection: o } }], [Pg, { slots: { selection: o } }]] }, /*#__PURE__*/ E.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var vy = class extends ht {
+var Oy = class extends Ct {
static {
this.type = "column";
}
-}, yy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}, ky = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.th, {
+ }) : /*#__PURE__*/ E.createElement(Z.th, {
...e,
ref: t
});
-}), by = /*#__PURE__*/ pi(vy, (e, t, n) => {
- let r = Hr(t), i = (0, C.useContext)(oy), { isVirtualized: a } = (0, C.useContext)(cg), { columnHeaderProps: o, isPressed: s } = lf({
+}), Ay = /*#__PURE__*/ xi(Oy, (e, t, n) => {
+ let r = Xr(t), i = (0, E.useContext)(gy), { isVirtualized: a } = (0, E.useContext)(vg), { columnHeaderProps: o, isPressed: s } = vf({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Oc(), d = (0, C.useContext)(sy), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Lc(), d = (0, E.useContext)(_y), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = Fc({ isDisabled: !e.allowsSorting }), h = Yh({
+ let { hoverProps: p, isHovered: m } = Wc({ isDisabled: !e.allowsSorting }), h = ag({
...e,
id: void 0,
children: n.rendered,
@@ -24604,9 +24667,9 @@ var vy = class extends ht {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = B(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ C.createElement(yy, {
- ...R(_, o, u, p),
+ let _ = V(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ E.createElement(ky, {
+ ...B(_, o, u, p),
...h,
style: g,
ref: r,
@@ -24617,28 +24680,28 @@ var vy = class extends ht {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [[xy, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[jy, {
column: n,
triggerRef: r
- }], [cg, ag]] }, h.children));
-}), xy = /*#__PURE__*/ (0, C.createContext)(null), Sy = class extends gt {
+ }], [vg, hg]] }, h.children));
+}), jy = /*#__PURE__*/ (0, E.createContext)(null), My = class extends wt {
static {
this.type = "tablebody";
}
-}, Cy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}, Ny = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.tbody, {
+ }) : /*#__PURE__*/ E.createElement(Z.tbody, {
...e,
ref: t
});
-}), wy = /*#__PURE__*/ mi(Sy, (e, t, n) => {
- let r = (0, C.useContext)(oy), { isVirtualized: i } = (0, C.useContext)(cg), a = r.collection, { CollectionBranch: o } = (0, C.useContext)(cg), { dragAndDropHooks: s, dropState: c } = (0, C.useContext)(g_), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), Py = /*#__PURE__*/ Si(My, (e, t, n) => {
+ let r = (0, E.useContext)(gy), { isVirtualized: i } = (0, E.useContext)(vg), a = r.collection, { CollectionBranch: o } = (0, E.useContext)(vg), { dragAndDropHooks: s, dropState: c } = (0, E.useContext)(E_), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = Yh({
+ }, p = ag({
...e,
id: void 0,
children: void 0,
@@ -24647,33 +24710,33 @@ var vy = class extends ht {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ C.createElement(Dy, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ E.createElement(Ly, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ C.createElement(Ay, {
+ }, /*#__PURE__*/ E.createElement(By, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = _f(), _ = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Cy, {
- ...R(_, p, g),
+ let { rowGroupProps: g } = Ef(), _ = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Ny, {
+ ...B(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ C.createElement(Ly, null), /*#__PURE__*/ C.createElement(o, {
+ }, l && /*#__PURE__*/ E.createElement(qy, null), /*#__PURE__*/ E.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: y_(s, c)
+ renderDropIndicator: k_(s, c)
}), m);
});
-(class extends gt {
+(class extends wt {
static {
this.type = "tablefooter";
}
});
-var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey = class extends ht {
+var Fy = /*#__PURE__*/ (0, E.createContext)({ isFocusVisibleWithinRow: !1 }), Iy = class extends Ct {
static {
this.type = "item";
}
@@ -24685,41 +24748,41 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
}
return null;
}
-}, Dy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}, Ly = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.tr, {
+ }) : /*#__PURE__*/ E.createElement(Z.tr, {
...e,
ref: t
});
-}), Oy = /*#__PURE__*/ mi(Ey, (e, t, n) => {
- let r = Hr(t), i = (0, C.useContext)(oy), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, C.useContext)(g_), { isVirtualized: c, CollectionBranch: l } = (0, C.useContext)(cg), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mf({
+}), Ry = /*#__PURE__*/ Si(Iy, (e, t, n) => {
+ let r = Xr(t), i = (0, E.useContext)(gy), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, E.useContext)(E_), { isVirtualized: c, CollectionBranch: l } = (0, E.useContext)(vg), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Cf({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Oc(), { isFocusVisible: _, focusProps: v } = Oc({ within: !0 }), { hoverProps: y, isHovered: b } = Fc({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Lc(), { isFocusVisible: _, focusProps: v } = Lc({ within: !0 }), { hoverProps: y, isHovered: b } = Wc({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = yf({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Of({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let w, T = (0, C.useRef)(null), { visuallyHiddenProps: E } = Zo();
- s && a && (w = a.useDropIndicator({ target: {
+ let C, w = (0, E.useRef)(null), { visuallyHiddenProps: T } = os();
+ s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
dropPosition: "on"
- } }, s, T));
- let D = (0, C.useRef)(null);
- (0, C.useEffect)(() => {
+ } }, s, w));
+ let D = (0, E.useRef)(null);
+ (0, E.useEffect)(() => {
o && D.current;
}, []);
- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), ee = Yh({
+ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), ee = ag({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -24733,28 +24796,28 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
selectionMode: i.selectionManager.selectionMode,
selectionBehavior: i.selectionManager.selectionBehavior,
isDragging: O,
- isDropTarget: w?.isDropTarget,
+ isDropTarget: C?.isDropTarget,
isFocusVisibleWithin: _,
id: n.key,
hasChildItems: j,
isExpanded: M,
level: n.level + 1
}
- }), te = B(e, { global: !0 });
- return delete te.id, delete te.onClick, /*#__PURE__*/ C.createElement(C.Fragment, null, w && !w.isHidden && /*#__PURE__*/ C.createElement(Dy, {
+ }), te = V(e, { global: !0 });
+ return delete te.id, delete te.onClick, /*#__PURE__*/ E.createElement(E.Fragment, null, C && !C.isHidden && /*#__PURE__*/ E.createElement(Ly, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ C.createElement(Ay, {
+ }, /*#__PURE__*/ E.createElement(By, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ C.createElement("div", {
+ }, /*#__PURE__*/ E.createElement("div", {
role: "button",
- ...E,
- ...w.dropIndicatorProps,
- ref: T
- }))), /*#__PURE__*/ C.createElement(Dy, {
- ...R(te, ee, d, g, y, S?.dragProps, v),
+ ...T,
+ ...C.dropIndicatorProps,
+ ref: w
+ }))), /*#__PURE__*/ E.createElement(Ly, {
+ ...B(te, ee, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -24763,23 +24826,23 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
"data-focus-visible": h || void 0,
"data-pressed": p.isPressed || void 0,
"data-dragging": O || void 0,
- "data-drop-target": w?.isDropTarget || void 0,
+ "data-drop-target": C?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode,
"data-focus-visible-within": _ || void 0,
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ C.createElement(Jh, { values: [
- [Cg, { slots: {
- [qh]: {},
+ }, /*#__PURE__*/ E.createElement(ig, { values: [
+ [Ng, { slots: {
+ [rg]: {},
selection: x
} }],
- [wg, { slots: {
- [qh]: {},
+ [Pg, { slots: {
+ [rg]: {},
selection: x
} }],
- [pg, { slots: {
- [qh]: {},
+ [Cg, { slots: {
+ [rg]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -24787,43 +24850,43 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
style: { pointerEvents: "none" }
}
} }],
- [w_, { isSelected: p.isSelected }],
- [Ty, { isFocusVisibleWithinRow: _ }]
- ] }, /*#__PURE__*/ C.createElement(l, {
+ [P_, { isSelected: p.isSelected }],
+ [Fy, { isFocusVisibleWithinRow: _ }]
+ ] }, /*#__PURE__*/ E.createElement(l, {
collection: i.collection,
parent: n
}))));
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ C.createElement(_i, {
+ return /*#__PURE__*/ E.createElement(Ti, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), ky = class extends ht {
+}), zy = class extends Ct {
static {
this.type = "cell";
}
-}, Ay = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}, By = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.td, {
+ }) : /*#__PURE__*/ E.createElement(Z.td, {
...e,
ref: t
});
-}), jy = /*#__PURE__*/ pi(ky, (e, t, n) => {
- let r = Hr(t), i = (0, C.useContext)(oy), { dragState: a } = (0, C.useContext)(g_), { isVirtualized: o } = (0, C.useContext)(cg);
+}), Vy = /*#__PURE__*/ xi(zy, (e, t, n) => {
+ let r = Xr(t), i = (0, E.useContext)(gy), { dragState: a } = (0, E.useContext)(E_), { isVirtualized: o } = (0, E.useContext)(vg);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = sf({
+ let { gridCellProps: s, isPressed: c } = gf({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Oc(), { hoverProps: f, isHovered: p } = Fc({}), { isFocusVisibleWithinRow: m } = (0, C.useContext)(Ty), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Yh({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Lc(), { hoverProps: f, isHovered: p } = Wc({}), { isFocusVisibleWithinRow: m } = (0, E.useContext)(Fy), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = ag({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -24842,9 +24905,9 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = B(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ C.createElement(Ay, {
- ...R(S, x, s, d, f),
+ }), S = V(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ E.createElement(By, {
+ ...B(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -24857,14 +24920,14 @@ var Ty = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), Ey
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ C.createElement(cg.Provider, { value: ag }, x.children));
+ }, /*#__PURE__*/ E.createElement(vg.Provider, { value: hg }, x.children));
});
-function My(e, t) {
- t = Hr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, C.useContext)(g_), i = (0, C.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Hy(e, t) {
+ t = Xr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, E.useContext)(E_), i = (0, E.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ C.createElement(Iy, {
+ return /*#__PURE__*/ E.createElement(Ky, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -24873,71 +24936,71 @@ function My(e, t) {
ref: t
});
}
-var Ny = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+var Uy = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.tr, {
+ }) : /*#__PURE__*/ E.createElement(Z.tr, {
...e,
ref: t
});
-}), Py = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, C.useContext)(cg);
- return n ? /*#__PURE__*/ C.createElement(Z.div, {
+}), Wy = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, E.useContext)(vg);
+ return n ? /*#__PURE__*/ E.createElement(Z.div, {
...e,
ref: t
- }) : /*#__PURE__*/ C.createElement(Z.td, {
+ }) : /*#__PURE__*/ E.createElement(Z.td, {
...e,
ref: t
});
});
-function Fy(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, C.useContext)(oy), { visuallyHiddenProps: c } = Zo(), l = Yh({
+function Gy(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, E.useContext)(gy), { visuallyHiddenProps: c } = os(), l = ag({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ C.createElement(Ny, {
- ...B(e, { global: !0 }),
+ return /*#__PURE__*/ E.createElement(Uy, {
+ ...V(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ C.createElement(Py, {
+ }, /*#__PURE__*/ E.createElement(Wy, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ C.createElement("div", {
+ }, /*#__PURE__*/ E.createElement("div", {
...c,
role: "button",
...n,
ref: i
}), l.children));
}
-var Iy = /*#__PURE__*/ (0, C.forwardRef)(Fy);
-function Ly() {
- let e = (0, C.useContext)(oy), { dragAndDropHooks: t, dropState: n } = (0, C.useContext)(g_), r = (0, C.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Zo();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ C.createElement(Dy, {
+var Ky = /*#__PURE__*/ (0, E.forwardRef)(Gy);
+function qy() {
+ let e = (0, E.useContext)(gy), { dragAndDropHooks: t, dropState: n } = (0, E.useContext)(E_), r = (0, E.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = os();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ E.createElement(Ly, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ C.createElement(Ay, {
+ }, /*#__PURE__*/ E.createElement(By, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ C.createElement("div", {
+ }, /*#__PURE__*/ E.createElement("div", {
role: "button",
...o,
...i,
ref: r
})));
}
-pi(_t, function(e, t, n) {
- let r = (0, C.useContext)(oy), { isVirtualized: i } = (0, C.useContext)(cg), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, C.useRef)(null);
- V_((0, C.useMemo)(() => ({
+xi(Tt, function(e, t, n) {
+ let r = (0, E.useContext)(gy), { isVirtualized: i } = (0, E.useContext)(vg), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, E.useRef)(null);
+ Z_((0, E.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -24947,7 +25010,7 @@ pi(_t, function(e, t, n) {
s,
r?.collection
]), u);
- let d = Yh({
+ let d = ag({
...c,
id: void 0,
children: n.rendered,
@@ -24955,13 +25018,13 @@ pi(_t, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Dy, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ E.createElement(E.Fragment, null, /*#__PURE__*/ E.createElement(Ly, {
style: { height: 0 },
- inert: E_(!0)
- }, /*#__PURE__*/ C.createElement(Ay, { style: {
+ inert: I_(!0)
+ }, /*#__PURE__*/ E.createElement(By, { style: {
padding: 0,
border: 0
- } }, /*#__PURE__*/ C.createElement("div", {
+ } }, /*#__PURE__*/ E.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: u,
style: {
@@ -24969,14 +25032,14 @@ pi(_t, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ C.createElement(Dy, {
- ...R(B(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ E.createElement(Ly, {
+ ...B(V(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ C.createElement(Ay, {
+ }, /*#__PURE__*/ E.createElement(By, {
role: "rowheader",
...p,
style: m
@@ -24984,8 +25047,8 @@ pi(_t, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Ry(e) {
- let [t, n] = Ko(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, C.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = R_({
+function Jy(e) {
+ let [t, n] = ts(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, E.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = J_({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -25008,24 +25071,24 @@ function Ry(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function zy(e) {
- let t = Ry({
+function Yy(e) {
+ let t = Jy({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? By(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
- }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, C.useRef)(i);
- return (0, C.useEffect)(() => {
+ defaultSelectedKey: e.defaultSelectedKey ?? Xy(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, E.useRef)(i);
+ return (0, E.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = By(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 = Xy(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 By(e, t) {
+function Xy(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);
@@ -25035,24 +25098,24 @@ function By(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Vy = /*#__PURE__*/ (0, C.createContext)(null), Hy = /*#__PURE__*/ (0, C.createContext)(null), Uy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- [e, t] = Zh(e, t, Vy);
+var Zy = /*#__PURE__*/ (0, E.createContext)(null), Qy = /*#__PURE__*/ (0, E.createContext)(null), $y = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ [e, t] = sg(e, t, Zy);
let { children: n, orientation: r = "horizontal" } = e;
- return n = (0, C.useMemo)(() => typeof n == "function" ? n({
+ return n = (0, E.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ C.createElement(ai, { content: n }, (n) => /*#__PURE__*/ C.createElement(Wy, {
+ }) : n, [n, r]), /*#__PURE__*/ E.createElement(pi, { content: n }, (n) => /*#__PURE__*/ E.createElement(eb, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Wy({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = zy({
+function eb({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Yy({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = Oc({ within: !0 }), c = (0, C.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = Lc({ within: !0 }), c = (0, E.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -25060,33 +25123,33 @@ function Wy({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = Yh({
+ ]), l = ag({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = B(e, { global: !0 });
- return /*#__PURE__*/ C.createElement(Z.div, {
- ...R(u, l, a),
+ }), u = V(e, { global: !0 });
+ return /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(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__*/ C.createElement(Jh, { values: [[Vy, e], [Hy, i]] }, l.children));
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[Zy, e], [Qy, i]] }, l.children));
}
-var Gy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
- return (0, C.useContext)(Hy) ? /*#__PURE__*/ C.createElement(Ky, {
+var tb = /*#__PURE__*/ (0, E.forwardRef)(function(e, t) {
+ return (0, E.useContext)(Qy) ? /*#__PURE__*/ E.createElement(nb, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ C.createElement(_i, e);
+ }) : /*#__PURE__*/ E.createElement(Ti, e);
});
-function Ky({ props: e, forwardedRef: t }) {
- let n = (0, C.useContext)(Hy), { CollectionRoot: r } = (0, C.useContext)(cg), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Xh(Vy), o = Hr(t), { tabListProps: s } = Tf({
+function nb({ props: e, forwardedRef: t }) {
+ let n = (0, E.useContext)(Qy), { CollectionRoot: r } = (0, E.useContext)(vg), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = og(Zy), o = Xr(t), { tabListProps: s } = Pf({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = Yh({
+ }, n, o), c = ag({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -25094,30 +25157,30 @@ function Ky({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = B(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ C.createElement(Z.div, {
- ...R(l, c, s),
+ }), l = V(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ E.createElement(Z.div, {
+ ...B(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ C.createElement(C_, null, /*#__PURE__*/ C.createElement(r, {
+ }, /*#__PURE__*/ E.createElement(N_, null, /*#__PURE__*/ E.createElement(r, {
collection: n.collection,
- persistedKeys: lg(n.selectionManager.focusedKey)
+ persistedKeys: yg(n.selectionManager.focusedKey)
})));
}
-var qy = /*#__PURE__*/ pi(class extends ht {
+var rb = /*#__PURE__*/ xi(class extends Ct {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, C.useContext)(Hy), i = Hr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Cf({
+ let r = (0, E.useContext)(Qy), i = Xr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Mf({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Oc(), { hoverProps: f, isHovered: p } = Fc({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Lc(), { hoverProps: f, isHovered: p } = Wc({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = Yh({
+ }), m = ag({
...e,
id: void 0,
children: n.rendered,
@@ -25130,9 +25193,9 @@ var qy = /*#__PURE__*/ pi(class extends ht {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Z.a : Z.div, g = B(e, { global: !0 });
- return delete g.id, delete g.onClick, /*#__PURE__*/ C.createElement(h, {
- ...R(g, m, a, l, f),
+ }), h = n.props.href ? Z.a : Z.div, g = V(e, { global: !0 });
+ return delete g.id, delete g.onClick, /*#__PURE__*/ E.createElement(h, {
+ ...B(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -25140,58 +25203,58 @@ var qy = /*#__PURE__*/ pi(class extends ht {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ C.createElement(w_.Provider, { value: { isSelected: o } }, m.children));
-}), Jy = /*#__PURE__*/ Yr(function(e, t) {
- let n = (0, C.useContext)(Hy), r = Hr(t), i = n.selectedKey === e.id, [a, o] = (0, C.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ E.createElement(P_.Provider, { value: { isSelected: o } }, m.children));
+}), ib = /*#__PURE__*/ ri(function(e, t) {
+ let n = (0, E.useContext)(Qy), r = Xr(t), i = n.selectedKey === e.id, [a, o] = (0, E.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = tv(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ C.createElement(Yy, {
+ let s = dv(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ E.createElement(ab, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Yy(e) {
- let t = (0, C.useContext)(Hy), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Ef(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Oc(), d = t.selectedKey === e.id, f = ev(r) && !i, p = Yh({
+function ab(e) {
+ let t = (0, E.useContext)(Qy), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Ff(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Lc(), d = t.selectedKey === e.id, f = uv(r) && !i, p = ag({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: E_(!d),
+ isInert: I_(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = B(o, { global: !0 });
+ }), m = V(o, { global: !0 });
delete m.id;
- let h = d ? R(m, s, c, p) : R(m, p);
- return /*#__PURE__*/ C.createElement(Z.div, {
+ let h = d ? B(m, s, c, p) : B(m, p);
+ return /*#__PURE__*/ E.createElement(Z.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: E_(!d || e.inert),
+ inert: I_(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [[Vy, null], [Hy, null]] }, /*#__PURE__*/ C.createElement(cg.Provider, { value: ag }, p.children)));
+ }, /*#__PURE__*/ E.createElement(ig, { values: [[Zy, null], [Qy, null]] }, /*#__PURE__*/ E.createElement(vg.Provider, { value: hg }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Xy = /*#__PURE__*/ (0, C.createContext)({}), Zy = /*#__PURE__*/ (0, C.createContext)(null), Qy = /*#__PURE__*/ Yr(function(e, t) {
- [e, t] = Zh(e, t, Zy);
- let { validationBehavior: n } = Xh(Sg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useRef)(null);
- [e, i] = Zh(e, i, rg);
- let [a, o] = Qh(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, C.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = $o({
- ...$h(e),
+var ob = /*#__PURE__*/ (0, E.createContext)({}), sb = /*#__PURE__*/ (0, E.createContext)(null), cb = /*#__PURE__*/ ri(function(e, t) {
+ [e, t] = sg(e, t, sb);
+ let { validationBehavior: n } = og(Mg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, E.useRef)(null);
+ [e, i] = sg(e, i, pg);
+ let [a, o] = cg(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, E.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = cs({
+ ...lg(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, C.useCallback)((e) => {
+ }, i), m = (0, E.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Yh({
+ }, [i]), h = ag({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -25200,8 +25263,8 @@ var Xy = /*#__PURE__*/ (0, C.createContext)({}), Zy = /*#__PURE__*/ (0, C.create
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = B(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ C.createElement(Z.div, {
+ }), g = V(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ E.createElement(Z.div, {
...g,
...h,
ref: t,
@@ -25210,31 +25273,31 @@ var Xy = /*#__PURE__*/ (0, C.createContext)({}), Zy = /*#__PURE__*/ (0, C.create
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ C.createElement(Jh, { values: [
- [ug, {
+ }, /*#__PURE__*/ E.createElement(ig, { values: [
+ [bg, {
...l,
ref: a
}],
- [Mg, {
+ [Hg, {
...u,
ref: m
}],
- [Xy, {
+ [ob, {
...u,
ref: m
}],
- [Ag, {
+ [Bg, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [yg, { slots: {
+ [kg, { slots: {
description: d,
errorMessage: f
} }],
- [xg, p]
+ [jg, p]
] }, h.children));
-}), $y = qm({
+}), lb = rh({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -25255,33 +25318,33 @@ var Xy = /*#__PURE__*/ (0, C.createContext)({}), Zy = /*#__PURE__*/ (0, C.create
small: "size-4 shrink-0"
}
});
-function eb({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, w.jsx)("button", {
+function ub({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, D.jsx)("button", {
ref: i,
type: r,
- className: G($y.base, $y.size[t], n),
+ className: nh(lb.base, lb.size[t], n),
...a,
- children: /* @__PURE__ */ (0, w.jsx)(e, {
- className: $y.icon[t],
+ children: /* @__PURE__ */ (0, D.jsx)(e, {
+ className: lb.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function tb({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, w.jsxs)(dg, {
+function db({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, D.jsxs)(xg, {
"data-label": "true",
...a,
- className: G("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: nh("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, w.jsx)("span", {
+ e && /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, w.jsx)(Qf, {
+ n && /* @__PURE__ */ (0, D.jsx)(op, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -25290,33 +25353,33 @@ function tb({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function nb({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, w.jsx)(bg, {
+function fb({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, D.jsx)(Ag, {
slot: e ? "errorMessage" : "description",
...n,
- className: G("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: nh("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 rb = (0, C.createContext)({});
-function ib({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, w.jsx)(rb.Provider, {
+var pb = (0, E.createContext)({});
+function mb({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, D.jsx)(pb.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, w.jsx)(Qy, {
+ children: /* @__PURE__ */ (0, D.jsx)(cb, {
...a,
"data-input-size": e,
- className: G("group flex h-max w-full flex-col items-start gap-1", r),
+ className: nh("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-ib.displayName = "TextField";
-var ab = qm({
+mb.displayName = "TextField";
+var hb = rh({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -25345,44 +25408,44 @@ var ab = qm({
].join(" "),
icon: "size-5 shrink-0"
});
-function ob({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, C.useContext)(rb), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, w.jsx)(jg, {
+function gb({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, E.useContext)(pb), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, D.jsx)(Vg, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => G(ab.field, d ? ab.fieldWithAddonSize[u] : ab.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, w.jsxs)("div", {
- className: ab.content,
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
- className: ab.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, w.jsx)(t, {
- className: ab.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => nh(hb.field, d ? hb.fieldWithAddonSize[u] : hb.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, D.jsxs)("div", {
+ className: hb.content,
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
+ className: hb.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, D.jsx)(t, {
+ className: hb.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, w.jsx)(Pg, {
+ }) : null, /* @__PURE__ */ (0, D.jsx)(Wg, {
ref: o,
...c,
- className: G(ab.input, l.inputClassName, a)
+ className: nh(hb.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, w.jsx)(n, {
- className: ab.icon,
+ }), n ? /* @__PURE__ */ (0, D.jsx)(n, {
+ className: hb.icon,
"aria-hidden": !0
}) : null]
})
});
}
-ob.displayName = "InputBase";
-function sb({ 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, w.jsx)(ib, {
+gb.displayName = "InputBase";
+function _b({ 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, D.jsx)(mb, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- e && /* @__PURE__ */ (0, w.jsx)(tb, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ e && /* @__PURE__ */ (0, D.jsx)(db, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, w.jsx)(ob, {
+ /* @__PURE__ */ (0, D.jsx)(gb, {
ref: c,
groupRef: l,
placeholder: r,
@@ -25391,15 +25454,15 @@ function sb({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, w.jsx)(nb, {
+ t && /* @__PURE__ */ (0, D.jsx)(fb, {
isInvalid: d,
children: t
})
] })
});
}
-sb.displayName = "Input";
-function cb(e) {
+_b.displayName = "Input";
+function vb(e) {
return {
x0: 0,
y0: 0,
@@ -25407,7 +25470,7 @@ function cb(e) {
y1: e.height
};
}
-function lb(e) {
+function yb(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -25415,40 +25478,40 @@ function lb(e) {
y1: Math.round(e.y1)
};
}
-function ub(e) {
+function bb(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function db(e, t) {
- if (!ub(e)) return {
+function xb(e, t) {
+ if (!bb(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return cb(e);
+ if (t == null || !(t > 0)) return vb(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return lb({
+ return yb({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function fb(e, t) {
- if (!ub(e) || !(t > 0)) return cb(e);
+function Sb(e, t) {
+ if (!bb(e) || !(t > 0)) return vb(e);
let n = Math.min(e.width, e.height * t);
- return lb({
+ return yb({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function pb(e, t, n) {
- if (!ub(t) || !(n > 0)) return cb(t);
- let r = mb(e, t), i = db({
+function Cb(e, t, n) {
+ if (!bb(t) || !(n > 0)) return vb(t);
+ let r = wb(e, t), i = xb({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -25459,8 +25522,8 @@ function pb(e, t, n) {
y1: r.y0 + i.y1
};
}
-function mb(e, t, n = null, r = "width") {
- if (!ub(t)) return {
+function wb(e, t, n = null, r = "width") {
+ if (!bb(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -25469,43 +25532,43 @@ function mb(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return lb({
+ return yb({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function hb(e, t, n, r) {
+function Tb(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return lb({
+ return yb({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function gb(e, t, n, r = null) {
- if (!ub(n) || !(t > 0)) return e;
+function Eb(e, t, n, r = null) {
+ if (!bb(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return mb({
+ return wb({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function _b(e, t, n, r, i = null) {
+function Db(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return mb(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return wb(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function vb(e, t) {
- return ub(t) ? {
+function Ob(e, t) {
+ return bb(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -25517,8 +25580,8 @@ function vb(e, t) {
height: 0
};
}
-function yb(e, t) {
- if (!ub(t)) return {
+function kb(e, t) {
+ if (!bb(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -25528,7 +25591,7 @@ function yb(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function bb(e, t) {
+function Ab(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -25537,33 +25600,33 @@ function bb(e, t) {
height: `${t.height / r * 100}%`
};
}
-function xb(e, t, n) {
+function jb(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function Sb() {
- let e = (0, C.useRef)(null);
- return (0, C.useEffect)(() => {
+function Mb() {
+ let e = (0, E.useRef)(null);
+ return (0, E.useEffect)(() => {
s(e.current);
}), e;
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Cb = .02, wb = 1.08;
-function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
- let s = (0, C.useRef)(null), c = (0, C.useRef)(null), [l, u] = (0, C.useState)(!1);
- (0, C.useEffect)(() => {
+var Nb = .02, Pb = 1.08;
+function Fb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+ let s = (0, E.useRef)(null), c = (0, E.useRef)(null), [l, u] = (0, E.useState)(!1);
+ (0, E.useEffect)(() => {
u(!1);
}, [e]);
- let d = (0, C.useCallback)((e, t) => {
+ let d = (0, E.useCallback)((e, t) => {
let n = s.current;
return !n || !r ? {
dx: 0,
dy: 0
} : {
- dx: xb(e, n.clientWidth, r.width),
- dy: xb(t, n.clientHeight, r.height)
+ dx: jb(e, n.clientWidth, r.width),
+ dy: jb(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -25581,29 +25644,29 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(hb(n.box, o.dx, o.dy, r));
+ i(Tb(n.box, o.dx, o.dy, r));
return;
}
- i(_b(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(Db(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * Cb), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Nb), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(hb(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(Tb(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(gb(n, e.key === "-" ? 1 / wb : wb, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(Eb(n, e.key === "-" ? 1 / Pb : Pb, r, t)));
}
- let g = n && r ? vb(mb(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? Ob(wb(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -25611,18 +25674,18 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
"--crop-r": `${g.left + g.width}%`,
"--crop-b": `${g.top + g.height}%`
} : void 0;
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "relative inline-block max-w-full select-none",
style: _,
children: [
- /* @__PURE__ */ (0, w.jsx)("img", {
+ /* @__PURE__ */ (0, D.jsx)("img", {
ref: s,
src: e,
alt: "",
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- ub({
+ bb({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -25633,24 +25696,24 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onError: () => u(!0),
className: "block max-h-crop-frame max-w-full object-contain"
}),
- l || !g ? null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsx)("div", {
+ l || !g ? null : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 top-0 h-(--crop-t) bg-scrim"
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 bottom-0 top-(--crop-b) bg-scrim"
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute left-0 top-(--crop-t) h-(--crop-h) w-(--crop-l) bg-scrim"
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute right-0 left-(--crop-r) top-(--crop-t) h-(--crop-h) bg-scrim"
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
role: "group",
tabIndex: 0,
"aria-label": o,
@@ -25661,10 +25724,10 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(gb(n, e.deltaY > 0 ? wb : 1 / wb, r, t));
+ !n || !r || i(Eb(n, e.deltaY > 0 ? Pb : 1 / Pb, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
- children: /* @__PURE__ */ (0, w.jsx)("span", {
+ children: /* @__PURE__ */ (0, D.jsx)("span", {
"data-crop-handle": !0,
onPointerDown: f("resize"),
onPointerMove: p,
@@ -25674,7 +25737,7 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
})
})
] }),
- l ? /* @__PURE__ */ (0, w.jsx)("p", {
+ l ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "p-4 text-body-2-regular text-text-secondary",
children: "这张图读不出来,换一张再框。"
}) : null
@@ -25683,86 +25746,86 @@ function Tb({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Eb = "/api/avatar-choices", Db = "/api/avatar-pick", Ob = "/api/avatar-code-cover", kb = "/avatar-choice", Ab = (e, t) => [
+var Ib = "/api/avatar-choices", Lb = "/api/avatar-pick", Rb = "/api/avatar-code-cover", zb = "/avatar-choice", Bb = (e, t) => [
"avatar-choices",
e,
t
-], jb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Mb = (e, t, n) => `${kb}${jb(e, t)}&ref=${encodeURIComponent(n)}`, Nb = (e, t, n) => eh(Eb + jb(e, t), n), Pb = (e) => J(Ob, { code: e });
-function Fb(e, t, n) {
+], Vb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Hb = (e, t, n) => `${zb}${Vb(e, t)}&ref=${encodeURIComponent(n)}`, Ub = (e, t, n) => uh(Ib + Vb(e, t), n), Wb = (e) => J(Rb, { code: e });
+function Gb(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? pb(e.focus, t, n) : db(t, n);
+ return e.focus && r ? Cb(e.focus, t, n) : xb(t, n);
}
-var Ib = (e) => e.crop && ub({
+var Kb = (e) => e.crop && bb({
width: e.width,
height: e.height
});
-async function Lb(e, t, n) {
+async function qb(e, t, n) {
if (!("file" in n)) {
- await J(Db, {
+ await J(Lb, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${Db}${jb(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${Lb}${Vb(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 Qm(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new ch(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Rb(e, t) {
+function Jb(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var zb = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Bb(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${zb(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Yb = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Xb(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Yb(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var Vb = (e) => e.cast > 1, Hb = (e) => Vb(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Ub = {
+var Zb = (e) => e.cast > 1, Qb = (e) => Zb(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, $b = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Wb(e) {
+function ex(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Gb = (e) => `${Ub[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (Vb(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Kb = 8, qb = 3 / 4;
-function Jb({ kind: e, entityId: t, name: n, onPicked: r }) {
- let [i, a] = (0, C.useState)(!1);
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", {
+var tx = (e) => `${$b[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (Zb(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), nx = 8, rx = 3 / 4;
+function ix({ kind: e, entityId: t, name: n, onPicked: r }) {
+ let [i, a] = (0, E.useState)(!1);
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
- children: /* @__PURE__ */ (0, w.jsx)("button", {
+ children: /* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, w.jsx)(jf, {
+ children: /* @__PURE__ */ (0, D.jsx)(Bf, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, w.jsx)(_v, {
+ }), /* @__PURE__ */ (0, D.jsx)(Dv, {
isOpen: i,
onOpenChange: a,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, w.jsx)(hv, {
+ children: /* @__PURE__ */ (0, D.jsx)(Tv, {
className: "flex max-h-full w-full max-w-avatar-picker flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown",
- children: /* @__PURE__ */ (0, w.jsx)(lv, {
+ children: /* @__PURE__ */ (0, D.jsx)(yv, {
"aria-label": "更换头像",
className: "flex min-h-0 flex-col outline-none",
- children: /* @__PURE__ */ (0, w.jsx)(Yb, {
+ children: /* @__PURE__ */ (0, D.jsx)(ax, {
kind: e,
entityId: t,
name: n,
@@ -25773,73 +25836,73 @@ function Jb({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, C.useRef)(null), o = Sb(), [s, c] = (0, C.useState)(""), [l, u] = (0, C.useState)(""), [d, f] = (0, C.useState)(""), [p, m] = (0, C.useState)(null), h = Ab(e, t), g = (0, C.useRef)(!1), _ = pt({
+function ax({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, E.useRef)(null), o = Mb(), [s, c] = (0, E.useState)(""), [l, u] = (0, E.useState)(""), [d, f] = (0, E.useState)(""), [p, m] = (0, E.useState)(null), h = Bb(e, t), g = (0, E.useRef)(!1), _ = mt({
queryKey: h,
- queryFn: ({ signal: n }) => Nb(e, t, n),
+ queryFn: ({ signal: n }) => Ub(e, t, n),
retryOnMount: !0
});
- (0, C.useEffect)(() => () => {
- g.current && hh.removeQueries({ queryKey: Ab(e, t) });
+ (0, E.useEffect)(() => () => {
+ g.current && Th.removeQueries({ queryKey: Bb(e, t) });
}, [e, t]);
- let v = mt({
- mutationFn: (n) => Lb(e, t, n),
+ let v = ht({
+ mutationFn: (n) => qb(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
- }), y = mt({
- mutationFn: (e) => Pb(e),
+ }), y = ht({
+ mutationFn: (e) => Wb(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], T = d || (v.error ? q(v.error) : "") || (!p && y.error ? q(y.error) : "") || (_.error ? q(_.error) : ""), E = v.isPending || y.isPending, D = p ? "" : Bb(x);
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? q(v.error) : "") || (!p && y.error ? q(y.error) : "") || (_.error ? q(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Xb(x);
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.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, w.jsx)(dp, { className: "size-6" })
+ children: /* @__PURE__ */ (0, D.jsx)(yp, { className: "size-6" })
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(vg, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Og, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, w.jsxs)(Ym, {
+ }), !p && S.length ? /* @__PURE__ */ (0, D.jsxs)(ah, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Hb(p) : Rb(n, x)
+ children: p ? Qb(p) : Jb(n, x)
}),
- D ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ T ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "neutral",
- children: D
+ children: T
}) : null,
- T ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ C ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
- children: T
+ children: C
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: Bf,
+ /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: Yf,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, w.jsx)(Zb, {
+ }), p ? /* @__PURE__ */ (0, D.jsx)(sx, {
kind: e,
entityId: t,
choice: p,
@@ -25851,56 +25914,56 @@ function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: t
});
}
- }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ }) : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "relative flex min-h-0 flex-1 flex-col",
- children: /* @__PURE__ */ (0, w.jsx)("div", {
+ children: /* @__PURE__ */ (0, D.jsx)("div", {
ref: o,
className: "flex min-h-0 flex-1 flex-col overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, w.jsx)("div", {
+ children: /* @__PURE__ */ (0, D.jsx)("div", {
role: "listbox",
"aria-label": "候选头像",
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: Kb }, (e, t) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: nx }, (e, t) => /* @__PURE__ */ (0, D.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
- children: [/* @__PURE__ */ (0, w.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, D.jsx)("span", {
className: "relative mx-auto w-2/3 rounded-sm skeleton-sheen",
children: "\xA0"
})]
- }, t)) : S.map((n) => /* @__PURE__ */ (0, w.jsxs)("button", {
+ }, t)) : S.map((n) => /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Gb(n),
- ...X(E),
+ title: tx(n),
+ ...X(w),
onClick: () => {
- E || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
+ w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, w.jsx)(Xb, {
- src: Mb(e, t, n.ref),
+ /* @__PURE__ */ (0, D.jsx)(ox, {
+ src: Hb(e, t, n.ref),
choice: n
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "truncate px-1",
children: n.label
}),
- n.current ? /* @__PURE__ */ (0, w.jsx)("span", {
+ n.current ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, w.jsx)(Ym, {
+ children: /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- Vb(n) ? /* @__PURE__ */ (0, w.jsx)("span", {
+ Zb(n) ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, w.jsxs)(Ym, {
+ children: /* @__PURE__ */ (0, D.jsxs)(ah, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -25910,38 +25973,38 @@ function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}, n.ref))
})
})
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-col gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, w.jsxs)("form", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("form", {
className: "flex min-w-0 items-center gap-2",
onSubmit: (e) => {
- e.preventDefault(), l.trim() && !E && y.mutate(l.trim());
+ e.preventDefault(), l.trim() && !w && y.mutate(l.trim());
},
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, w.jsx)(sb, {
+ children: /* @__PURE__ */ (0, D.jsx)(_b, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
...X(y.isPending),
children: "取封面来框"
})]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: () => a.current?.click(),
...X(v.isPending),
children: "从本机选图片"
}),
- /* @__PURE__ */ (0, w.jsx)("input", {
+ /* @__PURE__ */ (0, D.jsx)("input", {
ref: a,
type: "file",
accept: "image/png,image/jpeg",
@@ -25950,18 +26013,18 @@ function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "hidden",
onChange: b
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-1 items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, w.jsx)(sb, {
+ children: /* @__PURE__ */ (0, D.jsx)(_b, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
disabled: !s.trim(),
...X(v.isPending),
onClick: () => {
@@ -25974,18 +26037,18 @@ function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Xb({ src: e, choice: t }) {
- let n = (0, C.useRef)(null), [r, i] = (0, C.useState)(!1);
- (0, C.useEffect)(() => {
+function ox({ src: e, choice: t }) {
+ let n = (0, E.useRef)(null), [r, i] = (0, E.useState)(!1);
+ (0, E.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
}, []);
let a = {
width: t.width,
height: t.height
- }, o = Ib(t) ? bb(Fb(t, a, qb), a) : null, s = r ? !0 : void 0;
- return /* @__PURE__ */ (0, w.jsxs)("span", {
+ }, o = Kb(t) ? Ab(Gb(t, a, rx), a) : null, s = r ? !0 : void 0;
+ return /* @__PURE__ */ (0, D.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
- children: [/* @__PURE__ */ (0, w.jsx)("img", {
+ children: [/* @__PURE__ */ (0, D.jsx)("img", {
ref: n,
loading: "lazy",
alt: "",
@@ -26000,49 +26063,49 @@ function Xb({ src: e, choice: t }) {
"--tile-height": o.height,
"--tile-width": o.width
} : void 0
- }), /* @__PURE__ */ (0, w.jsx)("span", {
+ }), /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
"data-revealed": s,
className: "reveal-skeleton pointer-events-none absolute inset-0 skeleton-sheen"
})]
});
}
-function Zb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, C.useState)(o[0]), [l, u] = (0, C.useState)(null), [d, f] = (0, C.useState)(null), p = Mb(e, t, s), m = Sb();
+function sx({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, E.useState)(o[0]), [l, u] = (0, E.useState)(null), [d, f] = (0, E.useState)(null), p = Hb(e, t, s), m = Mb();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? yb(d, l) : null;
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ let g = d && l ? kb(d, l) : null;
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, w.jsx)(Tb, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Fb, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), ub(e) && f(s === n.ref ? Fb(n, e, 1) : db(e, 1));
+ u(e), bb(e) && f(s === n.ref ? Gb(n, e, 1) : xb(e, 1));
},
onBox: f
- }), o.length > 1 ? /* @__PURE__ */ (0, w.jsx)("div", {
+ }), o.length > 1 ? /* @__PURE__ */ (0, D.jsx)("div", {
role: "radiogroup",
"aria-label": "底图",
className: "flex flex-wrap justify-center gap-2",
- children: o.map((e) => /* @__PURE__ */ (0, w.jsx)("button", {
+ children: o.map((e) => /* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": e === s,
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Wb(e)
+ children: ex(e)
}, e))
}) : null]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
"data-crop-preview": !0,
className: "size-crop-preview shrink-0 rounded-full border border-separator-border bg-background-secondary-default bg-(image:--crop-preview) bg-(position:--crop-preview-at) bg-(length:--crop-preview-size) bg-no-repeat",
@@ -26051,14 +26114,14 @@ function Zb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
"--crop-preview-size": g.size,
"--crop-preview-at": g.position
} : void 0
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: i,
...X(r),
children: "回候选"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
disabled: !d || !l,
...X(r),
onClick: () => {
@@ -26071,7 +26134,7 @@ function Zb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Qb = qm({
+var cx = rh({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -26133,27 +26196,27 @@ var Qb = qm({
}
}
});
-function $b({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Qb[t];
- return /* @__PURE__ */ (0, w.jsx)("span", {
+function lx({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = cx[t];
+ return /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
- className: G("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? G("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, w.jsx)("span", {
- className: G("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, w.jsx)("span", { className: G("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: nh("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? nh("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, D.jsx)("span", {
+ className: nh("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, D.jsx)("span", { className: nh("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 ex({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, w.jsx)(Hv, {
+function ux({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, D.jsx)(Qv, {
ref: i,
...a,
- className: (t) => G("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)($b, {
+ className: (t) => nh("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, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(lx, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, w.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
@@ -26161,24 +26224,24 @@ function ex({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/overlay-host.ts
-function tx(e) {
+function dx(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function nx(e) {
+function fx(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return tx(n ?? t.body);
+ return dx(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var rx = "/api/cover-crop", ix = (e, t) => J(rx, {
+var px = "/api/cover-crop", mx = (e, t) => J(px, {
code: e,
box: t
-}), ax = .704;
-function ox({ className: e }) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+}), hx = .704;
+function gx({ className: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -26187,12 +26250,12 @@ function ox({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-crop" })
+ children: /* @__PURE__ */ (0, D.jsx)("use", { href: "#i-crop" })
});
}
-function sx({ code: e, coverUrl: t, box: n, onSaved: r }) {
- let [i, a] = (0, C.useState)(!1), o = (0, C.useRef)(null);
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("button", {
+function _x({ code: e, coverUrl: t, box: n, onSaved: r }) {
+ let [i, a] = (0, E.useState)(!1), o = (0, E.useRef)(null);
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("button", {
ref: o,
type: "button",
"aria-haspopup": "dialog",
@@ -26201,20 +26264,20 @@ function sx({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, w.jsx)(ox, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, w.jsx)(Sc, {
- getContainer: () => nx(o.current),
- children: /* @__PURE__ */ (0, w.jsx)(_v, {
+ children: /* @__PURE__ */ (0, D.jsx)(gx, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, D.jsx)(jc, {
+ getContainer: () => fx(o.current),
+ children: /* @__PURE__ */ (0, D.jsx)(Dv, {
isOpen: i,
onOpenChange: a,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, w.jsx)(hv, {
+ children: /* @__PURE__ */ (0, D.jsx)(Tv, {
className: "flex max-h-full w-full max-w-cover-crop flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown",
- children: /* @__PURE__ */ (0, w.jsx)(lv, {
+ children: /* @__PURE__ */ (0, D.jsx)(yv, {
"aria-label": "裁剪封面",
className: "flex min-h-0 flex-col outline-none",
- children: /* @__PURE__ */ (0, w.jsx)(cx, {
+ children: /* @__PURE__ */ (0, D.jsx)(vx, {
code: e,
coverUrl: t,
box: n,
@@ -26226,9 +26289,9 @@ function sx({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function cx({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, C.useState)(null), [s, c] = (0, C.useState)(null), [l, u] = (0, C.useState)(!0), d = Sb(), f = mt({
- mutationFn: (t) => ix(e, t),
+function vx({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, E.useState)(null), [s, c] = (0, E.useState)(null), [l, u] = (0, E.useState)(!0), d = Mb(), f = ht({
+ mutationFn: (t) => mx(e, t),
onSuccess: () => {
i(), r();
}
@@ -26240,81 +26303,81 @@ function cx({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : fb(e, ax);
- c(mb(t, e, null));
+ } : Sb(e, hx);
+ c(wb(t, e, null));
}
let m = f.isPending;
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.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, w.jsx)(ox, { className: "size-6" })
+ children: /* @__PURE__ */ (0, D.jsx)(gx, { className: "size-6" })
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(vg, {
+ /* @__PURE__ */ (0, D.jsx)(Og, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
}),
- /* @__PURE__ */ (0, w.jsxs)("p", {
+ /* @__PURE__ */ (0, D.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ f.error ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: q(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: Bf,
+ /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: Yf,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, w.jsx)(Tb, {
+ children: /* @__PURE__ */ (0, D.jsx)(Fb, {
src: t,
- aspect: l ? ax : null,
+ aspect: l ? hx : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- ub(e) && p(e);
+ bb(e) && p(e);
},
onBox: c
})
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, w.jsx)(ex, {
+ children: [/* @__PURE__ */ (0, D.jsx)(ux, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(mb(s, a, ax));
+ u(e), e && s && a && c(wb(s, a, hx));
},
- children: /* @__PURE__ */ (0, w.jsx)("span", {
+ children: /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "锁定正封比例"
})
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
...X(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
disabled: !s || !a,
...X(m),
onClick: () => {
@@ -26328,7 +26391,7 @@ function cx({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/follow-sort.ts
-var lx = [
+var yx = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -26336,7 +26399,7 @@ var lx = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], ux = "checked", dx = {
+], bx = "checked", xx = {
checked: "desc",
added: "desc",
name: "asc",
@@ -26344,15 +26407,15 @@ var lx = [
source: "asc",
provider: "asc",
status: "asc"
-}, fx = (e) => lx.some(([t]) => t === e);
-function px(e, t) {
- let n = fx(e) ? e : ux;
+}, Sx = (e) => yx.some(([t]) => t === e);
+function Cx(e, t) {
+ let n = Sx(e) ? e : bx;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : dx[n]
+ dir: t === "asc" || t === "desc" ? t : xx[n]
};
}
-function mx(e, t, n = 1) {
+function wx(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;
@@ -26372,15 +26435,15 @@ function mx(e, t, n = 1) {
t
];
}
-function hx(e, t) {
+function Tx(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function gx(e, t) {
+function Ex(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/react/time.ts
-function _x(e) {
+function Dx(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -26389,22 +26452,22 @@ function _x(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var vx = "/api/follow", yx = "/api/follow/credentials", bx = "/api/follow/check", xx = "/api/follow/source", Sx = "/api/follow/resolve", Cx = "/api/follow/suggest", wx = "/api/follow/author-alias", Tx = "/api/follow/credential", Ex = "/api/follow/status", Dx = "/api/feeds", Ox = "/api/feeds/source", kx = "/api/feeds/check", Ax = ["follow-manage"], jx = ["follow-manage", "credentials"], Mx = ["follow-manage", "check"], Nx = ["follow-manage", "resolve"], Px = ["follow-manage", "feeds"], Fx = (e) => [
+var Ox = "/api/follow", kx = "/api/follow/credentials", Ax = "/api/follow/check", jx = "/api/follow/source", Mx = "/api/follow/resolve", Nx = "/api/follow/suggest", Px = "/api/follow/author-alias", Fx = "/api/follow/credential", Ix = "/api/follow/status", Lx = "/api/feeds", Rx = "/api/feeds/source", zx = "/api/feeds/check", Bx = ["follow-manage"], Vx = ["follow-manage", "credentials"], Hx = ["follow-manage", "check"], Ux = ["follow-manage", "resolve"], Wx = ["follow-manage", "feeds"], Gx = (e) => [
"follow-manage",
"suggest",
e
-], Ix = [["default", "默认视图"], ["table", "表格视图"]], Lx = [
+], Kx = [["default", "默认视图"], ["table", "表格视图"]], qx = [
10,
20,
50,
100
-], Rx = Object.fromEntries(lx), zx = {
+], Jx = Object.fromEntries(yx), Yx = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Bx = (e) => Ix.some(([t]) => t === e), Vx = (e) => Lx.includes(Number(e)) ? Number(e) : 20, Hx = {
+}, Xx = (e) => Kx.some(([t]) => t === e), Zx = (e) => qx.includes(Number(e)) ? Number(e) : 20, Qx = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -26412,25 +26475,25 @@ var vx = "/api/follow", yx = "/api/follow/credentials", bx = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Ux = (e, t) => `按${Rx[e]}${Hx[e][t === "asc" ? 0 : 1]}排序`;
-function Wx(e) {
+}, $x = (e, t) => `按${Jx[e]}${Qx[e][t === "asc" ? 0 : 1]}排序`;
+function eS(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Gx(e) {
+function tS(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var Kx = (e) => e.last_status === "error" || e.last_status === "unauthorized", qx = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Jx = {
- source: qx,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || qx(e, t),
- status: (e, t) => Wx(e) - Wx(t) || qx(e, t)
-}, Yx = (e) => Date.parse(e || "") || 0, Xx = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function Zx(e, t = []) {
+var nS = (e) => e.last_status === "error" || e.last_status === "unauthorized", rS = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), iS = {
+ source: rS,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || rS(e, t),
+ status: (e, t) => eS(e) - eS(t) || rS(e, t)
+}, aS = (e) => Date.parse(e || "") || 0, oS = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function sS(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || Xx(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || oS(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return Xx(i.canonical_name);
+ if (i) return oS(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -26438,18 +26501,18 @@ function Zx(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function Qx(e) {
+function cS(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function $x(e) {
+function lS(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function eS(e) {
+function uS(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -26457,32 +26520,32 @@ function eS(e) {
}
return t.map((e) => n.get(e));
}
-function tS(e, t, n, r = []) {
- let i = eS(e), a = n === dx[t] ? 1 : -1, o = (e) => Zx(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Jx[t];
+function dS(e, t, n, r = []) {
+ let i = uS(e), a = n === xx[t] ? 1 : -1, o = (e) => sS(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = iS[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => Yx(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => Yx(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => aS(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => aS(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function nS(e, t, n, r = []) {
+function fS(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = Zx(e, r);
+ let t = sS(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = Jx[t];
+ }), a = iS[t];
if (a) {
- let e = n === dx[t] ? 1 : -1;
+ let e = n === xx[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function rS(e, t, n) {
- let r = hx(e, t), i = gx(n, r), a = (i - 1) * t;
+function pS(e, t, n) {
+ let r = Tx(e, t), i = Ex(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -26491,87 +26554,87 @@ function rS(e, t, n) {
end: Math.min(a + t, e)
};
}
-function iS(e, t) {
+function mS(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function aS(e, t) {
+function hS(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function oS(e, t, n) {
+function gS(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var sS = (e) => eh(`${vx}?limit=1`, e), cS = (e) => eh(yx, e), lS = (e) => eh(bx, e), uS = (e) => eh(Sx, e), dS = (e, t) => eh(`${Cx}?q=${encodeURIComponent(e)}`, t), fS = (e) => J(bx, {
+var _S = (e) => uh(`${Ox}?limit=1`, e), vS = (e) => uh(kx, e), yS = (e) => uh(Ax, e), bS = (e) => uh(Mx, e), xS = (e, t) => uh(`${Nx}?q=${encodeURIComponent(e)}`, t), SS = (e) => J(Ax, {
...e?.length ? { sources: e } : {},
background: !0
-}), pS = (e) => J(Sx, {
+}), CS = (e) => J(Mx, {
lines: e,
background: !0
-}), mS = (e, t) => J(xx, {
+}), wS = (e, t) => J(jx, {
action: "enabled",
id: e,
enabled: t
-}), hS = (e) => J(xx, {
+}), TS = (e) => J(jx, {
action: "remove",
id: e
-}), gS = (e) => J(xx, {
+}), ES = (e) => J(jx, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), _S = (e, t) => J(wx, {
+}), DS = (e, t) => J(Px, {
action: "add",
canonical: e,
alias: t
-}), vS = (e) => J(wx, {
+}), OS = (e) => J(Px, {
action: "remove",
alias: e
-}), yS = (e, t) => J(Tx, {
+}), kS = (e, t) => J(Fx, {
provider: e,
values: t
-}), bS = (e, t) => J(Ex, {
+}), AS = (e, t) => J(Ix, {
item: e,
to: t
-}), xS = () => eh(`${vx}?status=new&limit=1000`);
-async function SS(e) {
- let t = await eh(Dx, e);
+}), jS = () => uh(`${Ox}?status=new&limit=1000`);
+async function MS(e) {
+ let t = await uh(Lx, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var CS = (e, t, n) => J(Ox, {
+var NS = (e, t, n) => J(Rx, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), wS = (e, t) => J(Ox, {
+}, "POST", n), PS = (e, t) => J(Rx, {
action: "remove",
id: e
-}, "POST", t), TS = (e) => J(kx, { all: !0 }, "POST", e);
-async function ES(e, t = "") {
+}, "POST", t), FS = (e) => J(zx, { all: !0 }, "POST", e);
+async function IS(e, t = "") {
await Promise.all([
- hh.fetchQuery({
- queryKey: Ax,
- queryFn: () => sS(e)
+ Th.fetchQuery({
+ queryKey: Bx,
+ queryFn: () => _S(e)
}),
- hh.fetchQuery({
- queryKey: jx,
- queryFn: () => cS(e)
+ Th.fetchQuery({
+ queryKey: Vx,
+ queryFn: () => vS(e)
}),
- t === "feeds" ? hh.fetchQuery({
- queryKey: Px,
- queryFn: () => SS(e)
+ t === "feeds" ? Th.fetchQuery({
+ queryKey: Wx,
+ queryFn: () => MS(e)
}) : null
]);
}
-function DS(e, t) {
- hh.setQueryData(Ax, (n) => n && {
+function LS(e, t) {
+ Th.setQueryData(Bx, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -26579,24 +26642,24 @@ function DS(e, t) {
} : n)
});
}
-function OS(e) {
+function RS(e) {
let t = new Set(e);
- hh.setQueryData(Ax, (e) => e && {
+ Th.setQueryData(Bx, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var kS = () => hh.invalidateQueries({
- queryKey: Ax,
+var zS = () => Th.invalidateQueries({
+ queryKey: Bx,
exact: !0
});
-function AS(e) {
+function BS(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var jS = (e) => (e?.results || []).filter((e) => !e.ok), MS = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", NS = (e) => e.last_checked_at ? _x(e.last_checked_at) : "未检查", PS = /* @__PURE__ */ new Set([
+var VS = (e) => (e?.results || []).filter((e) => !e.ok), HS = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", US = (e) => e.last_checked_at ? Dx(e.last_checked_at) : "未检查", WS = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -26609,50 +26672,50 @@ var jS = (e) => (e?.results || []).filter((e) => !e.ok), MS = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), FS = (e) => PS.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", IS = {
+]), GS = (e) => WS.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", KS = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, LS = (e) => !!e.present && !e.missing.length, RS = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", zS = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", BS = [
+}, qS = (e) => !!e.present && !e.missing.length, JS = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", YS = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", XS = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], VS = [
+], ZS = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function HS(e = {}) {
- return `${ch({
+function QS(e = {}) {
+ return `${vh({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var US = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
-function WS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsxs)("span", {
+var $S = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
+function eC({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
- children: [t ? /* @__PURE__ */ (0, w.jsx)("i", {
+ children: [t ? /* @__PURE__ */ (0, D.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${BS[n % 4]} ${VS[n % 4]}`,
- children: /* @__PURE__ */ (0, w.jsx)(t, {
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${XS[n % 4]} ${ZS[n % 4]}`,
+ children: /* @__PURE__ */ (0, D.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
})
- }) : null, /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 truncate",
children: e
})]
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",
children: r
}),
- /* @__PURE__ */ (0, w.jsx)("small", {
+ /* @__PURE__ */ (0, D.jsx)("small", {
className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",
children: i
})
@@ -26660,7 +26723,7 @@ function WS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var GS = {
+var tC = {
md: {
box: "size-4",
glyph: "size-4",
@@ -26674,21 +26737,21 @@ var GS = {
gap: "gap-1.5"
}
};
-function KS({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = GS[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, w.jsx)("span", {
+function nC({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = tC[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
- className: G("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? G("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : G("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, w.jsx)("svg", {
+ className: nh("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? nh("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : nh("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, D.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, w.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, D.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, w.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, D.jsx)("path", {
d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
stroke: "white",
strokeWidth: "2",
@@ -26702,24 +26765,24 @@ function KS({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function qS({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = GS[n];
- return /* @__PURE__ */ (0, w.jsx)(Og, {
+function rC({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = tC[n];
+ return /* @__PURE__ */ (0, D.jsx)(Rg, {
ref: r,
...i,
- className: (t) => G("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(KS, {
+ className: (t) => nh("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, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(nC, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, w.jsx)("span", {
- className: G(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, D.jsx)("span", {
+ className: nh(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var JS = [
+var iC = [
"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",
@@ -26727,30 +26790,30 @@ var JS = [
"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(" "), YS = "w-[266px]", XS = "flex w-full flex-col gap-1 outline-none", ZS = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), QS = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", $S = 2e3, eC = (e) => e, tC = (e, t) => t;
-function nC(e) {
- let { queryKey: t, jobOf: n = eC, withJob: r = tC, idlePollMs: i } = e, [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(null), l = (0, C.useRef)(e);
- (0, C.useEffect)(() => {
+].join(" "), aC = "w-[266px]", oC = "flex w-full flex-col gap-1 outline-none", sC = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), cC = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", lC = 2e3, uC = (e) => e, dC = (e, t) => t;
+function fC(e) {
+ let { queryKey: t, jobOf: n = uC, withJob: r = dC, idlePollMs: i } = e, [a, o] = (0, E.useState)(!1), [s, c] = (0, E.useState)(null), l = (0, E.useRef)(e);
+ (0, E.useEffect)(() => {
l.current = e;
});
- let u = pt({
+ let u = mt({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? $S : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? lC : i ?? !1;
}
- }), d = mt({
+ }), d = ht({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
- o(!0), c(null), l.current.onStarted?.(e), hh.setQueryData(t, (t) => r(t, e)), hh.invalidateQueries({
+ o(!0), c(null), l.current.onStarted?.(e), Th.setQueryData(t, (t) => r(t, e)), Th.invalidateQueries({
queryKey: t,
exact: !0
});
},
onError: (e) => l.current.onError?.(e)
}), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";
- return (0, C.useEffect)(() => {
+ return (0, E.useEffect)(() => {
if (f) {
if (f.status === "running") {
a || o(!0);
@@ -26769,27 +26832,27 @@ function nC(e) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function rC({ className: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
- className: G("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+function pC({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
+ className: nh("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function iC({ className: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsx)("p", {
- className: G("w-full px-3 text-body-2-medium text-text-secondary", e),
+function mC({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsx)("p", {
+ className: nh("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function aC({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: G("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, w.jsxs)("div", {
+function hC({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: nh("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, D.jsxs)("div", {
className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, w.jsx)("p", {
+ children: [/* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e
- }), t && /* @__PURE__ */ (0, w.jsx)("p", {
+ }), t && /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
})]
@@ -26798,7 +26861,7 @@ function aC({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var oC = qm({
+var gC = rh({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -26822,21 +26885,21 @@ var oC = qm({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function sC({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = G(oC.base, oC.size[t], oC.variant[e], a), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- n ? /* @__PURE__ */ (0, w.jsx)(n, {
- className: oC.icon[t],
+function _C({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = nh(gC.base, gC.size[t], gC.variant[e], a), l = /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, D.jsx)(n, {
+ className: gC.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, w.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, w.jsx)(r, {
- className: oC.icon[t],
+ i != null && /* @__PURE__ */ (0, D.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, D.jsx)(r, {
+ className: gC.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, w.jsx)("a", {
+ return /* @__PURE__ */ (0, D.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -26846,7 +26909,7 @@ function sC({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, w.jsx)("button", {
+ return /* @__PURE__ */ (0, D.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -26857,151 +26920,151 @@ function sC({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function cC({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
- let a = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [n ? /* @__PURE__ */ (0, w.jsxs)("div", {
+function vC({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [n ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, w.jsx)(iC, { children: e })
+ children: /* @__PURE__ */ (0, D.jsx)(mC, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, w.jsx)(iC, { children: e }), /* @__PURE__ */ (0, w.jsx)(rC, { children: i })] });
- return r ? /* @__PURE__ */ (0, w.jsx)("form", {
+ }) : /* @__PURE__ */ (0, D.jsx)(mC, { children: e }), /* @__PURE__ */ (0, D.jsx)(pC, { children: i })] });
+ return r ? /* @__PURE__ */ (0, D.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
onSubmit: r,
className: "flex w-full flex-col gap-2",
children: a
- }) : /* @__PURE__ */ (0, w.jsx)("section", {
+ }) : /* @__PURE__ */ (0, D.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
children: a
});
}
-function lC({ children: e }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
+function yC({ children: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function uC({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, w.jsx)("div", {
+function bC({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, w.jsx)("div", {
+ }) : /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function dC({ status: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function xC({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
- children: [e ? /* @__PURE__ */ (0, w.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function fC({ role: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsx)("p", {
+function SC({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function pC({ children: e }) {
- return /* @__PURE__ */ (0, w.jsx)("p", {
+function CC({ children: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function mC({ children: e }) {
- return /* @__PURE__ */ (0, w.jsx)("p", {
+function wC({ children: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function hC({ href: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsx)(sC, {
+function TC({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsx)(_C, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: Gf,
+ trailingIcon: $f,
children: t
});
}
-function gC({ children: e }) {
- return /* @__PURE__ */ (0, w.jsx)("dl", {
+function EC({ children: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function _C({ term: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function DC({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, D.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, w.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, D.jsx)("dt", {
className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, w.jsx)("dd", {
+ }), /* @__PURE__ */ (0, D.jsx)("dd", {
className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
children: t
})]
});
}
-function vC({ summary: e, defaultOpen: t = !1, children: n }) {
- let r = (0, C.useId)(), i = (0, C.useRef)(null), a = (0, C.useRef)(null), o = (0, C.useRef)(!1), [s, c] = (0, C.useState)(t);
- return /* @__PURE__ */ (0, w.jsxs)("details", {
+function OC({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, E.useId)(), i = (0, E.useRef)(null), a = (0, E.useRef)(null), o = (0, E.useRef)(!1), [s, c] = (0, E.useState)(t);
+ return /* @__PURE__ */ (0, D.jsxs)("details", {
ref: (e) => {
i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
},
- children: [/* @__PURE__ */ (0, w.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("summary", {
"aria-expanded": s,
"aria-controls": r,
onClick: (e) => {
e.preventDefault(), !(!i.current || !a.current) && (l(i.current, a.current, !s), c(!s));
},
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, w.jsx)(Ff, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Wf, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
- }), /* @__PURE__ */ (0, w.jsx)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)("div", {
ref: a,
id: r,
inert: !s,
- children: /* @__PURE__ */ (0, w.jsx)("div", {
+ children: /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
children: n
})
})]
});
}
-function yC({ name: e }) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+function kC({ name: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, w.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, D.jsx)("use", { href: `#i-${e}` })
});
}
-function bC({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, w.jsx)("img", {
+function AC({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, D.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, w.jsx)(yC, { name: e });
+ }) : /* @__PURE__ */ (0, D.jsx)(kC, { name: e });
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function xC({ provider: e, label: t }) {
- let n = FS(e), [r, i] = (0, C.useState)(!1);
- return !n || r ? t ? /* @__PURE__ */ (0, w.jsx)(w.Fragment, { children: t }) : null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("img", {
+function jC({ provider: e, label: t }) {
+ let n = GS(e), [r, i] = (0, E.useState)(!1);
+ return !n || r ? t ? /* @__PURE__ */ (0, D.jsx)(D.Fragment, { children: t }) : null : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("img", {
src: n,
alt: "",
width: 14,
@@ -27009,11 +27072,11 @@ function xC({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, w.jsx)(Qo, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, D.jsx)(ss, { children: t }) : null] });
}
-function SC({ group: e, name: t }) {
- let { src: n, fallback: r } = $x(e), [i, a] = (0, C.useState)(0), o = [n, r].filter(Boolean)[i];
- return o ? /* @__PURE__ */ (0, w.jsx)("img", {
+function MC({ group: e, name: t }) {
+ let { src: n, fallback: r } = lS(e), [i, a] = (0, E.useState)(0), o = [n, r].filter(Boolean)[i];
+ return o ? /* @__PURE__ */ (0, D.jsx)("img", {
src: o,
alt: "",
width: 32,
@@ -27022,22 +27085,22 @@ function SC({ group: e, name: t }) {
referrerPolicy: "no-referrer",
onError: () => a(i + 1),
className: "size-8 shrink-0 rounded-full bg-background-tertiary-default object-cover"
- }) : /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : /* @__PURE__ */ (0, D.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: Qx(t)
+ children: cS(t)
});
}
-function CC({ source: e }) {
- let t = Kx(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, w.jsx)(Ym, {
+function NC({ source: e }) {
+ let t = nS(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: t,
- children: Gx(e)
+ children: tS(e)
});
}
-function wC({ source: e }) {
- return /* @__PURE__ */ (0, w.jsx)("a", {
+function PC({ source: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer noopener",
@@ -27048,79 +27111,79 @@ function wC({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var TC = G(ZS, QS, "text-body-2-medium"), EC = "粘贴来源链接,或输入创作者名、id…", DC = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", OC = "识别中…", kC = "站内没有查到来源", AC = (e, t) => `${e}:${t.url}`;
-function jC({ options: e, active: t, busy: n, onPick: r }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+var FC = nh(sC, cC, "text-body-2-medium"), IC = "粘贴来源链接,或输入创作者名、id…", LC = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", RC = "识别中…", zC = "站内没有查到来源", BC = (e, t) => `${e}:${t.url}`;
+function VC({ options: e, active: t, busy: n, onPick: r }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-label": "来源建议",
- className: G(JS, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
- children: [n && !e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+ className: nh(iC, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
+ children: [n && !e.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, w.jsx)(dh, { label: "正在查找建议" })
- }) : null, e.map((e, n) => /* @__PURE__ */ (0, w.jsxs)("button", {
+ children: /* @__PURE__ */ (0, D.jsx)(xh, { label: "正在查找建议" })
+ }) : null, e.map((e, n) => /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
"aria-current": n === t ? "true" : void 0,
- className: n === t ? G(TC, "bg-background-secondary-default") : TC,
+ className: n === t ? nh(FC, "bg-background-secondary-default") : FC,
onMouseDown: (e) => e.preventDefault(),
onClick: () => r(e.value),
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 grow truncate text-left",
children: e.label
- }), /* @__PURE__ */ (0, w.jsx)("span", {
+ }), /* @__PURE__ */ (0, D.jsx)("span", {
className: "shrink-0 text-caption-1-regular text-text-tertiary",
children: e.group
})]
}, `${e.group}-${e.value}`))]
});
}
-function MC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
- let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
+function HC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+ let i = (0, E.useRef)(null), [a, o] = (0, E.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
};
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(K, {
ref: i,
variant: "secondary",
- leadingIcon: qf,
+ leadingIcon: tp,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, w.jsx)(av, {
+ }), /* @__PURE__ */ (0, D.jsx)(hv, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: JS,
- children: /* @__PURE__ */ (0, w.jsxs)(lv, {
+ className: iC,
+ children: /* @__PURE__ */ (0, D.jsxs)(yv, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
- children: [s.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [s.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-center gap-2 pb-1",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
onClick: () => n(/* @__PURE__ */ new Set()),
children: "全选"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, D.jsx)(SC, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(qS, {
+ children: [/* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
- children: /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, D.jsx)(jC, { provider: e.provider }), e.provider_label]
})
- }), n ? /* @__PURE__ */ (0, w.jsx)(K, {
+ }), n ? /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "xs",
className: "ml-auto",
@@ -27134,66 +27197,66 @@ function MC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function NC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
- if (e.kind === "error") return /* @__PURE__ */ (0, w.jsx)(Y, {
+function UC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+ if (e.kind === "error") return /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: e.line,
children: e.error || "查找失败"
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
children: [
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.line
}),
a.length ? a.map((e) => {
- let n = AC(t, e);
- return /* @__PURE__ */ (0, w.jsx)(qS, {
+ let n = BC(t, e);
+ return /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
- children: /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)(jC, { provider: e.provider }),
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 break-words",
children: e.label
}),
- /* @__PURE__ */ (0, w.jsx)("small", {
+ /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.known ? "已经关注" : e.evidence
})
]
})
}, n);
- }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: kC }),
- (e.external_searches || []).map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, D.jsx)(SC, { children: zC }),
+ (e.external_searches || []).map((e) => /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("small", {
+ children: [/* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, w.jsx)(hC, {
+ }), /* @__PURE__ */ (0, D.jsx)(TC, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, w.jsx)(fC, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, D.jsx)(SC, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
- let [a, o] = (0, C.useState)(""), [s, c] = (0, C.useState)(""), [l, u] = (0, C.useState)(""), [d, f] = (0, C.useState)(!1), [p, m] = (0, C.useState)(-1), [h, g] = (0, C.useState)(/* @__PURE__ */ new Set()), [_, v] = (0, C.useState)(/* @__PURE__ */ new Set()), [y, b] = (0, C.useState)(""), [x, S] = (0, C.useState)(0);
- (0, C.useEffect)(() => {
+function WC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+ let [a, o] = (0, E.useState)(""), [s, c] = (0, E.useState)(""), [l, u] = (0, E.useState)(""), [d, f] = (0, E.useState)(!1), [p, m] = (0, E.useState)(-1), [h, g] = (0, E.useState)(/* @__PURE__ */ new Set()), [_, v] = (0, E.useState)(/* @__PURE__ */ new Set()), [y, b] = (0, E.useState)(""), [x, S] = (0, E.useState)(0);
+ (0, E.useEffect)(() => {
let e = a.trim();
if (!e || e.includes("/")) {
u("");
@@ -27202,18 +27265,18 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let T = pt({
- queryKey: Fx(l),
- queryFn: ({ signal: e }) => dS(l, e),
+ let C = mt({
+ queryKey: Gx(l),
+ queryFn: ({ signal: e }) => xS(l, e),
enabled: l.length > 0 && d
- }), E = (0, C.useMemo)(() => (T.data?.groups || []).flatMap((e) => e.items.map((t) => ({
+ }), w = (0, E.useMemo)(() => (C.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
label: t.matched || t.value,
group: e.label
- }))), [T.data]), { job: D, running: O, outcome: k, start: A, dismiss: j } = nC({
- queryKey: Nx,
- queryFn: ({ signal: e }) => uS(e),
- start: (e) => pS([e]),
+ }))), [C.data]), { job: T, running: O, outcome: k, start: A, dismiss: j } = fC({
+ queryKey: Ux,
+ queryFn: ({ signal: e }) => bS(e),
+ start: (e) => CS([e]),
onStarted: () => v(/* @__PURE__ */ new Set()),
onError: (e) => b(q(e)),
onFinish: (e) => {
@@ -27224,32 +27287,32 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
!t || O || A.isPending || (b(""), m(-1), c(t), o(""), u(""), A.mutate(t));
}, ee = (e) => {
if (!e.nativeEvent.isComposing) {
- if (e.key === "Escape" && E.length) {
+ if (e.key === "Escape" && w.length) {
m(-1), f(!1);
return;
}
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
- if (!E.length) return;
+ if (!w.length) return;
e.preventDefault();
let t = e.key === "ArrowDown" ? 1 : -1;
m((e) => {
let n = e + t;
- return n < 0 ? E.length - 1 : n >= E.length ? 0 : n;
+ return n < 0 ? w.length - 1 : n >= w.length ? 0 : n;
});
return;
}
- e.key === "Enter" && (e.preventDefault(), M(E[p]?.value || a));
+ e.key === "Enter" && (e.preventDefault(), M(w[p]?.value || a));
}
- }, te = k?.results || [], ne = te.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !h.has(e.provider_label || "")).map((e) => ({
+ }, te = k?.results || [], N = te.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !h.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: AC(t, e)
- })).filter((e) => !_.has(e.key))), N = mt({
+ key: BC(t, e)
+ })).filter((e) => !_.has(e.key))), P = ht({
mutationFn: async (e) => {
let t = [], n = [];
S(0);
for (let r of e) {
try {
- let e = await gS(r.candidate);
+ let e = await ES(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${q(e)}`);
@@ -27257,7 +27320,7 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
S((e) => e + 1);
}
if (n.length) try {
- await fS(n);
+ await SS(n);
} catch (e) {
t.push(q(e));
}
@@ -27267,55 +27330,55 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (kS(), e.failures.length) {
+ if (zS(), e.failures.length) {
b(e.failures.join(";"));
return;
}
b(""), j(), r(`已添加 ${e.sources.length} 个关注来源`);
},
onError: (e) => b(q(e))
- }), re = e.suggestions || [], ie = !s.includes("/"), ae = T.isFetching, oe = d && (E.length > 0 || ae);
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+ }), ne = e.suggestions || [], re = !s.includes("/"), F = C.isFetching, ie = d && (w.length > 0 || F);
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "添加关注"
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "relative min-w-64 grow",
onFocus: () => f(!0),
onBlur: (e) => {
e.currentTarget.contains(e.relatedTarget) || f(!1);
},
- children: [/* @__PURE__ */ (0, w.jsx)(sb, {
+ children: [/* @__PURE__ */ (0, D.jsx)(_b, {
"aria-label": "来源链接、名字或 id",
- placeholder: EC,
+ placeholder: IC,
value: a,
- leadingIcon: op,
+ leadingIcon: mp,
isDisabled: n,
onChange: o,
onKeyDown: ee
- }), oe ? /* @__PURE__ */ (0, w.jsx)(jC, {
- options: E,
+ }), ie ? /* @__PURE__ */ (0, D.jsx)(VC, {
+ options: w,
active: p,
- busy: ae,
+ busy: F,
onPick: M
}) : null]
}),
- /* @__PURE__ */ (0, w.jsx)(MC, {
+ /* @__PURE__ */ (0, D.jsx)(HC, {
credentials: t,
hidden: h,
onHidden: g,
openCredentials: i
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
disabled: n || !a.trim(),
...X(O || A.isPending),
@@ -27324,24 +27387,24 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [O || A.isPending ? D?.total ? /* @__PURE__ */ (0, w.jsx)(ph, {
- label: D.message || `查找中:${D.checked || 0}/${D.total}`,
- value: D.checked || 0,
- max: D.total
- }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: ie ? DC : OC }) : null, y ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ children: [O || A.isPending ? T?.total ? /* @__PURE__ */ (0, D.jsx)(Ch, {
+ label: T.message || `查找中:${T.checked || 0}/${T.total}`,
+ value: T.checked || 0,
+ max: T.total
+ }) : /* @__PURE__ */ (0, D.jsx)(xh, { label: re ? LC : RC }) : null, y ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
children: y
}) : null]
}),
- te.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ te.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "查找结果" }),
- te.map((e, t) => /* @__PURE__ */ (0, w.jsx)(NC, {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "查找结果" }),
+ te.map((e, t) => /* @__PURE__ */ (0, D.jsx)(UC, {
row: e,
at: t,
hidden: h,
@@ -27351,38 +27414,38 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
t ? n.delete(e) : n.add(e), v(n);
}
}, `${e.line}-${t}`)),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
- disabled: n || !ne.length,
- ...X(N.isPending),
- onClick: () => N.mutate(ne),
- children: `添加选中(${ne.length})`
+ disabled: n || !N.length,
+ ...X(P.isPending),
+ onClick: () => P.mutate(N),
+ children: `添加选中(${N.length})`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
onClick: () => j(),
children: "关闭"
}),
- N.isPending ? /* @__PURE__ */ (0, w.jsx)("span", {
+ P.isPending ? /* @__PURE__ */ (0, D.jsx)("span", {
role: "status",
className: "text-body-2-regular text-text-secondary",
- children: `添加中… ${x}/${ne.length}`
+ children: `添加中… ${x}/${N.length}`
}) : null
]
})
]
}) : null,
- re.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ ne.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "猜你喜欢"
- }), re.map((e) => /* @__PURE__ */ (0, w.jsx)(K, {
+ }), ne.map((e) => /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: n,
@@ -27396,20 +27459,20 @@ function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function FC({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
- className: G("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, w.jsx)(cy, {
+function GC({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
+ className: nh("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, D.jsx)(vy, {
ref: r,
...i,
- className: G("bui-table", e === "sm" && "bui-table-sm", t)
+ className: nh("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function IC({ children: e, follow: t = !1 }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
+function KC({ children: e, follow: t = !1 }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
children: e
@@ -27417,32 +27480,32 @@ function IC({ children: e, follow: t = !1 }) {
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var LC = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, RC = (e) => e.alias;
-function zC(e, t, n) {
+var qC = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, JC = (e) => e.alias;
+function YC(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function BC({ sources: e, name: t, canonicalKey: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("span", {
+function XC({ sources: e, name: t, canonicalKey: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(SC, {
- group: zC(e, t, n),
+ children: [/* @__PURE__ */ (0, D.jsx)(MC, {
+ group: YC(e, t, n),
name: t
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-medium",
children: t
})]
});
}
-function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, C.useState)(/* @__PURE__ */ new Set()), [s, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = mt({
+function ZC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, E.useState)(/* @__PURE__ */ new Set()), [s, l] = (0, E.useState)(""), [u, d] = (0, E.useState)(""), [f, p] = (0, E.useState)(""), m = ht({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await _S(n.canonical, n.alias);
+ await DS(n.canonical, n.alias);
} catch (n) {
- throw t && kS(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && zS(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -27452,19 +27515,19 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- l(""), o(/* @__PURE__ */ new Set()), kS(), i(`已合并 ${e.done} 组创作者别名`);
+ l(""), o(/* @__PURE__ */ new Set()), zS(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => l(q(e))
- }), h = mt({
- mutationFn: (e) => _S(e.canonical, e.alias),
+ }), h = ht({
+ mutationFn: (e) => DS(e.canonical, e.alias),
onSuccess: () => {
- l(""), d(""), p(""), kS(), i("已保存创作者别名");
+ l(""), d(""), p(""), zS(), i("已保存创作者别名");
},
onError: (e) => l(q(e))
- }), g = mt({
- mutationFn: (e) => vS(e),
+ }), g = ht({
+ mutationFn: (e) => OS(e),
onSuccess: () => {
- l(""), kS(), i("已移除创作者别名");
+ l(""), zS(), i("已移除创作者别名");
},
onError: (e) => l(q(e))
}), _ = (e, t) => {
@@ -27474,23 +27537,23 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => m.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(RC(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+ }, v = t.filter((e) => a.has(JC(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "创作者别名"
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "手动添加别名" }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)(wC, { children: "手动添加别名" }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(_b, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: u,
@@ -27498,7 +27561,7 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(_b, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: f,
@@ -27506,7 +27569,7 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
disabled: r || !u.trim() || !f.trim(),
...X(h.isPending),
@@ -27519,18 +27582,18 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, w.jsx)(pC, { children: s }) : null,
- t.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ s ? /* @__PURE__ */ (0, D.jsx)(CC, { children: s }) : null,
+ t.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "待合并" }),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "待合并" }),
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: r || !v.length,
@@ -27538,7 +27601,7 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onClick: () => _(v, !1),
children: `合并所选(${v.length})`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
disabled: r,
@@ -27547,44 +27610,44 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, w.jsx)(IC, { children: /* @__PURE__ */ (0, w.jsxs)(FC, {
+ }), /* @__PURE__ */ (0, D.jsx)(KC, { children: /* @__PURE__ */ (0, D.jsxs)(GC, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, w.jsxs)(hy, { children: [
- /* @__PURE__ */ (0, w.jsx)(by, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(Ty, { children: [
+ /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "select",
- children: /* @__PURE__ */ (0, w.jsx)(qS, {
+ children: /* @__PURE__ */ (0, D.jsx)(rC, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(RC)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(JC)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, w.jsx)(by, {
+ /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, w.jsx)(by, {
+ /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, w.jsx)(by, {
+ /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, w.jsx)(by, {
+ /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, w.jsx)(wy, { children: t.map((e) => {
- let t = RC(e);
- return /* @__PURE__ */ (0, w.jsxs)(Oy, {
+ ] }), /* @__PURE__ */ (0, D.jsx)(Py, { children: t.map((e) => {
+ let t = JC(e);
+ return /* @__PURE__ */ (0, D.jsxs)(Ry, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(qS, {
+ /* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)(rC, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -27593,16 +27656,16 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(BC, {
+ /* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)(XC, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, w.jsx)(jy, { children: e.alias }),
- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)(Vy, { children: e.alias }),
+ /* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: r,
@@ -27615,45 +27678,45 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}) })]
}) })]
}) : null,
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "已保存别名" }), /* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)(wC, { children: "已保存别名" }), /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, w.jsx)(IC, { children: /* @__PURE__ */ (0, w.jsxs)(FC, {
+ }), e.length ? /* @__PURE__ */ (0, D.jsx)(KC, { children: /* @__PURE__ */ (0, D.jsxs)(GC, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, w.jsxs)(hy, { children: [/* @__PURE__ */ (0, w.jsx)(by, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(Ty, { children: [/* @__PURE__ */ (0, D.jsx)(Ay, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, w.jsx)(by, {
+ }), /* @__PURE__ */ (0, D.jsx)(Ay, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, w.jsx)(wy, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(Oy, {
+ })] }), /* @__PURE__ */ (0, D.jsx)(Py, { children: e.map((e) => /* @__PURE__ */ (0, D.jsxs)(Ry, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(BC, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)(XC, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, D.jsx)(Vy, { children: /* @__PURE__ */ (0, D.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
- children: e.aliases.map((e) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: e.aliases.map((e) => /* @__PURE__ */ (0, D.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
- children: [e.name, /* @__PURE__ */ (0, w.jsx)(K, {
+ children: [e.name, /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: Bf,
+ leadingIcon: Yf,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(g.isPending),
onClick: () => void c({
title: "移除创作者别名",
- body: LC(e.name),
+ body: qC(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -27661,9 +27724,9 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: dp,
+ icon: yp,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -27673,8 +27736,8 @@ function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/components/path-line.tsx
-function HC({ className: e }) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+function QC({ className: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -27683,13 +27746,13 @@ function HC({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-folder-open" })
+ children: /* @__PURE__ */ (0, D.jsx)("use", { href: "#i-folder-open" })
});
}
-var UC = "打开文件管理器失败,请重试";
-function WC({ path: e, prefix: t, className: n, onRevealed: r }) {
- let [i, a] = (0, C.useState)(!1), [o, s] = (0, C.useState)(""), c = (0, C.useRef)(!0);
- (0, C.useEffect)(() => () => {
+var $C = "打开文件管理器失败,请重试";
+function ew({ path: e, prefix: t, className: n, onRevealed: r }) {
+ let [i, a] = (0, E.useState)(!1), [o, s] = (0, E.useState)(""), c = (0, E.useRef)(!0);
+ (0, E.useEffect)(() => () => {
c.current = !1;
}, []);
let l = async () => {
@@ -27698,28 +27761,28 @@ function WC({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await J("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Qm ? e.message : UC);
+ c.current && s(e instanceof ch ? e.message : $C);
} finally {
c.current && a(!1);
}
}
};
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("p", {
- className: G("min-w-0 break-all", n),
+ children: [/* @__PURE__ */ (0, D.jsxs)("p", {
+ className: nh("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: HC,
+ }), /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: QC,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
...X(i)
})]
- }), o ? /* @__PURE__ */ (0, w.jsx)("p", {
+ }), o ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
children: o
}) : null]
@@ -27727,33 +27790,33 @@ function WC({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var GC = "这些账号信息存在哪里", KC = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", qC = "将清除这个来源在本机和共享副本中的登录凭据。", JC = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function YC(e, t) {
+var tw = "这些账号信息存在哪里", nw = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", rw = "将清除这个来源在本机和共享副本中的登录凭据。", iw = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function aw(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function XC({ row: e }) {
- if (LS(e)) return /* @__PURE__ */ (0, w.jsx)(Ym, {
+function ow({ row: e }) {
+ if (qS(e)) return /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, w.jsx)(Ym, {
+ return /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: t,
- children: IS[e.requirement] || ""
+ children: KS[e.requirement] || ""
});
}
-function ZC({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, C.useState)({}), [a, o] = (0, C.useState)(""), s = LS(e), l = mt({
- mutationFn: (t) => yS(e.provider, t),
+function sw({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, E.useState)({}), [a, o] = (0, E.useState)(""), s = qS(e), l = ht({
+ mutationFn: (t) => kS(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
- o(""), i({}), hh.invalidateQueries({
- queryKey: jx,
+ o(""), i({}), Th.invalidateQueries({
+ queryKey: Vx,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -27766,20 +27829,20 @@ function ZC({ row: e, readOnly: t, toast: n }) {
}
l.mutate(e);
};
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsxs)(fC, { children: [e.why, e.where ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [" ", /* @__PURE__ */ (0, w.jsx)(hC, {
+ /* @__PURE__ */ (0, D.jsxs)(SC, { children: [e.why, e.where ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [" ", /* @__PURE__ */ (0, D.jsx)(TC, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.howto }) : null,
- /* @__PURE__ */ (0, w.jsx)("div", {
+ e.howto ? /* @__PURE__ */ (0, D.jsx)(SC, { children: e.howto }) : null,
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, w.jsx)(sb, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, D.jsx)(_b, {
type: "password",
label: n,
- placeholder: YC(e, n),
+ placeholder: aw(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -27791,23 +27854,23 @@ function ZC({ row: e, readOnly: t, toast: n }) {
className: "w-48"
}, n))
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
disabled: t,
...X(l.isPending),
onClick: u,
children: "保存配置"
- }), s ? /* @__PURE__ */ (0, w.jsx)(K, {
+ }), s ? /* @__PURE__ */ (0, D.jsx)(K, {
variant: "danger",
size: "small",
disabled: t,
...X(l.isPending),
onClick: () => void c({
title: "清除来源凭据",
- body: qC,
+ body: rw,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => l.mutateAsync({})
@@ -27815,50 +27878,50 @@ function ZC({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, w.jsx)(pC, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, w.jsx)(fC, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, w.jsx)(WC, {
+ a ? /* @__PURE__ */ (0, D.jsx)(CC, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, D.jsx)(SC, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, D.jsx)(ew, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
}) : null,
- e.world_readable ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ e.world_readable ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: JC
+ children: iw
}) : null
]
});
}
-function QC({ row: e, readOnly: t, toast: n }) {
- let r = /* @__PURE__ */ (0, w.jsxs)("span", {
+function cw({ row: e, readOnly: t, toast: n }) {
+ let r = /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider })
+ children: /* @__PURE__ */ (0, D.jsx)(jC, { provider: e.provider })
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, w.jsx)(XC, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, w.jsx)(Ym, {
+ /* @__PURE__ */ (0, D.jsx)(ow, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
}) : null
]
});
- return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.why }) : null]
- }) : /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, D.jsx)(SC, { children: e.why }) : null]
+ }) : /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, w.jsx)(vC, {
- summary: LS(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !LS(e),
- children: /* @__PURE__ */ (0, w.jsx)(ZC, {
+ children: [r, /* @__PURE__ */ (0, D.jsx)(OC, {
+ summary: qS(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !qS(e),
+ children: /* @__PURE__ */ (0, D.jsx)(sw, {
row: e,
readOnly: t,
toast: n
@@ -27866,47 +27929,47 @@ function QC({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function $C({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !LS(e));
- return r.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+function lw({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !qS(e));
+ return r.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "来源和凭证"
- }), i.length ? /* @__PURE__ */ (0, w.jsx)("span", {
+ }), i.length ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-error-primary",
children: `${i.length} 个待配置`
}) : null]
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
- className: ch({
+ /* @__PURE__ */ (0, D.jsx)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, w.jsx)(QC, {
+ children: r.map((e) => /* @__PURE__ */ (0, D.jsx)(cw, {
row: e,
readOnly: t,
toast: n
}, e.provider))
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: GC
+ children: tw
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: KC
+ children: nw
}),
- /* @__PURE__ */ (0, w.jsx)(WC, {
+ /* @__PURE__ */ (0, D.jsx)(ew, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -27915,80 +27978,80 @@ function $C({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: ep,
+ icon: cp,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-function ew(e) {
+function uw(e) {
let t = e.last_fetched_at ? `上次拉取 ${new Date(e.last_fetched_at).toLocaleString()}` : "还没拉过", n = e.interval_minutes >= 60 ? `每 ${Math.round(e.interval_minutes / 60)} 小时一次` : `每 ${e.interval_minutes} 分钟一次`;
return `${e.kind_label} · ${n} · ${t} · 上次新增 ${e.last_new_count} 条`;
}
-var tw = () => hh.invalidateQueries({
- queryKey: Px,
+var dw = () => Th.invalidateQueries({
+ queryKey: Wx,
exact: !0
-}), nw = (e) => e.name || e.url;
-function rw({ readOnly: e, toast: t }) {
- let n = pt({
- queryKey: Px,
- queryFn: ({ signal: e }) => SS(e)
- }), r = mh(), i = n.data;
- if (!i) return /* @__PURE__ */ (0, w.jsx)(rC, { children: /* @__PURE__ */ (0, w.jsx)(uC, { children: n.error ? /* @__PURE__ */ (0, w.jsx)(Y, {
+}), fw = (e) => e.name || e.url;
+function pw({ readOnly: e, toast: t }) {
+ let n = mt({
+ queryKey: Wx,
+ queryFn: ({ signal: e }) => MS(e)
+ }), r = wh(), i = n.data;
+ if (!i) return /* @__PURE__ */ (0, D.jsx)(pC, { children: /* @__PURE__ */ (0, D.jsx)(bC, { children: n.error ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: q(n.error)
- }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: "正在读订阅源。" }) }) });
- let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => CS(e.id, t, n), () => void tw()), o = (e) => void c({
+ }) : /* @__PURE__ */ (0, D.jsx)(SC, { children: "正在读订阅源。" }) }) });
+ let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => NS(e.id, t, n), () => void dw()), o = (e) => void c({
title: "移除订阅源",
- body: `将移除订阅源「${nw(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,
+ body: `将移除订阅源「${fw(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,
confirmLabel: "移除订阅源",
danger: !0,
onConfirm: async () => {
- await wS(e.id), t(`已移除订阅源「${nw(e)}」`), tw();
- }
- }), s = () => void r.run("check", (e) => TS(e), () => void tw()), l = i.sources.filter((e) => e.last_error);
- return /* @__PURE__ */ (0, w.jsxs)(rC, { children: [
- i.sources.length ? /* @__PURE__ */ (0, w.jsx)(lC, { children: i.sources.map((t) => /* @__PURE__ */ (0, w.jsx)(aC, {
- label: nw(t),
- description: ew(t),
- children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ await PS(e.id), t(`已移除订阅源「${fw(e)}」`), dw();
+ }
+ }), s = () => void r.run("check", (e) => FS(e), () => void dw()), l = i.sources.filter((e) => e.last_error);
+ return /* @__PURE__ */ (0, D.jsxs)(pC, { children: [
+ i.sources.length ? /* @__PURE__ */ (0, D.jsx)(yC, { children: i.sources.map((t) => /* @__PURE__ */ (0, D.jsx)(hC, {
+ label: fw(t),
+ description: uw(t),
+ children: /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(ex, {
- "aria-label": `启用 ${nw(t)}`,
+ children: [/* @__PURE__ */ (0, D.jsx)(ux, {
+ "aria-label": `启用 ${fw(t)}`,
isSelected: t.enabled,
isDisabled: e,
onChange: (e) => a(t, e)
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: Uf,
- "aria-label": `移除 ${nw(t)}`,
+ leadingIcon: Zf,
+ "aria-label": `移除 ${fw(t)}`,
disabled: e,
onClick: () => o(t)
})]
})
- }, t.id)) }) : /* @__PURE__ */ (0, w.jsx)(uh, {
- icon: ap,
+ }, t.id)) }) : /* @__PURE__ */ (0, D.jsx)(bh, {
+ icon: pp,
title: "还没有订阅源",
shell: "plain",
children: "在人物页点「订阅新作」添加。"
}),
- l.length || r.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {
+ l.length || r.error ? /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
- children: [l.map((e) => /* @__PURE__ */ (0, w.jsx)(Y, {
+ children: [l.map((e) => /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
- title: `${nw(e)} 拉取失败`,
+ title: `${fw(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, w.jsx)(dC, {
+ /* @__PURE__ */ (0, D.jsx)(xC, {
status: i.unread ? `有 ${i.unread} 条新作还没看` : "新作都看过了",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
onClick: s,
disabled: e,
...X(r.busy === "check"),
@@ -27999,7 +28062,7 @@ function rw({ readOnly: e, toast: t }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function iw() {
+function mw() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -28012,24 +28075,24 @@ function iw() {
group: (e) => e
};
}
-function aw(e, t) {
+function hw(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function ow(e, t) {
+function gw(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: aw(n, t[e])
+ [e]: hw(n, t[e])
}));
};
}
-function sw(e) {
+function _w(e) {
return e instanceof Function;
}
-function cw(e) {
+function vw(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function lw(e, t) {
+function yw(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -28068,7 +28131,7 @@ function $(e, t, n, r) {
onChange: r
};
}
-function uw(e, t, n, r) {
+function bw(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
@@ -28093,7 +28156,7 @@ function uw(e, t, n, r) {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function dw(e, t, n, r) {
+function xw(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -28119,8 +28182,8 @@ function dw(e, t, n, r) {
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var fw = "debugHeaders";
-function pw(e, t, n) {
+var Sw = "debugHeaders";
+function Cw(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -28148,7 +28211,7 @@ function pw(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var mw = { createTable: (e) => {
+var ww = { createTable: (e) => {
e.getHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
@@ -28156,34 +28219,34 @@ var mw = { createTable: (e) => {
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return hw(t, [
+ return Tw(t, [
...a,
...s,
...o
], e);
- }, $(e.options, fw, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
+ }, $(e.options, Sw, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), hw(t, n, e, "center")), $(e.options, fw, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Tw(t, n, e, "center")), $(e.options, Sw, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => hw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, fw, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
+ ], (t, n, r) => Tw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, Sw, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => hw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, fw, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => Tw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, Sw, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, Sw, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, Sw, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, Sw, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, Sw, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Sw, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Sw, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Sw, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Sw, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, fw, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), $(e.options, Sw, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, fw, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), $(e.options, Sw, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, fw, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
+ }), $(e.options, Sw, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -28191,9 +28254,9 @@ var mw = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), $(e.options, fw, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), $(e.options, Sw, "getLeafHeaders"));
} };
-function hw(e, t, n, r) {
+function Tw(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -28211,7 +28274,7 @@ function hw(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = pw(n, c, {
+ let i = Cw(n, c, {
id: [
r,
t,
@@ -28228,7 +28291,7 @@ function hw(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => pw(n, e, {
+ s(t.map((e, t) => Cw(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -28246,7 +28309,7 @@ function hw(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var gw = (e, t, n, r, i, a, o) => {
+var Ew = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -28267,7 +28330,7 @@ var gw = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => lw(s.subRows, (e) => e.subRows),
+ getLeafRows: () => yw(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -28278,7 +28341,7 @@ var gw = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => uw(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
+ getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => bw(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
_getAllCellsByColumnId: Q(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
@@ -28286,87 +28349,87 @@ var gw = (e, t, n, r, i, a, o) => {
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, _w = { createColumn: (e, t) => {
+}, Dw = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, vw = (e, t, n) => {
+} }, Ow = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-vw.autoRemove = (e) => Ow(e);
-var yw = (e, t, n) => {
+Ow.autoRemove = (e) => Rw(e);
+var kw = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-yw.autoRemove = (e) => Ow(e);
-var bw = (e, t, n) => {
+kw.autoRemove = (e) => Rw(e);
+var Aw = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-bw.autoRemove = (e) => Ow(e);
-var xw = (e, t, n) => e.getValue(t)?.includes(n);
-xw.autoRemove = (e) => Ow(e);
-var Sw = (e, t, n) => !n.some((n) => {
+Aw.autoRemove = (e) => Rw(e);
+var jw = (e, t, n) => e.getValue(t)?.includes(n);
+jw.autoRemove = (e) => Rw(e);
+var Mw = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-Sw.autoRemove = (e) => Ow(e) || !(e != null && e.length);
-var Cw = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-Cw.autoRemove = (e) => Ow(e) || !(e != null && e.length);
-var ww = (e, t, n) => e.getValue(t) === n;
-ww.autoRemove = (e) => Ow(e);
-var Tw = (e, t, n) => e.getValue(t) == n;
-Tw.autoRemove = (e) => Ow(e);
-var Ew = (e, t, n) => {
+Mw.autoRemove = (e) => Rw(e) || !(e != null && e.length);
+var Nw = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+Nw.autoRemove = (e) => Rw(e) || !(e != null && e.length);
+var Pw = (e, t, n) => e.getValue(t) === n;
+Pw.autoRemove = (e) => Rw(e);
+var Fw = (e, t, n) => e.getValue(t) == n;
+Fw.autoRemove = (e) => Rw(e);
+var Iw = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-Ew.resolveFilterValue = (e) => {
+Iw.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, Ew.autoRemove = (e) => Ow(e) || Ow(e[0]) && Ow(e[1]);
-var Dw = {
- includesString: vw,
- includesStringSensitive: yw,
- equalsString: bw,
- arrIncludes: xw,
- arrIncludesAll: Sw,
- arrIncludesSome: Cw,
- equals: ww,
- weakEquals: Tw,
- inNumberRange: Ew
+}, Iw.autoRemove = (e) => Rw(e) || Rw(e[0]) && Rw(e[1]);
+var Lw = {
+ includesString: Ow,
+ includesStringSensitive: kw,
+ equalsString: Aw,
+ arrIncludes: jw,
+ arrIncludesAll: Mw,
+ arrIncludesSome: Nw,
+ equals: Pw,
+ weakEquals: Fw,
+ inNumberRange: Iw
};
-function Ow(e) {
+function Rw(e) {
return e == null || e === "";
}
-var kw = {
+var zw = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: ow("columnFilters", e),
+ onColumnFiltersChange: gw("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? Dw.includesString : typeof n == "number" ? Dw.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Dw.equals : Array.isArray(n) ? Dw.arrIncludes : Dw.weakEquals;
- }, e.getFilterFn = () => sw(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Dw[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? Lw.includesString : typeof n == "number" ? Lw.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Lw.equals : Array.isArray(n) ? Lw.arrIncludes : Lw.weakEquals;
+ }, e.getFilterFn = () => _w(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Lw[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = aw(n, i ? i.value : void 0);
- if (Aw(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = hw(n, i ? i.value : void 0);
+ if (Bw(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -28381,19 +28444,19 @@ var kw = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => aw(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hw(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && Aw(t.getFilterFn(), e.value, t));
+ return !(t && Bw(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function Aw(e, t, n) {
+function Bw(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var jw = {
+var Vw = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -28429,7 +28492,7 @@ var jw = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!cw(n)) return;
+ if (!vw(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -28437,7 +28500,7 @@ var jw = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, Mw = {
+}, Hw = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -28450,7 +28513,7 @@ var jw = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: ow("grouping", e),
+ onGroupingChange: gw("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -28463,11 +28526,11 @@ var jw = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return jw.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return jw.extent;
+ if (typeof n == "number") return Vw.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return Vw.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return sw(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? jw[e.columnDef.aggregationFn];
+ return _w(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Vw[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -28489,20 +28552,20 @@ var jw = {
};
}
};
-function Nw(e, t, n) {
+function Uw(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var Pw = {
+var Ww = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: ow("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: gw("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = Q((e) => [Gw(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Gw(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = Gw(t, n);
+ e.getIndex = Q((e) => [tT(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => tT(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = tT(t, n);
return r[r.length - 1]?.id === e.id;
};
},
@@ -28524,18 +28587,18 @@ var Pw = {
}
i = [...i, ...n];
}
- return Nw(i, t, n);
+ return Uw(i, t, n);
}, $(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, Fw = () => ({
+}, Gw = () => ({
left: [],
right: []
-}), Iw = {
+}), Kw = {
getInitialState: (e) => ({
- columnPinning: Fw(),
+ columnPinning: Gw(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: ow("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: gw("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -28575,7 +28638,7 @@ var Pw = {
})), $(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Fw() : e.initialState?.columnPinning ?? Fw()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Gw() : e.initialState?.columnPinning ?? Gw()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
}, e.getLeftLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Q(() => [
@@ -28588,44 +28651,44 @@ var Pw = {
}, $(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function Lw(e) {
+function qw(e) {
return e || (typeof document < "u" ? document : null);
}
-var Rw = {
+var Jw = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, zw = () => ({
+}, Yw = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), Bw = {
- getDefaultColumnDef: () => Rw,
+}), Xw = {
+ getDefaultColumnDef: () => Jw,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: zw(),
+ columnSizingInfo: Yw(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: ow("columnSizing", e),
- onColumnSizingInfoChange: ow("columnSizingInfo", e)
+ onColumnSizingChange: gw("columnSizing", e),
+ onColumnSizingInfoChange: gw("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? Rw.minSize, n ?? e.columnDef.size ?? Rw.size), e.columnDef.maxSize ?? Rw.maxSize);
+ return Math.min(Math.max(e.columnDef.minSize ?? Jw.minSize, n ?? e.columnDef.size ?? Jw.size), e.columnDef.maxSize ?? Jw.maxSize);
}, e.getStart = Q((e) => [
e,
- Gw(t, e),
+ tT(t, e),
t.getState().columnSizing
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = Q((e) => [
e,
- Gw(t, e),
+ tT(t, e),
t.getState().columnSizing
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
@@ -28649,8 +28712,8 @@ var Rw = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), Uw(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Uw(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), $w(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = $w(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -28675,7 +28738,7 @@ var Rw = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = Lw(n), m = {
+ }, p = qw(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -28685,8 +28748,8 @@ var Rw = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = Hw() ? { passive: !1 } : !1;
- Uw(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = Qw() ? { passive: !1 } : !1;
+ $w(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -28702,12 +28765,12 @@ var Rw = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? zw() : e.initialState.columnSizingInfo ?? zw());
+ e.setColumnSizingInfo(t ? Yw() : e.initialState.columnSizingInfo ?? Yw());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, Vw = null;
-function Hw() {
- if (typeof Vw == "boolean") return Vw;
+}, Zw = null;
+function Qw() {
+ if (typeof Zw == "boolean") return Zw;
let e = !1;
try {
let t = { get passive() {
@@ -28717,17 +28780,17 @@ function Hw() {
} catch {
e = !1;
}
- return Vw = e, Vw;
+ return Zw = e, Zw;
}
-function Uw(e) {
+function $w(e) {
return e.type === "touchstart";
}
-var Ww = {
+var eT = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: ow("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: gw("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -28766,20 +28829,20 @@ var Ww = {
};
}
};
-function Gw(e, t) {
+function tT(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var Kw = { createTable: (e) => {
+var nT = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, qw = {
+} }, rT = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: ow("globalFilter", e),
+ onGlobalFilterChange: gw("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -28791,22 +28854,22 @@ var Kw = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => Dw.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => Lw.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return sw(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Dw[t];
+ return _w(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Lw[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, Jw = {
+}, iT = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: ow("expanded", e),
+ onExpandedChange: gw("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -28877,18 +28940,18 @@ var Kw = { createTable: (e) => {
};
};
}
-}, Yw = 0, Xw = 10, Zw = () => ({
- pageIndex: Yw,
- pageSize: Xw
-}), Qw = {
+}, aT = 0, oT = 10, sT = () => ({
+ pageIndex: aT,
+ pageSize: oT
+}), cT = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Zw(),
+ ...sT(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: ow("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: gw("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -28904,11 +28967,11 @@ var Kw = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => aw(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? Zw() : e.initialState.pagination ?? Zw());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hw(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? sT() : e.initialState.pagination ?? sT());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = aw(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = hw(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -28916,13 +28979,13 @@ var Kw = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? Yw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Yw);
+ e.setPageIndex(t ? aT : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? aT);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? Xw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Xw);
+ e.setPageSize(t ? oT : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? oT);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, aw(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, hw(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -28930,7 +28993,7 @@ var Kw = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = aw(t, e.options.pageCount ?? -1);
+ let r = hw(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
@@ -28943,15 +29006,15 @@ var Kw = { createTable: (e) => {
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, $w = () => ({
+}, lT = () => ({
top: [],
bottom: []
-}), eT = {
+}), uT = {
getInitialState: (e) => ({
- rowPinning: $w(),
+ rowPinning: lT(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: ow("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: gw("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -28990,7 +29053,7 @@ var Kw = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? $w() : e.initialState?.rowPinning ?? $w()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? lT() : e.initialState?.rowPinning ?? lT()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -29008,13 +29071,13 @@ var Kw = { createTable: (e) => {
return e.filter((e) => !r.has(e.id));
}, $(e.options, "debugRows", "getCenterRows"));
}
-}, tT = {
+}, dT = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: ow("rowSelection", e),
+ onRowSelectionChange: gw("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -29033,17 +29096,17 @@ var Kw = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- nT(i, t.id, r, !0, e);
+ fT(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? pT(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {
+ }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? pT(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {
+ }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? pT(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
@@ -29071,17 +29134,17 @@ var Kw = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return nT(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return fT(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return iT(e, n);
+ return mT(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return aT(e, n) === "some";
+ return hT(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return aT(e, n) === "all";
+ return hT(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -29089,16 +29152,16 @@ var Kw = { createTable: (e) => {
};
};
}
-}, nT = (e, t, n, r, i) => {
+}, fT = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => nT(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => fT(e, t.id, n, r, i));
};
-function rT(e, t) {
+function pT(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = iT(e, n);
+ let o = mT(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -29111,32 +29174,32 @@ function rT(e, t) {
rowsById: i
};
}
-function iT(e, t) {
+function mT(e, t) {
return t[e.id] ?? !1;
}
-function aT(e, t, n) {
+function hT(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (iT(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = aT(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (mT(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = hT(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var oT = /([0-9]+)/gm, sT = (e, t, n) => hT(mT(e.getValue(n)).toLowerCase(), mT(t.getValue(n)).toLowerCase()), cT = (e, t, n) => hT(mT(e.getValue(n)), mT(t.getValue(n))), lT = (e, t, n) => pT(mT(e.getValue(n)).toLowerCase(), mT(t.getValue(n)).toLowerCase()), uT = (e, t, n) => pT(mT(e.getValue(n)), mT(t.getValue(n))), dT = (e, t, n) => {
+var gT = /([0-9]+)/gm, _T = (e, t, n) => TT(wT(e.getValue(n)).toLowerCase(), wT(t.getValue(n)).toLowerCase()), vT = (e, t, n) => TT(wT(e.getValue(n)), wT(t.getValue(n))), yT = (e, t, n) => CT(wT(e.getValue(n)).toLowerCase(), wT(t.getValue(n)).toLowerCase()), bT = (e, t, n) => CT(wT(e.getValue(n)), wT(t.getValue(n))), xT = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, fT = (e, t, n) => pT(e.getValue(n), t.getValue(n));
-function pT(e, t) {
+}, ST = (e, t, n) => CT(e.getValue(n), t.getValue(n));
+function CT(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function mT(e) {
+function wT(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function hT(e, t) {
- let n = e.split(oT).filter(Boolean), r = t.split(oT).filter(Boolean);
+function TT(e, t) {
+ let n = e.split(gT).filter(Boolean), r = t.split(gT).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -29150,22 +29213,22 @@ function hT(e, t) {
}
return n.length - r.length;
}
-var gT = {
- alphanumeric: sT,
- alphanumericCaseSensitive: cT,
- text: lT,
- textCaseSensitive: uT,
- datetime: dT,
- basic: fT
-}, _T = [
- mw,
+var ET = {
+ alphanumeric: _T,
+ alphanumericCaseSensitive: vT,
+ text: yT,
+ textCaseSensitive: bT,
+ datetime: xT,
+ basic: ST
+}, DT = [
+ ww,
+ eT,
Ww,
- Pw,
- Iw,
- _w,
- kw,
Kw,
- qw,
+ Dw,
+ zw,
+ nT,
+ rT,
{
getInitialState: (e) => ({
sorting: [],
@@ -29176,7 +29239,7 @@ var gT = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: ow("sorting", e),
+ onSortingChange: gw("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -29184,13 +29247,13 @@ var gT = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return gT.datetime;
- if (typeof n == "string" && (r = !0, n.split(oT).length > 1)) return gT.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return ET.datetime;
+ if (typeof n == "string" && (r = !0, n.split(gT).length > 1)) return ET.alphanumeric;
}
- return r ? gT.text : gT.basic;
+ return r ? ET.text : ET.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return sw(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? gT[e.columnDef.sortingFn];
+ return _w(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? ET[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -29227,15 +29290,15 @@ var gT = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- Mw,
- Jw,
- Qw,
- eT,
- tT,
- Bw
+ Hw,
+ iT,
+ cT,
+ uT,
+ dT,
+ Xw
];
-function vT(e) {
- let t = [..._T, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function OT(e) {
+ let t = [...DT, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -29261,7 +29324,7 @@ function vT(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = aw(e, n.options);
+ let t = hw(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -29292,7 +29355,7 @@ function vT(e) {
getAllColumns: Q(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = dw(n, e, i, r), o = e;
+ let a = xw(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
@@ -29310,7 +29373,7 @@ function vT(e) {
}
return n;
}
-function yT() {
+function kT() {
return (e) => Q(() => [e.options.data], (t) => {
let n = {
rows: [],
@@ -29320,7 +29383,7 @@ function yT() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = gw(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = Ew(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -29331,7 +29394,7 @@ function yT() {
return n.rows = r(t), n;
}, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function bT(e) {
+function AT(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -29342,7 +29405,7 @@ function bT(e) {
rowsById: e.rowsById
};
}
-function xT(e) {
+function jT(e) {
return (e) => Q(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
@@ -29356,7 +29419,7 @@ function xT(e) {
rows: a,
flatRows: o,
rowsById: s
- } : bT({
+ } : AT({
rows: a,
flatRows: o,
rowsById: s
@@ -29369,28 +29432,28 @@ function xT(e) {
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function ST(e, t) {
- return e ? CT(e) ? /*#__PURE__*/ C.createElement(e, t) : e : null;
+function MT(e, t) {
+ return e ? NT(e) ? /*#__PURE__*/ E.createElement(e, t) : e : null;
}
-function CT(e) {
- return wT(e) || typeof e == "function" || TT(e);
+function NT(e) {
+ return PT(e) || typeof e == "function" || FT(e);
}
-function wT(e) {
+function PT(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function TT(e) {
+function FT(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function ET(e) {
+function IT(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = C.useState(() => ({ current: vT(t) })), [r, i] = C.useState(() => n.current.initialState);
+ }, [n] = E.useState(() => ({ current: OT(t) })), [r, i] = E.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -29405,13 +29468,13 @@ function ET(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function DT(e) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+function LT(e) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, w.jsx)("path", {
+ children: /* @__PURE__ */ (0, D.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -29419,13 +29482,13 @@ function DT(e) {
})
});
}
-function OT(e) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+function RT(e) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, w.jsx)("path", {
+ children: /* @__PURE__ */ (0, D.jsx)("path", {
d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",
fill: "currentColor"
})
@@ -29433,8 +29496,8 @@ function OT(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function kT(e, t, n) {
- (0, C.useEffect)(() => {
+function zT(e, t, n) {
+ (0, E.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -29447,9 +29510,9 @@ function kT(e, t, n) {
n
]);
}
-function AT(e, t) {
- let n = (0, C.useRef)(!1);
- return (0, C.useEffect)(() => {
+function BT(e, t) {
+ let n = (0, E.useRef)(!1);
+ return (0, E.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -29461,33 +29524,33 @@ function AT(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var jT = (0, C.createContext)("md");
-function MT({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, C.useRef)(null), u = (0, C.useRef)(null), [d, f] = (0, C.useState)(!1);
- kT(d, () => f(!1), [l, u]);
- let p = AT(d, l);
- return /* @__PURE__ */ (0, w.jsx)(Fv, {
+var VT = (0, E.createContext)("md");
+function HT({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, E.useRef)(null), u = (0, E.useRef)(null), [d, f] = (0, E.useState)(!1);
+ zT(d, () => f(!1), [l, u]);
+ let p = BT(d, l);
+ return /* @__PURE__ */ (0, D.jsx)(Gv, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: G("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)(mg, {
+ className: nh("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)(wg, {
ref: l,
- className: G("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, w.jsx)(zv, {
- className: G("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: nh("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, D.jsx)(Yv, {
+ className: nh("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, w.jsx)(DT, { className: G("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, w.jsx)(av, {
+ }), /* @__PURE__ */ (0, D.jsx)(LT, { className: nh("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, D.jsx)(hv, {
ref: u,
isNonModal: !0,
offset: 4,
- className: G(YS, JS, "p-2", n),
- children: /* @__PURE__ */ (0, w.jsx)(W_, {
+ className: nh(aC, iC, "p-2", n),
+ children: /* @__PURE__ */ (0, D.jsx)(ev, {
items: a,
- className: G(XS, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, w.jsx)(jT.Provider, {
+ className: nh(oC, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, D.jsx)(VT.Provider, {
value: r,
children: i
})
@@ -29495,23 +29558,23 @@ function MT({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function NT({ className: e, children: t, ...n }) {
- let r = (0, C.useContext)(jT);
- return /* @__PURE__ */ (0, w.jsx)(J_, {
+function UT({ className: e, children: t, ...n }) {
+ let r = (0, E.useContext)(VT);
+ return /* @__PURE__ */ (0, D.jsx)(iv, {
...n,
- className: (t) => G(ZS, 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) => nh(sC, 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/components/selection-dock.tsx
-function PT({ children: e, count: t, label: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function WT({ children: e, count: t, label: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
"data-glass-pane": "",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
role: "status",
className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
children: t
@@ -29520,19 +29583,19 @@ function PT({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var FT = Object.fromEntries(Object.entries(zx).map(([e, t]) => [t, e])), IT = 740;
-function LT() {
- let [e, t] = (0, C.useState)(!1), n = (0, C.useRef)(null), r = (0, C.useCallback)((e) => {
+var GT = Object.fromEntries(Object.entries(Yx).map(([e, t]) => [t, e])), KT = 740;
+function qT() {
+ let [e, t] = (0, E.useState)(!1), n = (0, E.useRef)(null), r = (0, E.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < IT));
- r.observe(e), n.current = r, t(e.clientWidth < IT);
+ let r = new ResizeObserver(() => t(e.clientWidth < KT));
+ r.observe(e), n.current = r, t(e.clientWidth < KT);
}, []);
- return (0, C.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
+ return (0, E.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var RT = {
+var JT = {
select: "选择",
author: "创作者",
source: "来源",
@@ -29541,25 +29604,25 @@ var RT = {
checked: "上次检查",
actions: "操作"
};
-function zT({ page: e, pages: t, onPage: n }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {
+function YT({ page: e, pages: t, onPage: n }) {
+ return t <= 1 ? null : /* @__PURE__ */ (0, D.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, w.jsx)("ul", {
+ /* @__PURE__ */ (0, D.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: mx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {
+ children: wx(e, t).map((t, r) => /* @__PURE__ */ (0, D.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, w.jsx)(K, {
+ }) : /* @__PURE__ */ (0, D.jsx)(K, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -29568,7 +29631,7 @@ function zT({ page: e, pages: t, onPage: n }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -29578,52 +29641,52 @@ function zT({ page: e, pages: t, onPage: n }) {
]
});
}
-function BT({ source: e, selected: t, onToggle: n, handlers: r }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function XT({ source: e, selected: t, onToggle: n, handlers: r }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(qS, {
+ /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, w.jsx)(wC, { source: e }), e.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {
+ children: [/* @__PURE__ */ (0, D.jsx)(PC, { source: e }), e.last_error ? /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, w.jsx)(xC, {
+ children: /* @__PURE__ */ (0, D.jsx)(jC, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, w.jsx)(CC, { source: e }),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)(NC, { source: e }),
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: NS(e)
+ children: US(e)
}),
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ip,
+ leadingIcon: fp,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
onClick: () => r.check([e.id])
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Uf,
+ leadingIcon: Zf,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -29632,72 +29695,72 @@ function BT({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function VT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Kx).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = aS(r, c);
- return /* @__PURE__ */ (0, w.jsxs)("section", {
+function ZT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(nS).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = hS(r, c);
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: ch({
+ className: vh({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
}),
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
"data-follow-author-header": !0,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, w.jsx)(SC, {
+ /* @__PURE__ */ (0, D.jsx)(MC, {
group: e,
name: t
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "min-w-0 grow text-body-medium break-words text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ip,
+ leadingIcon: fp,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
onClick: () => i.check(l)
}),
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, w.jsx)(Qo, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, D.jsx)(jC, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, D.jsx)(ss, { children: `来源:${d}` })]
}),
- u ? /* @__PURE__ */ (0, w.jsx)("span", {
+ u ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
children: `${u} 个失败`
}) : null,
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Rf,
+ leadingIcon: qf,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
children: p.all ? "取消全选" : "全选"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? Lf : Nf,
+ leadingIcon: n ? Kf : Hf,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
})
]
- }), /* @__PURE__ */ (0, w.jsx)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)("div", {
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(BT, {
+ children: e.map((e) => /* @__PURE__ */ (0, D.jsx)(XT, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -29706,43 +29769,43 @@ function VT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function HT(e) {
- let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, C.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, C.useState)(/* @__PURE__ */ new Set()), [T, E] = LT(), [D, O] = (0, C.useState)(""), k = (0, C.useMemo)(() => tS(v, n, i, y), [
+function QT(e) {
+ let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, E.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, E.useState)(/* @__PURE__ */ new Set()), [C, w] = qT(), [T, O] = (0, E.useState)(""), k = (0, E.useMemo)(() => dS(v, n, i, y), [
v,
n,
i,
y
- ]), A = (0, C.useMemo)(() => nS(k, n, i, y), [
+ ]), A = (0, E.useMemo)(() => fS(k, n, i, y), [
k,
n,
i,
y
- ]), { job: j, running: M, outcome: ee, start: te } = nC({
- queryKey: Mx,
- queryFn: ({ signal: e }) => lS(e),
- start: (e) => fS(e),
+ ]), { job: j, running: M, outcome: ee, start: te } = fC({
+ queryKey: Hx,
+ queryFn: ({ signal: e }) => yS(e),
+ start: (e) => SS(e),
onError: (e) => O(q(e)),
onFinish: (e) => {
- kS(), g(e.status === "failed" ? e.error || "检查失败" : AS(e));
+ zS(), g(e.status === "failed" ? e.error || "检查失败" : BS(e));
}
- }), ne = (e) => {
+ }), N = (e) => {
M || te.isPending || (O(""), te.mutate(e));
- }, N = (e, t) => h(oS(l, [e], t)), re = (e, t) => h(oS(l, e, t)), ie = mt({
- mutationFn: (e) => hS(e),
+ }, P = (e, t) => h(gS(l, [e], t)), ne = (e, t) => h(gS(l, e, t)), re = ht({
+ mutationFn: (e) => TS(e),
onSuccess: (e, t) => {
- OS([t]), h(oS(l, [t], !1)), g("已取消关注来源");
+ RS([t]), h(gS(l, [t], !1)), g("已取消关注来源");
},
onError: (e) => O(q(e))
- }), ae = (e) => void c({
+ }), F = (e) => void c({
title: "取消关注来源",
body: "将移除这个来源及已抓取的条目,媒体文件保留。",
confirmLabel: "取消关注来源",
danger: !0,
- onConfirm: () => ie.mutateAsync(e.id)
- }), oe = mt({
+ onConfirm: () => re.mutateAsync(e.id)
+ }), ie = ht({
mutationFn: async (e) => {
let t = await r(e.ids, 4, async (t) => {
- e.action === "remove" ? await hS(t) : await mS(t, e.action === "enabled");
+ e.action === "remove" ? await TS(t) : await wS(t, e.action === "enabled");
});
return {
...e,
@@ -29751,9 +29814,9 @@ function HT(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") OS(e.done);
- else for (let t of e.done) DS(t, { enabled: e.action === "enabled" });
- h(oS(l, e.done, !1));
+ if (e.action === "remove") RS(e.done);
+ else for (let t of e.done) LS(t, { enabled: e.action === "enabled" });
+ h(gS(l, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
O(`${t.length}/${e.ids.length} 个来源未更新:${q(t[0]?.error)}`);
@@ -29764,45 +29827,45 @@ function HT(e) {
g(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => O(q(e))
- }), se = mt({
+ }), ae = ht({
mutationFn: async (e) => {
- let t = ((await xS()).groups || []).flatMap((e) => [
+ let t = ((await jS()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await r(t, 6, (t) => bS(t, e))).filter((e) => !e.ok)
+ failed: (await r(t, 6, (t) => AS(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (kS(), e.failed.length) {
+ if (zS(), e.failed.length) {
O(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
O(""), g(`已批量标记 ${e.ids.length} 项`);
},
onError: (e) => O(q(e))
- }), ce = (0, C.useRef)({
- check: ne,
- remove: ae,
+ }), oe = (0, E.useRef)({
+ check: N,
+ remove: F,
busy: !1,
readOnly: u
});
- ce.current = {
- check: ne,
- remove: ae,
+ oe.current = {
+ check: N,
+ remove: F,
busy: M || te.isPending,
readOnly: u
};
- let le = ce.current, ue = (0, C.useMemo)(() => {
- let e = iw(), t = (e) => () => RT[e] || e;
+ let se = oe.current, ce = (0, E.useMemo)(() => {
+ let e = mw(), t = (e) => () => JT[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, w.jsx)(qS, {
+ cell: (e) => /* @__PURE__ */ (0, D.jsx)(rC, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -29812,12 +29875,12 @@ function HT(e) {
e.accessor((e) => e.author, {
id: "author",
header: t("author"),
- cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(SC, {
+ children: [/* @__PURE__ */ (0, D.jsx)(MC, {
group: e.row.original.group,
name: e.row.original.author
- }), /* @__PURE__ */ (0, w.jsx)("span", {
+ }), /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 break-words",
children: e.row.original.author
})]
@@ -29826,9 +29889,9 @@ function HT(e) {
e.accessor((e) => e.source.label, {
id: "source",
header: t("source"),
- cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, w.jsx)(wC, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {
+ children: [/* @__PURE__ */ (0, D.jsx)(PC, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -29837,246 +29900,246 @@ function HT(e) {
e.accessor((e) => e.source.provider_label, {
id: "provider",
header: t("provider"),
- cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(xC, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, D.jsx)(jC, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, w.jsx)(CC, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, D.jsx)(NC, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => NS(e.row.original.source)
+ cell: (e) => US(e.row.original.source)
}),
e.display({
id: "actions",
header: t("actions"),
- cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex items-center gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ip,
+ leadingIcon: fp,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
- disabled: !e.row.original.source.enabled || le.readOnly,
- ...X(le.busy),
- onClick: () => ce.current.check([e.row.original.source.id])
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ disabled: !e.row.original.source.enabled || se.readOnly,
+ ...X(se.busy),
+ onClick: () => oe.current.check([e.row.original.source.id])
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Uf,
+ leadingIcon: Zf,
"aria-label": `移除 ${e.row.original.source.label}`,
- disabled: le.readOnly,
- onClick: () => ce.current.remove(e.row.original.source)
+ disabled: se.readOnly,
+ onClick: () => oe.current.remove(e.row.original.source)
})]
})
})
];
- }, [le]), de = (0, C.useMemo)(() => {
- let e = FT[n];
+ }, [se]), le = (0, E.useMemo)(() => {
+ let e = GT[n];
return e ? [{
id: e,
desc: i === "desc"
}] : [];
- }, [n, i]), fe = (0, C.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), pe = o === "table", me = rS(pe ? A.length : k.length, s, a), P = ET({
+ }, [n, i]), ue = (0, E.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), de = o === "table", fe = pS(de ? A.length : k.length, s, a), I = IT({
data: A,
- columns: ue,
+ columns: ce,
getRowId: (e) => String(e.source.id),
state: {
- sorting: de,
- rowSelection: fe,
+ sorting: le,
+ rowSelection: ue,
pagination: {
- pageIndex: me.page - 1,
+ pageIndex: fe.page - 1,
pageSize: s
}
},
manualSorting: !0,
enableRowSelection: !0,
onSortingChange: (e) => {
- let t = (typeof e == "function" ? e(de) : e)[0];
+ let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = zx[t.id];
+ let n = Yx[t.id];
n && d(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
- let t = typeof e == "function" ? e(fe) : e;
+ let t = typeof e == "function" ? e(ue) : e;
h(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
onPaginationChange: (e) => {
let t = {
- pageIndex: me.page - 1,
+ pageIndex: fe.page - 1,
pageSize: s
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === s ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);
},
- getCoreRowModel: yT(),
- getPaginationRowModel: xT()
- }), he = P.getRowModel().rows, ge = pe ? he.map((e) => e.original.source.id) : k.slice(me.start, me.end).flatMap((e) => e.map((e) => e.id)), _e = aS(l, ge), ve = [...l], ye = jS(ee), be = MS(ee), xe = k.length > 0 && x.size >= k.length;
- return v.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+ getCoreRowModel: kT(),
+ getPaginationRowModel: jT()
+ }), pe = I.getRowModel().rows, me = de ? pe.map((e) => e.original.source.id) : k.slice(fe.start, fe.end).flatMap((e) => e.map((e) => e.id)), he = hS(l, me), ge = [...l], _e = VS(ee), ve = HS(ee), ye = k.length > 0 && x.size >= k.length;
+ return v.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
- ref: T,
+ /* @__PURE__ */ (0, D.jsxs)("div", {
+ ref: C,
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "关注列表"
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${v.length} 个来源${b.new ? ` · ${b.new} 条未看` : ""}`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
- leadingIcon: ip,
+ leadingIcon: fp,
disabled: u,
"aria-label": "检查全部",
- iconOnly: E,
- ...X(le.busy),
- onClick: () => ne([]),
+ iconOnly: w,
+ ...X(se.busy),
+ onClick: () => N([]),
children: "检查全部"
}),
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
"data-button-group": !0,
role: "group",
"aria-label": "关注列表版式",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: tp,
- "aria-label": Ix[0][1],
- "aria-pressed": !pe,
+ leadingIcon: lp,
+ "aria-label": Kx[0][1],
+ "aria-pressed": !de,
onClick: () => p("default")
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: sp,
- "aria-label": Ix[1][1],
- "aria-pressed": pe,
+ leadingIcon: hp,
+ "aria-label": Kx[1][1],
+ "aria-pressed": de,
onClick: () => p("table")
})]
}),
- /* @__PURE__ */ (0, w.jsx)(MT, {
+ /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- d(t, dx[t]);
+ d(t, xx[t]);
},
- children: lx.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: yx.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: i === "asc" ? If : Mf,
- "aria-label": Ux(n, i),
+ leadingIcon: i === "asc" ? Gf : Vf,
+ "aria-label": $x(n, i),
onClick: () => d(n, i === "asc" ? "desc" : "asc")
}),
- pe ? null : /* @__PURE__ */ (0, w.jsx)(K, {
+ de ? null : /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
- iconOnly: E,
- leadingIcon: xe ? Nf : Lf,
- "aria-label": xe ? "全部展开" : "全部收起",
- onClick: () => S(xe ? /* @__PURE__ */ new Set() : new Set(k.map((e) => String(e[0].author_key || e[0].id)))),
- children: xe ? "全部展开" : "全部收起"
+ iconOnly: w,
+ leadingIcon: ye ? Hf : Kf,
+ "aria-label": ye ? "全部展开" : "全部收起",
+ onClick: () => S(ye ? /* @__PURE__ */ new Set() : new Set(k.map((e) => String(e[0].author_key || e[0].id)))),
+ children: ye ? "全部展开" : "全部收起"
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- M ? j?.total ? /* @__PURE__ */ (0, w.jsx)(ph, {
+ M ? j?.total ? /* @__PURE__ */ (0, D.jsx)(Ch, {
label: j.message || `${j.older ? "抓取历史" : "检查更新"}:已完成 ${j.checked || 0}/${j.total} 个来源`,
value: j.checked || 0,
max: j.total
- }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: j?.message || "正在准备检查任务" }) : null,
- D ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ }) : /* @__PURE__ */ (0, D.jsx)(xh, { label: j?.message || "正在准备检查任务" }) : null,
+ T ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "操作未完成",
- children: D
+ children: T
}) : null,
- ye.length ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ _e.length ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
- title: `${ye.length} 个来源检查失败`,
- extra: /* @__PURE__ */ (0, w.jsx)("ul", {
+ title: `${_e.length} 个来源检查失败`,
+ extra: /* @__PURE__ */ (0, D.jsx)("ul", {
className: "flex flex-col gap-0.5 text-body-2-regular",
- children: ye.map((e, t) => /* @__PURE__ */ (0, w.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
+ children: _e.map((e, t) => /* @__PURE__ */ (0, D.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
}),
children: "这些来源这一轮没有取到更新。"
}) : null,
- be ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ ve ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
- children: `候选已入库,但这一次的原始响应没有留档:${be}`
+ children: `候选已入库,但这一次的原始响应没有留档:${ve}`
}) : null
]
}),
- ve.length ? /* @__PURE__ */ (0, w.jsxs)(PT, {
+ ge.length ? /* @__PURE__ */ (0, D.jsxs)(WT, {
label: "关注来源批量操作",
- count: `已选 ${ve.length} 个来源`,
+ count: `已选 ${ge.length} 个来源`,
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: u,
- ...X(le.busy),
- onClick: () => ne(ve),
+ ...X(se.busy),
+ onClick: () => N(ge),
children: "检查所选"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: u,
- ...X(oe.isPending),
- onClick: () => oe.mutate({
- ids: ve,
+ ...X(ie.isPending),
+ onClick: () => ie.mutate({
+ ids: ge,
action: "enabled"
}),
children: "启用"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: u,
- ...X(oe.isPending),
- onClick: () => oe.mutate({
- ids: ve,
+ ...X(ie.isPending),
+ onClick: () => ie.mutate({
+ ids: ge,
action: "paused"
}),
children: "暂停"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "danger",
size: "small",
disabled: u,
- ...X(oe.isPending),
+ ...X(ie.isPending),
onClick: () => void c({
- title: `删除 ${ve.length} 个关注来源`,
+ title: `删除 ${ge.length} 个关注来源`,
body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",
confirmLabel: "删除所选来源",
danger: !0,
- onConfirm: () => oe.mutateAsync({
- ids: ve,
+ onConfirm: () => ie.mutateAsync({
+ ids: ge,
action: "remove"
})
}),
children: "删除"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
onClick: () => h(/* @__PURE__ */ new Set()),
@@ -30084,183 +30147,183 @@ function HT(e) {
})
]
}) : null,
- pe ? /* @__PURE__ */ (0, w.jsx)(IC, {
+ de ? /* @__PURE__ */ (0, D.jsx)(KC, {
follow: !0,
- children: /* @__PURE__ */ (0, w.jsxs)(FC, {
+ children: /* @__PURE__ */ (0, D.jsxs)(GC, {
"aria-label": "关注来源",
size: "sm",
- sortDescriptor: de[0] ? {
- column: de[0].id,
- direction: de[0].desc ? "descending" : "ascending"
+ sortDescriptor: le[0] ? {
+ column: le[0].id,
+ direction: le[0].desc ? "descending" : "ascending"
} : void 0,
- onSortChange: (e) => P.setSorting([{
+ onSortChange: (e) => I.setSorting([{
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, w.jsx)(hy, { children: P.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in zx, n = ST(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, w.jsx)(by, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Ty, { children: I.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in Yx, n = MT(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, D.jsx)(Ay, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
- children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [n, /* @__PURE__ */ (0, w.jsx)("span", {
+ children: [n, /* @__PURE__ */ (0, D.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, w.jsx)(OT, {})
+ children: /* @__PURE__ */ (0, D.jsx)(RT, {})
})]
- }) : /* @__PURE__ */ (0, w.jsx)(Qo, { children: n })
+ }) : /* @__PURE__ */ (0, D.jsx)(ss, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, w.jsx)(wy, {
+ }) }), /* @__PURE__ */ (0, D.jsx)(Py, {
renderEmptyState: () => "这一页没有来源",
- children: he.map((e) => /* @__PURE__ */ (0, w.jsx)(Oy, {
+ children: pe.map((e) => /* @__PURE__ */ (0, D.jsx)(Ry, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, w.jsx)(jy, { children: ST(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, D.jsx)(Vy, { children: MT(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(qS, {
- isSelected: _e.all,
- isIndeterminate: _e.some,
- onChange: (e) => re(ge, e),
+ }) : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(rC, {
+ isSelected: he.all,
+ isIndeterminate: he.some,
+ onChange: (e) => ne(me, e),
"aria-label": "全选本页来源",
children: "全选本页"
- }), /* @__PURE__ */ (0, w.jsx)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-3",
- children: k.slice(me.start, me.end).map((e) => {
+ children: k.slice(fe.start, fe.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, w.jsx)(VT, {
+ return /* @__PURE__ */ (0, D.jsx)(ZT, {
group: e,
- name: Zx(e, y),
- handlers: le,
+ name: sS(e, y),
+ handlers: se,
selected: l,
open: !x.has(t),
onOpen: (e) => {
let n = new Set(x);
e ? n.delete(t) : n.add(t), S(n);
},
- onToggleGroup: (t) => re(e.map((e) => e.id), t),
- onToggle: N
+ onToggleGroup: (t) => ne(e.map((e) => e.id), t),
+ onToggle: P
}, t);
})
})] }),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: `${me.start + 1}–${me.end} / ${me.total} ${pe ? "个来源" : "位创作者"}`
+ children: `${fe.start + 1}–${fe.end} / ${fe.total} ${de ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, w.jsx)(MT, {
+ /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(s),
onSelectionChange: (e) => {
- e !== null && P.setPageSize(Number(e));
+ e !== null && I.setPageSize(Number(e));
},
- children: Lx.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: qx.map((e) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: String(e),
- children: `每页 ${e} ${pe ? "条" : "位"}`
+ children: `每页 ${e} ${de ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, w.jsx)(zT, {
- page: me.page,
- pages: me.pages,
- onPage: (e) => P.setPageIndex(e - 1)
+ /* @__PURE__ */ (0, D.jsx)(YT, {
+ page: fe.page,
+ pages: fe.pages,
+ onPage: (e) => I.setPageIndex(e - 1)
})
]
}),
- b.new ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ b.new ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `未看 ${b.new} · 已看 ${b.seen || 0} · 已保存 ${b.saved || 0} · 已忽略 ${b.ignored || 0}`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
onClick: _,
children: "去看更新"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: u,
- ...X(se.isPending),
+ ...X(ae.isPending),
onClick: () => void c({
title: "标记已看",
body: "将把当前未看作品标记为已看。",
confirmLabel: "标记已看",
- onConfirm: () => se.mutateAsync("seen")
+ onConfirm: () => ae.mutateAsync("seen")
}),
children: "全部标记已看"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: u,
- ...X(se.isPending),
+ ...X(ae.isPending),
onClick: () => void c({
title: "标记已忽略",
body: "将把当前未看作品标记为已忽略。",
confirmLabel: "标记已忽略",
- onConfirm: () => se.mutateAsync("ignored")
+ onConfirm: () => ae.mutateAsync("ignored")
}),
children: "全部忽略"
})
]
}) : null
]
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: ap,
+ icon: pp,
title: "还没有关注来源",
children: "关注来源及其检查状态会显示在这里。"
});
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var UT = [
+var $T = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "订阅源"],
["source", "来源和凭证"]
-], WT = (e) => UT.some(([t]) => t === e);
-function GT({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+], eE = (e) => $T.some(([t]) => t === e);
+function tE({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-medium text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, w.jsxs)("b", {
+ }), /* @__PURE__ */ (0, D.jsxs)("b", {
className: "text-title-1-medium tabular-nums text-text-primary",
- children: [t, /* @__PURE__ */ (0, w.jsx)("small", {
+ children: [t, /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: ` ${n}`
})]
})]
});
}
-function KT(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, C.useState)(WT(e.tab) ? e.tab : "list"), [u, d] = (0, C.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, C.useState)(() => px(e.sort, e.dir).sort), [m, h] = (0, C.useState)(() => px(e.sort, e.dir).dir), [g, _] = (0, C.useState)(Bx(e.layout) ? e.layout : "default"), [v, y] = (0, C.useState)(Vx(e.pageSize)), [b, x] = (0, C.useState)(/* @__PURE__ */ new Set()), S = pt({
- queryKey: Ax,
- queryFn: ({ signal: e }) => sS(e)
- }), T = pt({
- queryKey: jx,
- queryFn: ({ signal: e }) => cS(e)
- }), E = S.data || { sources: [] }, D = T.data || {
+function nE(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, E.useState)(eE(e.tab) ? e.tab : "list"), [u, d] = (0, E.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, E.useState)(() => Cx(e.sort, e.dir).sort), [m, h] = (0, E.useState)(() => Cx(e.sort, e.dir).dir), [g, _] = (0, E.useState)(Xx(e.layout) ? e.layout : "default"), [v, y] = (0, E.useState)(Zx(e.pageSize)), [b, x] = (0, E.useState)(/* @__PURE__ */ new Set()), S = mt({
+ queryKey: Bx,
+ queryFn: ({ signal: e }) => _S(e)
+ }), C = mt({
+ queryKey: Vx,
+ queryFn: ({ signal: e }) => vS(e)
+ }), w = S.data || { sources: [] }, T = C.data || {
root: "",
providers: []
- }, O = E.sources;
- (0, C.useEffect)(() => {
+ }, O = w.sources;
+ (0, E.useEffect)(() => {
x((e) => {
- let t = iS(e, O);
+ let t = mS(e, O);
return t.size === e.size ? e : t;
});
}, [O]);
@@ -30270,16 +30333,16 @@ function KT(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === dx[n] ? "" : r
+ dir: r === xx[n] ? "" : r
});
- }, A = eS(O), j = O.filter(Kx).length, M = O.filter((e) => e.enabled).length, ee = (D.providers || []).filter((e) => e.requirement === "required" && !LS(e)).length;
- return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [
- a ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ }, A = uS(O), j = O.filter(nS).length, M = O.filter((e) => e.enabled).length, ee = (T.providers || []).filter((e) => e.requirement === "required" && !qS(e)).length;
+ return /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [
+ a ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
- extra: s ? /* @__PURE__ */ (0, w.jsx)("p", {
+ extra: s ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, w.jsx)("a", {
+ children: /* @__PURE__ */ (0, D.jsx)("a", {
href: s,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端管理关注"
@@ -30287,54 +30350,54 @@ function KT(e) {
}) : void 0,
children: o
}) : null,
- /* @__PURE__ */ (0, w.jsxs)("div", {
- className: US,
+ /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: $S,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, w.jsx)(GT, {
+ /* @__PURE__ */ (0, D.jsx)(tE, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, w.jsx)(GT, {
+ /* @__PURE__ */ (0, D.jsx)(tE, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, w.jsx)(GT, {
+ /* @__PURE__ */ (0, D.jsx)(tE, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, w.jsx)(GT, {
+ /* @__PURE__ */ (0, D.jsx)(tE, {
term: "未看更新",
- figure: E.counts?.new || 0,
+ figure: w.counts?.new || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)(Uy, {
+ /* @__PURE__ */ (0, D.jsxs)($y, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- WT(t) && (l(t), k({ tab: t }));
+ eE(t) && (l(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, w.jsx)(Gy, {
+ /* @__PURE__ */ (0, D.jsx)(tb, {
"aria-label": "关注管理区域",
- className: RS,
- children: UT.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(qy, {
+ className: JS,
+ children: $T.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(rb, {
id: e,
- className: zS,
+ className: YS,
children: e === "source" && ee ? `${t}(${ee})` : t
}, e))
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, w.jsx)(HT, {
- data: E,
+ children: /* @__PURE__ */ (0, D.jsx)(QT, {
+ data: w,
sort: f,
dir: m,
page: u,
@@ -30363,38 +30426,38 @@ function KT(e) {
}
})
}),
- /* @__PURE__ */ (0, w.jsxs)(Jy, {
+ /* @__PURE__ */ (0, D.jsxs)(ib, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, w.jsx)(PC, {
- data: E,
- credentials: D,
+ children: [/* @__PURE__ */ (0, D.jsx)(WC, {
+ data: w,
+ credentials: T,
readOnly: a,
toast: r,
openCredentials: () => {
l("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, w.jsx)(VC, {
- groups: E.author_aliases || [],
+ }), /* @__PURE__ */ (0, D.jsx)(ZC, {
+ groups: w.author_aliases || [],
readOnly: a,
toast: r,
- suggestions: E.alias_suggestions || [],
- sources: E.sources
+ suggestions: w.alias_suggestions || [],
+ sources: w.sources
})]
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, w.jsx)(rw, {
+ children: /* @__PURE__ */ (0, D.jsx)(pw, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, w.jsx)($C, {
- data: D,
+ children: /* @__PURE__ */ (0, D.jsx)(lw, {
+ data: T,
readOnly: a,
toast: r
})
@@ -30405,35 +30468,35 @@ function KT(e) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var qT = "/api/library-processing", JT = ["library-processing"], YT = (e) => eh(qT, e);
-async function XT(e) {
- await hh.fetchQuery({
- queryKey: JT,
- queryFn: () => YT(e)
+var rE = "/api/library-processing", iE = ["library-processing"], aE = (e) => uh(rE, e);
+async function oE(e) {
+ await Th.fetchQuery({
+ queryKey: iE,
+ queryFn: () => aE(e)
});
}
-var ZT = 2e3, QT = 1e4, $T = "连接中断,正在重新读取处理进度";
-function eE(e, t) {
- return e?.status === "running" ? ZT : t ? QT : !1;
+var sE = 2e3, cE = 1e4, lE = "连接中断,正在重新读取处理进度";
+function uE(e, t) {
+ return e?.status === "running" ? sE : t ? cE : !1;
}
-var tE = {
+var dE = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, nE = {
+}, fE = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function rE(e) {
- let t = Object.entries(e).filter(([e, t]) => nE[e] && t > 0).map(([e, t]) => `${nE[e]} ${t} 部`);
+function pE(e) {
+ let t = Object.entries(e).filter(([e, t]) => fE[e] && t > 0).map(([e, t]) => `${fE[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function iE(e) {
- let t = tE[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function mE(e) {
+ let t = dE[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 aE(e) {
+function hE(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -30447,21 +30510,21 @@ function aE(e) {
log: e.issues_log || ""
} : null;
}
-var oE = "peach.library-processing.announced", sE = 120;
-function cE(e, t, n) {
+var gE = "peach.library-processing.announced", _E = 120;
+function vE(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < sE;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < _E;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(oE) === e.job_id) return;
- e.job_id && localStorage.setItem(oE, e.job_id);
+ if (e.job_id && localStorage.getItem(gE) === e.job_id) return;
+ e.job_id && localStorage.setItem(gE, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var lE = "/api/media-repair", uE = ["media-repair"], dE = ["media-repair", "libraries"], fE = {
+var yE = "/api/media-repair", bE = ["media-repair"], xE = ["media-repair", "libraries"], SE = {
status: "idle",
library: "",
stage: "",
@@ -30473,83 +30536,83 @@ var lE = "/api/media-repair", uE = ["media-repair"], dE = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, pE = (e) => eh(lE, e), mE = async (e) => (await eh("/api/libraries", e)).libraries || [];
-async function hE(e) {
- await Promise.all([hh.fetchQuery({
- queryKey: uE,
- queryFn: () => pE(e)
- }), hh.fetchQuery({
- queryKey: dE,
- queryFn: () => mE(e)
+}, CE = (e) => uh(yE, e), wE = async (e) => (await uh("/api/libraries", e)).libraries || [];
+async function TE(e) {
+ await Promise.all([Th.fetchQuery({
+ queryKey: bE,
+ queryFn: () => CE(e)
+ }), Th.fetchQuery({
+ queryKey: xE,
+ queryFn: () => wE(e)
})]);
}
-var gE = (e) => Number(e).toLocaleString();
-function _E(e) {
+var EE = (e) => Number(e).toLocaleString();
+function DE(e) {
if (e.status === "running") {
- let t = e.total ? `${gE(e.checked)} / ${gE(e.total)}` : "准备中";
+ let t = e.total ? `${EE(e.checked)} / ${EE(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${gE(e.repaired)} 部,${gE(e.failed)} 部修不了` : `修好 ${gE(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${EE(e.repaired)} 部,${EE(e.failed)} 部修不了` : `修好 ${EE(e.repaired)} 部` : "";
}
-var vE = (e) => `${gE(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`;
+var OE = (e) => `${EE(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`;
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var yE = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", bE = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", xE = (e) => o[e] || e, SE = (e) => hh.setQueryData(uE, e);
-function CE() {
- let e = pt({
- queryKey: uE,
- queryFn: ({ signal: e }) => pE(e),
- refetchInterval: (e) => e.state.data?.status === "running" && $S
- }), t = pt({
- queryKey: dE,
- queryFn: ({ signal: e }) => mE(e)
- }), [n, r] = (0, C.useState)(""), i = mh(), a = e.data ?? fE, o = t.data ?? [], s = a.status === "running", l = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], u = () => {
+var kE = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", AE = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", jE = (e) => o[e] || e, ME = (e) => Th.setQueryData(bE, e);
+function NE() {
+ let e = mt({
+ queryKey: bE,
+ queryFn: ({ signal: e }) => CE(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && lC
+ }), t = mt({
+ queryKey: xE,
+ queryFn: ({ signal: e }) => wE(e)
+ }), [n, r] = (0, E.useState)(""), i = wh(), a = e.data ?? SE, o = t.data ?? [], s = a.status === "running", l = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], u = () => {
l && c({
title: `修复媒体库「${l.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (l.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => SE(await J(lE, {
+ onConfirm: async () => ME(await J(yE, {
library: l.id,
restart: !0
}))
});
- }, d = () => void i.run("stop", (e) => J(lE, { stop: !0 }, "POST", e), SE), f = _E(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ }, d = () => void i.run("stop", (e) => J(yE, { stop: !0 }, "POST", e), ME), f = DE(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, w.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("section", {
"aria-label": "媒体修复",
"data-geist-fieldset": !0,
"data-cleanup-task": !0,
"data-cleanup-processing": !0,
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
"data-geist-fieldset-content": !0,
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "媒体修复"
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: bE
+ children: AE
}),
- s && a.total ? /* @__PURE__ */ (0, w.jsx)(ph, {
+ s && a.total ? /* @__PURE__ */ (0, D.jsx)(Ch, {
label: "修复进度",
value: a.checked,
max: a.total
}) : null,
- f ? /* @__PURE__ */ (0, w.jsx)("p", {
+ f ? /* @__PURE__ */ (0, D.jsx)("p", {
role: "status",
className: "text-caption-1-regular text-text-secondary",
children: f
}) : null
]
- }), /* @__PURE__ */ (0, w.jsxs)("footer", {
+ }), /* @__PURE__ */ (0, D.jsxs)("footer", {
"data-geist-fieldset-footer": !0,
- children: [/* @__PURE__ */ (0, w.jsx)(MT, {
+ children: [/* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: l?.id ?? null,
@@ -30557,36 +30620,36 @@ function CE() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, w.jsxs)(NT, {
+ children: o.map((e) => /* @__PURE__ */ (0, D.jsxs)(UT, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: xE(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, D.jsx)(AC, { mark: jE(e.icon) }), e.name]
}, e.id))
- }), s ? /* @__PURE__ */ (0, w.jsx)(K, {
+ }), s ? /* @__PURE__ */ (0, D.jsx)(K, {
onClick: d,
...X(i.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, w.jsx)(K, {
+ }) : /* @__PURE__ */ (0, D.jsx)(K, {
onClick: u,
disabled: !l,
children: "开始修复"
})]
})]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- p && !a.repaired && !a.failed ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ p && !a.repaired && !a.failed ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "info",
title: "没有要修的",
children: "这个库里的片子都能直接播。"
}) : null,
- p && a.missing_tool ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ p && a.missing_tool ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: vE(a)
+ children: OE(a)
}) : null,
- m ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ m ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: m
}) : null
@@ -30596,18 +30659,18 @@ function CE() {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function wE({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = pt({
- queryKey: JT,
- queryFn: ({ signal: e }) => YT(e),
- refetchInterval: (e) => eE(e.state.data, r)
- }), [a, o] = (0, C.useState)(null), s = (0, C.useRef)(void 0), c = i.data;
- return (0, C.useEffect)(() => {
+function PE({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = mt({
+ queryKey: iE,
+ queryFn: ({ signal: e }) => aE(e),
+ refetchInterval: (e) => uE(e.state.data, r)
+ }), [a, o] = (0, E.useState)(null), s = (0, E.useRef)(void 0), c = i.data;
+ return (0, E.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") && cE(c, e, r);
+ r && o(c), (r || t === "notice") && vE(c, e, r);
}, [
c,
t,
@@ -30620,45 +30683,45 @@ function wE({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var TE = [
+var FE = [
{
label: "扫描并补全资料",
- icon: Hf,
+ icon: U,
command: {}
},
{
label: "只扫描",
- icon: Yf,
+ icon: rp,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Jf,
+ icon: np,
command: { stage: "collect" }
}
-], EE = G(ZS, QS, "text-body-2-medium"), DE = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", OE = (e) => {
+], IE = nh(sC, cC, "text-body-2-medium"), LE = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", RE = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, kE = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + OE(e);
-function AE({ busy: e, onRun: t }) {
- let n = (0, C.useRef)(null), [r, i] = (0, C.useState)(!1), a = (n) => {
+}, zE = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + RE(e);
+function BE({ busy: e, onRun: t }) {
+ let n = (0, E.useRef)(null), [r, i] = (0, E.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
- leadingIcon: Hf,
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
+ leadingIcon: U,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
ref: n,
iconOnly: !0,
- leadingIcon: Nf,
+ leadingIcon: Hf,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -30667,21 +30730,21 @@ function AE({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, w.jsx)(av, {
+ }), /* @__PURE__ */ (0, D.jsx)(hv, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: JS,
- children: /* @__PURE__ */ (0, w.jsx)(lv, {
+ className: iC,
+ children: /* @__PURE__ */ (0, D.jsx)(yv, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: TE.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, w.jsxs)("button", {
+ children: FE.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
- className: EE,
+ className: IE,
onClick: () => a(n),
- children: [/* @__PURE__ */ (0, w.jsx)(t, {
+ children: [/* @__PURE__ */ (0, D.jsx)(t, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), e]
@@ -30689,59 +30752,59 @@ function AE({ busy: e, onRun: t }) {
})
})] });
}
-function jE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = aE(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = rE(e.notes || {}), c = Sb();
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function VE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = hE(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = pE(e.notes || {}), c = Mb();
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: DE
+ children: LE
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
- action: o ? /* @__PURE__ */ (0, w.jsx)(K, {
+ action: o ? /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
onClick: r,
children: "重试未完成项"
}) : null,
- extra: a ? /* @__PURE__ */ (0, w.jsx)("div", {
+ extra: a ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, w.jsxs)(vC, {
+ children: /* @__PURE__ */ (0, D.jsxs)(OC, {
summary: a.label,
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "relative",
- children: /* @__PURE__ */ (0, w.jsx)("ul", {
+ children: /* @__PURE__ */ (0, D.jsx)("ul", {
ref: c,
className: "max-h-96 overflow-y-auto pr-3",
- children: a.items.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
+ children: a.items.map((e) => /* @__PURE__ */ (0, D.jsxs)("li", {
className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",
children: [
- e.href ? /* @__PURE__ */ (0, w.jsx)("a", {
+ e.href ? /* @__PURE__ */ (0, D.jsx)("a", {
href: e.href,
className: "text-body-2-medium underline-offset-4 hover:underline",
children: e.label
- }) : /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-medium",
children: e.label
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular",
children: e.note
}),
- e.hint ? /* @__PURE__ */ (0, w.jsx)("code", {
+ e.hint ? /* @__PURE__ */ (0, D.jsx)("code", {
className: "text-caption-1-regular break-all",
children: e.hint
}) : null
]
}, e.key))
})
- }), a.log ? /* @__PURE__ */ (0, w.jsx)("div", {
+ }), a.log ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, w.jsx)(WC, {
+ children: /* @__PURE__ */ (0, D.jsx)(ew, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -30752,16 +30815,16 @@ function jE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: kE(n)
+ children: zE(n)
}) : null,
- e.status !== "running" && s ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ e.status !== "running" && s ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "neutral",
- extra: e.issues_log ? /* @__PURE__ */ (0, w.jsx)("div", {
+ extra: e.issues_log ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, w.jsx)(WC, {
+ children: /* @__PURE__ */ (0, D.jsx)(ew, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -30773,44 +30836,44 @@ function jE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function ME(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = wE(e), o = mt({
- mutationFn: (e) => J(qT, e),
+function HE(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = PE(e), o = ht({
+ mutationFn: (e) => J(rE, e),
onSuccess: (e) => {
- a(), hh.setQueryData(JT, e), hh.invalidateQueries({ queryKey: JT });
+ a(), Th.setQueryData(iE, e), Th.invalidateQueries({ queryKey: iE });
}
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? $T : q(r.error) : "", l = o.isPending || s.status === "running", u = iE(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? lE : q(r.error) : "", l = o.isPending || s.status === "running", u = mE(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, w.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("section", {
"aria-label": "扫描与采集",
"data-geist-fieldset": !0,
"data-cleanup-task": !0,
"data-cleanup-processing": !0,
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
"data-geist-fieldset-content": !0,
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "扫描与采集"
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: yE
+ children: kE
}),
- s.status === "running" ? /* @__PURE__ */ (0, w.jsx)("div", {
+ s.status === "running" ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(ph, {
+ children: s.total ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(Ch, {
label: u,
value: s.checked || 0,
max: s.total
- }), /* @__PURE__ */ (0, w.jsxs)("p", {
+ }), /* @__PURE__ */ (0, D.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
u,
@@ -30820,31 +30883,31 @@ function ME(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: u })
+ })] }) : /* @__PURE__ */ (0, D.jsx)(xh, { label: u })
}) : null
]
- }), /* @__PURE__ */ (0, w.jsxs)("footer", {
+ }), /* @__PURE__ */ (0, D.jsxs)("footer", {
"data-geist-fieldset-footer": !0,
children: [
- /* @__PURE__ */ (0, w.jsx)(sC, {
+ /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/scraping",
size: "small",
- trailingIcon: Pf,
+ trailingIcon: Uf,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, w.jsx)(sC, {
+ s.candidates ? /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/review",
size: "small",
- trailingIcon: Pf,
+ trailingIcon: Uf,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, w.jsx)(AE, {
+ /* @__PURE__ */ (0, D.jsx)(BE, {
busy: l,
onRun: d
})
]
})]
- }), /* @__PURE__ */ (0, w.jsx)(jE, {
+ }), /* @__PURE__ */ (0, D.jsx)(VE, {
state: s,
problem: c,
settled: i,
@@ -30860,14 +30923,14 @@ function ME(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var NE = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", PE = {
- gray: `${NE} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${NE} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${NE} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var UE = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", WE = {
+ gray: `${UE} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${UE} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${UE} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function FE({ value: e, max: t }) {
+function GE({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, w.jsxs)("svg", {
+ return /* @__PURE__ */ (0, D.jsxs)("svg", {
role: "progressbar",
"aria-label": "任务完成率",
"aria-valuemin": 0,
@@ -30876,13 +30939,13 @@ function FE({ value: e, max: t }) {
viewBox: "0 0 32 32",
fill: "none",
className: "size-8 shrink-0 -rotate-90 stroke-current",
- children: [/* @__PURE__ */ (0, w.jsx)("circle", {
+ children: [/* @__PURE__ */ (0, D.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
strokeWidth: "4",
className: "opacity-25"
- }), /* @__PURE__ */ (0, w.jsx)("circle", {
+ }), /* @__PURE__ */ (0, D.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
@@ -30893,77 +30956,77 @@ function FE({ value: e, max: t }) {
})]
});
}
-function IE(e) {
- let { job: t } = wE(e), n = t.data, r = t.isError ? n ? $T : q(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function KE(e) {
+ let { job: t } = PE(e), n = t.data, r = t.isError ? n ? lE : q(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 ? "扫描与资料采集未完成" : iE(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? $f : Wf;
- return /* @__PURE__ */ (0, w.jsxs)("aside", {
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : mE(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? sp : Qf;
+ return /* @__PURE__ */ (0, D.jsxs)("aside", {
role: a ? "alert" : "status",
- className: PE[s],
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ className: WE[s],
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, w.jsx)(FE, {
+ children: [o && l ? /* @__PURE__ */ (0, D.jsx)(GE, {
value: c,
max: l
- }) : /* @__PURE__ */ (0, w.jsx)(d, {
+ }) : /* @__PURE__ */ (0, D.jsx)(d, {
"aria-hidden": !0,
className: "size-4 shrink-0"
- }), /* @__PURE__ */ (0, w.jsx)("p", {
+ }), /* @__PURE__ */ (0, D.jsx)("p", {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, w.jsx)(sC, {
+ }), /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: Pf,
+ trailingIcon: Uf,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var LE = "/api/quality-goals?limit=200", RE = ["quality-goals"], zE = (e) => eh(LE, e);
-async function BE(e) {
- await hh.fetchQuery({
- queryKey: RE,
- queryFn: () => zE(e)
+var qE = "/api/quality-goals?limit=200", JE = ["quality-goals"], YE = (e) => uh(qE, e);
+async function XE(e) {
+ await Th.fetchQuery({
+ queryKey: JE,
+ queryFn: () => YE(e)
});
}
-var VE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+var ZE = (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 HE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function QE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(r.id);
- return /* @__PURE__ */ (0, w.jsxs)("li", {
+ return /* @__PURE__ */ (0, D.jsxs)("li", {
"data-goal-id": r.id,
- className: ch({
+ className: vh({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
}),
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 gap-4",
- children: [/* @__PURE__ */ (0, w.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
onClick: c,
"aria-label": `打开 ${o(r)}`,
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
- }), /* @__PURE__ */ (0, w.jsx)("img", {
- src: VE(r),
+ }), /* @__PURE__ */ (0, D.jsx)("img", {
+ src: ZE(r),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
className: "absolute inset-0 size-full object-contain"
})]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-headline-medium text-text-primary",
- children: /* @__PURE__ */ (0, w.jsx)("button", {
+ children: /* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
"data-middle-truncate": !0,
onClick: c,
@@ -30971,27 +31034,27 @@ function HE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
dangerouslySetInnerHTML: { __html: a(r) }
})
}),
- /* @__PURE__ */ (0, w.jsxs)("p", {
+ /* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
}),
- /* @__PURE__ */ (0, w.jsx)("span", { children: e[r.location] ?? r.location }),
- /* @__PURE__ */ (0, w.jsx)("span", { children: t(r.duration) }),
- /* @__PURE__ */ (0, w.jsx)("span", { children: n(r.size ?? 0) })
+ /* @__PURE__ */ (0, D.jsx)("span", { children: e[r.location] ?? r.location }),
+ /* @__PURE__ */ (0, D.jsx)("span", { children: t(r.duration) }),
+ /* @__PURE__ */ (0, D.jsx)("span", { children: n(r.size ?? 0) })
]
}),
- r.reason ? /* @__PURE__ */ (0, w.jsx)("p", {
+ r.reason ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "border-t border-separator-border pt-3 text-body-2-regular text-text-secondary",
children: r.reason
}) : null
]
})]
- }), /* @__PURE__ */ (0, w.jsx)("footer", {
+ }), /* @__PURE__ */ (0, D.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
onClick: c,
@@ -31000,51 +31063,51 @@ function HE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
});
}
-function UE(e) {
- let t = pt({
- queryKey: RE,
- queryFn: ({ signal: e }) => zE(e)
+function $E(e) {
+ let t = mt({
+ queryKey: JE,
+ queryFn: ({ signal: e }) => YE(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "读取失败",
children: t.error ? q(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, w.jsxs)(fh, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
- className: ch({
+ return r.length ? /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [/* @__PURE__ */ (0, D.jsxs)("div", {
+ className: vh({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "待升级"
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: `${n.total} 部作品`
})]
- }), /* @__PURE__ */ (0, w.jsx)("ul", {
+ }), /* @__PURE__ */ (0, D.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, w.jsx)(HE, {
+ children: r.map((t) => /* @__PURE__ */ (0, D.jsx)(QE, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(uh, {
+ })] }) : /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: pp,
+ icon: xp,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/selection.ts
-function WE(e, t, n, r, i, a = i || !e.has(r)) {
+function eD(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;
}
//#endregion
//#region src/react/review/review.ts
-var GE = "/api/review", KE = "/api/review/decision", qE = "/api/review/genre", JE = ["review"], YE = {
+var tD = "/api/review", nD = "/api/review/decision", rD = "/api/review/genre", iD = ["review"], aD = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -31055,15 +31118,15 @@ var GE = "/api/review", KE = "/api/review/decision", qE = "/api/review/genre", J
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据",
media_failure: "无法识别"
-}, XE = Object.keys(YE), ZE = "metadata_fields", QE = (e) => typeof e == "string" && Object.hasOwn(YE, e), $E = {
+}, oD = Object.keys(aD), sD = "metadata_fields", cD = (e) => typeof e == "string" && Object.hasOwn(aD, e), lD = {
creator_tags: "creator",
western_identity: "creator"
};
-function eD(e, t) {
+function uD(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function tD(e, t) {
+function dD(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -31080,43 +31143,43 @@ function tD(e, t) {
}
return [...n.values()];
}
-function nD(e, t, n) {
- return n && tD(e, t).find((e) => e.key === n)?.rows || e;
+function fD(e, t, n) {
+ return n && dD(e, t).find((e) => e.key === n)?.rows || e;
}
-function rD(e, t) {
- let n = hx(e.length, 20), r = gx(t, n);
+function pD(e, t) {
+ let n = Tx(e.length, 20), r = Ex(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function iD(e) {
+function mD(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 aD(e, t, n, r, i, a) {
- return WE(e, t, n, r, i, a);
+function hD(e, t, n, r, i, a) {
+ return eD(e, t, n, r, i, a);
}
-function oD(e, t) {
+function gD(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function sD(e, t) {
+function _D(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var cD = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function lD(e, t) {
- let n = sD(e, t), r = cD(e, t);
+var vD = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function yD(e, t) {
+ let n = _D(e, t), r = vD(e, t);
return r ? `${n} · ${r}` : n;
}
-var uD = (e) => e.reason || e.evidence || e.note || e.decision_note || "", dD = (e) => String(e.tags || "").split("|").filter(Boolean), fD = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function pD(e) {
+var bD = (e) => e.reason || e.evidence || e.note || e.decision_note || "", xD = (e) => String(e.tags || "").split("|").filter(Boolean), SD = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function CD(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function mD(e, t, n, r) {
+function wD(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -31132,19 +31195,19 @@ function mD(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var hD = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", gD = (e) => eh(GE, e), _D = (e) => J(KE, e), vD = (e, t) => J(qE, {
+var TD = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", ED = (e) => uh(tD, e), DD = (e) => J(nD, e), OD = (e, t) => J(rD, {
genre: e,
tag: t
});
-async function yD(e) {
- await hh.fetchQuery({
- queryKey: JE,
- queryFn: () => gD(e)
+async function kD(e) {
+ await Th.fetchQuery({
+ queryKey: iD,
+ queryFn: () => ED(e)
});
}
-function bD(e, t) {
+function AD(e, t) {
let n = new Set(t);
- n.size && hh.setQueryData(JE, (t) => {
+ n.size && Th.setQueryData(iD, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -31160,55 +31223,55 @@ function bD(e, t) {
};
});
}
-var xD = () => hh.invalidateQueries({
- queryKey: JE,
+var jD = () => Th.invalidateQueries({
+ queryKey: iD,
exact: !0
});
-function SD(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${_x(e.fetched_at)} 的缓存` : e?.error || t;
+function MD(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Dx(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function CD(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = iD(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+function ND(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = mD(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
"data-review-filter": !0,
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(MT, {
+ /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, w.jsxs)(MT, {
+ i.length > 1 ? /* @__PURE__ */ (0, D.jsxs)(HT, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, w.jsx)(NT, {
+ children: [/* @__PURE__ */ (0, D.jsx)(UT, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ }), i.map((e) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
}) : null,
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Rf,
+ leadingIcon: qf,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -31219,11 +31282,11 @@ function CD(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, w.jsxs)(PT, {
+ }), c.size ? /* @__PURE__ */ (0, D.jsxs)(WT, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, w.jsxs)(MT, {
+ b ? /* @__PURE__ */ (0, D.jsxs)(HT, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -31231,36 +31294,36 @@ function CD(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, w.jsx)(NT, {
+ children: [/* @__PURE__ */ (0, D.jsx)(UT, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ }), y.map((e) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: e
}, e))]
}) : null,
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
disabled: p || !c.size || !f,
onClick: () => g("approved"),
children: "通过所选"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "danger",
size: "small",
disabled: p || !c.size,
onClick: () => g("rejected"),
children: "拒绝所选"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
disabled: p,
onClick: () => l(/* @__PURE__ */ new Set()),
children: "取消选择"
}),
- m ? /* @__PURE__ */ (0, w.jsx)("p", {
+ m ? /* @__PURE__ */ (0, D.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-secondary",
children: m
@@ -31270,7 +31333,7 @@ function CD(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var wD = {
+var PD = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -31280,21 +31343,21 @@ var wD = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, TD = "reviewgenretags";
-function ED({ tags: e }) {
- return e.length ? /* @__PURE__ */ (0, w.jsx)("datalist", {
- id: TD,
- children: e.map((e) => /* @__PURE__ */ (0, w.jsx)("option", { value: e }, e))
+}, FD = "reviewgenretags";
+function ID({ tags: e }) {
+ return e.length ? /* @__PURE__ */ (0, D.jsx)("datalist", {
+ id: FD,
+ children: e.map((e) => /* @__PURE__ */ (0, D.jsx)("option", { value: e }, e))
}) : null;
}
-function DD({ candidate: e, selectable: t = !1 }) {
+function LD({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
- return /* @__PURE__ */ (0, w.jsxs)("span", {
+ return /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
- children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", {
className: "relative flex min-w-0 flex-col gap-0.5 px-4 py-3 group-hover:bg-background-primary-hover group-data-selected:bg-background-primary-hover",
children: [
- /* @__PURE__ */ (0, w.jsxs)("b", {
+ /* @__PURE__ */ (0, D.jsxs)("b", {
className: "text-body-2-medium text-text-secondary",
children: [
e.source,
@@ -31302,35 +31365,35 @@ function DD({ candidate: e, selectable: t = !1 }) {
r ? ` · ID ${r}` : ""
]
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-medium break-words text-text-primary",
children: e.display_value || ""
}),
- (e.warnings || []).map((e) => /* @__PURE__ */ (0, w.jsx)("i", {
+ (e.warnings || []).map((e) => /* @__PURE__ */ (0, D.jsx)("i", {
className: "text-body-2-regular text-status-yellow-text",
children: e
}, e)),
- t ? /* @__PURE__ */ (0, w.jsx)("span", {
+ t ? /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": "true",
"data-candidate-choice": !0,
className: "absolute top-4 right-4 inline-grid size-4 place-items-center rounded-full border border-border-checkbox-default bg-background-primary-default group-hover:border-border-checkbox-hover group-data-selected:border-border-focus-ring group-data-selected:bg-accent-600",
- children: /* @__PURE__ */ (0, w.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
+ children: /* @__PURE__ */ (0, D.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
}) : null
]
- }), n.length ? /* @__PURE__ */ (0, w.jsx)("dl", {
+ }), n.length ? /* @__PURE__ */ (0, D.jsx)("dl", {
className: "flex flex-col gap-1 border-t border-separator-border bg-background-primary-default px-4 py-2.5",
- children: n.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: n.map(([e, t]) => /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-wrap gap-x-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("dt", {
+ /* @__PURE__ */ (0, D.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: wD[e] || e
+ children: PD[e] || e
}),
- /* @__PURE__ */ (0, w.jsx)("dd", {
+ /* @__PURE__ */ (0, D.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
children: t.display_value
}),
- (t.warnings || []).map((e) => /* @__PURE__ */ (0, w.jsx)("small", {
+ (t.warnings || []).map((e) => /* @__PURE__ */ (0, D.jsx)("small", {
className: "w-full text-caption-1-regular text-status-yellow-text",
children: e
}, e))
@@ -31339,36 +31402,36 @@ function DD({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function OD({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function RD({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
- return a.length ? a.length === 1 ? /* @__PURE__ */ (0, w.jsx)("div", {
+ return a.length ? a.length === 1 ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, w.jsx)(DD, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, w.jsx)(Ev, {
+ children: /* @__PURE__ */ (0, D.jsx)(LD, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, D.jsx)(Iv, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, w.jsx)(Dv, {
+ children: a.map((e) => /* @__PURE__ */ (0, D.jsx)(Lv, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, w.jsx)(DD, {
+ children: /* @__PURE__ */ (0, D.jsx)(LD, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function kD({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), c = mt({
- mutationFn: (t) => vD(e, t),
+function zD({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, E.useState)(""), [o, s] = (0, E.useState)(""), c = ht({
+ mutationFn: (t) => OD(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await xD();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await jD();
},
onError: (e) => s(q(e))
}), l = () => {
@@ -31379,24 +31442,24 @@ function kD({ genre: e, tags: t, locked: n, toast: r }) {
}
s(""), c.mutate(e);
};
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
lang: "ja",
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, w.jsx)(ib, {
+ /* @__PURE__ */ (0, D.jsx)(mb, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, w.jsx)(ob, {
+ children: /* @__PURE__ */ (0, D.jsx)(gb, {
size: "small",
- list: t.length ? TD : void 0,
+ list: t.length ? FD : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -31404,14 +31467,14 @@ function kD({ genre: e, tags: t, locked: n, toast: r }) {
}
})
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
onClick: l,
children: "收录"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
@@ -31420,7 +31483,7 @@ function kD({ genre: e, tags: t, locked: n, toast: r }) {
},
children: "不是内容"
}),
- o ? /* @__PURE__ */ (0, w.jsx)("p", {
+ o ? /* @__PURE__ */ (0, D.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: o
@@ -31428,16 +31491,16 @@ function kD({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function AD({ row: e, tags: t, locked: n, toast: r }) {
- let i = fD(e);
- return i.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+function BD({ row: e, tags: t, locked: n, toast: r }) {
+ let i = SD(e);
+ return i.length ? /* @__PURE__ */ (0, D.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
className: "flex flex-col gap-2 rounded-surface border border-separator-border bg-background-primary-default px-4 py-3",
- children: [/* @__PURE__ */ (0, w.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(kD, {
+ }), i.map((e) => /* @__PURE__ */ (0, D.jsx)(zD, {
genre: e,
tags: t,
locked: n,
@@ -31447,128 +31510,128 @@ function AD({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var jD = (e = "") => /^https?:\/\//i.test(e) ? e : "", MD = (e = "") => jD(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function ND({ url: e }) {
- let t = MD(e || ""), [n, r] = (0, C.useState)(!1);
- return /* @__PURE__ */ (0, w.jsx)("div", {
+var VD = (e = "") => /^https?:\/\//i.test(e) ? e : "", HD = (e = "") => VD(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function UD({ url: e }) {
+ let t = HD(e || ""), [n, r] = (0, E.useState)(!1);
+ return /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
- children: t && !n ? /* @__PURE__ */ (0, w.jsx)("img", {
+ children: t && !n ? /* @__PURE__ */ (0, D.jsx)("img", {
src: t,
alt: "来源候选图片",
loading: "lazy",
className: "size-full object-contain",
onError: () => r(!0)
- }) : /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "未取得来源图片"
})
});
}
-function PD({ asset: e, openItem: t }) {
+function WD({ asset: e, openItem: t }) {
let n = e.name || "";
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
onClick: () => t(e.id),
className: "flex aspect-card-cover w-review-cover-narrow shrink-0 review-tight:w-review-cover cursor-pointer items-center justify-center overflow-hidden rounded-2lg bg-background-tertiary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.preview_url ? /* @__PURE__ */ (0, w.jsx)("img", {
+ children: [e.preview_url ? /* @__PURE__ */ (0, D.jsx)("img", {
src: e.preview_url,
alt: "",
loading: "lazy",
className: "size-full object-cover"
- }) : /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, w.jsx)(Qo, { children: `打开原视频 ${n}` })]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)(ss, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("b", {
title: n,
className: "w-full truncate text-body-medium text-text-primary",
children: e.code || n || "原视频"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: np,
+ leadingIcon: up,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function FD({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function GD({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)("button", {
+ children: [/* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
className: "relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",
dangerouslySetInnerHTML: { __html: r }
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
- children: [/* @__PURE__ */ (0, w.jsx)("button", {
+ children: [/* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
onClick: () => i(e, t),
className: "max-w-full cursor-pointer truncate text-body-medium text-text-primary underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: t
- }), n ? /* @__PURE__ */ (0, w.jsx)("small", {
+ }), n ? /* @__PURE__ */ (0, D.jsx)("small", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `${n.toLocaleString()} 部作品`
}) : null]
})]
});
}
-function ID({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = jD(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
- return /* @__PURE__ */ (0, w.jsxs)("section", {
+function KD({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = VD(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)("h5", {
+ /* @__PURE__ */ (0, D.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: `候选身份:${e.babepedia_name || "未标注"}`
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, w.jsx)(Zm, {
+ children: [o ? /* @__PURE__ */ (0, D.jsx)(sh, {
variant: "secondary",
size: "small",
- trailingIcon: Gf,
+ trailingIcon: $f,
href: o,
target: "_blank",
rel: "noopener noreferrer",
children: "来源资料"
- }) : null, /* @__PURE__ */ (0, w.jsx)(K, {
+ }) : null, /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
onClick: () => n("creator", e.creator || ""),
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, w.jsx)(ND, { url: e.preview_url }),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)(UD, { url: e.preview_url }),
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
}),
- s.length ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("h5", {
+ s.length ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: "本地作品样本"
- }), /* @__PURE__ */ (0, w.jsx)("ul", {
+ }), /* @__PURE__ */ (0, D.jsx)("ul", {
className: "flex flex-col gap-1",
- children: s.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
+ children: s.map((e) => /* @__PURE__ */ (0, D.jsxs)("li", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
className: "min-w-0",
onClick: () => t(e.id),
- children: /* @__PURE__ */ (0, w.jsx)("span", {
+ children: /* @__PURE__ */ (0, D.jsx)("span", {
title: e.name,
className: "block max-w-full truncate",
children: e.name
})
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
"aria-label": `打开 ${e.name} 的文件位置`,
@@ -31577,11 +31640,11 @@ function ID({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not
children: "文件位置"
})]
}, e.id))
- })] }) : /* @__PURE__ */ (0, w.jsx)("p", {
+ })] }) : /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "暂无本地作品样本,打开全部作品核对。"
}),
- a ? /* @__PURE__ */ (0, w.jsx)("p", {
+ a ? /* @__PURE__ */ (0, D.jsx)("p", {
role: "status",
className: "text-body-2-regular text-text-error-primary",
children: a
@@ -31589,8 +31652,8 @@ function ID({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not
]
});
}
-function LD({ assets: e, picked: t, onPicked: n, locked: r }) {
- let [i, a] = (0, C.useState)(null), o = new Set(t), s = (t, s) => {
+function qD({ assets: e, picked: t, onPicked: n, locked: r }) {
+ let [i, a] = (0, E.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
if (s && i !== null) {
@@ -31602,23 +31665,23 @@ function LD({ assets: e, picked: t, onPicked: n, locked: r }) {
}
a(t), n(e.filter((e) => c.has(e.id)).map((e) => e.id));
};
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `已选 ${o.size} / ${e.length}`
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
disabled: r,
onClick: () => n(e.map((e) => e.id)),
children: "全选"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
disabled: r,
@@ -31626,26 +31689,26 @@ function LD({ assets: e, picked: t, onPicked: n, locked: r }) {
children: "清空"
})
]
- }), /* @__PURE__ */ (0, w.jsx)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)("div", {
className: "review-asset-grid gap-1.5",
children: e.map((e, t) => {
let n = o.has(e.id);
- return /* @__PURE__ */ (0, w.jsxs)("button", {
+ return /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
"aria-pressed": n,
title: e.name,
onClick: (e) => s(t, e.shiftKey),
className: `relative aspect-card-cover cursor-pointer overflow-hidden rounded-surface bg-background-tertiary-default outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-border-focus-ring ${n ? "opacity-100 ring-2 ring-border-button-active ring-inset" : "opacity-50"}`,
children: [
- /* @__PURE__ */ (0, w.jsx)("img", {
+ /* @__PURE__ */ (0, D.jsx)("img", {
src: `/poster?id=${e.id}&c=4`,
alt: "",
loading: "lazy",
className: "size-full object-cover"
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, w.jsx)(KS, {
+ children: /* @__PURE__ */ (0, D.jsx)(nC, {
size: "sm",
state: {
isSelected: n,
@@ -31656,7 +31719,7 @@ function LD({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, w.jsx)(Qo, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, D.jsx)(ss, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -31665,19 +31728,19 @@ function LD({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var RD = ch({
+var JD = vh({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), zD = "flex min-h-6 min-w-0 items-center", BD = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function VD(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, C.useRef)(!1), m = Sb(), h = Sb(), g = t === "metadata_fields", _ = $E[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lD(t, n), x = cD(t, n), S = sD(t, n), T = uD(n), E = dD(n), D = oD(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, w.jsx)("div", {
+}), YD = "flex min-h-6 min-w-0 items-center", XD = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function ZD(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, E.useRef)(!1), m = Mb(), h = Mb(), g = t === "metadata_fields", _ = lD[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = yD(t, n), x = vD(t, n), S = _D(t, n), C = bD(n), w = xD(n), T = gD(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-3",
- children: O.map((e) => /* @__PURE__ */ (0, w.jsx)(PD, {
+ children: O.map((e) => /* @__PURE__ */ (0, D.jsx)(WD, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, w.jsx)(FD, {
+ }) : y ? /* @__PURE__ */ (0, D.jsx)(GD, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -31687,14 +31750,14 @@ function VD(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, w.jsx)(PD, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, D.jsx)(WD, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, M = g ? /* @__PURE__ */ (0, w.jsx)(OD, {
+ }) : null, M = g ? /* @__PURE__ */ (0, D.jsx)(RD, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -31703,7 +31766,7 @@ function VD(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, w.jsx)(LD, {
+ }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, D.jsx)(qD, {
assets: k,
picked: r.assets,
locked: s,
@@ -31711,124 +31774,124 @@ function VD(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "inset",
- icon: Zf,
+ icon: ap,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, w.jsx)(ID, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, D.jsx)(KD, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, w.jsx)(ND, { url: n.preview_url }), ee = y ? j : x ? /* @__PURE__ */ (0, w.jsxs)("h4", {
- className: `${zD} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, w.jsx)(Ym, {
+ }) : /* @__PURE__ */ (0, D.jsx)(UD, { url: n.preview_url }), ee = y ? j : x ? /* @__PURE__ */ (0, D.jsxs)("h4", {
+ className: `${YD} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "blue",
children: x
- }), /* @__PURE__ */ (0, w.jsx)("span", {
+ }), /* @__PURE__ */ (0, D.jsx)("span", {
title: S,
className: "min-w-0 truncate text-body-medium text-text-primary",
children: S
})]
- }) : /* @__PURE__ */ (0, w.jsx)("h4", {
- className: zD,
- children: /* @__PURE__ */ (0, w.jsx)("span", {
+ }) : /* @__PURE__ */ (0, D.jsx)("h4", {
+ className: YD,
+ children: /* @__PURE__ */ (0, D.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
children: b
})
});
- return /* @__PURE__ */ (0, w.jsxs)("section", {
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${RD} ${BD(t)} overflow-hidden`,
+ className: `${JD} ${XD(t)} overflow-hidden`,
children: [
- /* @__PURE__ */ (0, w.jsxs)("header", {
+ /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
- s ? null : /* @__PURE__ */ (0, w.jsx)("span", {
- className: `${zD} shrink-0`,
+ s ? null : /* @__PURE__ */ (0, D.jsx)("span", {
+ className: `${YD} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, w.jsx)(qS, {
+ children: /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
})
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 flex-1",
children: ee
}),
- A ? /* @__PURE__ */ (0, w.jsx)(Ym, {
+ A ? /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "neutral",
children: n.decision
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "relative flex min-w-0 min-h-0 flex-1 flex-col",
- children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: /* @__PURE__ */ (0, D.jsxs)("div", {
ref: m,
className: "flex min-w-0 min-h-0 flex-1 flex-col gap-3 overflow-y-auto",
children: [
- n.source_name ? /* @__PURE__ */ (0, w.jsx)("p", {
+ n.source_name ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `来源写法:${n.source_name}`
}) : null,
- !y && (n.board || n.assets) ? /* @__PURE__ */ (0, w.jsx)("p", {
+ !y && (n.board || n.assets) ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `样本/资产:${n.video_count || n.assets || ""}`
}) : null,
!y && j ? j : null,
- E.length || t === "creator_tags" ? /* @__PURE__ */ (0, w.jsx)("div", {
+ w.length || t === "creator_tags" ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: E.length ? E.map((e) => /* @__PURE__ */ (0, w.jsx)(Ym, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, D.jsx)(ah, {
variant: "caption",
color: "soft",
children: e
- }, e)) : /* @__PURE__ */ (0, w.jsx)("small", {
+ }, e)) : /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: "暂无候选标签"
})
}) : null,
M,
- /* @__PURE__ */ (0, w.jsx)(AD, {
+ /* @__PURE__ */ (0, D.jsx)(BD, {
row: n,
tags: u,
locked: s,
toast: f.toast
}),
- !g && T ? /* @__PURE__ */ (0, w.jsx)("p", {
+ !g && C ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: T
+ children: C
}) : null
]
})
}),
- g && T ? /* @__PURE__ */ (0, w.jsx)("div", {
+ g && C ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "relative -mx-5 shrink-0",
- children: /* @__PURE__ */ (0, w.jsx)("p", {
+ children: /* @__PURE__ */ (0, D.jsx)("p", {
ref: h,
role: "region",
"aria-label": "当前信息",
className: "max-h-22 overflow-y-auto border-t border-separator-border px-5 py-2.5 text-body-2-regular text-text-secondary",
- children: T
+ children: C
})
}) : null,
- /* @__PURE__ */ (0, w.jsxs)("footer", {
+ /* @__PURE__ */ (0, D.jsxs)("footer", {
className: "-mx-5 flex min-h-14 shrink-0 flex-wrap items-center justify-end gap-2 rounded-b-surface border-t border-separator-border bg-background-secondary-default py-3 pr-3 pl-5",
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "danger",
size: "small",
disabled: s,
@@ -31836,7 +31899,7 @@ function VD(e) {
onClick: () => d("rejected"),
children: "拒绝"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: s,
@@ -31844,15 +31907,15 @@ function VD(e) {
onClick: () => d("skipped"),
children: "跳过"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "primary",
size: "small",
- disabled: s || !D,
+ disabled: s || !T,
...X(c),
onClick: () => d("approved"),
- children: D ? "通过" : "已跳过"
+ children: T ? "通过" : "已跳过"
}),
- l ? /* @__PURE__ */ (0, w.jsx)("p", {
+ l ? /* @__PURE__ */ (0, D.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: l
@@ -31864,26 +31927,26 @@ function VD(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var HD = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular 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 review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
-function UD({ page: e, pages: t, onPage: n }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {
+var QD = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular 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 review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
+function $D({ page: e, pages: t, onPage: n }) {
+ return t <= 1 ? null : /* @__PURE__ */ (0, D.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, w.jsx)("ul", {
+ /* @__PURE__ */ (0, D.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: mx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {
+ children: wx(e, t).map((t, r) => /* @__PURE__ */ (0, D.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, w.jsx)(K, {
+ }) : /* @__PURE__ */ (0, D.jsx)(K, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -31892,7 +31955,7 @@ function UD({ page: e, pages: t, onPage: n }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -31902,43 +31965,43 @@ function UD({ page: e, pages: t, onPage: n }) {
]
});
}
-function WD(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, C.useState)(QE(e.category) ? e.category : ZE), [f, p] = (0, C.useState)("candidates"), [m, h] = (0, C.useState)(""), [g, _] = (0, C.useState)(1), [v, y] = (0, C.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, C.useState)(/* @__PURE__ */ new Map()), [S, T] = (0, C.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, C.useState)(""), O = (0, C.useRef)(null), [k, A] = (0, C.useState)(0), [j, M] = (0, C.useState)(""), ee = (0, C.useRef)(!0);
- (0, C.useEffect)(() => () => {
+function eO(e) {
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, E.useState)(cD(e.category) ? e.category : sD), [f, p] = (0, E.useState)("candidates"), [m, h] = (0, E.useState)(""), [g, _] = (0, E.useState)(1), [v, y] = (0, E.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, E.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, E.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, E.useState)(""), O = (0, E.useRef)(null), [k, A] = (0, E.useState)(0), [j, M] = (0, E.useState)(""), ee = (0, E.useRef)(!0);
+ (0, E.useEffect)(() => () => {
ee.current = !1;
}, []);
- let te = pt({
- queryKey: JE,
- queryFn: ({ signal: e }) => gD(e)
+ let te = mt({
+ queryKey: iD,
+ queryFn: ({ signal: e }) => ED(e)
}).data || {
sections: {},
counts: {}
- }, ne = te.sections[u] || [], N = u === "metadata_fields", re = s, ie = eD(ne, N), ae = ie.some(([e]) => e === f) ? f : "candidates", oe = tD(ne, ae), se = oe.some((e) => e.key === m) ? m : "", ce = rD(nD(ne, ae, se), g), le = ce.rows.map((e) => e.item_key), ue = new Set(le), de = oe.map((e) => ({
+ }, N = te.sections[u] || [], P = u === "metadata_fields", ne = s, re = uD(N, P), F = re.some(([e]) => e === f) ? f : "candidates", ie = dD(N, F), ae = ie.some((e) => e.key === m) ? m : "", oe = pD(fD(N, F, ae), g), se = oe.rows.map((e) => e.item_key), ce = new Set(se), le = ie.map((e) => ({
...e,
- rows: e.rows.filter((e) => ue.has(e.item_key))
- })).filter((e) => e.rows.length), fe = (e) => b.get(e.item_key) || pD(e), pe = ne.filter((e) => v.has(e.item_key)), me = (e) => {
+ rows: e.rows.filter((e) => ce.has(e.item_key))
+ })).filter((e) => e.rows.length), ue = (e) => b.get(e.item_key) || CD(e), de = N.filter((e) => v.has(e.item_key)), fe = (e) => {
let t = new Set(e);
- y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));
- }, P = (e, t) => T((n) => new Map(n).set(e, t)), he = (e) => {
- d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, t({ category: e === "metadata_fields" ? "" : e });
- }, ge = mt({
- mutationFn: ({ row: e, status: t }) => _D(mD(u, e, t, fe(e))),
+ y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e))));
+ }, I = (e, t) => C((n) => new Map(n).set(e, t)), pe = (e) => {
+ d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), O.current = null, t({ category: e === "metadata_fields" ? "" : e });
+ }, me = ht({
+ mutationFn: ({ row: e, status: t }) => DD(wD(u, e, t, ue(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
- P(t.item_key, e.error || "服务端拒绝了这次判定");
+ I(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- bD(u, [t.item_key]), me([t.item_key]), o(hD(n));
+ AD(u, [t.item_key]), fe([t.item_key]), o(TD(n));
},
- onError: (e, { row: t }) => P(t.item_key, q(e))
- }), _e = mt({
+ onError: (e, { row: t }) => I(t.item_key, q(e))
+ }), he = ht({
mutationFn: async (e) => {
- let t = pe, n = [], r = [];
+ let t = de, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!ee.current) break;
- D(`正在处理 ${i} / ${t.length}`);
+ T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await _D(mD(u, a, e, fe(a)));
+ let t = await DD(wD(u, a, e, ue(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -31952,124 +32015,124 @@ function WD(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- bD(u, t), me(t), n.forEach(([e, t]) => P(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ AD(u, t), fe(t), n.forEach(([e, t]) => I(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
- D(q(e));
+ T(q(e));
}
- }), ve = (e) => {
- if (!(_e.isPending || !pe.length)) {
- if (e === "approved" && N && pe.some((e) => !fe(e).candidateKey)) {
- D("先为所选的多来源候选选择来源。");
+ }), ge = (e) => {
+ if (!(he.isPending || !de.length)) {
+ if (e === "approved" && P && de.some((e) => !ue(e).candidateKey)) {
+ T("先为所选的多来源候选选择来源。");
return;
}
- D(""), _e.mutate(e);
+ T(""), he.mutate(e);
}
- }, ye = (e) => {
+ }, _e = (e) => {
x((t) => {
let n = new Map(t);
- for (let t of pe) {
+ for (let t of de) {
let r = t.candidates?.find((t) => t.source === e);
r && n.set(t.item_key, {
- ...fe(t),
+ ...ue(t),
candidateKey: r.candidate_key
});
}
return n;
- }), D(`已选择 ${e},点击通过所选采用。`);
- }, be = async (e) => {
+ }), T(`已选择 ${e},点击通过所选采用。`);
+ }, ve = async (e) => {
if (k) return;
A(e), M("");
let t = await i(e);
ee.current && (A(0), M(t));
- }, xe = SD(te.mirror, c), Se = te.genre_tags || [], Ce = {
+ }, ye = MD(te.mirror, c), be = te.genre_tags || [], xe = {
openItem: n,
openEntity: r,
- onReveal: be,
+ onReveal: ve,
revealing: k,
revealNote: j,
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
- re ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ ne ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
- extra: l ? /* @__PURE__ */ (0, w.jsx)("p", {
+ extra: l ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, w.jsx)("a", {
+ children: /* @__PURE__ */ (0, D.jsx)("a", {
href: l,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端复核"
})
}) : void 0,
- children: xe
+ children: ye
}) : null,
- /* @__PURE__ */ (0, w.jsx)(ED, { tags: Se }),
- /* @__PURE__ */ (0, w.jsxs)(Uy, {
+ /* @__PURE__ */ (0, D.jsx)(ID, { tags: be }),
+ /* @__PURE__ */ (0, D.jsxs)($y, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- QE(t) && he(t);
+ cD(t) && pe(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "w-full rounded-surface bg-background-primary-default px-2 py-4 review-split:sticky review-split:top-topbar review-split:w-review-tabs review-split:shrink-0",
- children: [/* @__PURE__ */ (0, w.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h2", {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, w.jsx)(Gy, {
+ }), /* @__PURE__ */ (0, D.jsx)(tb, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: XE.map((e) => {
+ children: oD.map((e) => {
let t = Number(te.counts[e] || 0);
- return /* @__PURE__ */ (0, w.jsxs)(qy, {
+ return /* @__PURE__ */ (0, D.jsxs)(rb, {
id: e,
- className: HD,
- children: [YE[e], t ? /* @__PURE__ */ (0, w.jsx)("span", {
+ className: QD,
+ children: [aD[e], t ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, w.jsxs)(Jy, {
+ }), /* @__PURE__ */ (0, D.jsxs)(ib, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ne.length && !re ? /* @__PURE__ */ (0, w.jsx)(CD, {
- groupOptions: ie,
- groupBy: ae,
+ N.length && !ne ? /* @__PURE__ */ (0, D.jsx)(ND, {
+ groupOptions: re,
+ groupBy: F,
onGroupBy: (e) => {
p(e), h(""), _(1);
},
- groups: oe,
- filter: se,
+ groups: ie,
+ filter: ae,
onFilter: (e) => {
h(e), _(1);
},
- pageKeys: le,
+ pageKeys: se,
selected: v,
onSelected: y,
- selectedRows: pe,
- metadata: N,
- approvable: pe.every((e) => oD(u, e)),
- busy: _e.isPending,
- feedback: E,
- onUnifySource: ye,
- onRun: ve
+ selectedRows: de,
+ metadata: P,
+ approvable: de.every((e) => gD(u, e)),
+ busy: he.isPending,
+ feedback: w,
+ onUnifySource: _e,
+ onRun: ge
}) : null,
- ce.rows.length ? de.map((e) => /* @__PURE__ */ (0, w.jsxs)("section", {
+ oe.rows.length ? le.map((e) => /* @__PURE__ */ (0, D.jsxs)("section", {
className: "flex flex-col gap-3",
- children: [de.length > 1 || ae !== "candidates" ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [le.length > 1 || F !== "candidates" ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-body-medium text-text-primary",
children: `${e.title} · ${e.rows.length}`
- }), re ? null : /* @__PURE__ */ (0, w.jsx)(K, {
+ }), ne ? null : /* @__PURE__ */ (0, D.jsx)(K, {
variant: "ghost",
size: "small",
onClick: () => {
@@ -32079,39 +32142,39 @@ function WD(e) {
},
children: e.rows.every((e) => v.has(e.item_key)) ? "清空本组" : "全选本组"
})]
- }) : null, /* @__PURE__ */ (0, w.jsx)("div", {
+ }) : null, /* @__PURE__ */ (0, D.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, w.jsx)(VD, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, D.jsx)(ZD, {
category: u,
row: e,
- choice: fe(e),
+ choice: ue(e),
onChoice: (t) => x((n) => new Map(n).set(e.item_key, t)),
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return O.current = aD(i, le, O.current, e.item_key, t, n), i;
+ return O.current = hD(i, se, O.current, e.item_key, t, n), i;
}),
- locked: re,
- busy: ge.isPending && ge.variables?.row.item_key === e.item_key,
+ locked: ne,
+ busy: me.isPending && me.variables?.row.item_key === e.item_key,
problem: S.get(e.item_key) || "",
- genreTags: Se,
+ genreTags: be,
onDecide: (t) => {
- ge.isPending || _e.isPending || (T((t) => new Map([...t].filter(([t]) => t !== e.item_key))), ge.mutate({
+ me.isPending || he.isPending || (C((t) => new Map([...t].filter(([t]) => t !== e.item_key))), me.mutate({
row: e,
status: t
}));
},
- handlers: Ce
+ handlers: xe
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, w.jsx)(uh, {
- icon: zf,
+ }, e.key)) : /* @__PURE__ */ (0, D.jsx)(bh, {
+ icon: Jf,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, w.jsx)(UD, {
- page: ce.page,
- pages: ce.pages,
+ /* @__PURE__ */ (0, D.jsx)($D, {
+ page: oe.page,
+ pages: oe.pages,
onPage: _
})
]
@@ -32122,31 +32185,31 @@ function WD(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var GD = "/api/scraping", KD = "/api/scraping/settings", qD = "/api/scraping/check", JD = "/api/scraping/cover", YD = "/api/scraping/amane-bridge", XD = "/api/scraping/amane-bridge/check", ZD = "/api/scraping/amane-bridge/rebuild", QD = ["scraping"], $D = ["scraping", "cover"], eO = ["scraping", "amane-bridge"], tO = (e) => eh(GD, e), nO = (e) => eh(JD, e), rO = (e) => eh(YD, e);
-async function iO(e) {
+var tO = "/api/scraping", nO = "/api/scraping/settings", rO = "/api/scraping/check", iO = "/api/scraping/cover", aO = "/api/scraping/amane-bridge", oO = "/api/scraping/amane-bridge/check", sO = "/api/scraping/amane-bridge/rebuild", cO = ["scraping"], lO = ["scraping", "cover"], uO = ["scraping", "amane-bridge"], dO = (e) => uh(tO, e), fO = (e) => uh(iO, e), pO = (e) => uh(aO, e);
+async function mO(e) {
await Promise.all([
- hh.fetchQuery({
- queryKey: QD,
- queryFn: () => tO(e)
+ Th.fetchQuery({
+ queryKey: cO,
+ queryFn: () => dO(e)
}),
- hh.fetchQuery({
- queryKey: $D,
- queryFn: () => nO(e)
+ Th.fetchQuery({
+ queryKey: lO,
+ queryFn: () => fO(e)
}),
- hh.fetchQuery({
- queryKey: eO,
- queryFn: () => rO(e)
+ Th.fetchQuery({
+ queryKey: uO,
+ queryFn: () => pO(e)
})
]);
}
-function aO(e, t) {
+function hO(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 oO = [["peach", "Peach 代理"], ["direct", "直接连接"]], sO = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function cO({ source: e }) {
- return /* @__PURE__ */ (0, w.jsx)("img", {
+var gO = [["peach", "Peach 代理"], ["direct", "直接连接"]], _O = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function vO({ source: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("img", {
src: a({ source: e }),
alt: "",
width: 16,
@@ -32156,13 +32219,13 @@ function cO({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function lO({ source: e, toast: t }) {
- let [n, r] = (0, C.useState)(e.network), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(sO[0][0]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = (0, C.useRef)(null);
+function yO({ source: e, toast: t }) {
+ let [n, r] = (0, E.useState)(e.network), [i, a] = (0, E.useState)(""), [o, s] = (0, E.useState)(""), [c, l] = (0, E.useState)(_O[0][0]), [u, d] = (0, E.useState)(""), [f, p] = (0, E.useState)(""), m = (0, E.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = mt({
- mutationFn: (t) => J(KD, {
+ let g = ht({
+ mutationFn: (t) => J(nO, {
source: e.source,
network: n,
cookie: i,
@@ -32170,12 +32233,12 @@ function lO({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- hh.setQueryData(QD, (t) => t && {
+ Th.setQueryData(cO, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = mt({ mutationFn: () => J(qD, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = ht({ mutationFn: () => J(rO, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -32199,88 +32262,88 @@ function lO({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? q(g.error) : "") || (_.error ? q(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || e.browser || !!T || E.length > 0;
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ let C = f || (g.error ? q(g.error) : "") || (_.error ? q(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: e.label,
onSubmit: y,
- aside: /* @__PURE__ */ (0, w.jsxs)("span", {
+ aside: /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)(cO, { source: e.source }), /* @__PURE__ */ (0, w.jsx)(hC, {
+ children: [/* @__PURE__ */ (0, D.jsx)(vO, { source: e.source }), /* @__PURE__ */ (0, D.jsx)(TC, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, w.jsx)(lC, { children: /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(yC, { children: /* @__PURE__ */ (0, D.jsx)(hC, {
label: "连接方式",
- children: /* @__PURE__ */ (0, w.jsx)(MT, {
+ children: /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: oO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: gO.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
})
}) }),
- D ? /* @__PURE__ */ (0, w.jsxs)(uC, {
+ T ? /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
children: [
- n === "peach" ? /* @__PURE__ */ (0, w.jsx)("span", {
+ n === "peach" ? /* @__PURE__ */ (0, D.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, w.jsx)(sC, {
+ children: /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: Pf,
+ trailingIcon: Uf,
children: "配置 Peach 代理"
})
}) : null,
- e.browser ? /* @__PURE__ */ (0, w.jsx)("p", {
+ e.browser ? /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "人机验证由本机浏览器自动完成;需要点击时窗口会弹出。这台机器上不需要 Cookie。"
}) : null,
- e.accepts_cookie && !e.browser ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsx)("p", {
+ e.accepts_cookie && !e.browser ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, w.jsx)(Ev, {
+ /* @__PURE__ */ (0, D.jsx)(Iv, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: RS,
- children: sO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {
+ className: JS,
+ children: _O.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(Lv, {
value: e,
- className: zS,
+ className: YS,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, w.jsx)(sb, {
+ c === "paste" ? /* @__PURE__ */ (0, D.jsx)(_b, {
type: "password",
label: "Cookie",
autoComplete: "off",
value: i,
onChange: a
- }) : /* @__PURE__ */ (0, w.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "Netscape Cookie 文件(.txt)" }),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
- }), /* @__PURE__ */ (0, w.jsx)("span", {
+ }), /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 text-body-2-regular break-all text-text-secondary",
children: u || "未选择文件"
})]
}),
- /* @__PURE__ */ (0, w.jsx)("input", {
+ /* @__PURE__ */ (0, D.jsx)("input", {
ref: m,
type: "file",
accept: ".txt",
@@ -32294,27 +32357,27 @@ function lO({ source: e, toast: t }) {
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, w.jsx)(pC, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, w.jsx)(Y, {
+ C ? /* @__PURE__ */ (0, D.jsx)(CC, { children: C }) : null,
+ w.map((t) => /* @__PURE__ */ (0, D.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: aO(t, e.label)
+ children: hO(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, w.jsxs)(dC, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsxs)(xC, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: b,
...X(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: x,
...X(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
...X(v),
children: "保存"
@@ -32323,26 +32386,26 @@ function lO({ source: e, toast: t }) {
]
});
}
-function uO({ toast: e }) {
- let [t, n] = (0, C.useState)(""), { running: r, outcome: i, start: a } = nC({
- queryKey: $D,
- queryFn: ({ signal: e }) => nO(e),
- start: () => J(JD, { code: t }),
+function bO({ toast: e }) {
+ let [t, n] = (0, E.useState)(""), { running: r, outcome: i, start: a } = fC({
+ queryKey: lO,
+ queryFn: ({ signal: e }) => fO(e),
+ start: () => J(iO, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? q(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, w.jsx)(cC, {
+ return /* @__PURE__ */ (0, D.jsx)(vC, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: /* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, w.jsx)(sb, {
+ children: /* @__PURE__ */ (0, D.jsx)(_b, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -32350,30 +32413,30 @@ function uO({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
disabled: !t.trim(),
...X(r || a.isPending),
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, w.jsx)(dh, { label: "正在抓取封面" }) : null,
- s ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ r ? /* @__PURE__ */ (0, D.jsx)(xh, { label: "正在抓取封面" }) : null,
+ s ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: s
}) : null,
- i?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ i?.status === "complete" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "success",
children: i.result || "封面采集完成"
}) : null
] })
});
}
-function dO({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = nC({
- queryKey: eO,
- queryFn: ({ signal: e }) => rO(e),
- start: () => J(ZD, {}),
+function xO({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = fC({
+ queryKey: uO,
+ queryFn: ({ signal: e }) => pO(e),
+ start: () => J(sO, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -32382,67 +32445,67 @@ function dO({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = mt({ mutationFn: () => J(XD, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, w.jsx)(cC, {
+ }), a = ht({ mutationFn: () => J(oO, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, D.jsx)(vC, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ children: /* @__PURE__ */ (0, D.jsx)(bC, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: q(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? q(i.error) : a.error ? q(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, w.jsx)(hC, {
+ aside: /* @__PURE__ */ (0, D.jsx)(TC, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, w.jsxs)(gC, { children: [
- /* @__PURE__ */ (0, w.jsxs)(_C, {
+ /* @__PURE__ */ (0, D.jsxs)(EC, { children: [
+ /* @__PURE__ */ (0, D.jsxs)(DC, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, w.jsxs)(uC, {
+ /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
children: [
- /* @__PURE__ */ (0, w.jsxs)(fC, { children: [
+ /* @__PURE__ */ (0, D.jsxs)(SC, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
] }),
- n ? /* @__PURE__ */ (0, w.jsx)(dh, { label: "正在重建运行环境" }) : null,
- c ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ n ? /* @__PURE__ */ (0, D.jsx)(xh, { label: "正在重建运行环境" }) : null,
+ c ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: c
}) : null,
- r?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ r?.status === "complete" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "success",
children: r.result || "amane 桥已重建"
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsxs)(dC, { children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsxs)(xC, { children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: () => {
s || a.mutate();
},
...X(a.isPending),
children: "检查上游版本"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
onClick: () => {
s || i.mutate();
},
@@ -32452,23 +32515,23 @@ function dO({ toast: e }) {
]
});
}
-function fO({ toast: e }) {
- let t = pt({
- queryKey: QD,
- queryFn: ({ signal: e }) => tO(e)
+function SO({ toast: e }) {
+ let t = mt({
+ queryKey: cO,
+ queryFn: ({ signal: e }) => dO(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, w.jsxs)(fh, { children: [
- /* @__PURE__ */ (0, w.jsx)("p", {
+ return n ? /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, w.jsx)(uO, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, w.jsx)(lO, {
+ /* @__PURE__ */ (0, D.jsx)(bO, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, D.jsx)(yO, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, w.jsx)(dO, { toast: e })
- ] }) : /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ /* @__PURE__ */ (0, D.jsx)(xO, { toast: e })
+ ] }) : /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "读取失败",
children: t.error ? q(t.error) : "读取采集来源失败"
@@ -32476,21 +32539,21 @@ function fO({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var pO = "/api/configuration", mO = "/api/pick-folder", hO = ["configuration"], gO = (e) => eh(pO, e);
-async function _O(e) {
- await hh.fetchQuery({
- queryKey: hO,
- queryFn: () => gO(e)
+var CO = "/api/configuration", wO = "/api/pick-folder", TO = ["configuration"], EO = (e) => uh(CO, e);
+async function DO(e) {
+ await Th.fetchQuery({
+ queryKey: TO,
+ queryFn: () => EO(e)
});
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function vO({ initial: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e.sites), i = mh(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function OO({ initial: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e.sites), i = wh(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -32499,9 +32562,9 @@ function vO({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- /* @__PURE__ */ (0, w.jsx)(fC, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, w.jsx)(sb, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
+ n.map((e) => /* @__PURE__ */ (0, D.jsx)(_b, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -32512,8 +32575,8 @@ function vO({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ i.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -32522,21 +32585,21 @@ function vO({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function yO({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function kO({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, w.jsx)(bO, {
+ children: [e.startup ? /* @__PURE__ */ (0, D.jsx)(AO, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, w.jsx)(vO, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, D.jsx)(OO, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function bO({ startup: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e.enabled), [i, a] = (0, C.useState)(e.silent), [o, s] = (0, C.useState)(e.desktop), c = mh(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+function AO({ startup: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e.enabled), [i, a] = (0, E.useState)(e.silent), [o, s] = (0, E.useState)(e.desktop), c = wh(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => J("/api/configuration/startup", {
@@ -32546,30 +32609,30 @@ function bO({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsxs)(yC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -32577,11 +32640,11 @@ function bO({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {
+ e.message || c.error ? /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, D.jsx)(SC, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -32592,24 +32655,24 @@ function bO({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var xO = /* @__PURE__ */ new Set([
+var jO = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), SO = [
+]), MO = [
65,
67,
90
-], CO = 120;
-function wO({ initial: e, initialJob: t }) {
- let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(t || {
+], NO = 120;
+function PO({ initial: e, initialJob: t }) {
+ let [n, r] = (0, E.useState)(e), [i, a] = (0, E.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, C.useState)(""), l = mh(), u = (0, C.useRef)(!1), d = (0, C.useRef)(!0), f = xO.has(i.state);
- (0, C.useEffect)(() => (d.current = !0, () => {
+ }), [o, s] = (0, E.useState)(""), l = wh(), u = (0, E.useRef)(!1), d = (0, E.useRef)(!0), f = jO.has(i.state);
+ (0, E.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
@@ -32622,12 +32685,12 @@ function wO({ initial: e, initialJob: t }) {
cancelLabel: "稍后",
onConfirm: p
});
- (0, C.useEffect)(() => {
+ (0, E.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
- }, [i.state]), (0, C.useEffect)(() => {
- let e = new AbortController(), t = xO.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ }, [i.state]), (0, E.useEffect)(() => {
+ let e = new AbortController(), t = jO.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await eh("/api/configuration/update-status", e.signal);
+ let t = await uh("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -32635,12 +32698,12 @@ function wO({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await eh("/api/configuration/automatic-updates", e.signal);
+ let n = await uh("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= CO && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= NO && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < CO && (n = setTimeout(c, t));
+ !e.signal.aborted && o < NO && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -32648,77 +32711,77 @@ function wO({ initial: e, initialJob: t }) {
}, [i.state]);
let h = () => {
f || (u.current = !1, s(""), l.run("download", (e) => J("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => eh("/api/configuration/updates", e), r, (t) => {
+ }, g = () => void l.run("check", (e) => uh("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
}), l.setError(q(t));
}), _ = l.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, w.jsxs)(gC, { children: [
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsxs)(EC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, w.jsxs)(uC, {
+ /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ n.checked_at ? /* @__PURE__ */ (0, D.jsxs)(SC, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, w.jsx)(pC, { children: _ || n.message }) : /* @__PURE__ */ (0, w.jsx)(fC, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, D.jsx)(CC, { children: _ || n.message }) : /* @__PURE__ */ (0, D.jsx)(SC, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, w.jsx)(pC, { children: i.message }) : null,
- i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ i.state === "error" ? /* @__PURE__ */ (0, D.jsx)(CC, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(ph, {
+ /* @__PURE__ */ (0, D.jsx)(Ch, {
label: "更新准备进度",
value: i.progress,
- stops: SO
+ stops: MO
}),
- /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, w.jsx)(fC, { children: v })
+ /* @__PURE__ */ (0, D.jsxs)(SC, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsxs)(dC, {
- status: /* @__PURE__ */ (0, w.jsx)(hC, {
+ /* @__PURE__ */ (0, D.jsxs)(xC, {
+ status: /* @__PURE__ */ (0, D.jsx)(TC, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, w.jsx)(K, {
+ i.state === "ready" ? /* @__PURE__ */ (0, D.jsx)(K, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, w.jsx)(K, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, D.jsx)(K, {
onClick: h,
...X(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
disabled: f,
onClick: g,
...X(l.busy === "check"),
@@ -32731,98 +32794,98 @@ function wO({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var TO = [
+var FO = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function EO({ data: e, receipt: t, reopenTutorial: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function IO({ data: e, receipt: t, reopenTutorial: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, w.jsx)(OO, {
+ e.automatic_updates ? /* @__PURE__ */ (0, D.jsx)(RO, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, w.jsx)(wO, {
+ e.updates ? /* @__PURE__ */ (0, D.jsx)(PO, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, w.jsx)(kO, { facts: e.facts }),
- /* @__PURE__ */ (0, w.jsx)(DO, {
+ /* @__PURE__ */ (0, D.jsx)(zO, { facts: e.facts }),
+ /* @__PURE__ */ (0, D.jsx)(LO, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, w.jsx)(AO, {
+ e.uninstall ? /* @__PURE__ */ (0, D.jsx)(BO, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function DO({ receipt: e, reopenTutorial: t }) {
- let n = mh();
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+function LO({ receipt: e, reopenTutorial: t }) {
+ let n = wh();
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [/* @__PURE__ */ (0, w.jsx)(fC, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: n.error }) : null] }), /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(bC, { children: [/* @__PURE__ */ (0, D.jsx)(SC, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: n.error }) : null] }), /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function OO({ initial: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e.mode), [i, a] = (0, C.useState)(e.interval_hours), o = mh(e.error), s = (r) => {
+function RO({ initial: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e.mode), [i, a] = (0, E.useState)(e.interval_hours), o = wh(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => J("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsxs)(yC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, w.jsx)(MT, {
+ children: /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: TO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: FO.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ o.error ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsx)(pC, { children: o.error })
+ children: /* @__PURE__ */ (0, D.jsx)(CC, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -32831,20 +32894,20 @@ function OO({ initial: e, receipt: t }) {
]
});
}
-function kO({ facts: e }) {
- return /* @__PURE__ */ (0, w.jsx)(cC, {
+function zO({ facts: e }) {
+ return /* @__PURE__ */ (0, D.jsx)(vC, {
title: "运行信息",
- children: /* @__PURE__ */ (0, w.jsx)(gC, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(_C, {
+ children: /* @__PURE__ */ (0, D.jsx)(EC, { children: e.map((e) => /* @__PURE__ */ (0, D.jsxs)(DC, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, w.jsx)(hC, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, D.jsx)(TC, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function AO({ uninstall: e, receipt: t }) {
- let [n, r] = (0, C.useState)(!1), [i, a] = (0, C.useState)(""), o = () => void c({
+function BO({ uninstall: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(!1), [i, a] = (0, E.useState)(""), o = () => void c({
title: "卸载 Peach",
danger: !0,
body: n ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
@@ -32857,31 +32920,31 @@ function AO({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, l = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- e.available ? /* @__PURE__ */ (0, w.jsx)(fC, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, w.jsx)(qS, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ e.available ? /* @__PURE__ */ (0, D.jsx)(SC, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, w.jsx)(vC, {
+ /* @__PURE__ */ (0, D.jsx)(OC, {
summary: "数据目录",
- children: l.map((e) => /* @__PURE__ */ (0, w.jsx)(WC, {
+ children: l.map((e) => /* @__PURE__ */ (0, D.jsx)(ew, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, w.jsx)(dC, {
- status: s ? /* @__PURE__ */ (0, w.jsx)("p", {
+ ] }), /* @__PURE__ */ (0, D.jsx)(xC, {
+ status: s ? /* @__PURE__ */ (0, D.jsx)("p", {
role: i ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
variant: "danger",
disabled: !e.available || !!i,
onClick: o,
@@ -32892,7 +32955,7 @@ function AO({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var jO = [
+var VO = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -32911,37 +32974,37 @@ var jO = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], MO = [
+], HO = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function NO() {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function UO() {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, w.jsxs)(fC, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, w.jsx)(hC, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(SC, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, D.jsx)(TC, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, w.jsxs)(vC, {
+ })] }), /* @__PURE__ */ (0, D.jsxs)(OC, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, w.jsx)(fC, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
- /* @__PURE__ */ (0, w.jsx)("ul", {
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, D.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: jO.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
+ children: VO.map((e) => /* @__PURE__ */ (0, D.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, w.jsx)("p", {
+ children: [/* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, w.jsx)("dl", {
+ }), /* @__PURE__ */ (0, D.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: MO.map(([t, n]) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: HO.map(([t, n]) => /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, w.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, D.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, w.jsx)("dd", {
+ }), /* @__PURE__ */ (0, D.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -32949,17 +33012,17 @@ function NO() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, w.jsxs)("ul", {
+ /* @__PURE__ */ (0, D.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, w.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, w.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, w.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, D.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, D.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, D.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, w.jsxs)(fC, { children: [
+ /* @__PURE__ */ (0, D.jsxs)(SC, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, w.jsx)(hC, {
+ /* @__PURE__ */ (0, D.jsx)(TC, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -32971,7 +33034,7 @@ function NO() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var PO = [
+var WO = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -33015,14 +33078,14 @@ var PO = [
["star", "收藏"],
["tags", "主题"]
];
-function FO(e) {
+function GO(e) {
let t = e === "local" ? "" : o[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var IO = "auto";
-function LO({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(e), [l, u] = FO(n);
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(K, {
+var KO = "auto";
+function qO({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, E.useRef)(null), [a, o] = (0, E.useState)(!1), [s, c] = (0, E.useState)(e), [l, u] = GO(n);
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(K, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -33032,46 +33095,46 @@ function LO({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: /* @__PURE__ */ (0, D.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: e || l }), ((e) => e && PO.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, D.jsx)(AC, { mark: e || l }), ((e) => e && WO.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, w.jsx)(av, {
+ }), /* @__PURE__ */ (0, D.jsx)(hv, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: JS,
- children: /* @__PURE__ */ (0, w.jsxs)(lv, {
+ className: iC,
+ children: /* @__PURE__ */ (0, D.jsxs)(yv, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, w.jsx)(vg, {
+ /* @__PURE__ */ (0, D.jsx)(Og, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, w.jsx)(Ev, {
+ /* @__PURE__ */ (0, D.jsx)(Iv, {
"aria-label": "候选图标",
- value: s || IO,
- onChange: (e) => c(e === IO ? "" : e),
+ value: s || KO,
+ onChange: (e) => c(e === KO ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: PO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {
- value: e || IO,
+ children: WO.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(Lv, {
+ value: e || KO,
"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, w.jsx)(bC, { mark: e || l })
- }, e || IO))
+ children: /* @__PURE__ */ (0, D.jsx)(AC, { mark: e || l })
+ }, e || KO))
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -33085,15 +33148,15 @@ function LO({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var RO = "/api/configuration/push-discovery", zO = "/api/configuration/push-discovery/secret";
-function BO({ initial: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.prefixes), [o, s] = (0, C.useState)(""), c = mh(), l = Sb(), u = n.media_roots, [d, f] = (0, C.useState)(e), p = (e, n) => {
+var JO = "/api/configuration/push-discovery", YO = "/api/configuration/push-discovery/secret";
+function XO({ initial: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e), [i, a] = (0, E.useState)(e.prefixes), [o, s] = (0, E.useState)(""), c = wh(), l = Mb(), u = n.media_roots, [d, f] = (0, E.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -33103,14 +33166,14 @@ function BO({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => J(RO, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(q(e)));
+ c.run("save", (e) => J(JO, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(q(e)));
},
children: [
- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsxs)(yC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -33120,10 +33183,10 @@ function BO({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -33133,10 +33196,10 @@ function BO({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(hC, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, w.jsx)(ex, {
+ children: /* @__PURE__ */ (0, D.jsx)(ux, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -33147,59 +33210,59 @@ function BO({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ d.enabled ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsxs)(gC, { children: [d.watch_local ? /* @__PURE__ */ (0, w.jsx)(_C, {
+ children: /* @__PURE__ */ (0, D.jsxs)(EC, { children: [d.watch_local ? /* @__PURE__ */ (0, D.jsx)(DC, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, w.jsx)(_C, {
+ }) : null, /* @__PURE__ */ (0, D.jsx)(DC, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, w.jsx)(fC, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
- d.config_toml ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("div", { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ d.config_toml ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("div", { children: /* @__PURE__ */ (0, D.jsx)(K, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, w.jsx)(vC, {
+ }) }), /* @__PURE__ */ (0, D.jsx)(OC, {
summary: "查看这段配置",
- children: /* @__PURE__ */ (0, w.jsx)("div", {
+ children: /* @__PURE__ */ (0, D.jsx)("div", {
className: "relative",
- children: /* @__PURE__ */ (0, w.jsx)("pre", {
+ children: /* @__PURE__ */ (0, D.jsx)("pre", {
ref: l,
tabIndex: 0,
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, D.jsx)(SC, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, w.jsx)(fC, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, D.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
className: "flex flex-col gap-3",
- children: i.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: i.map((e, t) => /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(_b, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -33208,26 +33271,26 @@ function BO({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, w.jsx)(MT, {
+ /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: u.map((e) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: Bf,
+ /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: Yf,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
]
}, t))
}),
- /* @__PURE__ */ (0, w.jsx)("div", { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)("div", { children: /* @__PURE__ */ (0, D.jsx)(K, {
size: "small",
onClick: () => a((e) => [...e, {
prefix: "",
@@ -33238,20 +33301,20 @@ function BO({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ o || c.error ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsx)(pC, { children: o || c.error })
+ children: /* @__PURE__ */ (0, D.jsx)(CC, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, w.jsxs)(dC, {
+ /* @__PURE__ */ (0, D.jsxs)(xC, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
- children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, w.jsx)(K, {
+ children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, D.jsx)(K, {
onClick: () => {
- c.run("secret", (e) => J(zO, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(q(e)));
+ c.run("secret", (e) => J(YO, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(q(e)));
},
disabled: !n.available,
...X(c.busy === "secret"),
children: "更换密钥"
- }) : null, /* @__PURE__ */ (0, w.jsx)(K, {
+ }) : null, /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
disabled: !n.available,
...X(c.busy === "save"),
@@ -33263,9 +33326,9 @@ function BO({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var VO = 8e3;
-function HO({ className: e }) {
- return /* @__PURE__ */ (0, w.jsx)("svg", {
+var ZO = 8e3;
+function QO({ className: e }) {
+ return /* @__PURE__ */ (0, D.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -33274,85 +33337,85 @@ function HO({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, D.jsx)("use", { href: "#i-folder-search" })
});
}
-var UO = [
+var $O = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], WO = (e) => UO.find(([t]) => t === e)?.[1] ?? e, GO = (e) => o[e] || "database", KO = (e = "") => ({
+], ek = (e) => $O.find(([t]) => t === e)?.[1] ?? e, tk = (e) => o[e] || "database", nk = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function qO(e) {
- let t = e.media_sources?.filter((e) => UO.some(([t]) => t === e.location));
+function rk(e) {
+ let t = e.media_sources?.filter((e) => $O.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) => KO(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => nk(e));
}
-var JO = (e) => !(e instanceof Qm) || e.status !== 400 ? null : e.body?.errors ?? null;
-function YO({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+var ik = (e) => !(e instanceof ch) || e.status !== 400 ? null : e.body?.errors ?? null;
+function ak({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, w.jsx)(XO, {
+ e.editable ? /* @__PURE__ */ (0, D.jsx)(ok, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, w.jsx)(Y, {
+ }) : /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "neutral",
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, w.jsx)(QO, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, w.jsx)(BO, {
+ /* @__PURE__ */ (0, D.jsx)(ck, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, D.jsx)(XO, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function XO({ data: e, receipt: t }) {
- let [n, r] = (0, C.useState)(() => qO(e)), [i, a] = (0, C.useState)(String(e.port)), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)([]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), [m, h] = (0, C.useState)(null), [g, _] = (0, C.useState)(null), [v, y] = (0, C.useState)(null), b = (0, C.useRef)(!1), x = (0, C.useRef)(e.revision), S = (0, C.useRef)([]), T = mh();
- (0, C.useLayoutEffect)(() => {
+function ok({ data: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(() => rk(e)), [i, a] = (0, E.useState)(String(e.port)), [o, s] = (0, E.useState)(!1), [c, l] = (0, E.useState)([]), [u, d] = (0, E.useState)(""), [f, p] = (0, E.useState)(""), [m, h] = (0, E.useState)(null), [g, _] = (0, E.useState)(null), [v, y] = (0, E.useState)(null), b = (0, E.useRef)(!1), x = (0, E.useRef)(e.revision), S = (0, E.useRef)([]), C = wh();
+ (0, E.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
- }, [g]), (0, C.useEffect)(() => {
+ }, [g]), (0, E.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), VO);
+ let e = setTimeout(() => location.assign(m.url), ZO);
return () => clearTimeout(e);
}, [m]);
- let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
+ let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
...n,
...t
- } : n)), D = (e, t) => l((n) => {
+ } : n)), T = (e, t) => l((n) => {
let r = [...n];
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, KO()]);
+ _(n.length), r((e) => [...e, nk()]);
}, 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 J(mO, { initial: n[e]?.path ?? "" });
- t && (E(e, { path: t }), D(e, ""));
+ let { path: t } = await J(wO, { initial: n[e]?.path ?? "" });
+ t && (w(e, { path: t }), T(e, ""));
} catch (t) {
- D(e, q(t));
+ T(e, q(t));
} finally {
b.current = !1, y(null);
}
}
}, j = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => J(pO, {
+ r.preventDefault(), p(""), C.run("save", (t) => J(CO, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -33361,18 +33424,18 @@ function XO({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = JO(e);
+ let t = ik(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(q(e));
});
};
- if (m) return /* @__PURE__ */ (0, w.jsx)(cC, {
+ if (m) return /* @__PURE__ */ (0, D.jsx)(vC, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, D.jsx)(bC, { children: /* @__PURE__ */ (0, D.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, w.jsx)(sC, {
+ /* @__PURE__ */ (0, D.jsx)(_C, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -33382,30 +33445,30 @@ function XO({ data: e, receipt: t }) {
}) })
});
let M = n.some((e) => e.location === "115" || e.location === "pikpak"), ee = M ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "这台电脑",
onSubmit: j,
- children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)(wC, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, D.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, D.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(_b, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
value: t.path,
- onChange: (e) => E(r, { path: e }),
+ onChange: (e) => w(r, { path: e }),
ref: (e) => {
S.current[r] = e;
},
@@ -33413,81 +33476,81 @@ function XO({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: HO,
+ /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: QO,
"aria-label": "选择文件夹",
onClick: () => void A(r),
...X(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, w.jsx)(eb, {
- icon: Bf,
+ n.length > 1 ? /* @__PURE__ */ (0, D.jsx)(ub, {
+ icon: Yf,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(_b, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
- onChange: (e) => E(r, { library: e })
+ onChange: (e) => w(r, { library: e })
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体库图标" }), /* @__PURE__ */ (0, w.jsx)(LO, {
+ children: [/* @__PURE__ */ (0, D.jsx)(wC, { children: "媒体库图标" }), /* @__PURE__ */ (0, D.jsx)(qO, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
- onChange: (e) => E(r, { library_icon: e })
+ onChange: (e) => w(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体来源" }), /* @__PURE__ */ (0, w.jsx)(MT, {
+ children: [/* @__PURE__ */ (0, D.jsx)(wC, { children: "媒体来源" }), /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
- e !== null && E(r, { location: String(e) });
+ e !== null && w(r, { location: String(e) });
},
- children: UO.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)(NT, {
+ children: $O.map(([e, t]) => /* @__PURE__ */ (0, D.jsxs)(UT, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: GO(e) }), t]
+ children: [/* @__PURE__ */ (0, D.jsx)(AC, { mark: tk(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(sb, {
+ e.windows === !1 ? /* @__PURE__ */ (0, D.jsx)(_b, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
- onChange: (e) => E(r, { root: e })
+ onChange: (e) => w(r, { root: e })
}) : null
]
})]
}, r))
}),
- /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- M ? /* @__PURE__ */ (0, w.jsx)(NO, {}) : null,
- ee.map((e) => /* @__PURE__ */ (0, w.jsxs)(fC, { children: [
+ M ? /* @__PURE__ */ (0, D.jsx)(UO, {}) : null,
+ ee.map((e) => /* @__PURE__ */ (0, D.jsxs)(SC, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, w.jsxs)(hC, {
+ /* @__PURE__ */ (0, D.jsxs)(TC, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(fC, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, w.jsx)(sb, {
+ e.windows === !1 ? /* @__PURE__ */ (0, D.jsx)(SC, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, D.jsx)(_b, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -33497,65 +33560,65 @@ function XO({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, w.jsx)(qS, {
+ /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ f ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, w.jsx)(dC, {
+ ] }), /* @__PURE__ */ (0, D.jsx)(xC, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
- ...X(T.busy === "save"),
+ ...X(C.busy === "save"),
children: "保存配置"
})
})]
});
}
-function ZO({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, w.jsxs)("span", {
+function sk({ online: e }) {
+ return e === !0 ? /* @__PURE__ */ (0, D.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, w.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, D.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, w.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, D.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
-function QO({ data: e }) {
- let t = e.media_sources, n = mh();
- return t ? /* @__PURE__ */ (0, w.jsxs)(cC, {
+function ck({ data: e }) {
+ let t = e.media_sources, n = wh();
+ return t ? /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, w.jsx)(gC, { children: t.map((e, t) => /* @__PURE__ */ (0, w.jsxs)(_C, {
- term: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: GO(e.location) }), WO(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, w.jsx)(ZO, { online: e.online })]
+ /* @__PURE__ */ (0, D.jsx)(EC, { children: t.map((e, t) => /* @__PURE__ */ (0, D.jsxs)(DC, {
+ term: /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(AC, { mark: tk(e.location) }), ek(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, D.jsx)(sk, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, w.jsx)(uC, {
+ n.error ? /* @__PURE__ */ (0, D.jsx)(bC, {
divided: !0,
- children: /* @__PURE__ */ (0, w.jsx)(pC, { children: n.error })
+ children: /* @__PURE__ */ (0, D.jsx)(CC, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
- onClick: () => void n.run("refresh", (e) => gO(e), (e) => hh.setQueryData(hO, e)),
+ /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
+ onClick: () => void n.run("refresh", (e) => EO(e), (e) => Th.setQueryData(TO, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -33564,13 +33627,13 @@ function QO({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var $O = {
+var lk = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function ek({ initial: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(!1), [f, p] = (0, C.useState)({}), m = (0, C.useRef)(null), h = mh(), g = (e) => {
+function uk({ initial: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e), [i, a] = (0, E.useState)(""), [o, s] = (0, E.useState)(""), [c, l] = (0, E.useState)(""), [u, d] = (0, E.useState)(!1), [f, p] = (0, E.useState)({}), m = (0, E.useRef)(null), h = wh(), 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) {
@@ -33587,28 +33650,28 @@ function ek({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof Qm ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof ch ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(q(e));
});
- }, _ = $O[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ }, _ = lk[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- _ ? /* @__PURE__ */ (0, w.jsx)(fC, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ children: /* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ _ ? /* @__PURE__ */ (0, D.jsx)(SC, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, w.jsx)(qS, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, D.jsx)(rC, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, w.jsx)(sb, {
+ n.mode === "password" ? /* @__PURE__ */ (0, D.jsx)(_b, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -33621,7 +33684,7 @@ function ek({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(sb, {
+ v ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(_b, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -33634,7 +33697,7 @@ function ek({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, w.jsx)(sb, {
+ }), /* @__PURE__ */ (0, D.jsx)(_b, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -33648,16 +33711,16 @@ function ek({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ u ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, w.jsx)(dC, {
+ }), v ? /* @__PURE__ */ (0, D.jsx)(xC, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
...X(h.busy === "save"),
children: "保存配置"
@@ -33667,19 +33730,19 @@ function ek({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var tk = 2e3, nk = [["quick", "临时链接"], ["named", "命名隧道"]], rk = {
+var dk = 2e3, fk = [["quick", "临时链接"], ["named", "命名隧道"]], pk = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function ik({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, C.useState)(t), [a, o] = (0, C.useState)(e), [s, c] = (0, C.useState)(t.mode), [l, u] = (0, C.useState)(t.hostname), [d, f] = (0, C.useState)(""), [p, m] = (0, C.useState)({}), h = mh(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
- (0, C.useEffect)(() => {
+function mk({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, E.useState)(t), [a, o] = (0, E.useState)(e), [s, c] = (0, E.useState)(t.mode), [l, u] = (0, E.useState)(t.hostname), [d, f] = (0, E.useState)(""), [p, m] = (0, E.useState)({}), h = wh(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ (0, E.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- gO(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (hh.setQueryData(hO, t), i(t.tunnel), o(t.revision));
+ EO(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (Th.setQueryData(TO, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, tk);
+ }, dk);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -33694,30 +33757,30 @@ function ik({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof Qm ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof ch ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(q(e));
});
};
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [
- r.named_available ? /* @__PURE__ */ (0, w.jsx)(Ev, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(bC, { children: [
+ r.named_available ? /* @__PURE__ */ (0, D.jsx)(Iv, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: RS,
- children: nk.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {
+ className: JS,
+ children: fk.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(Lv, {
value: e,
- className: zS,
+ className: YS,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, w.jsx)(fC, { children: rk[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(sb, {
+ /* @__PURE__ */ (0, D.jsx)(SC, { children: pk[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(_b, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -33728,7 +33791,7 @@ function ik({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, w.jsx)(sb, {
+ }), /* @__PURE__ */ (0, D.jsx)(_b, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -33740,33 +33803,33 @@ function ik({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
hint: r.token_set ? "已保存。留空表示沿用已保存的令牌。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
})] }) : null,
- r.available ? null : /* @__PURE__ */ (0, w.jsx)(Y, {
+ r.available ? null : /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "找不到 cloudflared",
children: "安装官方 cloudflared,或用设置文件的 tunnel.binary 与 PEACH_CLOUDFLARED 指定路径。"
}),
- r.state === "running" && r.url ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ r.state === "running" && r.url ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, w.jsx)(hC, {
+ children: /* @__PURE__ */ (0, D.jsx)(TC, {
href: r.url,
children: r.url
})
}) : null,
- r.state === "starting" ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ r.state === "starting" ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "info",
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, w.jsxs)(dC, {
+ r.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, D.jsxs)(xC, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
...X(h.busy === "toggle"),
children: g ? "停止公网入口" : "启动公网入口"
- }), r.named_available ? /* @__PURE__ */ (0, w.jsx)(K, {
+ }), r.named_available ? /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
...X(h.busy === "save"),
children: "保存配置"
@@ -33776,24 +33839,24 @@ function ik({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var ak = [
+var hk = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function ok({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function gk({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, w.jsx)(sk, {
+ e.peach_proxy ? /* @__PURE__ */ (0, D.jsx)(_k, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, w.jsx)(ek, {
+ e.access ? /* @__PURE__ */ (0, D.jsx)(uk, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, w.jsx)(ik, {
+ e.tunnel ? /* @__PURE__ */ (0, D.jsx)(mk, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -33801,9 +33864,9 @@ function ok({ data: e, receipt: t }) {
]
});
}
-function sk({ initial: e, receipt: t }) {
- let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.mode), [o, s] = (0, C.useState)(""), c = mh();
- return /* @__PURE__ */ (0, w.jsxs)(cC, {
+function _k({ initial: e, receipt: t }) {
+ let [n, r] = (0, E.useState)(e), [i, a] = (0, E.useState)(e.mode), [o, s] = (0, E.useState)(""), c = wh();
+ return /* @__PURE__ */ (0, D.jsxs)(vC, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -33815,25 +33878,25 @@ function sk({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, w.jsx)(lC, { children: /* @__PURE__ */ (0, w.jsx)(aC, {
+ /* @__PURE__ */ (0, D.jsx)(yC, { children: /* @__PURE__ */ (0, D.jsx)(hC, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, w.jsx)(MT, {
+ children: /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: ak.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: hk.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, D.jsxs)(bC, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, w.jsx)(sb, {
+ i === "proxy" ? /* @__PURE__ */ (0, D.jsx)(_b, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -33842,15 +33905,15 @@ function sk({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ n.needs_selection ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, D.jsx)(CC, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(xC, { children: /* @__PURE__ */ (0, D.jsx)(K, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -33860,14 +33923,14 @@ function sk({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function ck({ receipt: e, reopenTutorial: t }) {
- let n = pt({
- queryKey: hO,
- queryFn: ({ signal: e }) => gO(e)
+function vk({ receipt: e, reopenTutorial: t }) {
+ let n = mt({
+ queryKey: TO,
+ queryFn: ({ signal: e }) => EO(e)
}), r = n.data;
- if (!r) return /* @__PURE__ */ (0, w.jsx)("div", {
+ if (!r) return /* @__PURE__ */ (0, D.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "打不开配置",
children: n.error ? q(n.error) : "没有读到配置"
@@ -33877,29 +33940,29 @@ function ck({ receipt: e, reopenTutorial: t }) {
data: r,
receipt: e
}, a = !!(r.startup || r.entry_links), o = !!(r.peach_proxy || r.access || r.tunnel);
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "configpage",
children: [
- a ? /* @__PURE__ */ (0, w.jsx)("h2", {
+ a ? /* @__PURE__ */ (0, D.jsx)("h2", {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, w.jsx)(yO, { ...i }) : null,
- /* @__PURE__ */ (0, w.jsx)("h2", {
+ a ? /* @__PURE__ */ (0, D.jsx)(kO, { ...i }) : null,
+ /* @__PURE__ */ (0, D.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, w.jsx)(YO, { ...i }),
- o ? /* @__PURE__ */ (0, w.jsx)("h2", {
+ /* @__PURE__ */ (0, D.jsx)(ak, { ...i }),
+ o ? /* @__PURE__ */ (0, D.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, w.jsx)(ok, { ...i }) : null,
- /* @__PURE__ */ (0, w.jsx)("h2", {
+ o ? /* @__PURE__ */ (0, D.jsx)(gk, { ...i }) : null,
+ /* @__PURE__ */ (0, D.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, w.jsx)(EO, {
+ /* @__PURE__ */ (0, D.jsx)(IO, {
...i,
reopenTutorial: t
})
@@ -33908,37 +33971,37 @@ function ck({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var lk = (e) => {
+var yk = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function uk({ openConfiguration: e }) {
- let t = pt({
- queryKey: hO,
- queryFn: ({ signal: e }) => gO(e)
+function bk({ openConfiguration: e }) {
+ let t = mt({
+ queryKey: TO,
+ queryFn: ({ signal: e }) => EO(e)
}), n = t.data;
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, w.jsxs)(gC, { children: [
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ children: [n ? /* @__PURE__ */ (0, D.jsxs)(EC, { children: [
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, w.jsx)(_C, {
+ /* @__PURE__ */ (0, D.jsx)(DC, {
term: "更新",
- children: lk(n)
+ children: yk(n)
})
- ] }) : /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, D.jsx)(bC, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "打不开配置",
children: t.error ? q(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, w.jsx)(dC, {
+ }) }), /* @__PURE__ */ (0, D.jsx)(xC, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
onClick: e,
children: "打开配置页"
})
@@ -33947,15 +34010,15 @@ function uk({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var dk = "/api/stats", fk = ["stats"], pk = (e) => eh(dk, e);
-async function mk(e) {
- await hh.fetchQuery({
- queryKey: fk,
- queryFn: () => pk(e)
+var xk = "/api/stats", Sk = ["stats"], Ck = (e) => uh(xk, e);
+async function wk(e) {
+ await Th.fetchQuery({
+ queryKey: Sk,
+ queryFn: () => Ck(e)
});
}
-var hk = (e, t) => t ? Math.round(e / t * 100) : 0, gk = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, _k = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, vk = (e) => (e.max_reached || 0) * 100, yk = (e) => e.kind === "online" ? "在线直接观看" : _k(e) < vk(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", bk = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
-function xk(e) {
+var Tk = (e, t) => t ? Math.round(e / t * 100) : 0, Ek = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Dk = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, Ok = (e) => (e.max_reached || 0) * 100, kk = (e) => e.kind === "online" ? "在线直接观看" : Dk(e) < Ok(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Ak = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function jk(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,
@@ -33965,9 +34028,9 @@ function xk(e) {
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function Sk({ children: e, className: t = "", previewCount: n = 10 }) {
- let r = (0, C.useId)(), i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(!1), l = C.Children.toArray(e), u = l.length > n;
- (0, C.useLayoutEffect)(() => {
+function Mk({ children: e, className: t = "", previewCount: n = 10 }) {
+ let r = (0, E.useId)(), i = (0, E.useRef)(null), [a, o] = (0, E.useState)(!1), [s, c] = (0, E.useState)(!1), l = E.Children.toArray(e), u = l.length > n;
+ (0, E.useLayoutEffect)(() => {
let e = i.current;
if (!e || !u) return;
let t = () => {
@@ -33982,13 +34045,13 @@ function Sk({ children: e, className: t = "", previewCount: n = 10 }) {
n,
l.length
]);
- let d = l.map((e, t) => !(0, C.isValidElement)(e) || t < n ? e : (0, C.cloneElement)(e, { inert: !a || void 0 }));
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ let d = l.map((e, t) => !(0, E.isValidElement)(e) || t < n ? e : (0, E.cloneElement)(e, { inert: !a || void 0 }));
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
"data-expandable-ranking": !0,
"data-expandable": u || void 0,
"data-expanded": a || void 0,
"data-animating": s || void 0,
- children: [/* @__PURE__ */ (0, w.jsx)("ol", {
+ children: [/* @__PURE__ */ (0, D.jsx)("ol", {
id: r,
ref: i,
"data-expandable-ranking-list": !0,
@@ -33997,7 +34060,7 @@ function Sk({ children: e, className: t = "", previewCount: n = 10 }) {
e.target === i.current && e.propertyName === "max-height" && c(!1);
},
children: d
- }), u ? /* @__PURE__ */ (0, w.jsx)("button", {
+ }), u ? /* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
"data-ranking-toggle": !0,
"aria-controls": r,
@@ -34006,27 +34069,27 @@ function Sk({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, w.jsx)(Nf, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, D.jsx)(Hf, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/stats/radial-card.tsx
-var Ck = [
+var Nk = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], wk = [
+], Pk = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], Tk = [
+], Fk = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -34034,42 +34097,42 @@ var Ck = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function Ek({ title: e, rows: t, unit: n = "个视频" }) {
- let [r, i] = (0, C.useState)(-1), [a, o] = (0, C.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
+function Ik({ title: e, rows: t, unit: n = "个视频" }) {
+ let [r, i] = (0, E.useState)(-1), [a, o] = (0, E.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 = xk(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
- return /* @__PURE__ */ (0, w.jsxs)("section", {
- className: `${ch({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = jk(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: `${vh({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
children: [
- /* @__PURE__ */ (0, w.jsxs)("header", {
+ /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: d ? d.name : e
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: (d ? d.value : l).toLocaleString()
})]
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: n
})]
}),
- /* @__PURE__ */ (0, w.jsx)("svg", {
+ /* @__PURE__ */ (0, D.jsx)("svg", {
viewBox: "0 0 320 320",
fill: "none",
role: "img",
"aria-label": e,
className: "block h-75 w-full max-sm:h-65",
onPointerLeave: () => o(-1),
- children: s.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("g", {
+ children: s.map((e, t) => /* @__PURE__ */ (0, D.jsxs)("g", {
onPointerEnter: () => o(t),
onClick: () => f(t),
children: [
- /* @__PURE__ */ (0, w.jsx)("title", { children: `${e.name}:${e.value.toLocaleString()} ${n}` }),
- /* @__PURE__ */ (0, w.jsx)("circle", {
+ /* @__PURE__ */ (0, D.jsx)("title", { children: `${e.name}:${e.value.toLocaleString()} ${n}` }),
+ /* @__PURE__ */ (0, D.jsx)("circle", {
cx: "160",
cy: "160",
r: u[t].radius,
@@ -34077,7 +34140,7 @@ function Ek({ title: e, rows: t, unit: n = "个视频" }) {
strokeLinecap: "round",
className: "stroke-chart-track"
}),
- /* @__PURE__ */ (0, w.jsx)("circle", {
+ /* @__PURE__ */ (0, D.jsx)("circle", {
cx: "160",
cy: "160",
r: u[t].radius,
@@ -34086,14 +34149,14 @@ function Ek({ 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 ${Ck[t % 6]}` : `cursor-pointer transition-opacity ${Ck[t % 6]}`
+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${Nk[t % 6]}` : `cursor-pointer transition-opacity ${Nk[t % 6]}`
})
]
}, e.name))
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2",
- children: s.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("button", {
+ children: s.map((e, t) => /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
"aria-pressed": r === t,
onClick: () => f(t),
@@ -34101,20 +34164,20 @@ function Ek({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${Tk[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${Fk[t % 6]}`,
children: [
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsx)("i", {
+ children: [/* @__PURE__ */ (0, D.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${wk[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${Pk[t % 6]}`
}), e.name]
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-title-2-medium tabular-nums text-text-primary",
children: e.value.toLocaleString()
}),
- e.detail ? /* @__PURE__ */ (0, w.jsx)("small", {
+ e.detail ? /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
}) : null
@@ -34126,77 +34189,77 @@ function Ek({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var Dk = 10, Ok = `${ch()} flex flex-col gap-4`, kk = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Ak = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", jk = "开始播放后,这里会显示最近的真实观看证据。", Mk = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Nk = "添加媒体文件夹后,这里会显示存储空间。";
-function Pk({ term: e, value: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+var Lk = 10, Rk = `${vh()} flex flex-col gap-4`, zk = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Bk = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Vk = "开始播放后,这里会显示最近的真实观看证据。", Hk = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Uk = "添加媒体文件夹后,这里会显示存储空间。";
+function Wk({ term: e, value: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
children: t.toLocaleString()
})]
});
}
-function Fk({ term: e, value: t, total: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function Gk({ term: e, value: t, total: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, w.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e }), /* @__PURE__ */ (0, w.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", { children: e }), /* @__PURE__ */ (0, D.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, w.jsxs)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, D.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [hk(t, n), "%"]
+ children: [Tk(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, w.jsx)(ph, {
+ }), /* @__PURE__ */ (0, D.jsx)(Ch, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function Ik({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+function Kk({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: n
})
]
});
}
-function Lk({ headline: e, children: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("div", {
- className: `${Ok} md:flex-row md:gap-6`,
- children: [e, /* @__PURE__ */ (0, w.jsx)("div", {
+function qk({ headline: e, children: t }) {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: `${Rk} md:flex-row md:gap-6`,
+ children: [e, /* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function Rk({ data: t, configurable: r, openMediaSettings: i }) {
- return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, w.jsxs)("div", {
+function Jk({ data: t, configurable: r, openMediaSettings: i }) {
+ return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, w.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Ik, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: n(t.bytes)
}))
- }), /* @__PURE__ */ (0, w.jsx)(Ek, {
+ }), /* @__PURE__ */ (0, D.jsx)(Ik, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -34204,48 +34267,48 @@ function Rk({ data: t, configurable: r, openMediaSettings: i }) {
detail: n(e.bytes)
}))
})]
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: fp,
+ icon: bp,
title: "还没有视频",
- actions: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [r ? /* @__PURE__ */ (0, w.jsx)(K, {
+ actions: /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [r ? /* @__PURE__ */ (0, D.jsx)(K, {
size: "small",
onClick: i,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, w.jsx)(sC, {
+ }) : null, /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: kk
+ children: zk
});
}
-function zk({ attribution: e }) {
+function Yk({ attribution: e }) {
let t = e.videos;
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, w.jsx)(Fk, {
+ /* @__PURE__ */ (0, D.jsx)(Gk, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, w.jsx)(Fk, {
+ /* @__PURE__ */ (0, D.jsx)(Gk, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, w.jsx)(Fk, {
+ /* @__PURE__ */ (0, D.jsx)(Gk, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, w.jsx)(Fk, {
+ /* @__PURE__ */ (0, D.jsx)(Gk, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, w.jsx)(Fk, {
+ /* @__PURE__ */ (0, D.jsx)(Gk, {
term: "已探测时长",
value: e.duration,
total: t
@@ -34253,35 +34316,35 @@ function zk({ attribution: e }) {
]
});
}
-function Bk({ volume: e }) {
+function Xk({ volume: e }) {
let t = e.total, r = e.used ?? 0;
- return /* @__PURE__ */ (0, w.jsxs)("article", {
+ return /* @__PURE__ */ (0, D.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, w.jsxs)("header", {
+ /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex items-baseline justify-between gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.label
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: t == null ? e.online ? "容量未取得" : "离线" : `${hk(r, t)}%`
+ children: t == null ? e.online ? "容量未取得" : "离线" : `${Tk(r, t)}%`
})]
}),
- /* @__PURE__ */ (0, w.jsx)("small", {
+ /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular break-words text-text-secondary",
children: e.root ?? "未映射"
}),
- t == null ? null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(ph, {
+ t == null ? null : /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(Ch, {
label: `${e.label}空间使用率`,
value: r,
max: Math.max(t, 1)
- }), /* @__PURE__ */ (0, w.jsxs)("p", {
+ }), /* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsxs)("span", { children: ["已用 ", /* @__PURE__ */ (0, w.jsx)("b", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", { children: ["已用 ", /* @__PURE__ */ (0, D.jsx)("b", {
className: "font-normal text-text-primary",
children: n(r)
- })] }), /* @__PURE__ */ (0, w.jsxs)("span", { children: ["可用 ", /* @__PURE__ */ (0, w.jsx)("b", {
+ })] }), /* @__PURE__ */ (0, D.jsxs)("span", { children: ["可用 ", /* @__PURE__ */ (0, D.jsx)("b", {
className: "font-normal text-text-primary",
children: n(e.free ?? 0)
})] })]
@@ -34289,155 +34352,155 @@ function Bk({ volume: e }) {
]
});
}
-function Vk({ volumes: e, configurable: t, openMediaSettings: n }) {
- return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+function Zk({ volumes: e, configurable: t, openMediaSettings: n }) {
+ return e.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-5",
- children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(Bk, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ children: e.map((e) => /* @__PURE__ */ (0, D.jsx)(Xk, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: Yf,
+ icon: rp,
title: "还没有存储来源",
- actions: t ? /* @__PURE__ */ (0, w.jsx)(K, {
+ actions: t ? /* @__PURE__ */ (0, D.jsx)(K, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: Nk
+ children: Uk
});
}
-function Hk({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, w.jsx)(Sk, {
- previewCount: Dk,
+function Qk({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, D.jsx)(Mk, {
+ previewCount: Lk,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
- children: e.map((e, r) => /* @__PURE__ */ (0, w.jsx)("li", {
+ children: e.map((e, r) => /* @__PURE__ */ (0, D.jsx)("li", {
className: "min-w-0",
- children: /* @__PURE__ */ (0, w.jsxs)("button", {
+ children: /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
onClick: () => n(e.k),
className: "flex min-h-11 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 grow text-body-2-regular break-words text-text-primary",
children: t(e.k)
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-2-medium tabular-nums text-text-secondary",
children: e.n.toLocaleString()
})
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: rp,
+ icon: dp,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, w.jsx)(sC, {
+ actions: /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: Ak
+ children: Bk
});
}
-function Uk({ rows: e }) {
- return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+function $k({ rows: e }) {
+ return e.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = _k(e);
- return /* @__PURE__ */ (0, w.jsxs)("article", {
+ let t = Dk(e);
+ return /* @__PURE__ */ (0, D.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "min-w-0 grow basis-64",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
- children: /* @__PURE__ */ (0, w.jsx)("a", {
- href: bk(e),
+ children: /* @__PURE__ */ (0, D.jsx)("a", {
+ href: Ak(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
- }), /* @__PURE__ */ (0, w.jsxs)("p", {
+ }), /* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, w.jsx)("span", { children: yk(e) })]
+ children: [/* @__PURE__ */ (0, D.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, D.jsx)("span", { children: kk(e) })]
})]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, w.jsx)(ph, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Ch, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${vk(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${Ok(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: Xf,
+ icon: ip,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, w.jsx)(sC, {
+ actions: /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: jk
+ children: Vk
});
}
-function Wk({ sources: e, videos: t }) {
- return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+function eA({ sources: e, videos: t }) {
+ return e.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("article", {
+ children: e.map((e) => /* @__PURE__ */ (0, D.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, w.jsxs)("header", {
+ /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex items-baseline justify-between gap-3",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.k
- }), /* @__PURE__ */ (0, w.jsxs)("b", {
+ }), /* @__PURE__ */ (0, D.jsxs)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, w.jsx)("small", {
+ children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, D.jsx)("small", {
className: "ml-1 text-caption-1-regular font-normal text-text-secondary",
children: "个视频"
})]
})]
}),
- /* @__PURE__ */ (0, w.jsx)(ph, {
+ /* @__PURE__ */ (0, D.jsx)(Ch, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
}),
- /* @__PURE__ */ (0, w.jsxs)("small", {
+ /* @__PURE__ */ (0, D.jsxs)("small", {
className: "text-caption-1-regular text-text-secondary",
children: [e.n.toLocaleString(), " 条标签"]
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: rp,
+ icon: dp,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, w.jsx)(sC, {
+ actions: /* @__PURE__ */ (0, D.jsx)(_C, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: Mk
+ children: Hk
});
}
-function Gk({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, w.jsx)(qy, {
+function tA({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, D.jsx)(rb, {
id: e,
- className: HS({
+ className: QS({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, w.jsx)(WS, {
+ children: /* @__PURE__ */ (0, D.jsx)(eC, {
label: t,
icon: i,
accent: a,
@@ -34446,106 +34509,106 @@ function Gk({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function Kk(e) {
- let t = pt({
- queryKey: fk,
- queryFn: ({ signal: e }) => pk(e)
+function nA(e) {
+ let t = mt({
+ queryKey: Sk,
+ queryFn: ({ signal: e }) => Ck(e)
}), r = t.data;
- if (!r) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ if (!r) return /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "读取失败",
children: t.error ? q(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 = hk(r.tag_cov, r.attribution.videos);
- return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [
- /* @__PURE__ */ (0, w.jsx)("p", {
+ 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 = Tk(r.tag_cov, r.attribution.videos);
+ return /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${n(s)}`
}),
- /* @__PURE__ */ (0, w.jsxs)(Uy, {
+ /* @__PURE__ */ (0, D.jsxs)($y, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, w.jsxs)(Gy, {
+ /* @__PURE__ */ (0, D.jsxs)(tb, {
"aria-label": "统计视图",
- className: US,
+ className: $S,
children: [
- /* @__PURE__ */ (0, w.jsx)(Gk, {
+ /* @__PURE__ */ (0, D.jsx)(tA, {
id: "inventory",
label: "馆藏视频",
- icon: Hf,
+ icon: U,
accent: 0,
figure: o.toLocaleString(),
detail: n(s)
}),
- /* @__PURE__ */ (0, w.jsx)(Gk, {
+ /* @__PURE__ */ (0, D.jsx)(tA, {
id: "viewing",
label: "看过",
- icon: Kf,
+ icon: ep,
accent: 1,
figure: i.played.toLocaleString(),
- detail: gk(i.play_seconds)
+ detail: Ek(i.play_seconds)
}),
- /* @__PURE__ */ (0, w.jsx)(Gk, {
+ /* @__PURE__ */ (0, D.jsx)(tA, {
id: "coverage",
label: "内容标签",
- icon: rp,
+ icon: dp,
accent: 2,
figure: `${c}%`,
detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, w.jsx)(Gk, {
+ /* @__PURE__ */ (0, D.jsx)(tA, {
id: "storage",
label: "使用空间",
- icon: Yf,
+ icon: rp,
accent: 3,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${n(a.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "inventory",
- children: /* @__PURE__ */ (0, w.jsx)(Rk, {
+ children: /* @__PURE__ */ (0, D.jsx)(Jk, {
data: r,
...e
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "viewing",
- children: /* @__PURE__ */ (0, w.jsx)(Lk, {
- headline: /* @__PURE__ */ (0, w.jsx)(Ik, {
+ children: /* @__PURE__ */ (0, D.jsx)(qk, {
+ headline: /* @__PURE__ */ (0, D.jsx)(Kk, {
term: "观看",
figure: i.played.toLocaleString(),
unit: "个作品有播放记录"
}),
- children: /* @__PURE__ */ (0, w.jsxs)("div", {
+ children: /* @__PURE__ */ (0, D.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "馆藏观看",
value: i.library_played
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "在线直接观看",
value: i.online_played
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "高潮计数",
value: i.o_total
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "快进扫过",
value: i.skimmed
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "明确不喜欢",
value: i.dislike
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "看过了",
value: i.seen
}),
- /* @__PURE__ */ (0, w.jsx)(Pk, {
+ /* @__PURE__ */ (0, D.jsx)(Wk, {
term: "回收站",
value: i.trash
})
@@ -34553,26 +34616,26 @@ function Kk(e) {
})
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "coverage",
- children: /* @__PURE__ */ (0, w.jsx)(Lk, {
- headline: /* @__PURE__ */ (0, w.jsx)(Ik, {
+ children: /* @__PURE__ */ (0, D.jsx)(qk, {
+ headline: /* @__PURE__ */ (0, D.jsx)(Kk, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, w.jsx)(zk, { attribution: r.attribution })
+ children: /* @__PURE__ */ (0, D.jsx)(Yk, { attribution: r.attribution })
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "storage",
- children: /* @__PURE__ */ (0, w.jsx)(Lk, {
- headline: /* @__PURE__ */ (0, w.jsx)(Ik, {
+ children: /* @__PURE__ */ (0, D.jsx)(qk, {
+ headline: /* @__PURE__ */ (0, D.jsx)(Kk, {
term: "使用空间",
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, w.jsx)(Vk, {
+ children: /* @__PURE__ */ (0, D.jsx)(Zk, {
volumes: r.storage_volumes,
...e
})
@@ -34580,50 +34643,50 @@ function Kk(e) {
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)(Uy, {
- className: `${ch({ padding: "none" })} flex flex-col`,
+ /* @__PURE__ */ (0, D.jsxs)($y, {
+ className: `${vh({ padding: "none" })} flex flex-col`,
children: [
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, w.jsxs)(Gy, {
+ children: /* @__PURE__ */ (0, D.jsxs)(tb, {
"aria-label": "统计维度",
- className: RS,
+ className: JS,
children: [
- /* @__PURE__ */ (0, w.jsx)(qy, {
+ /* @__PURE__ */ (0, D.jsx)(rb, {
id: "tags",
- className: zS,
+ className: YS,
children: "内容标签"
}),
- /* @__PURE__ */ (0, w.jsx)(qy, {
+ /* @__PURE__ */ (0, D.jsx)(rb, {
id: "recent",
- className: zS,
+ className: YS,
children: "最近看过"
}),
- /* @__PURE__ */ (0, w.jsx)(qy, {
+ /* @__PURE__ */ (0, D.jsx)(rb, {
id: "sources",
- className: zS,
+ className: YS,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, w.jsx)(Hk, {
+ children: /* @__PURE__ */ (0, D.jsx)(Qk, {
tags: r.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, w.jsx)(Uk, { rows: r.recent })
+ children: /* @__PURE__ */ (0, D.jsx)($k, { rows: r.recent })
}),
- /* @__PURE__ */ (0, w.jsx)(Jy, {
+ /* @__PURE__ */ (0, D.jsx)(ib, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, w.jsx)(Wk, {
+ children: /* @__PURE__ */ (0, D.jsx)(eA, {
sources: r.tag_source,
videos: r.attribution.videos
})
@@ -34634,7 +34697,7 @@ function Kk(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function qk(e, t) {
+function rA(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 {
@@ -34645,7 +34708,7 @@ function qk(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Jk(e, t) {
+function iA(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 {
@@ -34656,7 +34719,7 @@ function Jk(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function Yk(e, t) {
+function aA(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -34667,66 +34730,66 @@ function Yk(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function Xk(e, t) {
+function oA(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Zk(e) {
+function sA(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Qk(e, t) {
- return eA(e.source, t.source) || e.index - t.index;
+function cA(e, t) {
+ return uA(e.source, t.source) || e.index - t.index;
}
-function $k(e, t) {
- return eA(e.target, t.target) || e.index - t.index;
+function lA(e, t) {
+ return uA(e.target, t.target) || e.index - t.index;
}
-function eA(e, t) {
+function uA(e, t) {
return e.y0 - t.y0;
}
-function tA(e) {
+function dA(e) {
return e.value;
}
-function nA(e) {
+function fA(e) {
return e.index;
}
-function rA(e) {
+function pA(e) {
return e.nodes;
}
-function iA(e) {
+function mA(e) {
return e.links;
}
-function aA(e, t) {
+function hA(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function oA({ nodes: e }) {
+function gA({ 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 sA() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = nA, c = Xk, l, u, d = rA, f = iA, p = 6;
+function _A() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = fA, c = oA, l, u, d = pA, f = mA, 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), oA(e), e;
+ return h(e), g(e), _(e), v(e), x(e), gA(e), e;
}
m.update = function(e) {
- return oA(e), e;
+ return gA(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Zk(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : sA(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Zk(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : sA(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -34734,9 +34797,9 @@ function sA() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Zk(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : sA(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Zk(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : sA(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -34752,12 +34815,12 @@ function sA() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = aA(n, t)), typeof i != "object" && (i = r.target = aA(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = hA(n, t)), typeof i != "object" && (i = r.target = hA(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(Yk(t.sourceLinks, tA), Yk(t.targetLinks, tA)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(aA(t.sourceLinks, dA), aA(t.targetLinks, dA)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -34782,7 +34845,7 @@ function sA() {
}
}
function y({ nodes: t }) {
- let r = qk(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = rA(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];
@@ -34791,7 +34854,7 @@ function sA() {
return o;
}
function b(e) {
- let n = Jk(e, (e) => (r - t - (e.length - 1) * o) / Yk(e, tA));
+ let n = iA(e, (e) => (r - t - (e.length - 1) * o) / aA(e, dA));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -34808,7 +34871,7 @@ function sA() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (qk(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (rA(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);
@@ -34827,7 +34890,7 @@ function sA() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(eA), w(i, n);
+ l === void 0 && i.sort(uA), w(i, n);
}
}
function C(e, t, n) {
@@ -34843,7 +34906,7 @@ function sA() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(eA), w(i, n);
+ l === void 0 && i.sort(uA), w(i, n);
}
}
function w(e, n) {
@@ -34864,12 +34927,12 @@ function sA() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort($k);
- for (let { target: { targetLinks: t } } of e) t.sort(Qk);
+ for (let { source: { sourceLinks: e } } of t) e.sort(lA);
+ for (let { target: { targetLinks: t } } of e) t.sort(cA);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($k), n.sort(Qk);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(lA), n.sort(cA);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -34899,15 +34962,15 @@ function sA() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var cA = Math.PI, lA = 2 * cA, uA = 1e-6, dA = lA - uA;
-function fA() {
+var vA = Math.PI, yA = 2 * vA, bA = 1e-6, xA = yA - bA;
+function SA() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function pA() {
- return new fA();
+function CA() {
+ return new SA();
}
-fA.prototype = pA.prototype = {
- constructor: fA,
+SA.prototype = CA.prototype = {
+ constructor: SA,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -34928,11 +34991,11 @@ fA.prototype = pA.prototype = {
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 > uA) {
- if (!(Math.abs(u * s - c * l) > uA) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > bA) {
+ if (!(Math.abs(u * s - c * l) > bA) || !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((cA - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > uA && (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);
+ 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((vA - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > bA && (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);
}
}
},
@@ -34940,7 +35003,7 @@ fA.prototype = pA.prototype = {
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) > uA || Math.abs(this._y1 - l) > uA) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % lA + lA), d > dA ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > uA && (this._ += "A" + n + "," + n + ",0," + +(d >= cA) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > bA || Math.abs(this._y1 - l) > bA) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % yA + yA), d > xA ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > bA && (this._ += "A" + n + "," + n + ",0," + +(d >= vA) + "," + 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";
@@ -34951,90 +35014,90 @@ fA.prototype = pA.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function mA(e) {
+function wA(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function hA(e) {
+function TA(e) {
return e[0];
}
-function gA(e) {
+function EA(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var _A = Array.prototype.slice;
+var DA = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function vA(e) {
+function OA(e) {
return e.source;
}
-function yA(e) {
+function kA(e) {
return e.target;
}
-function bA(e) {
- var t = vA, n = yA, r = hA, i = gA, a = null;
+function AA(e) {
+ var t = OA, n = kA, r = TA, i = EA, a = null;
function o() {
- var o, s = _A.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = pA(), 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;
+ var o, s = DA.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = CA(), 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 : mA(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : wA(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : mA(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : wA(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function xA(e, t, n, r, i) {
+function jA(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function SA() {
- return bA(xA);
+function MA() {
+ return AA(jA);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function CA(e) {
+function NA(e) {
return [e.source.x1, e.y0];
}
-function wA(e) {
+function PA(e) {
return [e.target.x0, e.y1];
}
-function TA() {
- return SA().source(CA).target(wA);
+function FA() {
+ return MA().source(NA).target(PA);
}
//#endregion
//#region src/react/taste/taste.ts
-var EA = "/api/taste", DA = "/api/taste/refresh", OA = "/api/taste/import", kA = "/api/taste/source", AA = (e) => ["taste", e], jA = ["taste", "refresh"], MA = [
+var IA = "/api/taste", LA = "/api/taste/refresh", RA = "/api/taste/import", zA = "/api/taste/source", BA = (e) => ["taste", e], VA = ["taste", "refresh"], HA = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], NA = (e, t) => eh(`${EA}?window=${e}`, t), PA = (e) => eh(DA, e);
-async function FA(e, t) {
- await hh.fetchQuery({
- queryKey: AA(e),
- queryFn: () => NA(e, t)
+], UA = (e, t) => uh(`${IA}?window=${e}`, t), WA = (e) => uh(LA, e);
+async function GA(e, t) {
+ await Th.fetchQuery({
+ queryKey: BA(e),
+ queryFn: () => UA(e, t)
});
}
-var IA = (e) => J(DA, {
+var KA = (e) => J(LA, {
window: e,
background: !0
-}), LA = (e, t) => J(kA, {
+}), qA = (e, t) => J(zA, {
operation: "remove",
source_key: e,
window: t
});
-async function RA(e) {
- let t = await fetch(OA, {
+async function JA(e) {
+ let t = await fetch(RA, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -35048,38 +35111,38 @@ async function RA(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new Qm(e || `导入失败(${t.status})`, t.status, n);
+ throw new ch(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var zA = 1e4, BA = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", VA = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, HA = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function UA(e) {
+var YA = 1e4, XA = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", ZA = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, QA = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function $A(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 WA(e) {
- let t = e.map(HA), n = Math.max(1, ...t);
+function ej(e) {
+ let t = e.map(QA), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var GA = {
+var tj = {
x: 160,
y: 140
-}, KA = [
+}, nj = [
25,
50,
75,
100
-], qA = (e, t, n) => {
+], rj = (e, t, n) => {
let r = e / t * Math.PI * 2 - Math.PI / 2;
- return [GA.x + Math.cos(r) * n, GA.y + Math.sin(r) * n];
+ return [tj.x + Math.cos(r) * n, tj.y + Math.sin(r) * n];
};
-function JA(e) {
+function ij(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] = qA(r, t.length, Number(e.score) / n * 100), [o, s] = qA(r, t.length, 116);
+ let [i, a] = rj(r, t.length, Number(e.score) / n * 100), [o, s] = rj(r, t.length, 116);
return {
name: e.name,
x: i,
@@ -35089,7 +35152,7 @@ function JA(e) {
};
});
}
-var YA = (e, t) => Array.from({ length: t }, (n, r) => qA(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), XA = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), ZA = [
+var aj = (e, t) => Array.from({ length: t }, (n, r) => rj(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), oj = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), sj = [
"周一",
"周二",
"周三",
@@ -35097,8 +35160,8 @@ var YA = (e, t) => Array.from({ length: t }, (n, r) => qA(r, t, e).map((e) => e.
"周五",
"周六",
"周日"
-], QA = (e, t) => e ? Math.max(.12, e / t) : 0;
-function $A(e) {
+], cj = (e, t) => e ? Math.max(.12, e / t) : 0;
+function lj(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;
@@ -35108,14 +35171,14 @@ function $A(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${ZA[t]} ${n}:00`,
+ label: `${sj[t]} ${n}:00`,
count: e,
- share: QA(e, r)
+ share: cj(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function ej(e) {
+function uj(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,
@@ -35133,7 +35196,7 @@ function ej(e) {
key: r,
label: r,
count: s,
- share: QA(s, o)
+ share: cj(s, o)
};
});
return {
@@ -35143,17 +35206,17 @@ function ej(e) {
end: t.at(-1).date
};
}
-var tj = {
+var dj = {
width: 720,
height: 435
-}, nj = {
+}, fj = {
source: 145,
target: 545
};
-function rj(e = []) {
+function pj(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 = sA().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = _A().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -35168,7 +35231,7 @@ function rj(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = TA();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = FA();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -35198,64 +35261,64 @@ function rj(e = []) {
total: a
};
}
-var ij = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, aj = [
+var mj = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, hj = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], oj = [
+], gj = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], sj = `${ch({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function cj({ title: e, figure: t, note: n }) {
- return /* @__PURE__ */ (0, w.jsxs)("header", {
+], _j = `${vh({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function vj({ title: e, figure: t, note: n }) {
+ return /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: e
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
})]
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.jsx)("small", {
className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
children: n
})]
});
}
-function lj({ rows: e, label: t }) {
- let n = JA(e);
+function yj({ rows: e, label: t }) {
+ let n = ij(e);
if (!n.length) return null;
let r = n.length;
- return /* @__PURE__ */ (0, w.jsxs)("svg", {
+ return /* @__PURE__ */ (0, D.jsxs)("svg", {
viewBox: "0 0 320 280",
role: "img",
"aria-label": t,
className: "block w-full overflow-visible",
children: [
- /* @__PURE__ */ (0, w.jsx)("title", { children: n.map((e) => e.name).join(",") }),
- KA.map((e) => /* @__PURE__ */ (0, w.jsx)("polygon", {
- points: YA(e, r),
+ /* @__PURE__ */ (0, D.jsx)("title", { children: n.map((e) => e.name).join(",") }),
+ nj.map((e) => /* @__PURE__ */ (0, D.jsx)("polygon", {
+ points: aj(e, r),
fill: "none",
className: "stroke-separator-border",
strokeWidth: 1
}, e)),
- /* @__PURE__ */ (0, w.jsx)("polygon", {
- points: XA(n),
+ /* @__PURE__ */ (0, D.jsx)("polygon", {
+ points: oj(n),
strokeWidth: 2,
strokeLinejoin: "round",
fillOpacity: .18,
className: "fill-chart-4 stroke-chart-4"
}),
- n.map((e) => /* @__PURE__ */ (0, w.jsx)("text", {
+ n.map((e) => /* @__PURE__ */ (0, D.jsx)("text", {
x: e.labelX,
y: e.labelY,
dominantBaseline: "middle",
@@ -35266,34 +35329,34 @@ function lj({ rows: e, label: t }) {
]
});
}
-function uj({ rows: e, label: t }) {
+function bj({ 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 = WA(n);
- return /* @__PURE__ */ (0, w.jsx)("ol", {
+ let r = ej(n);
+ return /* @__PURE__ */ (0, D.jsx)("ol", {
"aria-label": t,
className: "flex flex-col gap-2",
- children: n.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("li", {
+ children: n.map((e, t) => /* @__PURE__ */ (0, D.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "min-w-0 break-words",
children: e.name
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "tabular-nums",
children: Number(e.score).toLocaleString()
})]
- }), /* @__PURE__ */ (0, w.jsxs)("svg", {
+ }), /* @__PURE__ */ (0, D.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, w.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, D.jsx)("rect", {
width: 100,
height: 1,
className: "fill-chart-track"
- }), /* @__PURE__ */ (0, w.jsx)("rect", {
+ }), /* @__PURE__ */ (0, D.jsx)("rect", {
width: r[t],
height: 1,
className: "fill-chart-4"
@@ -35302,19 +35365,19 @@ function uj({ rows: e, label: t }) {
}, e.name))
});
}
-function dj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
- let [c, l] = (0, C.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
- return /* @__PURE__ */ (0, w.jsxs)("section", {
- className: sj,
+function xj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
+ let [c, l] = (0, E.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: _j,
children: [
- /* @__PURE__ */ (0, w.jsx)(cj, {
+ /* @__PURE__ */ (0, D.jsx)(vj, {
title: e,
figure: (c ? c.count : r).toLocaleString(),
note: c ? c.label : t
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, w.jsxs)("svg", {
+ children: /* @__PURE__ */ (0, D.jsxs)("svg", {
role: "img",
"aria-label": e,
onPointerLeave: () => l(null),
@@ -35322,7 +35385,7 @@ function dj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:
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, w.jsx)("rect", {
+ return /* @__PURE__ */ (0, D.jsx)("rect", {
tabIndex: 0,
role: "img",
"aria-label": `${e.label},${e.count} 次访问`,
@@ -35340,83 +35403,83 @@ function dj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:
})]
})
}),
- /* @__PURE__ */ (0, w.jsx)("footer", {
+ /* @__PURE__ */ (0, D.jsx)("footer", {
className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",
children: s
})
]
});
}
-var fj = "口味网站访问";
-function pj({ activity: e }) {
- let t = $A(e), n = ej(e);
- if (!n.cells.length) return /* @__PURE__ */ (0, w.jsxs)("section", {
- className: sj,
- children: [/* @__PURE__ */ (0, w.jsx)("h3", {
+var Sj = "口味网站访问";
+function Cj({ activity: e }) {
+ let t = lj(e), n = uj(e);
+ if (!n.cells.length) return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: _j,
+ children: [/* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "浏览活跃时间"
- }), /* @__PURE__ */ (0, w.jsx)("p", {
+ }), /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "还没有可用于分析的口味网站访问记录。"
})]
});
- let r = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [ZA.map((e, t) => /* @__PURE__ */ (0, w.jsx)("text", {
+ let r = /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [sj.map((e, t) => /* @__PURE__ */ (0, D.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, w.jsx)("text", {
+ }, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, D.jsx)("text", {
x: 30 + t * 17,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "inline-grid w-full gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, w.jsx)(dj, {
+ children: [/* @__PURE__ */ (0, D.jsx)(xj, {
title: "浏览活跃时间",
- unit: fj,
+ unit: Sj,
cells: t.cells,
total: t.total,
columns: 24,
rows: 7,
axis: r,
- footer: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, w.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, w.jsx)(dj, {
+ footer: /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, D.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
+ }), /* @__PURE__ */ (0, D.jsx)(xj, {
title: "每日活跃",
- unit: fj,
+ unit: Sj,
cells: n.cells,
total: n.total,
columns: 13,
rows: 7,
- footer: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", { children: n.start }), /* @__PURE__ */ (0, w.jsx)("span", { children: n.end })] })
+ footer: /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("span", { children: n.start }), /* @__PURE__ */ (0, D.jsx)("span", { children: n.end })] })
})]
});
}
-function mj({ flows: e }) {
- let [t, n] = (0, C.useState)(null), r = rj(e);
+function wj({ flows: e }) {
+ let [t, n] = (0, E.useState)(null), r = pj(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, w.jsxs)("section", {
- className: sj,
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: _j,
children: [
- /* @__PURE__ */ (0, w.jsx)(cj, {
+ /* @__PURE__ */ (0, D.jsx)(vj, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
}),
- /* @__PURE__ */ (0, w.jsx)("div", {
+ /* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, w.jsxs)("svg", {
- viewBox: `0 0 ${tj.width} ${tj.height}`,
+ children: /* @__PURE__ */ (0, D.jsxs)("svg", {
+ viewBox: `0 0 ${dj.width} ${dj.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
className: "block h-auto max-h-130 min-w-160 w-full",
onPointerLeave: () => n(null),
- children: [/* @__PURE__ */ (0, w.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, w.jsx)("path", {
+ children: [/* @__PURE__ */ (0, D.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, D.jsx)("path", {
d: e.d,
strokeWidth: e.width,
tabIndex: 0,
@@ -35424,7 +35487,7 @@ function mj({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${aj[e.color]}`,
+ className: `outline-none transition-opacity ${hj[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -35436,7 +35499,7 @@ function mj({ flows: e }) {
node: null
}),
onBlur: () => n(null)
- }, e.key)) }), /* @__PURE__ */ (0, w.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, w.jsxs)("g", {
+ }, e.key)) }), /* @__PURE__ */ (0, D.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, D.jsxs)("g", {
tabIndex: 0,
role: "img",
"aria-label": `${e.name}:${e.value} 条线索`,
@@ -35452,21 +35515,21 @@ function mj({ flows: e }) {
node: e.index
}),
onBlur: () => n(null),
- children: [/* @__PURE__ */ (0, w.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, D.jsx)("rect", {
x: e.x,
y: e.y,
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? oj[e.color] : "fill-text-secondary"
- }), /* @__PURE__ */ (0, w.jsxs)("text", {
- x: nj[e.side],
+ className: e.side === "source" ? gj[e.color] : "fill-text-secondary"
+ }), /* @__PURE__ */ (0, D.jsxs)("text", {
+ x: fj[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: [ij(e.name), /* @__PURE__ */ (0, w.jsx)("tspan", {
- x: nj[e.side],
+ children: [mj(e.name), /* @__PURE__ */ (0, D.jsx)("tspan", {
+ x: fj[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -35474,20 +35537,20 @@ function mj({ flows: e }) {
}, e.id)) })]
})
}),
- /* @__PURE__ */ (0, w.jsxs)("footer", {
+ /* @__PURE__ */ (0, D.jsxs)("footer", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, w.jsx)("span", { children: "创作者 · 线索占比" })]
+ children: [/* @__PURE__ */ (0, D.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, D.jsx)("span", { children: "创作者 · 线索占比" })]
})
]
});
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var hj = 10, gj = G(ZS, QS, "text-body-2-medium"), _j = `${ch()} flex flex-col gap-4`, vj = "rounded-xl bg-background-primary-default p-3", yj = "读取运行 Peach 的这台电脑上的浏览记录", bj = "导入或读取浏览记录后,这里会列出已采集设备。", xj = "馆藏里暂时没有对得上浏览信号的标签。", Sj = "采集浏览记录后,这里会显示聚合后的口味证据。", Cj = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", wj = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Tj = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Ej = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Dj = "这个数据源将不再用于口味分析。原始导出文件保留。", Oj = "peach-taste-guide-dismissed";
-function kj({ icon: e, term: t, figure: n, detail: r, accent: i }) {
- return /* @__PURE__ */ (0, w.jsx)("div", {
- className: HS(),
- children: /* @__PURE__ */ (0, w.jsx)(WS, {
+var Tj = 10, Ej = nh(sC, cC, "text-body-2-medium"), Dj = `${vh()} flex flex-col gap-4`, Oj = "rounded-xl bg-background-primary-default p-3", kj = "读取运行 Peach 的这台电脑上的浏览记录", Aj = "导入或读取浏览记录后,这里会列出已采集设备。", jj = "馆藏里暂时没有对得上浏览信号的标签。", Mj = "采集浏览记录后,这里会显示聚合后的口味证据。", Nj = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Pj = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Fj = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Ij = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Lj = "这个数据源将不再用于口味分析。原始导出文件保留。", Rj = "peach-taste-guide-dismissed";
+function zj({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+ return /* @__PURE__ */ (0, D.jsx)("div", {
+ className: QS(),
+ children: /* @__PURE__ */ (0, D.jsx)(eC, {
label: t,
icon: e,
accent: i,
@@ -35496,10 +35559,10 @@ function kj({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function Aj({ name: e, domain: t }) {
- return /* @__PURE__ */ (0, w.jsxs)("span", {
+function Bj({ name: e, domain: t }) {
+ return /* @__PURE__ */ (0, D.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, w.jsx)("img", {
+ children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, D.jsx)("img", {
src: a({ domain: t }),
alt: "",
loading: "lazy",
@@ -35510,76 +35573,76 @@ function Aj({ name: e, domain: t }) {
})]
});
}
-function jj({ html: e }) {
- return /* @__PURE__ */ (0, w.jsx)("span", {
+function Vj({ html: e }) {
+ return /* @__PURE__ */ (0, D.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 Mj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, w.jsx)(uh, {
+function Hj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: op,
+ icon: mp,
title: "暂无足够证据",
children: r
});
- let o = WA(e);
- return /* @__PURE__ */ (0, w.jsx)(Sk, {
- previewCount: hj,
+ let o = ej(e);
+ return /* @__PURE__ */ (0, D.jsx)(Mk, {
+ previewCount: Tj,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
- let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
- /* @__PURE__ */ (0, w.jsx)("svg", {
+ let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [
+ /* @__PURE__ */ (0, D.jsx)("svg", {
viewBox: "0 0 100 1",
preserveAspectRatio: "none",
"aria-hidden": !0,
className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",
- children: /* @__PURE__ */ (0, w.jsx)("rect", {
+ children: /* @__PURE__ */ (0, D.jsx)("rect", {
width: o[r],
height: 1,
className: "fill-chart-4"
})
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, w.jsx)(Aj, {
+ n === "domain" ? /* @__PURE__ */ (0, D.jsx)(Bj, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, w.jsx)(Aj, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, D.jsx)(Bj, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, w.jsx)(jj, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, D.jsx)(Vj, { 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, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, w.jsx)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("b", {
className: "min-w-0 text-body-medium break-words text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: UA(e)
+ children: $A(e)
})]
}),
- s ? /* @__PURE__ */ (0, w.jsx)(Ff, {
+ s ? /* @__PURE__ */ (0, D.jsx)(Wf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
] }), u = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";
- return /* @__PURE__ */ (0, w.jsx)("li", {
+ return /* @__PURE__ */ (0, D.jsx)("li", {
className: "min-w-0",
- children: s ? /* @__PURE__ */ (0, w.jsx)("button", {
+ children: s ? /* @__PURE__ */ (0, D.jsx)("button", {
type: "button",
onClick: () => i(t, e.name),
className: `${u} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: l
- }) : /* @__PURE__ */ (0, w.jsx)("div", {
+ }) : /* @__PURE__ */ (0, D.jsx)("div", {
className: u,
children: l
})
@@ -35587,24 +35650,24 @@ function Mj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a
})
});
}
-function Nj({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, w.jsxs)(Uy, {
- className: `${ch({ padding: "none" })} flex flex-col`,
- children: [/* @__PURE__ */ (0, w.jsx)("div", {
+function Uj({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, D.jsxs)($y, {
+ className: `${vh({ padding: "none" })} flex flex-col`,
+ children: [/* @__PURE__ */ (0, D.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, w.jsx)(Gy, {
+ children: /* @__PURE__ */ (0, D.jsx)(tb, {
"aria-label": e,
- className: RS,
- children: t.map((e) => /* @__PURE__ */ (0, w.jsx)(qy, {
+ className: JS,
+ children: t.map((e) => /* @__PURE__ */ (0, D.jsx)(rb, {
id: e.id,
- className: zS,
+ className: YS,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, w.jsx)(Jy, {
+ }), t.map((e) => /* @__PURE__ */ (0, D.jsx)(ib, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, w.jsx)(Mj, {
+ children: /* @__PURE__ */ (0, D.jsx)(Hj, {
...e.props,
onSignal: n,
avatarInner: r
@@ -35612,7 +35675,7 @@ function Nj({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function Pj({ data: e, onSignal: t, navigate: n }) {
+function Wj({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -35626,102 +35689,102 @@ function Pj({ data: e, onSignal: t, navigate: n }) {
detail: e.detail,
act: () => n(e.route)
}))];
- return /* @__PURE__ */ (0, w.jsxs)("section", {
- className: _j,
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: Dj,
"aria-label": "口味总结",
children: [
- /* @__PURE__ */ (0, w.jsxs)("header", {
+ /* @__PURE__ */ (0, D.jsxs)("header", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "口味总结"
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "max-w-prose text-title-2-regular text-text-primary",
children: r.headline
}),
- /* @__PURE__ */ (0, w.jsxs)("p", {
+ /* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsx)("i", {
+ children: [/* @__PURE__ */ (0, D.jsx)("i", {
"aria-hidden": !0,
className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`
}), i.label || "仍在学习"]
})
]
}),
- r.points?.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+ r.points?.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
- children: r.points.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${vj}`,
- children: [/* @__PURE__ */ (0, w.jsx)("span", {
+ children: r.points.map((e) => /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: `flex min-w-0 flex-col gap-1 ${Oj}`,
+ children: [/* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
- }), /* @__PURE__ */ (0, w.jsx)("b", {
+ }), /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-2-medium break-words text-text-primary",
children: e.text
})]
}, e.label))
}) : null,
- a.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+ a.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, w.jsxs)("button", {
+ children: a.map((e) => /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${vj} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
- children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Oj} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ children: [/* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
- children: [/* @__PURE__ */ (0, w.jsx)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("b", {
className: "text-body-2-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, w.jsx)(Ff, {
+ }), /* @__PURE__ */ (0, D.jsx)(Wf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: op,
+ icon: mp,
title: "还没有可探索的入口",
- children: xj
+ children: jj
})
]
});
}
-function Fj({ onboarding: e, done: t }) {
- let [n, r] = (0, C.useState)(() => {
+function Gj({ onboarding: e, done: t }) {
+ let [n, r] = (0, E.useState)(() => {
try {
- return localStorage.getItem(Oj) === "1";
+ return localStorage.getItem(Rj) === "1";
} catch {
return !1;
}
});
- return t || n ? null : /* @__PURE__ */ (0, w.jsx)("div", {
- className: ch({
+ return t || n ? null : /* @__PURE__ */ (0, D.jsx)("div", {
+ className: vh({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, w.jsxs)(vC, {
+ children: /* @__PURE__ */ (0, D.jsxs)(OC, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: wj
+ children: Pj
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Tj
+ children: Fj
}),
- /* @__PURE__ */ (0, w.jsxs)("ul", {
+ /* @__PURE__ */ (0, D.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, w.jsxs)("li", { children: [
+ children: [/* @__PURE__ */ (0, D.jsxs)("li", { children: [
"Chrome:在 ",
- /* @__PURE__ */ (0, w.jsx)("a", {
+ /* @__PURE__ */ (0, D.jsx)("a", {
href: "https://takeout.google.com/",
target: "_blank",
rel: "noopener noreferrer",
@@ -35730,9 +35793,9 @@ function Fj({ onboarding: e, done: t }) {
}),
" ",
"选择 Chrome 历史记录,下载 ZIP 后直接导入。"
- ] }), /* @__PURE__ */ (0, w.jsxs)("li", { children: [
+ ] }), /* @__PURE__ */ (0, D.jsxs)("li", { children: [
"其他浏览器:用 ",
- /* @__PURE__ */ (0, w.jsx)("a", {
+ /* @__PURE__ */ (0, D.jsx)("a", {
href: "https://github.com/purarue/browserexport",
target: "_blank",
rel: "noopener noreferrer",
@@ -35743,18 +35806,18 @@ function Fj({ onboarding: e, done: t }) {
"导出历史记录,再导入导出文件。"
] })]
}),
- /* @__PURE__ */ (0, w.jsx)("p", {
+ /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Ej
+ children: Ij
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, w.jsx)(K, {
+ children: /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
onClick: () => {
try {
- localStorage.setItem(Oj, "1");
+ localStorage.setItem(Rj, "1");
} catch {}
r(!0);
},
@@ -35765,52 +35828,52 @@ function Fj({ onboarding: e, done: t }) {
})
});
}
-function Ij({ busy: e, onRefresh: t, onImport: n }) {
- let r = (0, C.useRef)(null), [i, a] = (0, C.useState)(!1), o = (e) => {
+function Kj({ busy: e, onRefresh: t, onImport: n }) {
+ let r = (0, E.useRef)(null), [i, a] = (0, E.useState)(!1), o = (e) => {
a(!1), e();
};
- return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("span", {
+ return /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, w.jsx)(K, {
- leadingIcon: Vf,
- title: yj,
+ children: [/* @__PURE__ */ (0, D.jsx)(K, {
+ leadingIcon: Xf,
+ title: kj,
onClick: t,
...X(e),
children: "读取浏览器历史"
- }), /* @__PURE__ */ (0, w.jsx)(K, {
+ }), /* @__PURE__ */ (0, D.jsx)(K, {
ref: r,
iconOnly: !0,
- leadingIcon: Nf,
+ leadingIcon: Hf,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, w.jsx)(av, {
+ }), /* @__PURE__ */ (0, D.jsx)(hv, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: JS,
- children: /* @__PURE__ */ (0, w.jsxs)(lv, {
+ className: iC,
+ children: /* @__PURE__ */ (0, D.jsxs)(yv, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: [/* @__PURE__ */ (0, w.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
- className: gj,
+ className: Ej,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, w.jsx)(Vf, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Xf, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
- }), /* @__PURE__ */ (0, w.jsxs)("button", {
+ }), /* @__PURE__ */ (0, D.jsxs)("button", {
type: "button",
- className: gj,
+ className: Ej,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, w.jsx)(up, {
+ children: [/* @__PURE__ */ (0, D.jsx)(vp, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -35818,61 +35881,61 @@ function Ij({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function Lj({ sources: e, window: t, toast: n }) {
- let r = mt({
- mutationFn: (e) => LA(e, t),
+function qj({ sources: e, window: t, toast: n }) {
+ let r = ht({
+ mutationFn: (e) => qA(e, t),
onSuccess: (e) => {
- hh.setQueryData(AA(t), e.dashboard), n("已移除口味数据源");
+ Th.setQueryData(BA(t), e.dashboard), n("已移除口味数据源");
}
});
- return /* @__PURE__ */ (0, w.jsxs)("section", {
- className: _j,
+ return /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: Dj,
"aria-label": "数据源",
children: [
- /* @__PURE__ */ (0, w.jsx)("h3", {
+ /* @__PURE__ */ (0, D.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "数据源"
}),
- r.error ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ r.error ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: q(r.error)
}) : null,
- e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
+ e.length ? /* @__PURE__ */ (0, D.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${vj}`,
+ children: e.map((e) => /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: `flex min-w-0 items-center gap-3 ${Oj}`,
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, w.jsx)(up, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, D.jsx)(vp, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, w.jsx)(Hf, {
+ }) : /* @__PURE__ */ (0, D.jsx)(U, {
"aria-hidden": !0,
className: "size-4"
})
}),
- /* @__PURE__ */ (0, w.jsxs)("span", {
+ /* @__PURE__ */ (0, D.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, w.jsx)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("b", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.profile
- }), /* @__PURE__ */ (0, w.jsx)("small", {
+ }), /* @__PURE__ */ (0, D.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, w.jsx)(K, {
+ /* @__PURE__ */ (0, D.jsx)(K, {
variant: "secondary",
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: Uf,
+ leadingIcon: Zf,
...X(r.isPending),
onClick: () => {
r.isPending || c({
title: "移除口味数据源",
- body: Dj,
+ body: Lj,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -35880,32 +35943,32 @@ function Lj({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: Hf,
+ icon: U,
title: "还没有数据源",
- children: bj
+ children: Aj
})
]
});
}
-function Rj(e) {
- let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, C.useState)("all"), [l, u] = (0, C.useState)("browser"), d = (0, C.useRef)(null), f = pt({
- queryKey: AA(s),
- queryFn: ({ signal: e }) => NA(s, e),
- placeholderData: he
- }), { job: p, running: m, outcome: h, start: g } = nC({
- queryKey: jA,
- queryFn: ({ signal: e }) => PA(e),
- start: () => IA(s),
- idlePollMs: zA,
+function Jj(e) {
+ let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, E.useState)("all"), [l, u] = (0, E.useState)("browser"), d = (0, E.useRef)(null), f = mt({
+ queryKey: BA(s),
+ queryFn: ({ signal: e }) => UA(s, e),
+ placeholderData: ge
+ }), { job: p, running: m, outcome: h, start: g } = fC({
+ queryKey: VA,
+ queryFn: ({ signal: e }) => WA(e),
+ start: () => KA(s),
+ idlePollMs: YA,
onFinish: (e) => {
- e.status !== "failed" && (hh.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析"));
+ e.status !== "failed" && (Th.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析"));
}
- }), _ = mt({
- mutationFn: (e) => RA(e),
+ }), _ = ht({
+ mutationFn: (e) => JA(e),
onSuccess: (e) => {
- hh.setQueryData(AA("all"), e.dashboard), c("all"), i("已导入口味数据");
+ Th.setQueryData(BA("all"), e.dashboard), c("all"), i("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -35913,52 +35976,52 @@ function Rj(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {
+ if (!b) return /* @__PURE__ */ (0, D.jsx)(Sh, { children: /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
title: "读取失败",
children: f.error ? q(f.error) : "读取口味分析失败"
}) });
- let x = b.summary || {}, S = b.coverage || {}, T = b.rankings || {}, E = b.storage || {}, D = T.browser_categories || [], O = b.gaps || [], k = S.tagged || 0, A = S.identified || 0, j = g.error ? q(g.error) : _.error ? q(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [
- /* @__PURE__ */ (0, w.jsxs)(Uy, {
+ let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], O = b.gaps || [], k = S.tagged || 0, A = S.identified || 0, j = g.error ? q(g.error) : _.error ? q(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
+ return /* @__PURE__ */ (0, D.jsxs)(Sh, { children: [
+ /* @__PURE__ */ (0, D.jsxs)($y, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, w.jsxs)(Gy, {
+ children: [/* @__PURE__ */ (0, D.jsxs)(tb, {
"aria-label": "口味证据来源",
- className: RS,
- children: [/* @__PURE__ */ (0, w.jsx)(qy, {
+ className: JS,
+ children: [/* @__PURE__ */ (0, D.jsx)(rb, {
id: "browser",
- className: zS,
+ className: YS,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, w.jsx)(qy, {
+ }), /* @__PURE__ */ (0, D.jsx)(rb, {
id: "peach",
- className: zS,
+ className: YS,
children: "Peach 内部"
})]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, w.jsx)(MT, {
+ /* @__PURE__ */ (0, D.jsx)(HT, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: MA.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {
+ children: HA.map(([e, t]) => /* @__PURE__ */ (0, D.jsx)(UT, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, w.jsx)(Ij, {
+ /* @__PURE__ */ (0, D.jsx)(Kj, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
}),
- /* @__PURE__ */ (0, w.jsx)("input", {
+ /* @__PURE__ */ (0, D.jsx)("input", {
ref: d,
type: "file",
tabIndex: -1,
@@ -35969,103 +36032,103 @@ function Rj(e) {
]
})]
}),
- /* @__PURE__ */ (0, w.jsx)(Fj, {
+ /* @__PURE__ */ (0, D.jsx)(Gj, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
- /* @__PURE__ */ (0, w.jsxs)("div", {
+ /* @__PURE__ */ (0, D.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- m ? p?.total ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ m ? p?.total ? /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, w.jsx)(ph, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Ch, {
label: p.message || "正在读取浏览记录",
value: p.checked || 0,
max: p.total
- }), /* @__PURE__ */ (0, w.jsx)("p", {
+ }), /* @__PURE__ */ (0, D.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`
})]
- }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
- _.isPending ? /* @__PURE__ */ (0, w.jsx)(dh, { label: "正在导入历史文件" }) : null,
- j ? /* @__PURE__ */ (0, w.jsx)(Y, {
+ }) : /* @__PURE__ */ (0, D.jsx)(xh, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, D.jsx)(xh, { label: "正在导入历史文件" }) : null,
+ j ? /* @__PURE__ */ (0, D.jsx)(Y, {
tone: "error",
children: j
}) : null
]
}),
- /* @__PURE__ */ (0, w.jsxs)(Jy, {
+ /* @__PURE__ */ (0, D.jsxs)(ib, {
id: "browser",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
- className: US,
+ /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: $S,
children: [
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 0,
- icon: Xf,
+ icon: ip,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${BA(x.range_start)}—${BA(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${XA(x.range_start)}—${XA(x.range_end)}`
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 1,
- icon: rp,
+ icon: dp,
term: "口味维度",
- figure: D.length.toLocaleString(),
- detail: D[0]?.name || "尚无主维度"
+ figure: T.length.toLocaleString(),
+ detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 2,
- icon: op,
+ icon: mp,
term: "浏览候选",
figure: O.length.toLocaleString()
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 3,
- icon: Hf,
+ icon: U,
term: "私有导出",
- figure: Number(E.exports || 0).toLocaleString(),
- detail: n(E.bytes || 0)
+ figure: Number(w.exports || 0).toLocaleString(),
+ detail: n(w.bytes || 0)
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)("section", {
- className: `${_j} md:flex-row md:gap-6`,
+ /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: `${Dj} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-72 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, w.jsx)(lj, {
- rows: D,
+ /* @__PURE__ */ (0, D.jsx)(yj, {
+ rows: T,
label: "主要口味维度"
}),
- /* @__PURE__ */ (0, w.jsx)("small", {
+ /* @__PURE__ */ (0, D.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${BA(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${XA(b.updated_at)}` : "尚未采集浏览记录"
})
]
- }), /* @__PURE__ */ (0, w.jsx)("div", {
+ }), /* @__PURE__ */ (0, D.jsx)("div", {
className: "min-w-0 grow",
- children: D.length ? /* @__PURE__ */ (0, w.jsx)(uj, {
- rows: D,
+ children: T.length ? /* @__PURE__ */ (0, D.jsx)(bj, {
+ rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, w.jsx)(uh, {
+ }) : /* @__PURE__ */ (0, D.jsx)(bh, {
shell: "plain",
- icon: op,
+ icon: mp,
title: "暂无口味维度",
- children: Sj
+ children: Mj
})
})]
}),
- /* @__PURE__ */ (0, w.jsx)(pj, { activity: b.activity }),
- /* @__PURE__ */ (0, w.jsx)(mj, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, w.jsx)(Nj, {
+ /* @__PURE__ */ (0, D.jsx)(Cj, { activity: b.activity }),
+ /* @__PURE__ */ (0, D.jsx)(wj, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, D.jsx)(Uj, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: a,
@@ -36074,7 +36137,7 @@ function Rj(e) {
id: "tags",
name: "标签",
props: {
- rows: T.browser_tags || [],
+ rows: C.browser_tags || [],
kind: "tag",
visual: "none",
empty: "暂无足够证据"
@@ -36084,7 +36147,7 @@ function Rj(e) {
id: "creators",
name: "创作者",
props: {
- rows: T.browser_creators || [],
+ rows: C.browser_creators || [],
kind: "creator",
visual: "creator",
empty: "暂无创作者证据"
@@ -36094,7 +36157,7 @@ function Rj(e) {
id: "domains",
name: "常访问网站",
props: {
- rows: T.domains || [],
+ rows: C.domains || [],
kind: "",
visual: "domain",
empty: "暂无网站证据"
@@ -36107,80 +36170,80 @@ function Rj(e) {
rows: O,
kind: "",
visual: "none",
- empty: Cj
+ empty: Nj
}
}
]
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)(Jy, {
+ /* @__PURE__ */ (0, D.jsxs)(ib, {
id: "peach",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, w.jsxs)("div", {
- className: US,
+ /* @__PURE__ */ (0, D.jsxs)("div", {
+ className: $S,
children: [
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 0,
- icon: Kf,
+ icon: ep,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: VA(x.peach_seconds || 0)
+ detail: ZA(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 1,
- icon: lp,
+ icon: _p,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 2,
- icon: cp,
+ icon: gp,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, w.jsx)(kj, {
+ /* @__PURE__ */ (0, D.jsx)(zj, {
accent: 3,
- icon: rp,
+ icon: dp,
term: "有标签",
figure: k.toLocaleString()
})
]
}),
- /* @__PURE__ */ (0, w.jsxs)("section", {
- className: `${_j} md:flex-row md:gap-6`,
+ /* @__PURE__ */ (0, D.jsxs)("section", {
+ className: `${Dj} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
- children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "Peach 观看"
}),
- /* @__PURE__ */ (0, w.jsx)("b", {
+ /* @__PURE__ */ (0, D.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: Number(x.peach_items || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, w.jsx)("span", {
+ /* @__PURE__ */ (0, D.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "个作品有内部行为证据"
})
]
- }), /* @__PURE__ */ (0, w.jsxs)("div", {
+ }), /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, w.jsx)(zj, {
+ children: [/* @__PURE__ */ (0, D.jsx)(Yj, {
term: "有标签",
value: k,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, w.jsx)(zj, {
+ }), /* @__PURE__ */ (0, D.jsx)(Yj, {
term: "有身份",
value: A,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, w.jsx)(Nj, {
+ /* @__PURE__ */ (0, D.jsx)(Uj, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: a,
@@ -36189,7 +36252,7 @@ function Rj(e) {
id: "tags",
name: "标签",
props: {
- rows: T.peach_tags || [],
+ rows: C.peach_tags || [],
kind: "tag",
visual: "none",
empty: "暂无足够证据"
@@ -36199,7 +36262,7 @@ function Rj(e) {
id: "creators",
name: "创作者",
props: {
- rows: T.peach_creators || [],
+ rows: C.peach_creators || [],
kind: "creator",
visual: "creator",
empty: "暂无创作者证据"
@@ -36209,7 +36272,7 @@ function Rj(e) {
id: "performers",
name: "女优",
props: {
- rows: T.peach_performers || [],
+ rows: C.peach_performers || [],
kind: "performer",
visual: "entity",
empty: "暂无女优证据"
@@ -36221,32 +36284,32 @@ function Rj(e) {
})
]
}),
- /* @__PURE__ */ (0, w.jsx)(Pj, {
+ /* @__PURE__ */ (0, D.jsx)(Wj, {
data: b,
onSignal: t,
navigate: r
}),
- /* @__PURE__ */ (0, w.jsx)(Lj, {
+ /* @__PURE__ */ (0, D.jsx)(qj, {
sources: b.sources || [],
window: s,
toast: i
})
] });
}
-function zj({ term: e, value: t, rest: n }) {
+function Yj({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
- return /* @__PURE__ */ (0, w.jsxs)("div", {
+ return /* @__PURE__ */ (0, D.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, w.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, D.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e }), /* @__PURE__ */ (0, w.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, D.jsx)("span", { children: e }), /* @__PURE__ */ (0, D.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, w.jsx)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, D.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, w.jsx)(ph, {
+ }), /* @__PURE__ */ (0, D.jsx)(Ch, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -36255,78 +36318,81 @@ function zj({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/entry.tsx
-var Bj = null;
-function Vj() {
- return Bj?.isConnected || (Bj = document.createElement("div"), Bj.className = "peach-react", Bj.dataset.reactOverlays = "", document.body.append(Bj)), Bj;
+var Xj = null;
+function Zj() {
+ return Xj?.isConnected || (Xj = document.createElement("div"), Xj.className = "peach-react", Xj.dataset.reactOverlays = "", document.body.append(Xj)), Xj;
}
-function Hj(e) {
+function Qj(e) {
return (t, n) => {
- let r = (0, Af.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, w.jsx)(D, {
- client: hh,
- children: /* @__PURE__ */ (0, w.jsx)(Sc, {
- getContainer: Vj,
- children: /* @__PURE__ */ (0, w.jsx)(e, { ...t })
+ let r = (0, zf.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, D.jsx)(A, {
+ client: Th,
+ children: /* @__PURE__ */ (0, D.jsx)(St, {
+ reducedMotion: "user",
+ children: /* @__PURE__ */ (0, D.jsx)(jc, {
+ getContainer: Zj,
+ children: /* @__PURE__ */ (0, D.jsx)(e, { ...t })
+ })
})
}));
- return (0, ti.flushSync)(() => i(n)), {
+ return (0, li.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
};
}
-var Uj = {
+var $j = {
activity: {
- prefetch: (e, t) => wh(t),
- mount: Hj(Kh)
+ prefetch: (e, t) => Ph(t),
+ mount: Qj(ng)
},
"avatar-picker": {
prefetch: async () => {},
- mount: Hj(Jb)
+ mount: Qj(ix)
},
"cover-crop": {
prefetch: async () => {},
- mount: Hj(sx)
+ mount: Qj(_x)
},
configuration: {
- prefetch: (e, t) => _O(t),
- mount: Hj(ck)
+ prefetch: (e, t) => DO(t),
+ mount: Qj(vk)
},
"configuration-summary": {
- prefetch: (e, t) => _O(t),
- mount: Hj(uk)
+ prefetch: (e, t) => DO(t),
+ mount: Qj(bk)
},
"follow-manage": {
- prefetch: (e, t) => ES(t, e.tab),
- mount: Hj(KT)
+ prefetch: (e, t) => IS(t, e.tab),
+ mount: Qj(nE)
},
"library-processing": {
- prefetch: (e, t) => XT(t),
- mount: Hj((e) => e.mode === "notice" ? /* @__PURE__ */ (0, w.jsx)(IE, { ...e }) : /* @__PURE__ */ (0, w.jsx)(ME, { ...e }))
+ prefetch: (e, t) => oE(t),
+ mount: Qj((e) => e.mode === "notice" ? /* @__PURE__ */ (0, D.jsx)(KE, { ...e }) : /* @__PURE__ */ (0, D.jsx)(HE, { ...e }))
},
"media-repair": {
- prefetch: (e, t) => hE(t),
- mount: Hj(CE)
+ prefetch: (e, t) => TE(t),
+ mount: Qj(NE)
},
"quality-goals": {
- prefetch: (e, t) => BE(t),
- mount: Hj(UE)
+ prefetch: (e, t) => XE(t),
+ mount: Qj($E)
},
review: {
- prefetch: (e, t) => yD(t),
- mount: Hj(WD)
+ prefetch: (e, t) => kD(t),
+ mount: Qj(eO)
},
scraping: {
- prefetch: (e, t) => iO(t),
- mount: Hj(fO)
+ prefetch: (e, t) => mO(t),
+ mount: Qj(SO)
},
stats: {
- prefetch: (e, t) => mk(t),
- mount: Hj(Kk)
+ prefetch: (e, t) => wk(t),
+ mount: Qj(nA)
},
taste: {
- prefetch: (e, t) => FA("all", t),
- mount: Hj(Rj)
+ prefetch: (e, t) => GA("all", t),
+ mount: Qj(Jj)
}
};
//#endregion
-export { Uj as pages };
+export { $j as pages };
diff --git a/web/vendor/evilcharts-LICENSE.txt b/web/vendor/evilcharts-LICENSE.txt
new file mode 100644
index 000000000..49228a958
--- /dev/null
+++ b/web/vendor/evilcharts-LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Gurbinder
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.